:root {
    --bg-color: #0b0b0b;
    --text-color: #ffffff;
    --accent: #E50914;
    /* Example accent */
}

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

html {
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Hidden until preloader finishes */
}

/* =========================================
   LANGUAGE SWITCHER DROPDOWN
   ========================================= */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 50px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
}

.lang-current {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
    min-width: 70px;
    z-index: 10002;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(253, 109, 20, 0.5);
    box-shadow: 0 0 20px rgba(253, 109, 20, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px;
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transform-origin: top right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.language-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    background: none;
    border: none;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-option.active {
    color: #fd6d14;
    background: rgba(253, 109, 20, 0.1);
}

@media (max-width: 768px) {
    .language-switcher {
        top: 20px;
        right: 20px;
    }

    .lang-current {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* =========================================
   TACTILE PRELOADER
   ========================================= */

.tactile-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100%;
    background-color: #0b0b0b;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.paper-texture {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.logo-assembly {
    position: relative;
    width: clamp(280px, 40vw, 400px);
    height: clamp(280px, 40vw, 400px);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4)) drop-shadow(0px 2px 4px rgba(253, 109, 20, 0.2));
}

.logo-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.logo-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform, opacity;
}

.stamp-overlay {
    position: absolute;
    inset: -20px;
    background-image: none;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

@keyframes texture-shimmer {
    0% {
        transform: scale(1) translate(0, 0);
    }

    25% {
        transform: scale(1.02) translate(1px, -1px);
    }

    50% {
        transform: scale(1) translate(-1px, 1px);
    }

    75% {
        transform: scale(1.01) translate(1px, 1px);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}


/* =========================================
   PARALLAX HERO
   ========================================= */
.hero-parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.layer {
    position: absolute;
    top: -25%;
    /* Aumentado para acomodar os 200px de deslocamento sem mostrar a borda */
    left: -10%;
    width: 120%;
    height: 150%;
    /* Altura ajustada para manter a proporÃ§Ã£o */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0); /* Força aceleração de hardware */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
}

/* Ajuste solicitado: 70px para esquerda e 35px para baixo */
.desktop-layers .layer-4 {
    left: calc(-10% - 70px);
    top: calc(-25% + 35px);
}

/* MantÃ©m a 'folga' maior apenas no mobile para evitar o bug da barra de endereÃ§os */
@media (max-width: 768px) {
    .layer {
        top: -45%;
        height: 190%;
        background-size: cover; /* Volta a preencher a tela toda */
        width: 110%; /* Reduzi de 120% para 110% para diminuir o corte lateral */
        left: -5%; /* Centraliza com o novo width */
    }

    /* Jogador pequeno: mais para esquerda e para cima + opacidade 20% + deslocamento 20px esquerda */
    .mobile-layers .layer-5 {
        background-position: 15% 35%;
        opacity: 0.4 !important;
        /* !important necessÃ¡rio para sobrepor a animaÃ§Ã£o de entrada do GSAP */
        left: calc(-10% - 20px);
        width: calc(120% + 200px);
        /* Aumentando um pouco mais a largura para seguranÃ§a conforme as outras layers */
    }

    /* Olhos do rosto grande: desloca mais para baixo */
    .mobile-layers .layer-2,
    .mobile-layers .layer-3,
    .mobile-layers .layer-4 {
        background-position: center 55%;
    }

    /* Ajuste solicitado: 100px para esquerda e 40px para cima */
    .mobile-layers .layer-4 {
        left: calc(-10% - 100px);
        top: calc(-45% - 40px);
        width: calc(120% + 100px);
    }

    /* Ajuste solicitado: 50px para baixo */
    .mobile-layers .layer-3 {
        top: calc(-45% + 50px);
    }
}

/* Mobile vs Desktop switching */
.desktop-layers {
    display: block;
}

.mobile-layers {
    display: none;
}

@media (max-width: 768px) {
    .desktop-layers {
        display: none;
    }

    .mobile-layers {
        display: block;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease 0.5s, transform 1.5s ease 0.5s;
}

.hero-logo {
    width: 140px;
    height: auto;
    margin-bottom: 25px;
    /* Sombra otimizada para evitar bug de "caixa" no iOS */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    -webkit-filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 10px;
    line-height: 1.05;
}

.text-white {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.text-orange {
    color: #fd6d14;
    text-shadow: 0 0 40px rgba(253, 109, 20, 0.6), 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    color: #d1d1d1;
    margin-top: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: #fd6d14;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 45px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff8233;
    transform: translateY(-3px);
}

.btn-primary .arrow {
    margin-left: 10px;
    font-weight: 900;
}

@media (max-width: 768px) {
    .hero-logo {
        width: 100px;
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-primary {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: -15vh;
    /* Push down relative to content */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    min-height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    /* Sobrepor o background parallax se ele fosse fixed, mas aqui estÃ¡ fluxo normal */
    padding: 15vh 5%;
}

.about-container {
    max-width: 1200px;
    width: 100%;
}

.about-container h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.reveal-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: #444444;
    /* Initial grey color */
    max-width: 900px;
}

.word {
    display: inline-block;
    color: #333333;
    /* Default grey, GSAP vai animar isso */
}

/* =========================================
   GENERIC UTILS & ANIMATION CLASSES
   ========================================= */
.text-center {
    text-align: center;
}

.px-5 {
    padding-left: 5%;
    padding-right: 5%;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

/* =========================================
   1. STATS SECTION
   ========================================= */
.stats-section {
    background-color: #050505;
    padding: 10vh 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.stat-item {
    position: relative;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    overflow: hidden;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(253, 109, 20, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(253, 109, 20, 0.05);
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 5.5rem;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    letter-spacing: -2px;
    will-change: transform, text-shadow;
    transition: text-shadow 0.4s ease;
}

.stat-item.is-counting .stat-number {
    text-shadow: 0 0 30px rgba(253, 109, 20, 0.5);
    color: #fff;
}

.stat-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
}

.stat-line {
    width: 0; /* Anima via GSAP */
    height: 3px;
    background: linear-gradient(90deg, #fd6d14, #ff8c42, #fd6d14);
    background-size: 200% 100%;
    margin-top: 30px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(253, 109, 20, 0.3);
    animation: gradientFlow 3s linear infinite;
}

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

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(253, 109, 20, 0.08) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-item:hover::before {
    opacity: 1;
}

/* =========================================
   2. PORTFOLIO GALLERY
   ========================================= */
.portfolio-section {
    padding-top: 10vh;
    padding-bottom: 10vh;
    background-color: #0b0b0b; /* Unificando cor para evitar gaps */
    border: none !important;
    outline: none !important;
    position: relative;
    z-index: 4;
    overflow: hidden; /* Evita vazar qualquer brilho laranja interno */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5 !important;
    background-color: #111;
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

/* Logic for Large (8cols) and Small (4cols) */
.work-large {
    grid-column: span 8 !important;
    grid-row: span 2 !important;
    aspect-ratio: auto !important; 
    /* No desktop, a grande ocupa 2 linhas para manter o 4:5 relativo Ã s pequenas */
}

.work-small {
    grid-column: span 4 !important;
    aspect-ratio: 4/5 !important;
}

.portfolio-item img,
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s cubic-bezier(0.2, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-item:hover img,
.work-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .portfolio-item,
    .work-item,
    .work-large,
    .work-small {
        grid-column: span 12 !important;
        grid-row: auto !important;
        aspect-ratio: 4/5 !important;
    }
    
    .portfolio-grid,
    .works-grid {
        gap: 15px;
    }

    /* Ajuste SessÃ£o 4: Remover grayscale e hover no mobile */
    .portfolio-item img {
        filter: grayscale(0%) !important;
        transform: none !important;
    }

    .portfolio-item:hover img {
        transform: none !important;
    }

    .portfolio-overlay {
        opacity: 0 !important;
    }
}

/* =========================================
   3. PROCESS SLIDER 
   ========================================= */
.process-section {
    background-color: #0b0b0b;
    padding: 15vh 5%;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    position: relative;
    z-index: 5;
    margin-top: -2px; /* Sobrepõe levemente a seção anterior para esconder gaps no Android */
    padding-top: calc(15vh + 2px); /* Compensa o margin-top negativo */
}

.process-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.before-after-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.image-after,
.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-before {
    width: 50%;
    /* Controlado pelo range */
    border-right: 2px solid white;
    z-index: 2;
    overflow: hidden;
}

.image-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-before img {
    width: 1000px;
    /* Deve ser do tamanho do container ou usar object-fit */
    height: 100%;
    object-fit: cover;
    object-position: left;
    max-width: none;
}

/* Responsive image size inside slider container */
.image-before>img,
.image-after>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.label {
    position: absolute;
    top: 20px;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.label-left {
    left: 20px;
}

.label-right {
    right: 20px;
    z-index: 10;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    z-index: 5;
    margin: 0;
    cursor: ew-resize;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    border: none; /* Remove bordas do input */
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 80px; /* Aumentado para 80px para facilitar ainda mais o toque */
    height: 600px; /* Altura grande para detecção de arraste no Safari */
    background: rgba(255, 255, 255, 0.01); /* Quase invisível, mas "físico" para o toque */
    cursor: ew-resize;
    border: none;
    outline: none;
    box-shadow: none;
    margin-top: 0;
}

.slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
}

.slider::-moz-range-thumb {
    width: 60px;
    height: 100%;
    background: transparent;
    cursor: ew-resize;
    border: none;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    /* Controlado pelo JS */
    width: 2px;
    height: 100%;
    background-color: white;
    z-index: 4;
    pointer-events: none;
    transform: translateX(-50%);
}

.slider-handle .arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: #fd6d14;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 0 20px rgba(253, 109, 20, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}



/* Estado inicial para animaÃ§Ã£o de entrada (usado no portfÃ³lio) */
.reveal-item {
    opacity: 0;
    transform: translateY(60px);
    will-change: transform, opacity;
}

/* =========================================
   6. DOBRA 6: STICKY MONTAGE REVEAL
   ========================================= */

/* Container: 100vh de "reveal" + 100vh Ã— 8 transiÃ§Ãµes + 100vh buffer para Dobra 7 cobrir */
.dobra6-reveal-container {
    position: relative;
    height: 1000vh; /* 100vh reveal + 800vh montagem + 100vh saÃ­da */
    z-index: 1;
    overflow: visible;
    margin-top: -100vh; /* Fica atrÃ¡s da seÃ§Ã£o anterior para o reveal */
}

.dobra6-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

/* Container das imagens empilhadas */
.dobra6-frames {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cada frame empilhada */
.dobra6-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Primeira imagem visÃ­vel por padrÃ£o */
.dobra6-frame:first-child {
    opacity: 1;
}

/* Desktop/Mobile toggle (mesmo padrÃ£o do hero) */
.dobra6-frames.desktop-frames { display: block; }
.dobra6-frames.mobile-frames { display: none; }

@media (max-width: 768px) {
    .dobra6-frames.desktop-frames { display: none; }
    .dobra6-frames.mobile-frames { display: block; }

    .dobra6-frame {
        object-fit: cover; /* Volta a preencher a tela toda */
        background-color: #000;
    }
}

/* Ajuste nas dobras adjacentes para garantir a sobreposiÃ§Ã£o */
.process-section {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color); /* Garante que esconde a dobra 6 antes do scroll */
}

/* =========================================
   7. DOBRA 7: GALLERY SECTION
   ========================================= */
.dobra7-gallery {
    position: relative;
    padding: 10vh 5%;
    background-color: var(--bg-color);
    z-index: 10;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.dobra7-gallery h2 {
    margin-bottom: 50px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 2px;
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    /* Desktop: 4 colunas */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #111;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08); /* Pequeno zoom solicitado */
}

/* =========================================
   LIGHTBOX STYLES
   ========================================= */
.lightbox {
    display: flex; /* Mantido flex para estrutura, mas invisÃ­vel */
    visibility: hidden;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    will-change: opacity, visibility;
    transition: none; /* Deixar GSAP controlar */
}

.lightbox.open {
    /* GSAP vai lidar com isso, mas mantemos o fallback simples aqui se necessÃ¡rio */
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 75vh;
    aspect-ratio: 4/5;
    object-fit: cover; /* Garante que preencha os 4:5 solicitado mesmo se a original for diferente */
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 100001;
}

.lightbox-close:hover {
    color: #fd6d14;
}

/* Responsividade da Galeria */
@media (max-width: 992px) {
    .gallery-grid {
        /* Mobile: 3 colunas */
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* =========================================
   8. CTA & FOOTER
   ========================================= */
/* =========================================
   6. CTA SECTION (DOBRA 8)
   ========================================= */
.cta-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin-top: 15vh; /* Espaço preto entre a galeria e a imagem */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 15vh 0 5vh;
}

.cta-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.6;
}

/* Camada de suavização superior e inferior */
.cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, 
        var(--bg-color) 0%, 
        rgba(11, 11, 11, 0) 15%, 
        rgba(11, 11, 11, 0) 85%, 
        var(--bg-color) 100%);
}

/* Efeito extra de "desfoque" na margem superior solicitado */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 5%;
    margin-bottom: 8vh; /* Espaço entre o botão e o rodapé */
}

.cta-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.cta-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cta-btn {
    font-size: 1.2rem;
    padding: 20px 50px;
    box-shadow: 0 10px 30px rgba(253, 109, 20, 0.3);
}

/* =========================================
   FOOTER PREMIUM (OVERLAY)
   ========================================= */
.site-footer {
    width: 100%;
    position: relative;
    z-index: 20;
    padding: 0 5% 0;
}

.footer-glass-box {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-social-link:hover {
    opacity: 1;
    color: #fd6d14;
    transform: translateY(-2px);
}

.instagram-icon {
    width: 24px;
    height: 24px;
}

.footer-brand-logo {
    width: clamp(80px, 10vw, 120px);
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-glass-box:hover .footer-brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsividade Mobile do RodapÃ© */
@media (max-width: 768px) {
    .cta-section {
        min-height: 90vh;
        margin-top: 10vh;
    }

    .cta-content h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    .footer-glass-box {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-brand-logo {
        width: 100px;
    }
}
