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

:root {
  --cream:  #F5F0E8;
  --dark:   #0D0D0D;
  --dark2:  #111111;
  --accent: #E84A2F;
  --blue:   rgb(29, 90, 181);
  --muted:  rgba(245,240,232,0.55);
  --border: rgba(245,240,232,0.09);
}

html { scroll-behavior: smooth; }

body {
  width: 100%;
  background: var(--dark);
  cursor: none;
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
}

/* ═══════════════════ CURSOR ═══════════════════ */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--cream); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid rgba(245,240,232,.5);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s;
  mix-blend-mode: difference;
}

/* ═══════════════════ NOISE ═══════════════════ */
.noise {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 8000; opacity: .028;
  background-image: url("data:image/svg+xml,%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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ═══════════════════ NAV (DESKTOP INTACTO) ═══════════════════ */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.8vh 4vw;
  background: transparent;
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
#mainNav.scrolled {
  background: rgba(13,13,13,.88);
  backdrop-filter: blur(12px);
  padding: 1.8vh 4vw;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--cream); letter-spacing: .06em;
}
.nav-dot { color: var(--blue); }
.nav-links {
  display: flex; gap: 3vw; list-style: none;
  opacity: 0; animation: fadeIn 1s 1.2s ease forwards;
}
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: .16em; color: var(--cream);
  text-decoration: none; text-transform: uppercase;
  opacity: .7; transition: opacity .2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--cream); transition: width .3s;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { opacity: 1; }
.nav-link.active::after { width: 100%; }

/* PT/EN (USADO TANTO NO DESKTOP QUANTO NO MOBILE) */
.lang-toggle {
  display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s 1.4s ease forwards;
}
.lang-divider {
  width: 1px; height: 14px;
  background: rgba(245,240,232,.25);
}
.lang-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .14em;
  color: var(--muted); background: transparent;
  border: none; cursor: none;
  transition: color .2s; padding: 2px 4px;
}
.lang-btn.active { color: var(--cream); }
.lang-btn:hover { color: var(--cream); }

/* =========================================
   ESTRUTURA MOBILE (ESCONDIDA NO DESKTOP)
   ========================================= */
#mobileNav, 
.mobile-menu-overlay {
    display: none;
}

/* =========================================
   REGRAS EXCLUSIVAS PARA MOBILE
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. BLINDA E ESCONDE O DESKTOP TOTALMENTE */
    #mainNav {
        display: none !important;
    }

    /* 2. MOSTRA E CONFIGURA A NAVBAR DO CELULAR */
    #mobileNav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        justify-content: space-between; /* Hambúrguer esquerda, Idioma direita */
        align-items: center;
        padding: 3vh 4vw;
        z-index: 1000;
        background-color: transparent;
        transition: background 0.4s, backdrop-filter 0.4s;
    }

    #mobileNav.scrolled {
        background: rgba(13,13,13,.88);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(245,240,232,0.09);
    }

    /* 3. BOTÃO HAMBÚRGUER */
    .menu-toggle {
        background: none;
        border: none;
        cursor: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background-color: #F5F0E8; /* Sua cor creme do portfólio */
        transition: all 0.3s ease;
    }

    /* 4. MENU FULLSCREEN (ESTILO OUSE) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: #000000;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-top-bar {
        width: 100%;
        padding: 3vh 4vw;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-close {
        background: none;
        border: none;
        cursor: none;
        padding: 5px;
    }

    .menu-close svg {
        width: 32px;
        height: 32px;
        stroke: #F5F0E8;
    }

    .menu-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 5vw 10vh 5vw;
        justify-content: center;
    }

    .mobile-nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 3vh;
    }

    .mobile-nav-links a {
        color: #F5F0E8;
        font-family: 'Bebas Neue', sans-serif; /* Puxando a fonte de impacto do seu site */
        font-size: clamp(50px, 12vw, 80px);
        text-decoration: none;
        text-align: left;
        line-height: 1;
        transition: color 0.3s ease;
        cursor: none;
    }

    .mobile-nav-links a:hover {
        color: rgb(29, 90, 181); /* O azul (var(--blue)) do seu projeto */
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* --- ESTILO DAS REDES SOCIAIS NO MENU --- */
    .mobile-socials {
        display: flex;
        flex-direction: column;
        margin-top: 6vh;
    }

    .social-label {
        color: var(--muted);
        font-family: 'Space Mono', monospace;
        font-size: 10px;
        letter-spacing: .2em;
        text-transform: uppercase;
        margin-bottom: 2vh;
    }

    .social-links-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5vh;
        padding: 0;
    }

    /* Redefinindo o link apenas para as redes sociais para não misturar com o Bebas Neue gigante */
    .mobile-nav-links ~ .mobile-socials .social-links-list a {
        color: var(--cream);
        font-family: 'Space Mono', monospace;
        font-size: 12px;
        letter-spacing: .15em;
        text-decoration: none;
        text-transform: uppercase;
        line-height: 1.5;
        transition: color 0.3s ease, transform 0.3s ease;
        cursor: none;
        display: inline-block;
    }

    .mobile-nav-links ~ .mobile-socials .social-links-list a:hover {
        color: var(--blue);
        transform: translateX(4px); /* Dá um efeitinho sutil indo pra direita ao passar o mouse/dedo */
    }

    .description {
        display: none !important;
    }

  }

  @media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 5vh !important;
    }
    .about-section::after {
        font-size: 140px !important;
        top: 2vh !important;
    }

    .skill-icon-only {
        width: 30px !important; /* Ajuste este valor (ex: 40px, 50px) até ficar do tamanho ideal */
    }

    .about-skills-wrapper {
        gap: 4vw; /* Aumenta um pouco o espaçamento para eles não ficarem colados */
        justify-content: left; /* Opcional: centraliza os ícones na tela do celular */
    }

    /* --- AJUSTE DOS CARDS DE PROJETO NO MOBILE --- */
    .project-card {
        flex: 0 0 95vw !important; /* Deixa o vídeo com quase 100% da largura da tela */
    }

    /* Oculta completamente o texto descritivo para não ter a animação de subir */
    .card-desc {
        display: none !important;
    }

    /* Garante que o vídeo/imagem cubra o card inteiro no novo tamanho */
    .card-video,
    .card-poster {
        height: 100% !important;
        object-fit: cover !important;
    }

    /* --- CORREÇÃO DO BOTÃO "VER PROJETO" NO MOBILE --- */
    .card-content {
        padding: 3vh 6vw !important; /* Aumenta a margem lateral para o botão ter espaço de respiro */
    }

    .card-cta {
        opacity: 1 !important; /* Deixa o botão sempre visível no celular */
        transform: translateX(0) !important; /* Coloca ele na posição original sem ficar escondido */
    }

    /* Reduz o movimento da setinha ao tocar na tela para não vazar do card */
    .card-cta:active svg,
    .project-card:active .card-cta svg {
        transform: translateX(1px) !important;
    }

    /* --- AJUSTE DO FOOTER (SOBREPOSIÇÃO DE COLUNAS) --- */
    .footer-inner {
        grid-template-columns: 1fr !important; /* Transforma as 2 colunas em 1 */
        gap: 8vh !important;
        padding: 10vh 5vw 5vh !important;
    }

    /* --- REDES SOCIAIS EM 3 COLUNAS LADO A LADO --- */
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Cria as 3 colunas */
        gap: 15px !important;
        width: 100%;
        margin-top: 4vh;
    }

    .footer-link {
        justify-content: center; /* Centraliza o texto dentro da coluna */
        font-size: 10px !important; /* Diminui um pouco para caber melhor */
        text-align: center;
        border: 1px solid var(--border); /* Opcional: cria um quadradinho para cada rede */
        padding: 10px 5px;
        border-radius: 4px;
    }

    /* Remove a seta (svg) das redes sociais no mobile para poupar espaço */
    .footer-link svg {
        display: none !important;
    }

    /* --- AJUSTES DO FORMULÁRIO --- */
    .form-row {
        grid-template-columns: 1fr !important; /* Nome e Email um por cima do outro */
        gap: 3vh;
    }

    .form-submit {
        width: 100%; /* Botão de enviar ocupa a largura toda no telemóvel */
        justify-content: center;
    }

    /* --- AJUSTE TEXTO TRANSFORMAÇÕES (MOBILE) --- */
    .slide-text-block {
        left: 5vw !important;    /* Traz o texto mais para a esquerda */
        right: 5vw !important;   /* Garante que ele não encoste na borda direita */
        width: 90vw !important;  /* Define uma largura máxima segura */
        bottom: 12vh !important; /* Sobe um pouquinho para não bater no rodapé */
    }

    .slide-heading {
        font-size: 3.5rem !important; /* Diminui um pouco o título se estiver quebrando estranho */
        line-height: 1 !important;
        margin-bottom: 15px !important;
    }

    .slide-microcopy {
        font-size: 13px !important;
        line-height: 1.6 !important;
        max-width: 100% !important; /* Permite que o texto use a largura disponível */
    }
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative; width: 100vw; height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  transform: scale(1.04);
  animation: slowZoom 18s ease-out forwards;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
@keyframes slowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-canvas-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; 
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,.8) 0%, transparent 60%),
    linear-gradient(to top,   rgba(10,10,10,.75) 0%, transparent 10%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, transparent 10%);
}

.tagline {
  position: absolute; top: 12vh; left: 3vw;
  font-family: 'Space Mono', monospace;
  font-size: clamp(10px, 0.8vw, 12px); letter-spacing: .2em;
  color: var(--cream); text-transform: uppercase;
  z-index: 10; opacity: 0; animation: slideUp .9s .7s ease forwards;
}
.main-title {
  position: absolute; top: 14vh; left: 3vw;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(100px, 13vw, 190px); line-height: .88;
  color: var(--cream); z-index: 10; letter-spacing: -.01em;
  opacity: 0; animation: titleReveal 1.1s .3s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(30px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0); }
}
.description {
  position: absolute; bottom: 10vh; right: 4vw;
  max-width: clamp(260px, 28vw, 400px);
  font-size: clamp(15px, 1.3vw, 19px); font-weight: 300; line-height: 1.5;
  color: var(--cream); z-index: 10;
  opacity: 0; animation: slideUp 1s 1.4s ease forwards;
}
.vertical-label {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .22em; color: var(--cream);
  text-transform: uppercase; background: rgba(245,240,232,.10);
  padding: 1.5vh 2vw; z-index: 10;
  opacity: 0; animation: fadeIn 1s 1.8s ease forwards;
}
.info-block {
  position: absolute; bottom: 10vh; left: 4vw;
  z-index: 10; opacity: 0; animation: slideUp 1s 1.6s ease forwards;
}
.info-block .role {
  font-family: 'DM Sans', sans-serif; font-size: clamp(11px, 1vw, 13px); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cream); line-height: 1.6;
}
.info-block .role span { color: var(--blue); }
.info-block .divider {
  width: 10vw; min-width: 120px; height: 1px;
  background: rgba(245,240,232,.3); margin: 2vh 0; position: relative;
}
.info-block .divider::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 0; height: 100%; background: var(--cream);
  animation: lineGrow 1.2s 2.2s ease forwards;
}
@keyframes lineGrow { to { width: 100%; } }
.info-block .sub {
  font-family: 'DM Sans', sans-serif; font-size: clamp(11px, 1vw, 13px);
  font-weight: 300; font-style: italic; color: var(--muted); text-align: left;
}
.scroll-cta {
  position: absolute; bottom: 5vh; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 1vh;
  opacity: 0; animation: fadeIn 1s 2.2s ease forwards;
}
.scroll-cta .arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(245,240,232,.5);
  display: flex; align-items: center; justify-content: center;
  animation: bounce 2s 2.5s infinite; text-decoration: none;
}
.scroll-cta .arrow svg { width: 12px; fill: none; stroke: white; stroke-width: 1.2; }
.scroll-cta span {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

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

/* ═══════════════════ SOBRE ═══════════════════ */
.about-section {
  position: relative; width: 100vw; background: var(--dark); padding: 14vh 5vw 10vh; overflow: hidden;
}
.about-section::before {
  content: ''; position: absolute; top: 0; left: 5vw; right: 5vw; height: 1px; background: var(--border);
}
.about-section::after {
  content: 'YL'; position: absolute; right: -2vw; top: 8vh;
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(180px, 22vw, 320px);
  color: transparent; -webkit-text-stroke: 1px rgba(245,240,232,.04); pointer-events: none; line-height: 1; user-select: none;
}
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; align-items: start; }
.about-bio { font-size: clamp(15px, 1.35vw, 20px); font-weight: 300; line-height: 1.7; color: rgba(245,240,232,.78); margin-bottom: 6vh; }

.about-skills-wrapper {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2vw; 
  margin-top: 4vh; padding-top: 4vh; border-top: 1px solid rgba(245, 240, 232, 0.08); 
}
.skill-icon-only {
  color: rgb(255, 255, 255); width: clamp(24px, 2.5vw, 34px); height: auto;
  cursor: none; transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-icon-only svg { width: 100%; height: 100%; fill: currentColor; }
.skill-icon-only:hover { color: var(--blue); transform: translateY(-5px); }

/* ═══════════════════ LOGO WALL (CLIENTES) ═══════════════════ */
.clients-wrapper { margin-top: 8vh; padding-top: 5vh; width: 100%; overflow: hidden; position: relative; border-top: 1px solid var(--border); }
.clients-wrapper::before, .clients-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 10vw; z-index: 2; pointer-events: none; }
.clients-wrapper::before { left: 0; background: linear-gradient(to right, var(--dark) 0%, transparent 100%); }
.clients-wrapper::after { right: 0; background: linear-gradient(to left, var(--dark) 0%, transparent 100%); }
.clients-marquee { display: flex; user-select: none; gap: 1vw !important; }
.clients-group {
  flex-shrink: 0; display: flex; align-items: center; justify-content: flex-start !important; 
  gap: 1vw !important; width: max-content !important; min-width: max-content !important;
  animation: scrollX 20s linear infinite; 
}
.clients-marquee:hover .clients-group { animation-play-state: paused; }
.client-block {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: clamp(100px, 9vw, 140px); height: clamp(45px, 5vh, 60px);
  border: 1px solid var(--blue); border-radius: 4px; background: rgba(245, 240, 232, 0.015);
  color: rgba(255, 255, 255, 0.977); cursor: none;
}
.client-block:hover { border-color: rgb(255, 255, 255); color: var(--cream); background: rgba(245, 240, 232, 0.03); transform: translateY(-2px); }
.client-block svg { height: 45%; max-width: 80%; }
.client-block svg.logo-square { height: 99%; transform: scale(1.15); }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 1vw)); } }

/* ═════════════════ PROJECTS ═══════════════════ */
.projects-section {
  position: relative; width: 100vw; min-height: 100vh; background: var(--dark); overflow: hidden; padding-bottom: 10vh;
}
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; padding: 12vh 5vw 0; position: relative; }
.projects-header::before { content: ''; position: absolute; top: 0; left: 5vw; right: 5vw; height: 1px; background: var(--border); }
.section-eyebrow {
  font-family: 'Space Mono', monospace; font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: .28em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.5vh;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(72px, 10vw, 140px); line-height: .9;
  color: var(--cream); letter-spacing: -.01em;
}
.section-title .outline { -webkit-text-stroke: 1px rgba(245,240,232,.22); color: transparent; }
.projects-meta { text-align: right; padding-bottom: 1.5vh; }
.projects-meta .count {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px, 5vw, 60px); line-height: 1;
  color: rgba(29, 90, 181, 0.52); letter-spacing: .04em;
}
.projects-meta .hint {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 1vh;
}

.carousel-wrapper { margin-top: 6vh; padding: 0 5vw; overflow: hidden; }
.carousel-track {
  display: flex; gap: 2vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: none;
  user-select: none; -webkit-overflow-scrolling: touch; overflow-y: hidden; touch-action: pan-x; -webkit-user-select: none; -webkit-user-drag: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.project-card {
  position: relative; flex: 0 0 clamp(280px, 45vw, 800px); aspect-ratio: 16 / 10; height: auto; 
  border-radius: 3px; overflow: hidden; background: #181818; scroll-snap-align: start;
}
.card-poster {
  position: absolute; inset: 0; background-image: var(--poster-img, none);
  background-color: transparent; background-size: 100% auto; background-position: top center; 
  background-repeat: no-repeat; z-index: 2; transition: background-position 0.5s ease-out; 
}
.project-card:hover .card-poster { background-position: bottom center; transition: background-position 12s ease-in-out 0.8s; }
.card-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; 
  z-index: 1; opacity: 1; transform: scale(1.02); transition: transform 0.8s ease;
}
.project-card:hover .card-video { transform: scale(1); }
.card-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,.08) 68%, transparent 100%);
  transition: background .5s;
}
.project-card:hover .card-overlay { background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.28) 46%, transparent 76%); }

.card-content { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 3vh 3vw; }
.card-bottom { display: flex; flex-direction: column; gap: 1.5vh; }
.card-tags { display: flex; gap: 0.5vw; flex-wrap: wrap; }
.tag {
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(245,240,232,.55); border: 1px solid rgba(245,240,232,.16); border-radius: 2px;
  padding: 4px 7px; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); transition: border-color .3s, color .3s;
}
.project-card:hover .tag { color: var(--cream); border-color: rgba(245,240,232,.3); }
.card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(30px, 3vw, 50px); line-height: .92; color: var(--cream); letter-spacing: .01em;
}
.card-desc {
  font-family: 'DM Sans', sans-serif; font-size: clamp(12px, 1vw, 14px); font-weight: 300; line-height: 1.5; color: rgba(245,240,232,.62);
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .55s cubic-bezier(.16,1,.3,1), opacity .4s;
}
.project-card:hover .card-desc { max-height: 12vh; opacity: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-year { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .2em; color: rgba(245,240,232,.3); text-transform: uppercase; }
.card-cta {
  display: flex; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-decoration: none; cursor: none;
  opacity: 0; transform: translateX(-10px); transition: opacity .4s .08s, transform .4s .08s, color .2s;
}
.card-cta svg { width: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform .3s; }
.project-card:hover .card-cta { opacity: 1; transform: translateX(0); }
.card-cta:hover { color: var(--blue); }
.card-cta:hover svg { transform: translateX(4px); }

.carousel-nav { display: flex; align-items: center; padding: 5vh 5vw 0; }
.progress-bar { flex: 1; height: 1px; background: var(--border); margin: 0 3vw; position: relative; overflow: hidden; }
.progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--cream); width: 25%; transition: width .4s ease; }
.nav-btn {
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: transparent; cursor: none;
  display: flex; align-items: center; justify-content: center; transition: border-color .3s, background .3s;
}
.nav-btn:hover { border-color: var(--cream); background: rgba(245,240,232,.06); }
.nav-btn svg { width: 14px; stroke: var(--cream); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: white; }
.nav-counter { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; margin-left: 2vw; }
.nav-counter strong { color: var(--cream); }
.projects-footer-cta { display: flex; justify-content: flex-end; padding: 6vh 5vw 0; }

/* ═══════════════════ TRANSFORMAÇÕES ═══════════════════ */
.transformacoes-wrapper { position: relative; width: 100%; height: 100vh; background: var(--dark); overflow: hidden; z-index: 5; }
.snap-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.snap-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; z-index: 1; clip-path: inset(100% 0% 0% 0%); background: var(--dark); 
}
.snap-slide.active-slide { z-index: 2; clip-path: inset(0% 0% 0% 0%); }
.slide-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0.6; }
.slide-content { position: relative; z-index: 2; width: 100%; height: 100%; padding: 5vh 5vw; pointer-events: none; }
.slide-text-block { position: absolute; bottom: 8vh; left: 12vw; max-width: 480px; display: flex; flex-direction: column; gap: 0; }
.slide-eyebrow { font-family: 'Space Mono', monospace; font-size: clamp(9px, 0.7vw, 11px); letter-spacing: .22em; color: var(--blue); text-transform: uppercase; margin-bottom: 1.2vh; }
.slide-heading { font-family: 'Bebas Neue', sans-serif; font-size: clamp(52px, 7vw, 100px); color: var(--cream); line-height: 0.88; text-transform: uppercase; margin: 0; margin-bottom: 2.2vh; }
.slide-heading-outline { -webkit-text-stroke: 1.5px var(--cream); color: transparent; }
.slide-accent-line { width: 40px; height: 2px; background: var(--blue); margin-bottom: 2vh; }
.slide-microcopy { font-family: 'DM Sans', sans-serif; font-weight: 300; color: white; font-size: clamp(12px, 0.9vw, 14px); max-width: 400px; line-height: 1.7; letter-spacing: .01em; }
.thumb-nav { position: absolute; top: 50%; right: 3vw; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 15px; }
.thumb-btn {
  width: 100px; height: 100px; border: 1px solid rgba(245,240,232,0.2); border-radius: 4px; background-size: cover;
  background-position: center; cursor: none; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0.4; filter: grayscale(100%); pointer-events: auto; 
}
.thumb-btn.active { opacity: 1; filter: grayscale(0%); border-color: var(--cream); transform: scale(1.1) translateX(-8px); }
.slide-logo, .slide-title { position: absolute; top: 10vh; left: 12vw; z-index: 5; }
.slide-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(60px, 12vw, 160px); color: var(--cream); line-height: 0.85; text-transform: uppercase; margin: 0; text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4); }

/* ══════════════════ FOOTER / CONTATO ═══════════════════ */
.footer-section { position: relative; width: 100vw; background: var(--dark); overflow: hidden; }
.footer-section::before { content: ''; position: absolute; top: 0; left: 5vw; right: 5vw; height: 1px; background: var(--border); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8vw; padding: 12vh 5vw 8vh; align-items: start; }
.footer-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(60px, 8vw, 110px); line-height: .9; color: var(--cream); letter-spacing: -.01em; margin: 2vh 0 4vh; }
.footer-title .outline { -webkit-text-stroke: 1px rgba(245,240,232,.22); color: transparent; }
.footer-sub { font-size: clamp(13px, 1.1vw, 16px); font-weight: 300; line-height: 1.6; color: var(--muted); margin-bottom: 5vh; max-width: 380px; }
.footer-links { display: flex; flex-direction: column; gap: 2vh; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; cursor: none; transition: color .25s, gap .25s; }
.footer-link svg { width: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform .3s; }
.footer-link:hover { color: var(--cream); gap: 16px; }
.footer-link:hover svg { transform: translateX(4px); }

.contact-form { display: flex; flex-direction: column; gap: 3vh; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; }
.form-group { display: flex; flex-direction: column; gap: 1.2vh; }
.form-label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form-input {
  background: rgba(245,240,232,.04); border: 1px solid var(--border); border-radius: 3px; padding: 14px 16px;
  font-family: 'DM Sans', sans-serif; font-size: clamp(13px, 1vw, 15px); font-weight: 300; color: var(--cream); outline: none; cursor: none; transition: border-color .3s, background .3s; width: 100%;
}
.form-input::placeholder { color: rgba(245,240,232,.22); }
.form-input:focus { border-color: rgba(29,90,181,.6); background: rgba(245,240,232,.06); }
.form-textarea { resize: none; line-height: 1.6; }
.form-submit {
  display: inline-flex; align-items: center; gap: 12px; font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dark); background: var(--cream); border: none; border-radius: 3px;
  padding: 16px 28px; cursor: none; align-self: flex-start; transition: background .3s, gap .25s, transform .2s;
}
.form-submit svg { width: 13px; stroke: var(--dark); fill: none; stroke-width: 1.5; transition: transform .3s; }
.form-submit:hover { background: #fff; gap: 18px; }
.form-submit:hover svg { transform: translateX(4px); }
.form-submit:active { transform: scale(.98); }
.form-status { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; min-height: 20px; }

.footer-bar { display: flex; align-items: center; justify-content: space-between; padding: 3vh 5vw 4vh; border-top: 1px solid var(--border); }
.footer-copy, .footer-made { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,232,.3); }
.back-top { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; cursor: none; transition: color .25s; }
.back-top:hover { color: var(--cream); }

/* Container da Assinatura */
.footer-signature {
    width: 120px; /* Ajuste a largura conforme preferir */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6; /* Deixa um pouco sutil, como estava o texto */
    transition: opacity 0.3s ease;
}

.footer-signature:hover {
    opacity: 1; /* Acende ao passar o mouse */
}

/* Estilização do SVG interno */
.footer-signature svg {
    width: 100%;
    height: auto;
}

/* Cor da assinatura (conforme o seu estilo original) */
.footer-signature path {
    fill: var(--cream); /* Usa a cor creme do seu tema */
}

/* Ajuste Mobile para garantir que ela não fique apertada */
@media (max-width: 768px) {
    .footer-signature {
        width: 100px;
        margin: 20px 0; /* Espaçamento extra no mobile */
    }
}

/* ═══════════════════ SCROLL REVEAL ═══════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .2s;  }
.d3 { transition-delay: .34s; }
.d4 { transition-delay: .48s; }


/* ══════════════════════════════════════════════════════════
   ESTRUTURA MOBILE (NAVBAR NOVA + OVERLAY ESTILO OUSE)
   ══════════════════════════════════════════════════════════ */

/* Esconde as divs novas do mobile no desktop */
#mobileNav, 
.mobile-menu-overlay {
    display: none;
}

/* =========================================
   MEDIA QUERY: CELULAR (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. BLINDA E ESCONDE O DESKTOP TOTALMENTE */
    #mainNav {
        display: none !important;
    }

    /* 2. MOSTRA E CONFIGURA A NAVBAR DO CELULAR */
    #mobileNav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        justify-content: space-between; /* Hambúrguer na esquerda, Idioma na direita */
        align-items: center;
        padding: 3vh 5vw;
        z-index: 1000;
        background-color: transparent;
        transition: background 0.4s, backdrop-filter 0.4s;
    }

    #mobileNav.scrolled {
        background: rgba(13,13,13,.88);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    /* 3. BOTÃO HAMBÚRGUER */
    .menu-toggle {
        background: none;
        border: none;
        cursor: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--cream);
        transition: all 0.3s ease;
    }

    /* 4. SELETOR DE IDIOMA NO MOBILE */
    /* Aproveita as suas classes, só garantimos um tamanho legível na tela menor */
    .lang-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        opacity: 1; 
        animation: none; 
    }
    
    .lang-btn {
        font-size: 12px; /* Fonte levemente ajustada pro dedo */
    }

    /* 5. MENU FULLSCREEN (ESTILO OUSE COM FONTE CORRIGIDA E REDES SOCIAIS) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: #000000;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-top-bar {
        width: 100%;
        padding: 3vh 5vw;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-close {
        background: none;
        border: none;
        cursor: none;
        padding: 5px;
    }

    .menu-close svg {
        width: 32px;
        height: 32px;
        stroke: var(--cream);
    }

    .menu-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 5vw 10vh 5vw;
        justify-content: center;
    }

    .mobile-nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 3vh;
    }

    /* Aqui está a fonte e espaçamento da Ouse */
    .mobile-nav-links a {
        color: var(--cream);
        font-family: "Helvetica Neue", Arial, sans-serif;
        font-weight: 400;
        font-size: 3.5rem;
        text-decoration: none;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: -2px; /* Letras coladinhas */
        line-height: 1;
        transition: color 0.3s ease;
        cursor: none;
    }

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

    /* ESTILO DAS REDES SOCIAIS ADICIONADO */
    .mobile-socials {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 5vh; 
        margin-bottom: 20px;
    }

    .social-label {
        color: var(--cream);
        font-family: "Helvetica Neue", Arial, sans-serif;
        font-size: 0.85rem;
        text-transform: uppercase;
        font-weight: 500;
    }

    .social-links-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 0;
    }

    .social-links-list a {
        color: var(--cream);
        font-family: "Helvetica Neue", Arial, sans-serif;
        font-size: 0.85rem;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 500;
        transition: opacity 0.3s ease;
        cursor: none;
        letter-spacing: normal;
    }

    .social-links-list a:hover {
        opacity: 0.6;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

.break {
    display: block; /* Isso força o texto dentro do span a começar em uma nova linha */
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: none; /* Mantém o estilo do seu site */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #ffffff;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

/* Efeito de Pulso Sutil */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Ajuste para mobile para não cobrir conteúdos importantes */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* TELA PRETA DE CARREGAMENTO */
#preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999 !important; /* Valor altíssimo */
    transition: opacity 1s ease, visibility 1s ease;
}

#preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.signature-wrapper {
    width: 300px;
    height: auto;
    max-width: 85%;
}

/* ANIMAÇÃO DA ASSINATURA (DESENHO + PREENCHIMENTO) */
#signature-path-draw {
    stroke: #F1E9DA !important; 
    stroke-width: 1.5px !important;
    fill: #F1E9DA !important; /* Cor sólida final */
    fill-opacity: 0; /* Começa invisível */
    
    stroke-dasharray: 20000; 
    stroke-dashoffset: 20000;
    
    /* Animação de 5 segundos */
    animation: draw-and-fill-final 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes draw-and-fill-final {
    0% {
        stroke-dashoffset: 20000;
        fill-opacity: 0;
    }
    70% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        fill-opacity: 1; /* Preenche a tinta */
    }
}

/* REMOVE CURSOR NO MOBILE */
@media (max-width: 1024px) {
  .cursor, .cursor-ring {
    display: none !important;
  }
  body { cursor: auto !important; }
}

/* ═══════════════════ CURSOR (AJUSTE MOBILE) ═══════════════════ */

/* Esconde o cursor em dispositivos com toque ou ecrãs menores que 1024px */
@media (max-width: 1024px) {
  .cursor, 
  .cursor-ring {
    display: none !important;
  }
  
  /* Devolve o cursor padrão do sistema para o mobile, caso necessário */
  body {
    cursor: auto !important;
  }
}