body {
    line-height: normal;
    margin: 0;
    padding: 0;
}

/* Esta classe agora controla todas as páginas desse estilo */
.project-page {
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 70px 2% !important;
    text-align: center;
    width: 100%;
    background: transparent !important;
}

/* Título da Página (Ex: Advertising, VFX, Cinematic) */
.page-title {
    font-family: 'IM Fell English SC', serif;
    font-size: 30px;
    letter-spacing: 4px;
    margin: 1px 0 40px;
    color: white;
    text-transform: lowercase;
    font-weight: 400;

}

/* ==========================================================================
   LAYOUT DE VÍDEOS
   ========================================================================== */

.main-video {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 100px !important;
    cursor: pointer;
    display: block;
}

.video-preview-container {
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
}

.main-video-fixed {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Ícone de Play Central */
.play-icon-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('/_image/icons/play_icon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    /* border: 1px solid white; */
    /* Moldura branca do seu layout */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*content*/

a{
    color:oklch(78.59% 0.082 94.39);
    text-decoration: none;
}

/* No seu arquivo tarsila.css */



.content-block {
    width: 100vw;           /* Força a largura total da janela */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;     /* Centraliza o bloco de largura total */
    margin-right: -50vw;    
    background-color: rgba(55, 70, 67, 0.4);
    padding: 60px 15%;      /* O 15% mantém o texto centralizado e legível */
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: justify;
    text-justify: inter-word;
    box-sizing: border-box; /* Importante para o padding não quebrar a largura */
}

h3 {
    font-family: 'IM Fell English SC', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    padding-bottom: 10px;
    margin-top: -10px;
    text-transform: lowercase;
    
}

p {
    font-family: 'gentium book basic', serif;
    font-size: 20px;
}

.caption {
    font-size: 1rem;
    text-align: center;
    opacity: 0.6;
    margin-top: 10px;
}



/* ==========================================================================
   3. CARROSSEL DE NAVEGAÇÃO (TRACK)
   ========================================================================== */
/* Centraliza o container principal de cada secção */
.carousel-main,
.carousel-window {
    position: relative;
    max-width: 1000px;
    /* Ou a largura que desejar */
    margin: 0 auto;
    /* O segredo para centralizar o bloco na página */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Garante que o container das setas permita o posicionamento absoluto correto */
.carousel-window,
.carousel-main {
    position: relative;
}

.comparison-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5rem;
    transition: background 0.3s;
}

/* Estilo unificado para todas as setas de navegação */
.nav-btn,
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Centraliza verticalmente */
    z-index: 25;
    /* Fica acima de todas as imagens e do slider */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: oklch(0.45 0.05 160);
}

/* SEPARAÇÃO DOS BOTÕES */
.prev {
    left: 0 !important;
    /* Fixa na borda esquerda */
}

.next {
    right: 0 !important;
    /* Fixa na borda direita */
}

.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.slides img {
    min-width: 100%; /* Garante que cada imagem ocupe o carrossel inteiro */
    display: block;
}

/* ==========================================================================
   4. IMAGE COMPARISON SLIDER (BEFORE/AFTER)
   ========================================================================== */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
    --position: 50%;
    /* Controlado via JS */
}

/* Linha Divisória Branca */
.comparison-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: var(--position);
    width: 3px;
    height: 100%;
    background: white;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

.img-before,
.img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
}

.img-before {
    z-index: 1;
}

.img-after {
    z-index: 2;
    /* CORREÇÃO CRÍTICA: Inset para revelar a imagem sem esticar */
    clip-path: inset(0 0 0 var(--position));
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 4;
    cursor: ew-resize;
    margin: 0;
}

/* Thumb invisível para o clique do slider */
.slider-handle::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 100vh;
}

footer {
    position: relative !important;
    margin-top: 50px;
}

/* ==========================================================================
   iICONES DOS SOFTWARES

   ========================================================================== */

.software-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    
    
}

.icon-wrapper {
    position: relative; /* Base para o balão */
    display: inline-block;
}

.icon-wrapper img {
    height: 35px;
    width: auto;
    display: block;
    transition: transform 0.2s;
    cursor: pointer;
}

.icon-wrapper:hover img {
    transform: scale(1.1);
}

/* O BALÃO (TOOLTIP) */
.icon-wrapper::after {
    content: attr(data-title);
    position: absolute;
    top: 130%; /* Aparece embaixo */
    left: 50%;
    transform: translateX(-50%);
    
    background-color: rgba(26, 26, 26, 0.9);
    color: #fff;
    padding: 6px 12px;
    font-size: 17px;
    white-space: nowrap;
    border-radius: 8px; /* Arredondado */
    border: none; /* Sem borda */
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 100;
        font-family: 'Gentium Book Basic', serif !important;

}

/* MOSTRAR NO HOVER */
.icon-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
}


/* Seleciona os containers dos ícones no rodapé */
.software-icons-footer .icon-wrapper {
    margin: 40px 9px !important; /* Adiciona 15px de espaço na esquerda e na direita */
}

/* Garante que o container flex não tente esmagar os itens */
.software-icons-footer {
    gap: 0 !important; /* Zera o gap para não somar com a margem */
    display: flex !important;
    justify-content: center !important;
}

.sobre-imagem {
    flex: 1;
    max-width: 380px;
    border-radius: 10px !important; /* Arredonda os 4 cantos */
    overflow: hidden !important;    /* FORÇA o corte nos cantos de cima */
    line-height: 0; 
    position: relative; 
    display: block;
}

/* 2. A imagem dentro dele */
.sobre-imagem img {
    width: 100%;
    height: auto; 
    display: block;
    object-fit: cover;
    /* Resetamos qualquer regra anterior que possa estar esticando a imagem */
    border-radius: 10px !important; 
}

.sobre-texto {
    flex: 2; /* O texto ocupa o dobro do espaço da imagem */
    color: #cecece;
    text-align: justify;    
    text-justify: inter-word;
}

.sobre-texto h2 {
    font-family: 'IM Fell English SC', serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    text-justify: inter-word;
}

.sobre-container {
    display: flex;
    align-items: flex-start; /* Alinha o texto pelo topo da imagem */
    gap: 40px; /* Espaço entre a imagem e o texto */
    text-align: left; /* Garante que o texto fique à esquerda como na imagem */
}





@media (max-width: 768px) {
    /* 1. Ajuste do container principal */
    .project-page {
        padding: 20px 5% !important;
        width: 100% !important;
    }

    /* 2. Carrossel Principal (Imagens do topo) */
    .carousel-main {
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9; /* Mantém a proporção no celular */
    }

    /* 3. Sliders de Comparação (Antes/Depois) */
    .comparison-slider {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9; /* Essencial para as imagens não achatarem */
        margin: 20px 0 !important;
    }

    /* 4. Ajuste dos Textos (Otimização para leitura) */
    .tech-info-box {
        padding: 0 !important;
        width: 100% !important;
    }

    .tech-info-box p {
        font-size: 15px !important; /* Aumenta levemente para leitura no celular */
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        line-height: 1.6;
    }

    /* 5. Títulos e Subtítulos */
    .page-title {
        font-size: 18px !important;
        letter-spacing: 2px !important;
        margin-bottom: 25px !important;
    }

    h2 {
        font-size: 14px !important;
        margin-top: 40px !important;
        text-justify: inter-word;
    }

    /* 6. Ícones de Software (Nesta página a classe é .software-icons) */
    .software-icons {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .icon-wrapper img {
        height: 30px !important; /* Ícones um pouco menores no mobile */
    }

    /* 7. Esconder setas de navegação muito grandes ou ajustar */
    .prev-main, .next-main, .prev-comp, .next-comp {
        padding: 10px !important;
        font-size: 14px !important;
    }


    .sobre-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important; /* Centraliza a foto e o texto */
        text-align: center !important;  /* Centraliza o texto para melhor leitura no celular */
        gap: 20px !important;
    }

    .sobre-imagem {
        width: 100% !important;
        max-width: 220px !important; /* Limita o tamanho da foto no celular para não ficar gigante */
        margin: 0 auto 10px !important;
    }

    .sobre-texto {
        width: 100% !important;
        padding: 0 10px !important;
    }

    /* Esconde as setas dos dois carrosséis */
    .carousel-main .nav-btn,
    .comparison-carousel .nav-btn {
        display: none !important;
    }

    /* Permite o scroll suave no carrossel de fotos principal */
    .carousel-main .slides {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-main .slides img {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: 100%;
    }

    .comparison-slide .caption {
        pointer-events: none; 
    }

    /* Aumenta um pouco o espaçamento para o dedo ter onde "pegar" */
    .comparison-slider {
        margin-bottom: 15px;
    }
    
    /* Faz o input ocupar apenas a parte central se necessário */
    .slider-handle {
        width: 90%;
        margin: 0 auto;
    }
}