/* ===== RESET & GLOBAL ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #111111;
    overflow: hidden;
}

/* ============================================
   PRELOADER — Line Drawing (Netflix-Style)
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111111;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

/* Logo SVG — tamanho e estado inicial */
.preloader__logo {
    width: 220px;
    height: auto;
}

/* Paths do SVG: começa invisível, desenha o traço, depois preenche */
.preloader__logo path {
    fill: transparent;
    stroke: #988878;
    stroke-width: 1.5;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation:
        drawLine 2.5s ease forwards,
        fillIn 0.8s ease 2.2s forwards;
}

/* Animação 1 — Desenho do traço */
@keyframes drawLine {
    0% {
        stroke-dashoffset: 3000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Animação 2 — Preenchimento suave da cor */
@keyframes fillIn {
    0% {
        fill: transparent;
        stroke-opacity: 1;
    }

    100% {
        fill: #988878;
        stroke-opacity: 0;
    }
}

/* ============================================
   CONTAINER PRINCIPAL — SCROLL SNAP
   ============================================ */
.slides-container {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    /* Ocultar scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* ============================================
   SLIDES
   ============================================ */
.slide {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
}

.slide--first {
    position: relative;
}

/* ============================================
   MÍDIAS
   ============================================ */
.slide img,
.slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SCROLL HINT — Indicador de Navegação
   ============================================ */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: hintFadeIn 1s ease 3.5s forwards;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-hint.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Mouse icon */
.scroll-hint__mouse {
    width: 24px;
    height: 40px;
}

/* Wheel animation */
.scroll-hint__wheel {
    animation: wheelScroll 1.8s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(4px);
        opacity: 0.3;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chevrons */
.scroll-hint__chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-hint__chevrons svg {
    width: 18px;
    height: 10px;
    opacity: 0;
    animation: chevronBounce 1.8s ease-in-out infinite;
}

.scroll-hint__chevrons svg:nth-child(1) {
    animation-delay: 0s;
}

.scroll-hint__chevrons svg:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes chevronBounce {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }

    30% {
        opacity: 1;
        transform: translateY(0);
    }

    60% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(4px);
    }
}

/* Text */
.scroll-hint__text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Fade in after preloader */
@keyframes hintFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}