/* ================================
   SEÇÕES
================================ */

.section-container{
    width:100%;
    max-width:1320px;
    margin:0 auto;
    padding:0 48px;
}


/* ================================
   SOBRE MIM
================================ */

.about{
    width:100%;
    min-height:100vh;
    padding:140px 0;
    display:flex;
    align-items:center;
}

.about .section-container{
    display:grid;
    grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);
    gap:100px;
    align-items:start;
}


/* ================================
   CABEÇALHO
================================ */

.about-heading{
    position:relative;
    padding-left:28px;
}

.about-line{
    position:absolute;
    left:0;
    top:7px;
    width:2px;
    height:0;
    border-radius:10px;
    background:var(--accent);
    transition:height 1s cubic-bezier(.22,1,.36,1);
}

.about-heading-content{
    position:relative;
}


/* ================================
   LABEL
================================ */

.section-label{
    display:block;
    margin-bottom:20px;
    color:var(--accent);
    font-size:13px;
    font-weight:600;
    letter-spacing:.5px;
    text-transform:uppercase;
}


/* ================================
   TÍTULO
================================ */

.section-heading h2,
.about-heading h2{
    max-width:430px;
    color:var(--text);
    font-size:clamp(38px,4vw,58px);
    line-height:1.04;
    letter-spacing:-3px;
    font-weight:400;
    transition:color var(--transition);
}


/* ================================
   CONTEÚDO
================================ */

.about-content{
    max-width:650px;
}


/* ================================
   TEXTOS
================================ */

.about-text{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.about-text p{
    color:var(--text-soft);
    font-size:16px;
    line-height:1.8;
    font-weight:400;
    opacity:0;
    transform:translateY(20px);
    transition:
        opacity .7s cubic-bezier(.22,1,.36,1),
        transform .7s cubic-bezier(.22,1,.36,1);
}

.about-content.is-visible .about-text p{
    opacity:1;
    transform:none;
}

.about-content.is-visible .about-text p:nth-child(1){
    transition-delay:.05s;
}

.about-content.is-visible .about-text p:nth-child(2){
    transition-delay:.25s;
}

.about-content.is-visible .about-text p:nth-child(3){
    transition-delay:.45s;
}

.about-text strong{
    color:var(--text);
    font-weight:600;
    transition:color var(--transition);
}


/* ================================
   BADGES
================================ */

.about-badges{
    margin-top:38px;
    padding-top:28px;
    border-top:1px solid var(--border);
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.about-badges span{
    padding:9px 14px;
    border:1px solid var(--border);
    border-radius:30px;
    background:transparent;
    color:var(--text-soft);
    font-size:11px;
    font-weight:500;
    letter-spacing:.2px;
    transition:
        color .3s ease,
        border-color .3s ease,
        background .3s ease,
        transform .3s ease;
}

.about-badges span:hover{
    color:var(--accent);
    border-color:var(--accent);
    background:var(--surface);
    transform:translateY(-2px);
}


/* ================================
   ANIMAÇÃO SOBRE MIM
================================ */

.about-heading.reveal.is-visible .about-line{
    height:52px;
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale{
    opacity:0;
    transition:
        opacity .8s cubic-bezier(.22,1,.36,1),
        transform .8s cubic-bezier(.22,1,.36,1);
}

.reveal{
    transform:translateY(32px);
}

.reveal-left{
    transform:translateX(-40px);
}

.reveal-right{
    transform:translateX(40px);
}

.reveal-scale{
    transform:scale(.92);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible{
    opacity:1;
    transform:none;
}

.about-content.reveal{
    transition-delay:.15s;
}

.delay-1{transition-delay:.08s;}
.delay-2{transition-delay:.16s;}
.delay-3{transition-delay:.24s;}
.delay-4{transition-delay:.32s;}
.delay-5{transition-delay:.4s;}
.delay-6{transition-delay:.48s;}
/* ================================
   KEYFRAMES
================================ */

/* ================================
   TABLET
================================ */

@media(max-width:1000px){

    .section-container{
        padding:0 35px;
    }

    .about{
        padding:120px 0;
    }

    .about .section-container{
        gap:60px;
        grid-template-columns:minmax(240px,.8fr) minmax(350px,1.2fr);
    }

    .about-heading h2{
        font-size:clamp(36px,4.5vw,50px);
        letter-spacing:-2.5px;
    }
}


/* ================================
   MOBILE
================================ */

@media(max-width:700px){

    .section-container{
        padding:0 20px;
    }

    .about{
        min-height:auto;
        padding:100px 0;
    }

    .about .section-container{
        display:flex;
        flex-direction:column;
        gap:45px;
    }

    .about-heading{
        padding-left:22px;
    }

    .about-line{
        top:5px;
    }

    .about.about-visible .about-line{
        height:44px;
    }

    .section-label{
        margin-bottom:15px;
        font-size:12px;
    }

    .about-heading h2{
        max-width:100%;
        font-size:40px;
        line-height:1.05;
        letter-spacing:-2px;
    }

    .about-content{
        max-width:100%;
        transform:translateY(35px);
    }

    .about.about-visible .about-content{
        animation:aboutMobileContentIn 1s cubic-bezier(.22,1,.36,1) .3s forwards;
    }

    .about-text{
        gap:18px;
    }

    .about-text p{
        font-size:14px;
        line-height:1.75;
    }

    .about-badges{
        margin-top:30px;
        padding-top:24px;
        gap:8px;
    }

    .about-badges span{
        padding:8px 12px;
        font-size:10.5px;
    }
}

@keyframes aboutMobileContentIn{
    from{
        opacity:0;
        transform:translateY(35px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}


/* ================================
   MOBILE PEQUENO
================================ */

@media(max-width:400px){

    .section-container{
        padding:0 18px;
    }

    .about{
        padding:85px 0;
    }

    .about .section-container{
        gap:38px;
    }

    .about-heading h2{
        font-size:36px;
        letter-spacing:-1.8px;
    }

    .about-text p{
        font-size:13.5px;
    }
}


/* ================================
   REDUÇÃO DE MOVIMENTO
================================ */

@media(prefers-reduced-motion:reduce){

    .about-heading,
    .about-heading-content,
    .about-content,
    .about-text p,
    .about-badges,
    .about-badges span,
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale{
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
        transition:none !important;
    }

    .about-line{
        height:52px !important;
        transition:none !important;
    }
}

/* ================================================================
   SECTION HEADING (genérico, usado em experiência/stack/projetos/contato)
================================================================ */

.section-heading{
    max-width:640px;
    margin:0 auto 70px;
    text-align:center;
}

.section-heading h2{
    max-width:100%;
    margin:0 auto;
}


/* ================================================================
   EXPERIÊNCIA
================================================================ */

.experience{
    width:100%;
    padding:120px 0;
}

.timeline{
    max-width:760px;
    margin:0 auto;
    border-left:2px solid var(--border);
}

.timeline-item{
    position:relative;
    padding:0 0 52px 40px;
}

.timeline-item:last-child{
    padding-bottom:0;
}

.timeline-item::before{
    content:"";
    position:absolute;
    left:-7px;
    top:4px;
    width:12px;
    height:12px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 0 4px var(--bg);
    transition:box-shadow var(--transition);
}

.timeline-period{
    display:inline-block;
    margin-bottom:8px;
    color:var(--accent);
    font-size:12px;
    font-weight:600;
    letter-spacing:.3px;
}

.timeline-item h3{
    font-size:20px;
    font-weight:600;
    color:var(--text);
}

.timeline-company{
    margin-top:4px;
    color:var(--text-soft);
    font-size:13px;
    font-weight:500;
}

.timeline-item p:last-child{
    margin-top:12px;
    max-width:560px;
    color:var(--text-soft);
    font-size:14.5px;
    line-height:1.7;
}


/* ================================================================
   STACK
================================================================ */

.stack-section{
    width:100%;
    padding:120px 0;
    background:var(--surface);
    transition:background var(--transition);
}

.stack-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
}

.stack-category{
    padding:28px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:var(--surface-soft);
    transition:
        transform .35s ease,
        border-color .35s ease,
        background var(--transition);
}

.stack-category:hover{
    transform:translateY(-4px);
    border-color:var(--accent);
}

.stack-category h3{
    font-size:14px;
    font-weight:700;
    color:var(--text);
}

.stack-items{
    margin-top:18px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.stack-item{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 13px;
    border:1px solid var(--border);
    border-radius:30px;
    background:var(--surface);
    color:var(--text-soft);
    font-size:12px;
    font-weight:500;
    transition:
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.stack-item:hover{
    color:var(--accent);
    border-color:var(--accent);
    transform:translateY(-2px);
}

.stack-item img{
    width:15px;
    height:15px;
    object-fit:contain;
}


/* ================================================================
   PROJETOS
================================================================ */

.projects{
    width:100%;
    padding:120px 0;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:28px;
}

.project-card{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:34px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:var(--surface);
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.project-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
    border-color:var(--accent);
}

.project-number{
    color:var(--accent);
    font-size:13px;
    font-weight:700;
}

.project-card h3{
    font-size:19px;
    font-weight:600;
    color:var(--text);
    letter-spacing:-.3px;
}

.project-card p{
    color:var(--text-soft);
    font-size:14px;
    line-height:1.7;
}

.project-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.project-tags span{
    padding:5px 11px;
    border:1px solid var(--border);
    border-radius:20px;
    color:var(--text-soft);
    font-size:10.5px;
    font-weight:500;
}

.project-link{
    margin-top:auto;
    padding-top:8px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--text);
    font-size:13px;
    font-weight:600;
    transition:color .3s ease;
}

.project-card:hover .project-link{
    color:var(--accent);
}

.card-arrow-inline{
    display:inline-block;
    transition:transform .35s ease;
}

.project-card:hover .card-arrow-inline,
.contact-card:hover .card-arrow-inline{
    transform:translate(3px,-3px);
}


/* ================================================================
   CONTATO
================================================================ */

.contact{
    width:100%;
    padding:120px 0 90px;
    background:var(--surface);
    transition:background var(--transition);
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:28px;
}

.contact-card{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:42px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:var(--surface-soft);
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.contact-card:hover{
    transform:translateY(-6px);
    border-color:var(--accent);
    box-shadow:var(--shadow);
}

.contact-label{
    color:var(--accent);
    font-size:12px;
    font-weight:600;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.contact-card h3{
    font-size:25px;
    font-weight:400;
    letter-spacing:-1px;
    color:var(--text);
}

.contact-card p{
    color:var(--text-soft);
    font-size:14px;
    line-height:1.6;
}

.contact-arrow-link{
    margin-top:12px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    font-size:13px;
    font-weight:600;
}

.site-footer{
    width:100%;
    padding:80px 0 0;
    background:var(--surface);
    border-top:1px solid var(--border);
    transition:background var(--transition),border-color var(--transition);
}

.footer-content{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:60px;
    padding-bottom:60px;
}

.footer-brand .logo{
    font-size:22px;
}

.footer-brand p{
    margin-top:16px;
    max-width:320px;
    color:var(--text-soft);
    font-size:13px;
    line-height:1.75;
}

.footer-col{
    display:flex;
    flex-direction:column;
    gap:13px;
}

.footer-heading{
    margin-bottom:4px;
    color:var(--text);
    font-size:12px;
    font-weight:700;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.footer-col a{
    color:var(--text-soft);
    font-size:13.5px;
    transition:color .3s ease,transform .3s ease;
    width:fit-content;
}

.footer-col a:hover{
    color:var(--accent);
    transform:translateX(3px);
}


/* ================================================================
   RESPONSIVO — NOVAS SEÇÕES
================================================================ */

@media(max-width:1000px){

    .experience,
    .education,
    .certificates,
    .stack-section,
    .projects,
    .contact{
        padding:90px 0;
    }

    .section-heading{
        margin-bottom:50px;
    }
}

@media(max-width:700px){

    .timeline-item{
        padding:0 0 40px 28px;
    }

    .timeline-item h3{
        font-size:18px;
    }

    .project-card,
    .contact-card{
        padding:26px;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

    .footer-content{
        grid-template-columns:1fr;
        gap:36px;
        padding-bottom:40px;
    }
}


/* ================================================================
   REDUÇÃO DE MOVIMENTO — NOVAS SEÇÕES
================================================================ */

@media(prefers-reduced-motion:reduce){

    .project-card,
    .contact-card,
    .stack-category,
    .stack-item{
        transition:none !important;
    }
}


/* ================================================================
   TIMELINE COMO BOTÃO (abre painel lateral)
================================================================ */

button.timeline-item{
    display:block;
    width:100%;
    background:none;
    border:none;
    font:inherit;
    color:inherit;
    text-align:left;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}

.timeline-item:hover h3,
.timeline-item:focus-visible h3{
    color:var(--accent);
}

.timeline-item:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:8px;
    border-radius:10px;
}

.timeline-expand{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:14px;
    color:var(--accent);
    font-size:12px;
    font-weight:600;
    opacity:0;
    transform:translateX(-6px);
    transition:opacity .3s ease,transform .3s ease;
}

.timeline-item:hover .timeline-expand,
.timeline-item:focus-visible .timeline-expand{
    opacity:1;
    transform:translateX(0);
}


/* ================================================================
   PAINEL LATERAL
================================================================ */

.side-panel{
    position:fixed;
    inset:0;
    z-index:2000;
    visibility:hidden;
    pointer-events:none;
}

.side-panel.is-open{
    visibility:visible;
    pointer-events:auto;
}

.side-panel-overlay{
    position:absolute;
    inset:0;
    background:rgba(23,20,18,.45);
    opacity:0;
    transition:opacity .4s ease;
}

[data-theme="dark"] .side-panel-overlay{
    background:rgba(0,0,0,.6);
}

.side-panel.is-open .side-panel-overlay{
    opacity:1;
}

.side-panel-panel{
    position:absolute;
    top:0;
    right:0;
    height:100%;
    width:min(440px,90vw);
    background:var(--surface);
    border-left:1px solid var(--border);
    box-shadow:-25px 0 60px rgba(0,0,0,.15);
    padding:80px 40px 50px;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform .45s cubic-bezier(.22,1,.36,1);
}

.side-panel.is-open .side-panel-panel{
    transform:translateX(0);
}

.side-panel-close{
    position:absolute;
    top:26px;
    right:26px;
    width:38px;
    height:38px;
    border:1px solid var(--border);
    border-radius:50%;
    background:transparent;
    color:var(--text);
    font-size:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:
        color .3s ease,
        border-color .3s ease,
        transform .35s ease;
}

.side-panel-close:hover{
    color:var(--accent);
    border-color:var(--accent);
    transform:rotate(90deg);
}

.side-panel-body .timeline-period{
    color:var(--accent);
    font-size:12px;
    font-weight:600;
}

.side-panel-body h3{
    margin-top:10px;
    font-size:25px;
    font-weight:400;
    letter-spacing:-1px;
    color:var(--text);
}

.side-panel-body .timeline-company{
    margin-top:6px;
    color:var(--text-soft);
    font-size:13px;
    font-weight:600;
}

.side-panel-body p:not(.timeline-company){
    margin-top:20px;
    color:var(--text-soft);
    font-size:14.5px;
    line-height:1.75;
}

.side-panel-body ul{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-left:18px;
    color:var(--text-soft);
    font-size:13.5px;
    line-height:1.6;
}

.side-panel-body li{
    list-style:disc;
}


/* ================================================================
   FORMAÇÃO
================================================================ */

.education{
    width:100%;
    padding:120px 0;
}

.education-list{
    max-width:760px;
    margin:0 auto;
}

.education-item{
    display:grid;
    grid-template-columns:130px 1fr;
    gap:24px;
    padding:26px 0;
    border-bottom:1px solid var(--border);
}

.education-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.education-item:first-child{
    padding-top:0;
}

.education-period{
    color:var(--accent);
    font-size:13px;
    font-weight:700;
}

.education-info h3{
    font-size:17px;
    font-weight:600;
    color:var(--text);
    letter-spacing:-.2px;
}

.education-info p{
    margin-top:5px;
    color:var(--text-soft);
    font-size:13px;
}


/* ================================================================
   CERTIFICADOS
================================================================ */

.certificates{
    width:100%;
    padding:120px 0;
    background:var(--surface);
    transition:background var(--transition);
}

.certificate-featured{
    position:relative;
    margin-bottom:24px;
    padding:44px;
    border:1px solid var(--border);
    border-left:3px solid var(--accent);
    border-radius:var(--radius);
    background:var(--surface-soft);
}

.certificate-featured-tag{
    display:inline-block;
    margin-bottom:16px;
    padding:5px 13px;
    border-radius:20px;
    background:var(--accent);
    color:#fff;
    font-size:10.5px;
    font-weight:700;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.certificate-featured .certificate-date{
    display:block;
    color:var(--accent);
    font-size:12px;
    font-weight:600;
}

.certificate-featured h3{
    margin-top:8px;
    font-size:27px;
    font-weight:400;
    letter-spacing:-1px;
    color:var(--text);
}

.certificate-featured .certificate-issuer{
    margin-top:6px;
    color:var(--text-soft);
    font-size:13px;
    font-weight:500;
}

.certificate-featured .certificate-desc{
    margin-top:18px;
    max-width:600px;
    color:var(--text-soft);
    font-size:14px;
    line-height:1.75;
}

.certificates-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
}

.certificate-card{
    padding:24px;
    border:1px solid var(--border);
    border-radius:20px;
    background:var(--surface-soft);
    transition:
        transform .3s ease,
        border-color .3s ease;
}

.certificate-card:hover{
    transform:translateY(-4px);
    border-color:var(--accent);
}

.certificate-card .certificate-date{
    color:var(--accent);
    font-size:11.5px;
    font-weight:600;
}

.certificate-card h3{
    margin-top:8px;
    font-size:14.5px;
    font-weight:600;
    line-height:1.4;
    color:var(--text);
}

.certificate-card .certificate-issuer{
    margin-top:8px;
    color:var(--text-soft);
    font-size:12px;
}


/* ================================================================
   RESPONSIVO — FORMAÇÃO / CERTIFICADOS / PAINEL
================================================================ */

@media(max-width:700px){

    .education-item{
        grid-template-columns:1fr;
        gap:6px;
    }

    .certificate-featured{
        padding:28px;
    }

    .certificate-featured h3{
        font-size:22px;
    }

    .side-panel-panel{
        width:100vw;
        padding:70px 24px 40px;
    }
}


/* ================================================================
   FOOTER — LINHA DE DIREITOS AUTORAIS EM DUAS COLUNAS
================================================================ */

.footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    padding:24px 48px;
    border-top:1px solid var(--border);
    color:var(--text-soft);
    font-size:12px;
    transition:border-color var(--transition);
}

.footer-bottom a{
    color:var(--text-soft);
    font-weight:600;
    transition:color .3s ease;
}

.footer-bottom a:hover{
    color:var(--accent);
}

@media(max-width:700px){
    .footer-bottom{
        flex-direction:column;
        justify-content:center;
        text-align:center;
        padding:20px 20px;
    }
}

@media(hover:none){
    .timeline-expand{
        opacity:1;
        transform:none;
        margin-top:12px;
    }
}

/* ================================================================
   REDUÇÃO DE MOVIMENTO — PAINEL E NOVOS COMPONENTES
================================================================ */

@media(prefers-reduced-motion:reduce){

    .side-panel-panel,
    .side-panel-overlay,
    .timeline-expand,
    .certificate-card,
    .about-text p{
        transition:none !important;
    }
}