:root {
    --dark-bg: #141414;
    --dark-card: #262626;
    --gray: #9A9A9A;
    --white: #ffffff;
    --orange: #FF9000;
    --orange-light: #FFB347;
    
    --bg: #141414;
    --bg-card: #262626;
    --text: #ffffff;
    --text-secondary: #9A9A9A;
    --accent: #FF9000;
    --accent-light: #3d8a42;
    --border: #3d3d3d;

    /* Degradê das 10 áreas (de #141414 até #3A3A3A) */
    --area-1: #141414; /* Hero */
    --area-2: #181818; /* Trajetória */
    --area-3: #1C1C1C; /* Trabalhos selecionados (título) */
    --area-4: #212121; /* Projeto 1 - BB em todo canto */
    --area-5: #252525; /* Projeto 2 - BB Estilo */
    --area-6: #292929; /* Projeto 3 - App Loterias */
    --area-7: #2D2D2D; /* Projeto 4 - Totem 1 */
    --area-8: #323232; /* Projeto 5 - Totem 2 */
    --area-9: #363636; /* Contato */
    --area-10: #3A3A3A; /* Footer */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


a {
        text-decoration: none;
        color: var(--orange); /* opcional: define a cor do link */
}


/* ============================================
   VÍDEO DE BACKGROUND (apenas no hero)
   ============================================ */
#background-video {
    opacity: 0.5;
    animation: fadeInVideo 2s ease forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    mix-blend-mode: screen;
}

@keyframes fadeInVideo {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

/* ============================================
   NAVBAR 
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.8rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--orange);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* ============================================
   HERO FULLSCREEN COM SVG
   ============================================ */
.hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #141414;
    margin: 0;
    padding: 0;
}

.hero-svg-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.hero-full-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Animação de desenho da logo central */
.hero-logo-paths path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation-name: draw-line;
    animation-duration: 4s;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

.hero-content-reveal {
    opacity: 0;
    transform: translateY(20px);

    animation: revealHero 1.2s ease forwards;
    animation-delay: 3.8s;
}

.hero-logo-paths path:nth-child(1) { animation-delay: 0s; }
.hero-logo-paths path:nth-child(2) { animation-delay: 0.15s; }
.hero-logo-paths path:nth-child(3) { animation-delay: 0.3s; }
.hero-logo-paths path:nth-child(4) { animation-delay: 0.45s; }
.hero-logo-paths path:nth-child(5) { animation-delay: 0.6s; }
.hero-logo-paths path:nth-child(6) { animation-delay: 1.9s; }
.hero-logo-paths path:nth-child(7) { animation-delay: 1.35s; }
.hero-logo-paths path:nth-child(8) { animation-delay: 1.5s; }
.hero-logo-paths path:nth-child(9) { animation-delay: 1.65s; }

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

/* ============================================
   EFEITO ANOS 90 (sem mover elementos)
   ============================================ */

/* Linhas de scan tipo TV antiga */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.18) 0px,
        rgba(0, 0, 0, 0.18) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 50;
    animation: scanlinesVanish 4s ease-out forwards;
}

/* Ruído estático sobreposto */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 51;
    animation: noiseVanish 4s ease-out forwards, noiseShift 0.1s steps(2) infinite;
    mix-blend-mode: overlay;
}

@keyframes scanlinesVanish {
    0%, 75% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes noiseVanish {
    0%, 75% { opacity: 0.15; }
    100% { opacity: 0; }
}

/* Anima ruído mudando posição (estático em movimento) */
@keyframes noiseShift {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* RGB split forte + glow + luzes saindo da logo */
.hero-svg-container {
    animation: rgbSplit 4s ease-out forwards;
}

@keyframes rgbSplit {
    0%, 5% {
        filter: drop-shadow(0 0 8px rgba(255, 144, 0, 0.4));
    }
    6% {
        filter: drop-shadow(4px 0 0 rgba(255, 0, 64, 0.95)) 
                drop-shadow(-4px 0 0 rgba(0, 255, 234, 0.95))
                drop-shadow(0 0 20px rgba(255, 144, 0, 1))
                drop-shadow(0 0 40px rgba(255, 144, 0, 0.8));
    }
    8% {
        filter: drop-shadow(-6px 0 0 rgba(255, 0, 64, 1)) 
                drop-shadow(6px 0 0 rgba(0, 255, 234, 1))
                drop-shadow(0 0 30px rgba(255, 144, 0, 1))
                drop-shadow(0 0 60px rgba(255, 200, 0, 0.6));
    }
    10% {
        filter: drop-shadow(3px 0 0 rgba(255, 0, 64, 0.9)) 
                drop-shadow(-3px 0 0 rgba(0, 255, 234, 0.9))
                drop-shadow(0 0 15px rgba(255, 144, 0, 0.8));
    }
    13% {
        filter: drop-shadow(0 0 8px rgba(255, 144, 0, 0.4));
    }
    18% {
        filter: drop-shadow(-5px 1px 0 rgba(255, 0, 64, 1)) 
                drop-shadow(5px -1px 0 rgba(0, 255, 234, 1))
                drop-shadow(0 0 25px rgba(255, 144, 0, 1))
                drop-shadow(0 0 50px rgba(255, 200, 0, 0.7));
    }
    20% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 64, 0.7))
                drop-shadow(-2px 0 0 rgba(0, 255, 234, 0.7));
    }
    25% {
        filter: drop-shadow(0 0 10px rgba(255, 144, 0, 0.5));
    }
    32% {
        filter: drop-shadow(7px 0 0 rgba(255, 0, 64, 1)) 
                drop-shadow(-7px 0 0 rgba(0, 255, 234, 1))
                drop-shadow(0 0 40px rgba(255, 144, 0, 1))
                drop-shadow(0 0 80px rgba(255, 220, 100, 0.8))
                brightness(1.4);
    }
    34% {
        filter: drop-shadow(-5px 0 0 rgba(255, 0, 64, 0.95)) 
                drop-shadow(5px 0 0 rgba(0, 255, 234, 0.95))
                drop-shadow(0 0 30px rgba(255, 144, 0, 1));
    }
    38% {
        filter: drop-shadow(0 0 12px rgba(255, 144, 0, 0.6));
    }
    48% {
        filter: drop-shadow(4px 2px 0 rgba(255, 0, 64, 1)) 
                drop-shadow(-4px -2px 0 rgba(0, 255, 234, 1))
                drop-shadow(0 0 35px rgba(255, 144, 0, 1))
                drop-shadow(0 0 70px rgba(255, 200, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 144, 0, 0.5));
    }
    62% {
        filter: drop-shadow(-3px 0 0 rgba(255, 0, 64, 0.9)) 
                drop-shadow(3px 0 0 rgba(0, 255, 234, 0.9))
                drop-shadow(0 0 25px rgba(255, 144, 0, 0.9))
                drop-shadow(0 0 50px rgba(255, 200, 0, 0.5));
    }
    64% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 64, 0.7)) 
                drop-shadow(-2px 0 0 rgba(0, 255, 234, 0.7));
    }
    70% {
        filter: drop-shadow(0 0 15px rgba(255, 144, 0, 0.5));
    }
    85% {
        filter: drop-shadow(0 0 10px rgba(255, 144, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 144, 0, 0.2));
    }
}

/* Glow pulsante adicional na própria logo (paths) */
.hero-logo-paths {
    animation: logoGlow 4s ease-out forwards;
}

@keyframes logoGlow {
    0%, 5% {
        filter: drop-shadow(0 0 4px rgba(255, 144, 0, 0.5));
    }
    8% {
        filter: drop-shadow(0 0 20px rgba(255, 144, 0, 1)) 
                drop-shadow(0 0 30px rgba(255, 200, 0, 0.8));
    }
    12% {
        filter: drop-shadow(0 0 8px rgba(255, 144, 0, 0.7));
    }
    18% {
        filter: drop-shadow(0 0 32px rgba(255, 144, 0, 1))
                drop-shadow(0 0 40px rgba(255, 220, 100, 0.7));
    }
    22% {
        filter: drop-shadow(0 0 6px rgba(255, 144, 0, 0.6));
    }
    32% {
        filter: drop-shadow(0 0 25px rgba(255, 144, 0, 1))
                drop-shadow(0 0 50px rgba(255, 220, 100, 0.9));
    }
    35% {
        filter: drop-shadow(0 0 8px rgba(255, 144, 0, 0.6));
    }
    48% {
        filter: drop-shadow(0 0 18px rgba(255, 144, 0, 1))
                drop-shadow(0 0 35px rgba(255, 200, 0, 0.7));
    }
    52% {
        filter: drop-shadow(0 0 6px rgba(255, 144, 0, 0.5));
    }
    65% {
        filter: drop-shadow(0 0 12px rgba(255, 144, 0, 0.7))
                drop-shadow(0 0 25px rgba(255, 200, 0, 0.5));
    }
    85% {
        filter: drop-shadow(0 0 8px rgba(255, 144, 0, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 144, 0, 0.3));
    }
}

/* Distorção horizontal aleatória do vídeo via filter (não move nada) */
#background-video {
    animation: fadeInVideo 2s ease forwards, videoDistort 4s ease-out forwards;
}

@keyframes videoDistort {
    0%, 5% {
        filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    }
    8% {
        filter: blur(2px) brightness(1.6) contrast(2.5) saturate(0) hue-rotate(180deg);
    }
    10% {
        filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    }
    18% {
        filter: blur(3px) brightness(1.8) contrast(3) saturate(0) hue-rotate(45deg);
    }
    20% {
        filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    }
    32% {
        filter: blur(4px) brightness(2) contrast(3.5) saturate(0) hue-rotate(270deg);
    }
    34% {
        filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    }
    48% {
        filter: blur(3px) brightness(1.5) contrast(2) saturate(0) hue-rotate(120deg);
    }
    50% {
        filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    }
    100% {
        filter: blur(2px) brightness(0.85) contrast(1.1) saturate(0.7);
    }
}

/* Fade-in dos elementos APÓS animação da logo (~3s) */
.hero-content-fade {
    opacity: 0;
    animation: fadeInContent 1s ease-out forwards;
    animation-delay: 3s;
}

.hero-content-fade-html {
    opacity: 0;
    animation: fadeInContent 1s ease-out forwards;
    animation-delay: 3s;
}

/* Conteúdo mobile - escondido em desktop */
.hero-mobile-content {
    display: none;
}

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


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

/* Botão hover */
.hero-svg-container a rect {
transition: all 0.3s ease;
}

.hero-svg-container a text {
    transition: all 0.3s ease;
}

.hero-svg-container a:hover rect {
    fill: #FF9000;
}

.hero-svg-container a:hover text {
    fill: #ffffff;
}

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

.projects {
    background: var(--area-3) !important;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* CORREÇÃO DE CENTRALIZAÇÃO */
.projects .section {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.project-title,
.section-title,
.timeline-title {
    font-style: italic;
    font-weight: 300;
}

.project-description,
.section-subtitle,
.timeline-description {
    font-style: italic;
    font-weight: 300;
}

.project-row {
    position: relative;
    min-height: 300vh;
    background: var(--bg);
}

/* Cores progressivas dos 5 project-rows (área 4 até 8) */
/* Aplica em row, sticky, content, visual e totem-visual */
.projects .project-row:nth-of-type(1),
.projects .project-row:nth-of-type(1) .project-sticky,
.projects .project-row:nth-of-type(1) .project-visual,
.projects .project-row:nth-of-type(1) .totem-visual { background: var(--area-4) !important; }

.projects .project-row:nth-of-type(2),
.projects .project-row:nth-of-type(2) .project-sticky,
.projects .project-row:nth-of-type(2) .project-visual,
.projects .project-row:nth-of-type(2) .totem-visual { background: var(--area-5) !important; }

.projects .project-row:nth-of-type(3),
.projects .project-row:nth-of-type(3) .project-sticky,
.projects .project-row:nth-of-type(3) .project-visual,
.projects .project-row:nth-of-type(3) .totem-visual { background: var(--area-6) !important; }

.projects .project-row:nth-of-type(4),
.projects .project-row:nth-of-type(4) .project-sticky,
.projects .project-row:nth-of-type(4) .project-visual,
.projects .project-row:nth-of-type(4) .totem-visual { background: var(--area-7) !important; }

.projects .project-row:nth-of-type(5),
.projects .project-row:nth-of-type(5) .project-sticky,
.projects .project-row:nth-of-type(5) .project-visual,
.projects .project-row:nth-of-type(5) .totem-visual { background: var(--area-8) !important; }

.project-sticky {
    position: sticky;
    top: 0;
    height: 100vh;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;
    background: var(--bg);
}

.project-row.reverse .project-content {
    order: 2;
}

.project-row.reverse .project-visual {
    order: 1;
}

.project-content {
    padding: 2rem 3rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left;

    background: var(--dark-card);

    height: 100vh;
    overflow: hidden;
}

.project-row:not(.reverse) .project-content {
    padding-left: 5vw;
    padding-right: calc(15vw + 4rem);
}

.project-row.reverse .project-content {
    padding-right: 5vw;
    padding-left: calc(15vw + 4rem);
}

.project-number {
width: 100%;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.9rem;
    color: var(--orange);
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: left;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 400;
}

.project-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.project-meta-row {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-meta-label {
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.project-meta-label::after {
    content: ':';
    margin-right: 0.4rem;
}

.project-meta-value {
    color: var(--white);
    font-weight: 400;
}

.project-visual {
    position: relative;

    width: 100%;
    min-height: 100vh;
    height: auto;

    display: flex;
    justify-content: center;
    align-items: stretch;

    overflow: hidden;

    background: transparent;
}

.project-desktop {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.desktop-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.desktop-scroll {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #141414;
}


.desktop-scroll img {
width: 100%;
    height: auto;
    display: block;
    margin-top: 1px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Desktop fixo (imagem estática que cobre o visual, sem scroll) */
.desktop-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}

.desktop-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    
}

/* MOBILE SOBREPOSTO */
.project-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    width: 15vw;
    min-width: 200px;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    
    padding: 6px;

    /* efeito vidro */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    /* opcional: brilho */
    box-shadow:
0 40px 80px -20px rgba(0, 0, 0, 0.5),
0 20px 40px -10px rgba(43, 101, 49, 0.2),
inset 0 1px 1px rgba(255,255,255,0.2);
}

.phone-frame {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 22px;
    overflow: hidden;
    
    
}

.phone-screen {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 22px;
    overflow: hidden;
    
}

.phone-scroll {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 22px;
    
  
}

.phone-scroll img {
    width: 100%;
    height: auto;
    display: block;
    

    will-change: transform;
    transform: translate3d(0, 0, 0);


    
}



/* ============================================
   PHONE TOTEM - Slides horizontais dentro do mobile
   ============================================ */
.phone-totem-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 22px;
}

.phone-totem-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    will-change: transform;
    overflow: hidden;
    border-radius: 22px;
}

.phone-totem-slide[data-index="0"] {
    transform: translateX(0);
}

.phone-totem-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 22px;
}





/* ============================================
   TOTEM - Slides horizontais por scroll
   ============================================ */

/* Container do totem - altura grande pra suportar todos os slides */
.totem-row {
    min-height: 500vh;
}

.totem-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: visible;
    background: var(--bg);
}

/* Imagem estática de fundo (cobre o lado direito) */
.totem-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.totem-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Frame do totem - centralizado na divisão das colunas, encostado na base */
.totem-frame {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    /* Tamanho */
    width: 23vw;
    min-width: 323px;
    max-width: 391px;
    aspect-ratio: 9 / 17;
    height: auto;

    /* Padding: igual ao mobile no topo e laterais (6px), base maior */
    padding: 6px 6px 29px 6px;

    /* Cantos arredondados em cima e laterais, BASE RETA */
    border-radius: 28px 28px 0 0;

    /* Efeito vidro IGUAL AO MOBILE */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    
    /* Borda IGUAL AO MOBILE (2px, mesma cor) — sem inferior */
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;

    /* Mesmo shadow do mobile */
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.5),
        0 20px 40px -10px rgba(43, 101, 49, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    z-index: 10;
    overflow: hidden;
}

/* No bloco reverse, mantém centralizado */
.totem-row.reverse .totem-frame {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* Tela interna do totem - proporção 9:16 */
.totem-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: transparent;
}

/* Cada slide é uma imagem que se desloca horizontalmente */
.totem-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    will-change: transform;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
}

/* Primeiro slide inicia visível */
.totem-slide[data-index="0"] {
    transform: translateX(0);
}

.totem-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */

.about {
    background: var(--area-2) !important;
    border-top: 1px solid var(--border);
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.section-title.trajetoria {
    color: var(--orange);
}

.section-title em {
    color: var(--orange);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
    text-align: center;
}

/* Accordion - Trajetória */
.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 1rem 0;
    font-family: inherit;
    transition: opacity 0.3s ease;
}

.accordion-toggle:hover {
    opacity: 0.85;
}

.accordion-toggle .section-title {
    margin-bottom: 0;
}

.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--orange);
    color: var(--orange);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.accordion-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando aberto: ícone gira 45° (vira X) */
.accordion-toggle[aria-expanded="true"] .accordion-icon {
    background: var(--orange);
    color: var(--white);
}

.accordion-toggle[aria-expanded="true"] .accordion-icon svg {
    transform: rotate(45deg);
}

/* Conteúdo expansível */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.accordion-content.open {
    max-height: 5000px;
    opacity: 1;
}

/* Timeline */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Timeline em 3 colunas: ano | bolinha+linha | conteúdo */
.timeline {
    position: relative;
    padding: 0;
    max-width: 500px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 24px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 0 0 2.5rem 0;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Coluna 1: Ano à direita */
.timeline-year {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: right;
    padding-top: 0.2rem;
    letter-spacing: 0.02em;
    grid-column: 1;
}

/* Coluna 2: Marcador (bolinha + linha embaixo) */
.timeline-marker {
    grid-column: 2;
    position: relative;
    width: 24px;
    height: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.4rem;
}

/* Bolinha verde no topo da coluna 2 */
.timeline-marker::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    position: relative;
    z-index: 2;
}

/* Linha que desce da bolinha até o final do item, conectando com a próxima bolinha */
.timeline-marker::after {
    content: '';
    position: absolute;
    top: calc(0.4rem + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    bottom: calc(-2.5rem - 0.4rem);
    background: var(--border);
    z-index: 1;
}

/* Último item: linha não desce */
.timeline-item:last-child .timeline-marker::after {
    display: none;
}

/* Coluna 3: Conteúdo */
.timeline-content {
    grid-column: 3;
    padding: 0;
    background: transparent;
}

/* Conteúdo (sem padding, sem fundo) */
.timeline-content {
    padding: 0;
    background: transparent;
}

.timeline-company {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.2rem;
    text-transform: none;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.timeline-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    font-weight: 400;
}

.timeline-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.03em;
}

.timeline-current {
    display: block;
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
    margin-left: 0;
}

/* Competências */
/* Bio text acima dos cards de competência */
.bio-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-align: left;
}

.competencies-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.competency {
    padding: 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.competency-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}

.competency-list {
    list-style: none;
}

.competency-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-weight: 400;
}

.competency-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 400;
}

/* ============================================
   SEÇÃO CONTATO
   ============================================ */
.contact {
    background: var(--area-9);
    border-top: 1px solid var(--border);
}

/* Centralizar título e subtítulo da seção contato */
.contact-header {
    text-align: center;
}

/* ============================================
   BARRA DE PEÇAS (estilo Figma toolbar)
   ============================================ */
.pieces-bar {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 100px);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.8, 1, 0.8, 1), opacity 0.5s ease;
    pointer-events: auto;
    backdrop-filter: blur(20px);
    border-radius: 22px;
}

.pieces-bar.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.pieces-bar svg {
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    border-radius: 22px;
}

/* Borda sutil estilo Figma */
.pieces-bg {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

/* Indicadores - cursor pointer */
.piece-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.piece-indicator:hover {
    opacity: 0.85;
    filter: brightness(1.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 320px));
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
}

.contact-card {
    padding: 1.5rem 1.75rem;
    background: transparent;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--orange);
    background: transparent;
}

.contact-card svg {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.75rem;
    fill: var(--orange);
    display: block;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 400;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--area-10);
    border-top: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-text em {
    font-style: italic;
    color: var(--orange);
    font-weight: 400;
}

/* ============================================
   BOTÃO WHATSAPP FLUTUANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 60px;
    height: 60px;
    fill: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   TELAS GRANDES (>1920px)
   Manter proporção do design 1920
   ============================================ */
@media (min-width: 1921px) {
    /* Mobile mockup nos projetos */
    .project-mobile {
        width: 288px;  /* 15vw em 1920 = 288px */
        max-width: 288px;
        min-width: 288px;
    }
    
    /* Totem - tamanho fixo proporcional ao 1920 */
    .totem-frame {
        width: 442px; /* 23vw em 1920 ≈ 442px */
        min-width: 442px;
        max-width: 442px;
    }
    
    /* Hero name e role usam vw — mantêm proporção em qualquer resolução */
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hero responsivo */
    .hero {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .hero-left {
        justify-content: center;
    }

    .hero-left-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-logo-svg {
        width: clamp(150px, 20vw, 250px);
    }

    .hero-right-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-name h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-role {
        position: static;
        display: block;
        margin-top: 1rem;
        
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .about-grid,
    .competencies-cols {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-row,
    .project-row.reverse {
        min-height: auto;
    }

    .project-sticky {
        position: relative;
        height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .project-row.reverse .project-content,
    .project-row.reverse .project-visual {
        order: initial;
    }

    .project-content,
    .project-row:not(.reverse) .project-content,
    .project-row.reverse .project-content {
        padding: 4rem 1.5rem;
        height: auto;
    }

    .project-visual {
        height: 70vh;
        max-height: 600px;
    }

    .project-mobile {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        height: 65vh;
        max-height: 520px;
        aspect-ratio: 9 / 19.5;
        margin: 3rem auto;
    }

    /* TOTEM responsivo - simplificado */
    .totem-row {
        min-height: auto;
    }

    .totem-sticky {
        position: relative;
        height: auto;
        min-height: 80vh;
        display: flex;
        flex-direction: column;
    }

    .totem-visual {
        height: 80vh;
        min-height: 600px;
        position: relative;
    }

    .totem-frame {
        position: absolute;
        bottom: 0;
        left: 50%;
        top: auto;
        transform: translateX(-50%);
        width: 70vw;
        max-width: 320px;
        height: auto;
        aspect-ratio: 9 / 17;
        margin: 0;
    }

    /* No reverse, mantém centralizado também */
    .totem-row.reverse .totem-frame {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    /* Mobile: mostra só o primeiro slide, sem animação de scroll */
    .totem-slide {
        transform: translateX(100%) !important;
        transition: none !important;
    }

    .totem-slide[data-index="0"] {
        transform: translateX(0) !important;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ============================================
   ADAPTAÇÃO FLUIDA PARA TODAS AS RESOLUÇÕES
   ============================================ */
@media (max-width: 1400px) {
    .project-content {
        padding: 2.5rem 2.5rem;
    }

    .project-row:not(.reverse) .project-content {
        padding-left: 2.5rem;
        padding-right: calc(10vw + 2.5rem);
    }

    .project-row.reverse .project-content {
        padding-right: 2.5rem;
        padding-left: calc(10vw + 2.5rem);
    }

    .project-title {
        font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    }

    .project-description {
        font-size: clamp(0.9rem, 1.1vw, 1rem);
    }
}

@media (max-width: 1200px) {
    .project-row,
    .project-row.reverse {
        min-height: auto;
    }

    .project-sticky {
        position: relative;
        height: auto;
        min-height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .project-row.reverse .project-content,
    .project-row.reverse .project-visual {
        order: initial;
    }

    .project-content,
    .project-row:not(.reverse) .project-content,
    .project-row.reverse .project-content {
        padding: 3rem 2rem;
        height: auto;
        min-height: auto;
    }

    .project-visual {
        height: auto;
        min-height: 60vh;
        max-height: none;
    }

    .project-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }

    .project-description {
        font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    }

    .project-meta-row {
        font-size: clamp(0.75rem, 1vw, 0.85rem);
    }
}

/* ============================================
   ZOOM 125% - FIX PARA CONTEÚDO RESPIRAR
   ============================================ */
@media (max-width: 1728px) and (min-width: 1400px) {
    .project-content {
        padding: 2rem 2.5rem;
        height: 100vh;
        overflow: hidden;
    }

    .project-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        grid-template-columns: 1fr 1fr;
        overflow: hidden;
    }

    .project-row:not(.reverse) .project-content {
        padding-left: 2.5rem;
        padding-right: calc(10vw + 2.5rem);
    }

    .project-row.reverse .project-content {
        padding-right: 2.5rem;
        padding-left: calc(10vw + 2.5rem);
    }

    .project-visual {
        height: 100vh;
    }

    .project-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .project-description {
        font-size: clamp(0.9rem, 1.1vw, 1rem);
        margin-bottom: 1.5rem;
    }

    .project-meta {
        margin-top: 1rem;
    }

    .project-meta-row {
        font-size: clamp(0.8rem, 1vw, 0.9rem);
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    /* HERO MOBILE - tudo cabe em 100vh */
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }

    /* SVG container - logo centralizada e maior */
    .hero-svg-container {
        width: 100%;
        height: 28vh;
        position: relative;
        z-index: 3;
        margin-top: 3.5rem;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    /* SVG ampliado - logo central CENTRALIZADA */
    .hero-full-svg {
        width: 600px;
        height: 600px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Stroke da logo no mobile = 1px (proporcional ao SVG escalado) */
    .hero-logo-paths path {
        stroke-width: 4 !important;
    }

    /* Esconder textos do SVG no mobile */
    .hero-content-fade {
        display: none;
    }

    /* Conteúdo mobile - blocos de 50% da tela cada */
    .hero-mobile-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2.5rem 0 0 0;
        position: relative;
        z-index: 5;
        width: 100%;
        flex-shrink: 0;
    }

    /* Texto 1: BLOCO ocupa 50% da tela à ESQUERDA, texto alinhado à DIREITA */
    .hero-mobile-text:nth-of-type(1) {
        font-family: 'Quicksand', sans-serif;
        font-size: 1rem;
        line-height: 1.6;
        color: #9A9A9A;
        font-weight: 300;
        margin: 0;
        text-align: right;
        width: 50%;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    /* Texto 2: BLOCO ocupa 50% da tela à DIREITA, texto alinhado à ESQUERDA */
    .hero-mobile-text:nth-of-type(2) {
        font-family: 'Quicksand', sans-serif;
        font-size: 1rem;
        line-height: 1.6;
        color: #9A9A9A;
        font-weight: 300;
        margin: 0;
        text-align: left;
        width: 50%;
        margin-left: 50%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Botão centralizado horizontal, fio de 1px */
    .hero-mobile-btn {
        display: inline-block;
        padding: 0.85rem 2.5rem;
        border: 1px solid var(--orange);
        border-radius: 30px;
        color: #9A9A9A;
        background: transparent;
        font-family: 'Quicksand', sans-serif;
        font-size: 0.95rem;
        font-weight: 400;
        text-decoration: none;
        letter-spacing: 0.05em;
        margin: 1rem auto 0;
        transition: all 0.3s ease;
        align-self: center;
    }

    .hero-mobile-btn:hover,
    .hero-mobile-btn:active {
        background: rgba(255, 144, 0, 0.1);
        color: var(--orange);
    }

    /* Bloco "// ux/ui designer" + "edu costa" cobrindo toda largura */
    .hero-role {
      
        position: relative;
        bottom: 22vw;
        left: 1rem;
        transform: none;
        font-size: 6vw;
        text-align: left;
        z-index: 20;
        width: auto;
    }

    /* Nome edu costa - cobre TODA largura horizontal proporcionalmente */
    .hero-name-fixed {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        font-size: 22vw;
        line-height: 0.9;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        z-index: 4;
    }
}

/* Telas muito pequenas */
@media (max-width: 380px) {
    
    .hero-svg-container {
        margin: 2vh 0 0 0;
        height: 30vh;
        width: 100vw;
    }

    .hero-full-svg {
        width: 100vw;
        height: 20hw;
        
    }

    .hero-mobile-text:nth-of-type(1){

        font-size: 1rem;
        line-height: 1.5;
        
        margin-top: -8vh;
        margin-left: 6vw;
        
    }
    .hero-mobile-text:nth-of-type(2) {
        font-size: 1rem;
        line-height: 1.5;
        
        margin-top: -1vh;
       margin-right: 8vw;
    }

    .hero-mobile-btn {
        padding: 0.50rem 2rem;
        font-size: 0.85rem;
    }

    .hero-role {
        bottom: 24vw;
        color: #9A9A9A;
    }

    .hero-name-fixed {
        font-size: 24vw;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .project-content {
        padding: 2rem 1rem;
    }

    .project-visual {
        height: 60vh;
    }

    .project-mobile {
        height: 55vh;
    }
}
/* ============================================
   BLOCO UNIFICADO: // ux/ui designer + edu costa
   Texto HTML com Quicksand — proporção em qualquer resolução
   ============================================ */
.hero-signature {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    width: 100vw;
    /* Altura suficiente para conter o // ux_ui designer + edu costa */
    height: 30vw;

    z-index: 10;
    pointer-events: none;

    overflow: hidden;
}

.hero-signature .hero-role {
    position: absolute;
    bottom: 12vw;
    left: 4.6vw;

    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 3vw;
    color: #9A9A9A;
    line-height: 1;
  
    letter-spacing: 0.02em;
}

.hero-signature .hero-name {
    position: absolute;
    bottom: -2.5vw;
    left: 7.5vw;

    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 21.3vw;
    color: #9A9A9A;
    line-height: 0.95;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ============================================
   PRELOADER (overlay com barra na base + porcentagem)
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #141414;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-bar-wrap {
    width: 100%;
    position: relative;
}

.preloader-percent {
    position: absolute;
    bottom: 14px;
    left: 0;
    transform: translateX(0);
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #9A9A9A;
    letter-spacing: 0.02em;
    padding-left: 8px;
    transition: left 0.1s linear;
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    width: 0%;
    background: var(--orange, #FF9000);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(255, 144, 0, 0.6);
}

