/* ════════════════════════════════════════════════════════════════════════════
   Hugo Mayer — Portfolio · CYBERPUNK EDGERUNNERS
   Destaques: #F2075D (pink) + #C2F213 (lime) · Fundos: #01000D / #022601 / #EBEFF2
   Fontes: Xeno Byte (display) + IT Xytrion (body) — fallback Orbitron/Chakra Petch
   ════════════════════════════════════════════════════════════════════════════ */

/* Fontes display/body via Google Fonts (Chakra Petch + Rajdhani).
   Xeno Byte e IT Xytrion estão instaladas no sistema do Hugo, mas ficam
   FORA da pilha — preferimos as do Google (consistente entre máquinas/clientes). */

:root {
    /* ── Destaques ──────────────────────────────────────────────────────── */
    --accent:        #F2075D;                    /* pink — destaque principal */
    --accent-2:      #c00548;                    /* pink escuro p/ hovers */
    --accent-glow:   rgba(242, 7, 93, 0.45);
    --accent-soft:   rgba(242, 7, 93, 0.10);
    --accent-border: rgba(242, 7, 93, 0.35);

    --lime:          #C2F213;                    /* lime — destaque secundário */
    --lime-glow:     rgba(194, 242, 19, 0.45);
    --lime-soft:     rgba(194, 242, 19, 0.10);
    --lime-border:   rgba(194, 242, 19, 0.35);

    --cyber-cyan:    #05d9e8;                    /* apoio (glitch RGB split) */

    /* ── Fundos (DARK padrão) ───────────────────────────────────────────── */
    --bg:        #01000D;                         /* near-black azulado */
    --bg-2:      #050418;                         /* seções alternadas */
    --bg-green:  #022601;                         /* verde escuro (acentos) */
    --card:      #0a0820;
    --card-2:    #0f0c2b;
    --border:    rgba(242, 7, 93, 0.14);
    --border-2:  rgba(242, 7, 93, 0.30);

    --text:        #f0f2f5;
    --text-muted:  rgba(240, 242, 245, 0.62);
    --text-soft:   rgba(240, 242, 245, 0.38);

    /* Overlays / backgrounds compostos */
    --header-bg:    rgba(1, 0, 13, 0.78);
    --modal-bg:     rgba(1, 0, 13, 0.90);
    --overlay-bg:   rgba(1, 0, 13, 0.7);
    --hero-fade-rgb: 1, 0, 13;
    --grain-blend:   overlay;
    --grain-opacity: 0.05;

    /* ── Tipografia ─────────────────────────────────────────────────────── */
    --font-display: 'Chakra Petch', 'Rajdhani', sans-serif;
    --font-body:    'Rajdhani', 'Chakra Petch', system-ui, sans-serif;
    --font-mono:    'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;

    --radius:    4px;        /* cantos retos = mais cyberpunk/HUD */
    --radius-sm: 2px;
    --maxw:      1200px;
}

/* ── Tema CLARO ─────────────────────────────────────────────────────────── */
[data-theme="light"] .about-avatar-placeholder {
    box-shadow: 0 0 0 1px var(--border), 0 8px 28px rgba(10, 10, 10, 0.10);
}

[data-theme="light"] {
    --accent:        #d60450;
    --accent-2:      #a8033e;
    --accent-glow:   rgba(214, 4, 80, 0.28);
    --accent-soft:   rgba(214, 4, 80, 0.08);
    --accent-border: rgba(214, 4, 80, 0.32);

    --lime:          #6b8f00;                     /* lime escurecido p/ contraste no claro */
    --lime-glow:     rgba(107, 143, 0, 0.25);
    --lime-soft:     rgba(107, 143, 0, 0.10);
    --lime-border:   rgba(107, 143, 0, 0.35);

    --bg:        #EBEFF2;
    --bg-2:      #dfe4e9;
    --bg-green:  #d4e6d0;
    --card:      #ffffff;
    --card-2:    #f4f6f8;
    --border:    rgba(214, 4, 80, 0.14);
    --border-2:  rgba(214, 4, 80, 0.30);

    --text:        #01000D;
    --text-muted:  rgba(1, 0, 13, 0.65);
    --text-soft:   rgba(1, 0, 13, 0.42);

    --header-bg:    rgba(235, 239, 242, 0.85);
    --modal-bg:     rgba(1, 0, 13, 0.55);
    --overlay-bg:   rgba(235, 239, 242, 0.85);
    --hero-fade-rgb: 235, 239, 242;
    --grain-blend:   multiply;
    --grain-opacity: 0.04;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #0a0a0a; }

a { color: inherit; }

/* Grão sutil global */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    mix-blend-mode: var(--grain-blend);
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Scanlines CRT globais ────────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.12) 3px,
        rgba(0, 0, 0, 0.12) 3px
    );
    background-size: 100% 4px;
    opacity: 0.5;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0%   { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

[data-theme="light"] body::before { opacity: 0.25; }

/* ── Glitch helpers (RGB split + clip jitter) ─────────────────────────────── */
@keyframes glitch-shift {
    0%, 92%, 100% { transform: translate(0, 0); }
    93%  { transform: translate(-2px, 1px); }
    95%  { transform: translate(2px, -1px); }
    97%  { transform: translate(-1px, -1px); }
    99%  { transform: translate(1px, 1px); }
}

@keyframes glitch-clip-r {
    0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0,0); opacity: .9; }
    93% { clip-path: inset(10% 0 60% 0); transform: translate(3px, 0); }
    95% { clip-path: inset(70% 0 5% 0);  transform: translate(-3px, 0); }
    97% { clip-path: inset(40% 0 40% 0); transform: translate(2px, 0); }
}

@keyframes glitch-clip-l {
    0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0,0); opacity: .9; }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); }
    95% { clip-path: inset(5% 0 70% 0);  transform: translate(3px, 0); }
    97% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
}

/* Aplica glitch RGB-split em qualquer elemento com .glitch (usa data-text no ::before/::after) */
.glitch {
    position: relative;
    animation: glitch-shift 4s infinite steps(1);
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.glitch::before {
    color: var(--cyber-cyan);
    animation: glitch-clip-l 4s infinite steps(1);
    mix-blend-mode: screen;
}
.glitch::after {
    color: var(--accent);
    animation: glitch-clip-r 4s infinite steps(1);
    mix-blend-mode: screen;
}

main { position: relative; z-index: 2; }

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.header-content {
    max-width: var(--maxw);
    margin: 0 auto;
    /* 3 colunas: nav (esquerda) | vídeo do nome (centro) | actions (direita).
       As duas 1fr são iguais → a coluna central fica geometricamente centrada. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.header-nav { justify-self: start; }
.header-actions { justify-self: end; }

/* Vídeo do nome no centro do header (substitui o logo de texto) */
.logo-video {
    justify-self: center;
    display: flex;
    align-items: center;
    height: 38px;            /* altura do header content */
    line-height: 0;
}

.logo-video video {
    height: 100%;
    width: auto;
    display: block;
    /* webm VP9 com alpha real — sem blend, transparência nativa */
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    display: inline-block;
    padding: 0.5rem 1.05rem;
    background: var(--accent);
    color: #0a0a0a !important;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.header-social:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

/* Theme toggle (sol / lua) */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

/* Mostra só o ícone certo do tema atual */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline-flex; }
[data-theme="light"] .theme-toggle .icon-sun  { display: inline-flex; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 5rem;
    overflow: hidden;
    text-align: center;
    background: var(--bg);          /* fundo sólido */
}

/* Canvas Matrix 01010101 — atrás do conteúdo */
.hero-matrix {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Vinheta sutil pra escurecer as bordas e dar foco no texto */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 65% at 50% 50%,
        transparent 0%,
        rgba(var(--hero-fade-rgb), 0.35) 70%,
        rgba(var(--hero-fade-rgb), 0.85) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.25); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* ════════════════════════════════════════════════════════════════════════
   Hero dialog — Liquid Glass (Apple WWDC25 design language)
   Camadas: specular highlight + bottom shading + base tint
            + backdrop refraction + multi-shadow + chroma RGB
   ════════════════════════════════════════════════════════════════════════ */
.hero-dialog {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    /* padding simétrico — fonte Inter centraliza bem com line-height 1 */
    padding: 0.8rem 1.2rem 0.85rem 2.4rem;
    margin-bottom: 1.75rem;
    border: none;
    border-radius: 0;
    /* Shape HUD cyberpunk — cantos chanfrados, igual aos botões/cards do site.
       Tamanho do chanfro maior (22px) pra ficar à altura da pill grande. */
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    isolation: isolate;

    /* ─ Background empilhado (topo → fundo na lista, ordem CSS) ───────── */
    background:
        /* 1) Specular highlight — luz vinda do topo-esquerda */
        radial-gradient(
            120% 85% at 28% -15%,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.06) 35%,
            transparent 65%
        ),
        /* 2) Bottom shading — densidade do vidro */
        radial-gradient(
            110% 80% at 50% 115%,
            rgba(0, 0, 0, 0.22) 0%,
            transparent 50%
        ),
        /* 3) Diagonal sheen — reflexo móvel sutil */
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0.10) 50%,
            rgba(255, 255, 255, 0.05) 55%,
            transparent 100%
        ),
        /* 4) Base tint — adaptativa, leve esbranquiçado */
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.08) 100%
        );

    /* ─ Refração: blur + boost de saturação e brilho ───────────────────── */
    backdrop-filter: blur(32px) saturate(200%) brightness(112%);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(112%);

    /* ─ Sombras: depth externa + inner glass effects ─────────────────────── */
    box-shadow:
        /* Depth shadows (3 layers — sutil → difusa) */
        0 1px 2px rgba(0, 0, 0, 0.10),
        0 8px 24px rgba(0, 0, 0, 0.20),
        0 24px 60px rgba(0, 0, 0, 0.30),

        /* Inner glass effects */
        inset 0 1.5px 0 rgba(255, 255, 255, 0.32),   /* top highlight */
        inset 0 -1.5px 0 rgba(0, 0, 0, 0.20),         /* bottom shadow */
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.10);  /* edge outline */

    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* ─ Sheen animado — pseudo passa diagonalmente simulando reflexo de luz ─ */
.hero-dialog::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 70%
    );
    background-size: 250% 100%;
    background-position: 100% 0;
    animation: glassSheen 7s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes glassSheen {
    0%, 100% { background-position: 100% 0; }
    50%      { background-position: -20% 0; }
}

.hero-dialog-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text);
    white-space: nowrap;
    /* Glow neon duotone pink + lime */
    text-shadow:
        0 0 6px var(--accent-glow),
        0 0 18px var(--accent-glow),
        2px 0 0 rgba(242, 7, 93, 0.5),
        -2px 0 0 rgba(5, 217, 232, 0.4);

    display: inline-flex;
    align-items: center;
    gap: 0.28em;

    /* Compensação óptica — desce o título pro centro visual da pill */
    transform: translateY(0.16em);
}

.hero-dialog-title span {
    display: inline-block;
    animation: fadeInUp 0.7s ease backwards;
}
.hero-dialog-title span:nth-child(1) { animation-delay: 0.30s; }
.hero-dialog-title span:nth-child(2) { animation-delay: 0.38s; }
.hero-dialog-title span:nth-child(3) { animation-delay: 0.46s; }
.hero-dialog-title span:nth-child(4) { animation-delay: 0.54s; }

[data-theme="light"] .hero-badge {
    background: rgba(34, 20, 8, 0.34);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 248, 240, 0.88);
}

[data-theme="light"] .hero-dialog-title {
    color: #fff8f2;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.52),
        0 10px 28px rgba(0, 0, 0, 0.22);
}

/* Botão da seta — shape HUD chanfrado coerente com a pill */
.hero-dialog-arrow {
    width: 56px;
    height: 56px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    background: var(--accent);
    color: #01000D;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s, box-shadow 0.25s;
    box-shadow: 0 0 22px var(--accent-glow);
}

.hero-dialog-arrow:hover {
    background: var(--lime);
    color: #01000D;
    transform: translateX(3px);
    box-shadow: 0 0 28px var(--lime-glow);
}

.hero-dialog-arrow:active {
    transform: scale(0.98);
}

/* Linhas internas do título — desktop inline, mobile block (quebra em 2 linhas) */
.hero-dialog-line {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
}

/* Mobile: título quebra em 2 linhas, caixa adapta */
@media (max-width: 640px) {
    .hero-dialog {
        gap: 0.85rem;
        /* padding top maior que bottom = conteúdo desce visualmente */
        padding: 1.2rem 0.85rem 0.2rem 1.5rem;
        border-radius: 0;
        max-width: calc(100vw - 2rem);
    }

    .hero-dialog-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.05em;
        font-size: clamp(1.4rem, 6.2vw, 1.85rem);
        transform: none;
    }

    /* força layout flex em row dentro de cada linha — sem isso o flex column do title quebra os spans */
    .hero-dialog-line {
        display: flex;
        align-items: center;
        white-space: nowrap;
        gap: 0.28em;
    }

    .hero-dialog-arrow {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
}

.hero h1 span {
    display: inline-block;
    animation: fadeInUp 0.7s ease backwards;
}
.hero h1 span:nth-child(1) { animation-delay: 0.10s; }
.hero h1 span:nth-child(2) { animation-delay: 0.18s; }
.hero h1 span:nth-child(3) { animation-delay: 0.26s; }
.hero h1 span:nth-child(4) { animation-delay: 0.34s; }

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 2.25rem;
    animation: fadeInUp 0.7s ease 0.42s backwards;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-cta-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.7s ease 0.52s backwards;
}

.highlight {
    color: var(--lime);
    text-shadow: 0 0 8px var(--lime-glow), 0 0 20px var(--lime-glow);
}

/* ── Botões (HUD cyberpunk, cantos chanfrados) ────────────────────────────── */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.9rem;
    background: var(--accent);
    color: #01000D;
    border: none;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s;
    box-shadow: 0 0 18px var(--accent-glow);
}

.cta-primary:hover {
    background: var(--lime);
    color: #01000D;
    transform: translateY(-2px);
    box-shadow: 0 0 28px var(--lime-glow), 0 10px 30px var(--accent-glow);
}

.cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.9rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-2);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s;
}

.cta-ghost:hover {
    background: var(--lime-soft);
    border-color: var(--lime);
    color: var(--lime);
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--lime-glow);
    text-shadow: 0 0 8px var(--lime-glow);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark  { background: var(--bg); }
.section-light { background: var(--bg-2); }

.section-content {
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lime);
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--lime-border);
    border-radius: var(--radius-sm);
    background: var(--lime-soft);
    margin-bottom: 1.25rem;
    text-shadow: 0 0 8px var(--lime-glow);
}

.section-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px var(--lime-glow);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.05;
    text-shadow: 0 0 12px rgba(242, 7, 93, 0.25);
}

/* ── Work / Tabs (segmented control estilo mastra) ───────────────────────── */
.cat-tabs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cat-tabs {
    position: relative;
    z-index: 3;
    display: inline-flex;
    gap: 0.65rem;
    padding: 0.9rem;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: -0.9rem -0.9rem 1.35rem;
    max-width: 100%;
    overflow: visible;
    flex-wrap: nowrap;
    justify-content: center;
    box-shadow: none;
    scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border-2);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cat-tab:hover {
    color: var(--lime);
    border-color: var(--lime-border);
    box-shadow: 0 0 14px var(--lime-soft);
}

.cat-tab.active {
    background: var(--accent);
    color: #01000D;
    font-weight: 700;
    border-color: var(--accent);
    box-shadow: 0 0 22px var(--accent-glow);
    text-shadow: none;
    z-index: 4;
}

.cat-panels {
    position: relative;
    width: 100%;
    padding: 0;          /* sem padding extra — cards já têm respiro do grid */
    border: none;        /* moldura verde removida */
    background: transparent;
    box-shadow: none;
}

.cat-panel {
    display: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

.cat-panel.active {
    display: block;
    animation: fadeInUp 0.35s ease-out;
}

@keyframes strokeSweep {
    0%, 100% { background-position: 115% 0; }
    45%      { background-position: -35% 0; }
}

/* ── Project grid (bento) ────────────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.projects-grid--mixed { align-items: start; }

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
    transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent), 0 0 22px var(--accent-glow);
}

.project-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 20%, rgba(158, 255, 61, 0.06), transparent 55%),
        var(--card-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Overlay de play sobre a thumbnail */
.thumb-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.25s, transform 0.25s, background 0.25s;
    pointer-events: none;
    z-index: 2;
}

.thumb-play-overlay svg { margin-left: 2px; }

.project-card:hover .thumb-play-overlay {
    opacity: 1;
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.08);
}

/* Garante que a imagem cobre todo o card */
.project-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.project-thumbnail--vertical { aspect-ratio: 9 / 16; }

/* Thumb dos cards de web design (screenshot via microlink) */
.project-thumbnail.web-thumb {
    padding: 0;
}

.project-thumbnail.web-thumb img {
    object-position: top center;
    transition: transform 0.55s ease;
}

.project-card:hover .project-thumbnail.web-thumb img {
    transform: scale(1.04);
}

.project-link-overlay {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: var(--accent);
    color: #0a0a0a;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    z-index: 2;
}

a.project-card { text-decoration: none; }

.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* ── Problem / Solution (Web) ────────────────────────────────────────────── */
.web-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.web-showcase .projects-grid {
    margin-top: 0;
}

.web-copy {
    max-width: 820px;
}

.web-copy p:last-child {
    margin-bottom: 0;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.problem-text h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.problem-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stage cobre área maior que o avatar — espaço pro canvas de partículas */
.about-avatar-stage {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas atrás do avatar */
#avatar-halftone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.about-avatar-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    z-index: 1;
}

.about-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, var(--accent-soft), transparent 60%),
        var(--card);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent);
    /* halo sutil pra "destacar" do canvas atrás */
    box-shadow:
        0 0 0 1px var(--border),
        0 10px 40px rgba(0, 0, 0, 0.35);
}

.about-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
    box-shadow: 0 0 0 1px var(--border), 0 10px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .about-avatar-wrap img {
    box-shadow: 0 0 0 1px var(--border), 0 8px 28px rgba(10, 10, 10, 0.10);
}

.about-text .section-eyebrow { margin-bottom: 1.25rem; }

.about-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.4rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.tool-chip {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--border-2);
    border-radius: 0;
    /* Shape HUD cyberpunk — cantos chanfrados (igual aos botões / client cards) */
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    background:
        radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        var(--card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s, color 0.22s;
    overflow: hidden;
}

.tool-chip:hover {
    border-color: var(--lime);
    color: var(--lime);
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--lime-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 8px var(--lime-glow);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label-about {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.clients-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.client-avatar-card {
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-2);
    border-radius: 0;
    /* Shape HUD cyberpunk — cantos chanfrados (igual aos botões) */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    background:
        radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 55%),
        var(--card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.client-avatar-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow), 0 18px 42px rgba(0, 0, 0, 0.32);
}

.client-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(158, 255, 61, 0.22), transparent),
        var(--card-2);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transform: scale(2.0);
    display: block;
}

.client-meta h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.18rem;
}

.client-meta p {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Approach (stats) ────────────────────────────────────────────────────── */
/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta-section-wrap { position: relative; overflow: hidden; }

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 340px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.cta-section {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
}

.cta-group {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    background: var(--bg);
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-links { display: flex; gap: 1.5rem; }

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.social-links a:hover { color: var(--accent); }

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-soft);
    letter-spacing: 0.03em;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-bg);
    backdrop-filter: blur(6px);
    z-index: 300;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    margin-bottom: 4rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.45rem;
}

.modal-subtitle {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.modal-close {
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-close:hover { border-color: var(--accent-border); color: var(--accent); }

.modal-body { padding: 2rem; }

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.modal-gallery:empty { display: none; }

.gallery-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active { display: flex; }

.gallery-slide img,
.gallery-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--overlay-bg);
    color: var(--text);
    border: 1px solid var(--border-2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}

.gallery-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.gallery-dot.active { background: var(--accent); transform: scale(1.2); }

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-tags:empty { display: none; }

.modal-tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.modal-open { overflow: hidden; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .problem-solution { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .about-image { order: -1; }
    .about-text .section-eyebrow,
    .about-h2 { text-align: center; }
    .about-tools { justify-content: center; }
    .about-stats { max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }

    .section { padding: 4.5rem 1.25rem; }
    .hero { padding: 6rem 1.25rem 4rem; min-height: 70vh; }
    header { padding: 0.85rem 1rem; }

    /* Header compacto: gaps menores + vídeo do nome menor pra não estourar */
    .header-content { gap: 0.6rem; }
    .logo-video { height: 26px; }

    .nav-links { gap: 1rem; }
    .nav-links li:not(:last-child) a:not(.nav-cta) { display: none; }
    .header-social { display: none; }
    .header-actions { gap: 0.5rem; }

    .footer-inner { flex-direction: column; text-align: center; }
    .projects-grid,
    .projects-grid--mixed { grid-template-columns: 1fr; }
    .project-thumbnail--vertical { max-height: 70vw; }

    /* ── Modal de projeto: usa quase toda a tela em mobile ─────────────── */
    .modal {
        padding: 1.25rem 0.5rem 1rem;
        overflow-x: hidden;
    }
    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }
    .modal-header {
        padding: 1rem 1rem 0.85rem;
    }
    .modal-header h2 {
        font-size: 1.2rem;
    }
    .modal-body {
        padding: 0.85rem 0.85rem 1.25rem;
    }
    .modal-gallery {
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .cat-tabs {
        border-radius: 24px;
        overflow-x: auto;
    }

    .cat-panels::before,
    .cat-panels::after {
        display: none;
    }

    .cat-panels {
        padding-top: 1.5rem;
    }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.12s !important;
        scroll-behavior: auto !important;
    }
    .about-avatar-ring, .badge-dot { animation: none !important; }
}
