/* RESET E TIPOGRAFIA */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

/* CONTAINER DIVIDIDO */

.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.side {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

/* Vídeos aparecem SÓ no desktop */
.bg-video.desktop {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: imagens (não usadas agora, mas mantidas por prevenção) */
.mobile {
    display: none;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 3px;
    font-weight: 400;
}

.content p {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.7;
}

/* Hover — efeito dior */
.side:hover {
    flex: 1.3;
}

.side:not(:hover) {
    flex: 0.7;
}

/* Gradiente escurecendo o vídeo */
.side::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.content {
    z-index: 2;
}

/* ========================= */
/*          MOBILE           */
/* ========================= */

@media (max-width: 768px) {

    body {
        overflow-y: scroll;
        height: auto;
    }

    .split-container {
        flex-direction: column;
        height: auto;
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
    }

    .side {
        height: 100vh;
        flex: unset;
        scroll-snap-align: start;
        position: relative;
    }

    .bg-video.desktop {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .content {
        pointer-events: none;
    }

    /* Setinha */
    .scroll-indicator {
        position: absolute;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.35;
        animation: bounce 1.4s infinite ease-in-out;
    }

    .scroll-indicator svg {
        width: 32px;
        height: 32px;
        fill: white;
    }

    @keyframes bounce {
        0%   { transform: translate(-50%, 0); }
        50%  { transform: translate(-50%, 8px); }
        100% { transform: translate(-50%, 0); }
    }
}
