/* =========================
   IMPORTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Fira+Code:wght@400;500;700&display=swap');

/* =========================
   ROOT
========================= */
:root{
    --primary:#0313a5;
    --secondary:#3ac3ed;
    --accent:#06b6d4;
    --blue:#45bbff;
    --green:#10a5b9;

    --bg-dark:#c1e6f4;
    --bg-darker:#f2f4ff;
    --bg-card:rgba(233, 233, 233, 0.75);
    --bg-hover:#cacaca;

    --border:rgba(7, 0, 104, 0.15);

    --text-primary:#222222;
    --text-secondary:#2c2c2c;
    --text-muted:#031e44;

    --gradient-1:linear-gradient(135deg,#1d7cb4 50%,#3f70da 100%);
    --gradient-2:linear-gradient(135deg,#26b7f0 0%,#040042 100%);
    --gradient-3:linear-gradient(135deg,#0625d4 0%,#103db9 100%);

    --shadow-sm:0 2px 10px rgba(0,0,0,.15);
    --shadow-md:0 10px 25px rgba(0,0,0,.25);
    --shadow-lg:0 20px 40px rgba(0,0,0,.35);
    --shadow-glow:0 0 40px rgba(139,92,246,.35);

    --radius-sm:12px;
    --radius-md:18px;
    --radius-lg:28px;

    --transition:.3s cubic-bezier(.4,0,.2,1);

    --font-primary:'Tajawal',sans-serif;
}

/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html{
    scroll-behavior:smooth;
}

body{
    background-color: #e7e9ff;
    font-family:var(--font-primary);
    position:relative;
    overflow-x:hidden;
    line-height:1.7;
    /* Sticky footer: body ocupa altura mínima da viewport e organiza tudo em coluna */
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* Camada do xadrez radial — efeito fixo (sem animação) */
body::before{
    content:"";
    position:fixed;
    inset:-100px 0;       /* margem extra cima/baixo pra translate não revelar a borda */
    z-index:0;
    pointer-events:none;
    background-image:
        
        linear-gradient(90deg, rgba(255, 255, 255, 0.652) 1px, transparent 1px);
    background-size:24px 24px;
    -webkit-mask-image:radial-gradient(ellipse at center, transparent 10%, #000000 90%);
            mask-image:radial-gradient(ellipse at center, transparent 10%, #000 90%);
    opacity:.85;
    /* Parallax: posição vertical controlada pelo JS via custom property */
    background-position-y: var(--parallax-offset, 0px);
    will-change: background-position;
}

/* Vinheta sutil nas bordas */
body::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgb(154, 184, 255) 100%),
        radial-gradient(circle at top left, rgba(73,120,248,.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6,154,212,.12), transparent 30%);
}

/* Conteúdo do body fica acima das camadas decorativas */
body > *{
    position:relative;
    z-index:1;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--bg-darker);
}

::-webkit-scrollbar-thumb{
    background:var(--gradient-1);
    border-radius:20px;
}

/* =========================
   HEADER (mobile base)
========================= */
.main-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    backdrop-filter:blur(20px);
    background:#091a43;
    border-bottom:1px solid var(--border);
}

.nav-container{
    max-width:1400px;
    margin:auto;
    padding:0 1rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.brand-logo{
    display:flex;
    align-items:center;
}

.brand-logo-img{
    height:50px;
    width:auto;
    object-fit:contain;
    display:block;
}

/* Menu mobile: drawer lateral, escondido por padrão */
.nav-menu{
    display:flex;
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    width:80%;
    max-width:320px;
    background:#091a43;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:0;
    padding:6rem 2rem 2rem;
    transform:translateX(100%);
    transition:transform .3s ease;
    z-index:998;
    box-shadow:-8px 0 24px rgba(0,0,0,.25);
}

.nav-menu.is-open{
    transform:translateX(0);
}

.nav-link{
    color:#eff4ff;
    font-weight:700;
    position:relative;
    transition:var(--transition);
    width:100%;
    padding:1rem 0;
    font-size:1.1rem;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-link::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:var(--gradient-1);
    transition:var(--transition);
}

.nav-link:hover{
    color:#4f87ff;
}

/* CTA do header esconde em mobile (acessível pelo menu) */
.nav-cta{
    display:none;
}

/* Botão hambúrguer */
.nav-toggle{
    display:flex;
    width:44px;
    height:44px;
    background:transparent;
    border:1px solid rgba(255,255,255,.2);
    border-radius:10px;
    cursor:pointer;
    padding:0;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    transition:all .25s ease;
    z-index:999;
}

.nav-toggle:hover{
    background:rgba(255,255,255,.08);
}

.nav-toggle-bar{
    display:block;
    width:22px;
    height:2px;
    background:#eff4ff;
    border-radius:2px;
    transition:all .3s cubic-bezier(.4,0,.2,1);
    transform-origin:center;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){
    opacity:0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

body.nav-locked{
    overflow:hidden;
}

/* =========================
   HERO (mobile base)
========================= */
.hero-section{
    position:relative;
    overflow:hidden;
    min-height:auto;
    display:flex;
    align-items:center;
    padding:5rem 0 2rem;
}

.hero-background{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:0;
    pointer-events:none;
}

.code-grid-bg{
    width:100%;
    height:100%;
}

.code-grid-bg img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:.12;
}

.hero-container{
    max-width:1400px;
    margin:auto;
    padding:0 1rem;
    display:grid;
    grid-template-columns:1fr;
    gap:2rem;
    align-items:center;
}

.hero-content{
    text-align:center;
}

.hero-greeting{
    color:var(--accent);
    margin-bottom:1rem;
    font-size:1rem;
}

.hero-name{
    font-size:2rem;
    line-height:1.1;
    margin-bottom:1rem;
    font-weight:800;
}

.name-value{
    background:var(--gradient-1);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    line-height:1.1;
    font-size:2.4rem;
    margin:0;
    padding:0;
}

.hero-title{
    font-size:1rem;
    color:var(--accent);
    margin-bottom:1.5rem;
}

.hero-description{
    color:var(--text-secondary);
    max-width:600px;
    margin:0 auto 2rem;
    font-size:.95rem;
}

/* =========================
   BUTTONS
========================= */
.hero-buttons{
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
    flex-direction:column;
    justify-content:center;
}

.btn{
    padding:1rem 2rem;
    border-radius:999px;
    font-weight:700;
    transition:var(--transition);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    cursor:pointer;
    width:100%;
}

.btn-primary{
    background:var(--gradient-1);
    color:#fff;
    box-shadow:var(--shadow-glow);
}

.btn-primary:hover{
    transform:translateY(-4px);
}

.btn-secondary{
    border:1px solid var(--border);
    background:rgba(255, 246, 246, 0.03);
    color:var(--text-primary);
}

.btn-secondary:hover{
    border-color:var(--primary);
    background:rgba(241, 235, 255, 0.1);
}

/* =========================
   CIRCULO + BADGES (mobile base)
========================= */
/* HERO IMAGE — versão mobile-first FINAL */
.hero-image-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:20px;
    box-sizing:border-box;
    overflow:visible;
    order:-1;
}

/* Container vira COLUNA pra alinhar tudo verticalmente centralizado */
.hero-image-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    width:100%;
    max-width:360px;
    height:auto;
    margin:0 auto;
    position:relative;
    transition:all .3s ease;
}

/* Glow agora é WRAPPER do frame: posicionado relativamente, com tamanho próprio */
.profile-image-glow{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:220px;
    height:220px;
    margin:0;
    z-index:0;
    background:radial-gradient(circle, rgba(92, 177, 246, 0.35), transparent 70%);
    animation:pulse 4s infinite;
    pointer-events:none;
}

.profile-image-frame{
    width:220px;
    height:220px;
    margin:0 auto 16px auto;
    border-radius:50%;
    overflow:hidden;
    border:4px solid rgba(151, 158, 255, 0.35);
    backdrop-filter:blur(20px);
    background:rgba(162, 255, 232, 0.04);
    box-shadow:0 10px 30px rgba(0, 0, 0, 0.08);
    position:relative;
    z-index:1;
}

.profile-image{
    width:100%;
    height:100%;
    justify-content:center;
    align-items:center;
    object-fit:cover;
    display:flex;
}

.profile-image img{
    max-width:70%;
    max-height:70%;
    object-fit:contain;
    display:block;
    opacity:.9;
}

/* Badges em modo mobile (grid linear, sem flutuação) */
.badge-wrapper{
    position:static;
    transform:none;
    animation:none;
    width:100%;
    display:flex;
    justify-content:center;
    z-index:10;
    will-change:transform;
}

.badge-wrapper:hover{
    animation-play-state:paused;
}

@keyframes floatBadge{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-8px); }
}

.floating-badge{
    width:100%;
    background:rgba(255, 255, 255, 0.82);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);
    border:1px solid rgba(255, 255, 255, 0.6);
    padding:10px 12.5px;
    border-radius:12px;
    display:flex;
    gap:8px;
    align-items:center;
    box-shadow:0 4px 12px rgba(0, 0, 0, 0.05);
    transition:box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
    white-space:nowrap;
    box-sizing:border-box;
}

.floating-badge:hover{
    box-shadow:0 20px 40px rgba(0, 0, 0, 0.12);
    background:rgba(255, 255, 255, 0.95);
}

.floating-badge i{
    color:#3b82f6;
    font-size:1rem;
    width:34px;
    height:34px;
    background:rgba(59, 130, 246, 0.08);
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.badge-content{
    display:flex;
    flex-direction:column;
    text-align:left;
}

.badge-title{
    font-weight:700;
    font-size:.78rem;
    color:#1e293b;
    line-height:1.1;
}

.badge-libs{
    font-size:.62rem;
    color:#64748b;
    margin-top:2px;
}

/* =========================
   SECTIONS (mobile base)
========================= */
.section{
    padding:3rem 0;
}

.section-container{
    max-width:1400px;
    margin:auto;
    padding:0 1rem;
    display:flex;
    flex-direction:column;
}

.section-header{
    margin-bottom:1rem;
}

.section-title{
    font-size:1.8rem;
    font-weight:800;
    margin:0;
}

.title-text{
    background:var(--blue);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* =========================
   FRASES MUDANDO (mobile base ~30px)
========================= */
.fluido{
    --fluid-min: calc(var(--font-size-min) * pow(var(--font-ratio-min), var(--font-level, 0)));
    --fluid-max: calc(var(--font-size-max) * pow(var(--font-ratio-max), var(--font-level, 0)));
    --fluid-preferred: calc((var(--fluid-max) - var(--fluid-min)) / (var(--font-width-max) - var(--font-width-min)));

    font-size: clamp(
        (var(--fluid-min) / 16) * 1rem,
        ((var(--fluid-min) / 16) * 1rem) - (((var(--fluid-preferred) * var(--font-width-min)) / 16) * 1rem) + (var(--fluid-preferred) * 100vi),
        (var(--fluid-max) / 16) * 1rem
    );
}

.somente-leitura{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0, 0, 0, 0);
    white-space:nowrap;
    border:0;
}

.rolagem-palavras{
    width:100%;
    position:relative;
    overflow:hidden;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.rolagem-palavras-interna{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    line-height:1.25;
    flex-direction:column;
    align-items:center;
}

.titulo-2 .title-text{
    position:static;
    font-size:20px;
    text-align:center;
    display:block;
    margin-bottom:.75rem;
}

.titulo-2 span[aria-hidden="true"]{
    order:2;
}

.rolagem-palavras-interna h2{
    position:static;
    margin:0;
    font-size:28px;
    font-weight:700;
    height:fit-content;
    white-space:normal;
    color:#1e293b;
    text-align:center;
}

.rolagem-palavras-interna ul{
    font-weight:700;
    list-style:none;
    margin:0;
    padding-block: calc(50% - 0.625lh);
    padding-left:0;
    text-align:center;
    display:flex;
    flex-direction:column;
    --step: calc((var(--end) - var(--start)) / (var(--count) - 1));
}

.rolagem-palavras[data-snap="true"]{
    height:220px;
    overflow-y:auto;
    scroll-snap-type:y proximity;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.rolagem-palavras[data-snap="true"]::-webkit-scrollbar{
    display:none;
}

.rolagem-palavras[data-snap="true"] li{
    scroll-snap-align:center;
}

.rolagem-palavras li{
    padding-block:.15em;
    height:1.2lh;
    font-size:28px;
    transition: opacity .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
    cursor:pointer;
    opacity:.2;
    text-align:center;
    white-space:normal;
}

.rolagem-palavras li:not(:last-of-type){
    color: oklch(var(--lightness) var(--base-chroma) calc(var(--start) + (var(--step) * var(--i))));
}

.rolagem-palavras li.active-item{
    opacity:1 !important;
    color:#3b82f6 !important;
    transform:scale(1.05) translateX(4px);
    text-shadow:0 0 30px rgba(59, 130, 246, 0.4);
}

.rolagem-palavras li:last-of-type{
    background:linear-gradient(135deg, #f8fafc 40%, rgba(248, 250, 252, 0.4) 100%);
    background-clip:text;
    -webkit-background-clip:text;
    color:transparent;
}

/* =========================
   CARDS (project, timeline, contact) — base
========================= */
.project-card,
.timeline-content,
.contact-item{
    background-color:rgb(240, 245, 255);
    backdrop-filter:blur(30px);
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .5s;
}

.project-card:hover,
.timeline-content:hover,
.contact-item:hover{
    transform:translateY(-6px);
    border-color:rgba(18, 20, 156, 0.45);
    box-shadow:0 18px 40px rgba(0,0,0,.18), 0 6px 14px rgba(73,120,248,.12);
}

.project-card:hover{
    background-color:white;
}

/* =========================
   FUNCIONALIDADES (mobile base — empilha)
========================= */
.skills-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:2rem;
}

.skill-category{
    padding:1rem;
    display:flex;
    align-items:center;
    gap:1rem;
    flex-direction:column;
}

.category-image{
    width:100%;
}

.category-image img{
    width:100%;
    display:block;
    border-radius:20px;
}

.category-content{
    width:100%;
}

.category-title{
    margin:0 0 1rem;
    font-size:1.2rem;
    color:var(--primary);
    text-align:left;
}

.about-text{
    line-height:1.7;
    font-size:.95rem;
}

/* =========================
   TIMELINE
========================= */
.timeline{
    position:relative;
    padding-left:2rem;
}

.timeline::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:2px;
    height:100%;
    background:var(--gradient-1);
}

.timeline-item{
    position:relative;
    padding-left:2rem;
    margin-bottom:3rem;
}

.timeline-marker{
    position:absolute;
    left:-10px;
    top:10px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--primary);
    box-shadow:0 0 20px var(--primary);
}

.timeline-content{
    padding:2rem;
}

.timeline-title{
    color:var(--accent);
    margin:1rem 0;
}

.timeline-description{
    color:var(--text-secondary);
}

/* =========================
   PLANOS / BLOG / PROJETOS (mobile base)
========================= */
.stat-number{
    font-size:2.4rem;
    font-weight:800;
    color:var(--primary);
}

.stat-number span{
    font-size:.4em;
    font-weight:500;
}

.projects-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:1.5rem;
}

.project-image{
    height:200px;
    overflow:hidden;
}

.project-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:var(--transition);
}

.project-card:hover .project-image img{
    transform:scale(1.08);
}

.project-content{
    padding:1.5rem;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

.project-title{
    margin-bottom:1rem;
    color:var(--primary);
}

.project-description{
    color:var(--text-secondary);
    margin-bottom:1.5rem;
    font-size:.95rem;
}

.project-tags{
    display:flex;
    gap:.7rem;
    flex-wrap:wrap;
}

.tag{
    padding:.4rem .8rem;
    border-radius:999px;
    background:rgba(139,92,246,.12);
    color:var(--primary);
    font-size:.8rem;
}

/* PLANOS: cards em flex pra empurrar botão pro fim */
/* PLANOS: cards em flex pra empurrar botão pro fim */
#plans .project-card{
    display:flex;
    flex-direction:column;
}

#plans .project-content{
    flex:1;
    display:flex;
    flex-direction:column;
    padding-bottom:1.5rem;
}

#plans .timeline-achievements{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* Botão CTA empurra pro bottom independente do card */
#plans .plan-cta{
    margin-top:auto;
    align-self:stretch;
    text-align:center;
    justify-content:center;
    width:100%;
}
.plan-cta{
    margin-top:2rem;
    align-self:stretch;
    text-align:center;
    justify-content:center;
    width:100%;
}

/* BLOG: tags fixas no bottom dos cards */
#blog .project-card{
    display:flex;
    flex-direction:column;
}

#blog .project-content{
    flex:1;
    display:flex;
    flex-direction:column;
}

#blog .project-description{
    flex:1;
}

#blog .project-tags{
    margin-top:auto;
    padding-top:1.5rem;
}

/* =========================
   CARROSSEL FEEDBACK (mobile base — 1 slide por vez)
========================= */
.carousel-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    min-height:auto;
    padding:1rem 0;
    box-sizing:border-box;
    font-family:'Inter', -apple-system, system-ui, sans-serif;
}

.carousel{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    max-width:800px;
    background:transparent;
    border:none;
    box-shadow:none;
    margin:0 auto;
}

.carousel-track{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    min-height:420px;
    margin:0 8px;
}

.carousel-slide{
    display:none;
    width:100%;
    max-width:100%;
    flex-direction:column;
    align-items:center;
    text-align:center;
    position:relative;
    padding:1.5rem;
    box-sizing:border-box;
    background:rgba(255, 255, 255, 0.65);
    backdrop-filter:blur(10px);
    border:1px solid #E9ECEF;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0, 0, 0, 0.02);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.carousel-slide:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.18), 0 6px 14px rgba(73,120,248,.12);
}

.carousel-slide.active{
    display:flex;
    animation:slideIn .45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn{
    from{ opacity:0; transform:translateX(45px); }
    to{ opacity:1; transform:translateX(0); }
}

.quote-mark{
    font-size:48px;
    color:#0D6EFD;
    opacity:.15;
    line-height:1;
    margin-bottom:-10px;
    font-family:serif;
    user-select:none;
}

.feedback-text{
    font-size:15px;
    line-height:1.6;
    color:#495057;
    margin-bottom:20px;
    font-style:italic;
    font-weight:400;
}

.profile-group{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    margin-top:auto;
}

.client-avatar{
    width:56px;
    height:56px;
    border-radius:50%;
    object-cover:cover;
    border:2px solid #DEE2E6;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.client-info{
    display:flex;
    flex-direction:column;
}

.client-name{
    font-weight:700;
    color:#212529;
    font-size:15px;
    margin:0 0 4px 0;
}

.client-role{
    font-size:12px;
    color:#6C757D;
    margin:0;
}

.highlight{
    color:#0D6EFD;
    font-weight:600;
}

.stars-rating{
    margin-top:12px;
    color:#0D6EFD;
    font-size:14px;
    letter-spacing:2px;
    opacity:.95;
    user-select:none;
}

.carousel-btn{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#FFFFFF;
    border:1px solid #DEE2E6;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#495057;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    font-size:16px;
    transition:all .25s ease;
    z-index:10;
    outline:none;
    user-select:none;
    flex-shrink:0;
}

.carousel-btn:hover{
    background:#F8F9FA;
    border-color:#cbd5e1;
    color:#212529;
    transform:scale(1.08);
}

.carousel-btn:active{
    transform:scale(.95);
}

/* =========================
   CONTATO (mobile base — empilha)
========================= */
.contact-content{
    display:grid;
    grid-template-columns:1fr;
    gap:1.5rem;
    align-items:center;
}

.contact-info{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}

.contact-item{
    padding:1.25rem;
    display:flex;
    align-items:center;
    gap:1rem;
    height:auto;
}

.contact-icon{
    width:48px;
    height:48px;
    border-radius:18px;
    background:var(--gradient-1);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:1.1rem;
}

.contact-value{
    color:var(--primary);
    font-weight:700;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}

.form-input{
    width:100%;
    padding:1rem 1.2rem;
    border-radius:18px;
    border:1px solid var(--border);
    background-color:rgba(255, 255, 255, 0.616);
    color:var(--text-primary);
    outline:none;
    transition:var(--transition);
    font-family:var(--font-primary);
    font-size:16px; /* previne zoom no iOS */
}

.form-input::placeholder,
.form-textarea::placeholder{
    font-family:var(--font-primary);
}

.form-input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(139,92,246,.12);
}

.form-textarea{
    resize:none;
    min-height:180px;
}

.contact-form .btn-primary{
    border:none;
    
    flex-direction:row;
    justify-content:center;
}

/* =========================
   FOOTER (sticky bottom)
========================= */
.main-footer{
    padding:1.25rem 0;
    background-color:#091a43 !important;
    margin-top:auto;
}

.footer-container{
    max-width:1400px;
    margin:auto;
    padding:0 1rem;
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    flex-direction:column;
    text-align:center;
    min-height:auto;
}

.footer-text{
    color:var(--text-secondary);
    margin:0;
    line-height:1.4;
}

.footer-social{
    display:flex;
    gap:1rem;
}

.footer-social-link{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border);
    color:var(--text-secondary);
    transition:var(--transition);
}

.footer-social-link:hover{
    background:var(--gradient-1);
    color:#fff;
    transform:translateY(-4px);
}

/* =========================
   MARKETPLACES (logos rolando)
========================= */
.marketplaces-bar{
    width:100%;
    overflow:hidden;
    background:transparent;
    position:relative;
}

.marketplaces-track{
    display:flex;
    align-items:center;
    gap:40px;
    width:max-content;
    animation:scrollBar 18s linear infinite;
}

.marketplace-item{
    display:flex;
    align-items:center;
    gap:12px;
    white-space:nowrap;
}

.marketplace-item img{
    height:28px;
    width:auto;
    object-fit:contain;
}

.marketplace-item span{
    color:#00084e;
    text-align:center;
    font-size:16px;
    font-weight:500;
    opacity:.9;
}

@keyframes scrollBar{
    from{ transform:translateX(0); }
    to{ transform:translateX(calc(-50% - 40px)); }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes pulse{
    0%, 100%{ transform:scale(1); opacity:.8; }
    50%{ transform:scale(1.08); opacity:1; }
}


/* ═══════════════════════════════════════════════════════════════════════
   ░░░ BREAKPOINTS MOBILE-FIRST ░░░
   Estilos crescem com a tela.
   ═══════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════
   ≥ 481px — mobile grande / phablet
   ════════════════════════════════════════════════════════ */
@media (min-width: 481px){

    .nav-container{
        padding:0 1.5rem;
    }

    .brand-logo-img{
        height:60px;
    }

    /* Botões voltam pra horizontal */
    .hero-buttons{
        flex-direction:row;
        justify-content:center;
    }
    .btn{
        width:auto;
    }

    .hero-name{
        font-size:2.5rem;
    }

    .name-value{
        font-size:3rem;
    }

    .section-title{
        font-size:2.2rem;
    }

    .marketplace-item span{
        font-size:18px;
    }

    .marketplace-item img{
        height:32px;
    }
}


/* ════════════════════════════════════════════════════════
   ≥ 769px — tablet / desktop pequeno
   ════════════════════════════════════════════════════════ */
@media (min-width: 769px){

    /* ─── HEADER: menu volta a ser horizontal ─── */
    .nav-menu{
        display:flex;
        position:static;
        flex-direction:row;
        background:transparent;
        width:auto;
        max-width:none;
        padding:0;
        transform:none;
        box-shadow:none;
        align-items:center;
        gap:2rem;
        z-index:auto;
    }

    .nav-link{
        width:auto;
        padding:0;
        font-size:1rem;
        border-bottom:none;
    }

    .nav-link:hover::after{
        width:100%;
    }

    .nav-cta{
        display:inline-flex;
    }

    .nav-toggle{
        display:none;
    }

    .nav-container{
        padding:0 2rem;
    }

    .brand-logo-img{
        height:70px;
    }

    /* ─── HERO ─── */
    .hero-section{
        min-height:100vh;
        padding:8rem 0 4rem;
    }

    .hero-container{
        grid-template-columns:1fr 1fr;
        gap:4rem;
        padding:0 2rem;
    }

    .hero-content{
        text-align:left;
    }

    .hero-image-wrapper{
        order:0;
        padding:60px 40px;
    }

    /* Container do círculo volta ao layout absoluto desktop */
    .hero-image-container{
        display:block;
        width:420px;
        height:420px;
        max-width:420px;
    }

    .profile-image-frame{
        width:100%;
        height:100%;
        margin:0;
    }

    .profile-image-glow{
        inset:-30px;
        width:auto;
        height:auto;
    }

    /* Badges flutuantes */
    .badge-wrapper{
        position:absolute;
        width:auto;
        display:block;
        animation:floatBadge 4s ease-in-out infinite;
    }

    .badge-1{ top:5%; left:-25%; animation-delay:0s; }
    .badge-2{ top:32%; right:-25%; animation-delay:1s; }
    .badge-3{ bottom:28%; left:-25%; animation-delay:2s; }
    .badge-4{ bottom:0%; right:-25%; animation-delay:1.5s; }

    .floating-badge{
        width:auto;
        padding:1.1rem 1.4rem;
        border-radius:16px;
        gap:.85rem;
        box-shadow:0 10px 25px -5px rgba(0, 0, 0, 0.05);
    }

    .floating-badge i{
        width:44px;
        height:44px;
        font-size:1.3rem;
        border-radius:10px;
    }

    .badge-title{
        font-size:.88rem;
    }

    .badge-libs{
        font-size:.72rem;
        margin-top:1px;
    }

    .hero-name{
        font-size:3.5rem;
        margin-bottom:1.5rem;
    }

    .name-value{
        font-size:4rem;
    }

    .hero-title{
        font-size:1.3rem;
        margin-bottom:2rem;
    }

    .hero-description{
        font-size:1.1rem;
        margin:0 0 2.5rem;
    }

    /* ─── SECTIONS ─── */
    .section{
        padding:5rem 0;
    }

    .section-container{
        padding:0 2rem;
    }

    .section-title{
        font-size:2.6rem;
    }

    /* ─── FUNCIONALIDADES: layout horizontal (imagem + texto) ─── */
    .skill-category{
        flex-direction:row;
    }

    .category-image{
        width:65%;
    }

    .category-content{
        width:30%;
    }

    .category-title{
        font-size:1.4rem;
    }

    /* ─── FRASE ROLANDO: tipografia média ─── */
    .titulo-2 .title-text{
        position:absolute;
        font-size:32px;
        top:-40px;
        left:0;
        text-align:left;
        display:inline-block;
        margin-bottom:0;
    }

    .rolagem-palavras-interna{
        flex-direction:row;
        align-items:flex-start;
    }

    .rolagem-palavras-interna h2{
        position:sticky;
        top:calc(50% - 0.625lh);
        font-size:50px;
        white-space:nowrap;
    }

    .rolagem-palavras li{
        font-size:50px;
        text-align:left;
        white-space:nowrap;
    }

    .rolagem-palavras[data-snap="true"]{
        height:300px;
    }

    .rolagem-palavras-interna ul{
        text-align:left;
    }

    /* ─── PROJECTS GRID: 2 colunas ─── */
    .projects-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:2rem;
    }

    .project-image{
        height:240px;
    }

    .project-content{
        padding:2rem;
    }

    .stat-number{
        font-size:3rem;
    }

    /* ─── CARROSSEL: todos lado a lado (desktop) ─── */
    .carousel{
        max-width:none;
    }

    .carousel-wrapper{
        min-height:480px;
        padding:24px;
    }

    .carousel-track{
        display:grid;
        grid-template-columns:repeat(3, 1fr);
        gap:1.5rem;
        overflow:visible;
        margin:0;
        min-height:auto;
    }

    .carousel-slide{
        display:flex !important;
        animation:none !important;
        max-width:none;
        height:100%;
        padding:24px;
    }

    .carousel-btn{
        display:none;
    }

    .quote-mark{
        font-size:64px;
        margin-bottom:-15px;
    }

    .feedback-text{
        font-size:18px;
        margin-bottom:24px;
    }

    .client-avatar{
        width:64px;
        height:64px;
    }

    .client-name{
        font-size:16px;
    }

    .client-role{
        font-size:13px;
    }

    /* ─── CONTATO: layout 2 colunas ─── */
    .contact-content{
        grid-template-columns:1fr 1.3fr;
        gap:3rem;
    }

    .contact-info{
        gap:3rem;
    }

    .contact-item{
        padding:2rem;
        height:20vh;
    }

    .contact-icon{
        width:60px;
        height:60px;
        font-size:1.3rem;
    }

    /* ─── FOOTER ─── */
    .footer-content{
        flex-direction:row;
        text-align:left;
        gap:2rem;
    }

    .footer-container{
        padding:0 2rem;
    }

    /* ─── MARKETPLACES ─── */
    .marketplaces-track{
        gap:80px;
    }

    .marketplace-item span{
        font-size:24px;
    }

    .marketplace-item img{
        height:38px;
    }
}


/* ════════════════════════════════════════════════════════
   ≥ 1025px — desktop pleno
   ════════════════════════════════════════════════════════ */
@media (min-width: 1025px){

    .brand-logo-img{
        height:80px;
    }

    /* Hero name volta ao tamanho gigante (com cuidado) */
    .hero-name{
        font-size:4.5rem;
    }

    .name-value{
        font-size:5rem;
        line-height:.1px;
    }

    .hero-title{
        font-size:1.5rem;
    }

    .hero-description{
        font-size:1.2rem;
    }

    /* Section title grandona */
    .section-title{
        font-size:3rem;
    }

    /* Frase rolando: tipografia gigante final */
    .titulo-2 .title-text{
        font-size:40px;
    }

    .rolagem-palavras-interna h2{
        font-size:80px;
    }

    .rolagem-palavras li{
        font-size:70px;
    }

    .rolagem-palavras[data-snap="true"]{
        height:400px;
    }

    /* Section padding maior */
    .section{
        padding:6rem 0;
    }

    /* Projects grid: 3+ colunas (auto-fit ideal pros 5 planos) */
    .projects-grid{
        grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
        gap:2rem;
    }

    .marketplace-item span{
        font-size:28px;
    }
}


/* ════════════════════════════════════════════════════════
   ≥ 1280px — desktop grande (otimização final)
   ════════════════════════════════════════════════════════ */
@media (min-width: 1280px){
    .projects-grid{
        grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    }
}

#plans .projects-grid{
    align-items:stretch;
}

#plans .project-card{
    height:100%;
}

/* ═══════════════════════════════════════════════════════════════
   FIX DEFINITIVO: PLANOS — botão sempre no bottom
   ═══════════════════════════════════════════════════════════════ */

/* Cards do grid esticam pra altura da linha */
#plans .projects-grid{
    align-items:stretch;
}

#plans .project-card{
    height:100%;
    display:flex;
    flex-direction:column;
}

/* .project-content ocupa todo o card */
#plans .project-content{
    flex:1;
    display:flex;
    flex-direction:column;
    padding-bottom:1.5rem;
}

/* .timeline-achievements: força flex-column pra .plan-cta interna funcionar */
#plans .timeline-achievements{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* Botão CTA: empurra pro bottom independente de onde estiver */
#plans .plan-cta{
    margin-top:auto !important;
    margin-bottom:0;
    align-self:stretch;
    text-align:center;
    justify-content:center;
    width:100%;
}

/* Remove margins fixos que ainda possam estar interferindo */
#plans #freeCard,
#plans #freeCard2{
    margin-top:auto !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   FIX HAMBÚRGUER + NAV-CTA EM MOBILE
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. ESCONDE o "Fazer Login" do header em mobile (com !important) */
.nav-cta{
    display:none !important;
}

/* 2. GARANTE o hambúrguer visível em mobile */
.nav-toggle{
    display:flex !important;
}

/* 3. CORRIGE o drawer pra cobrir TODA a viewport (escapa do header fixo) */
.nav-menu{
    z-index:9999 !important;  /* mais alto que o header */
    height:100vh;             /* força altura total */
}

/* 4. Quando o menu abre, ESCONDE o header pra não cobrir o topo do drawer */
body.nav-locked .main-header .brand-logo,
body.nav-locked .main-header .nav-toggle{
    z-index:10000;  /* mantém logo + botão acessíveis acima do drawer */
}

/* 5. RESTAURA tudo em desktop (≥769px) */
@media (min-width: 769px){
    .nav-cta{
        display:inline-flex !important;
    }
    .nav-toggle{
        display:none !important;
    }
    .nav-menu{
        height:auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL REVEAL — elevação suave ao entrar na viewport
   ═══════════════════════════════════════════════════════════════════════ */

.scroll-reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
    will-change:opacity, transform;
}

.scroll-reveal.is-visible{
    opacity:1;
    transform:translateY(0);
}

/* Respeita preferência de "reduzir movimento" do usuário (acessibilidade) */
@media (prefers-reduced-motion: reduce){
    .scroll-reveal{
        opacity:1;
        transform:none;
        transition:none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PARALLAX BACKGROUND
   ═══════════════════════════════════════════════════════════════════════ */

body::before{
    will-change:transform;
    transition:transform .15s ease-out;
}