/* Reset Básico e Variáveis de Cor */
:root {
    --primary-red: #E50914;
    --dark-bg: #0A0A0A;
    --text-light: #F5F5F5;
    --text-dark: #A0A0A0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Previne scroll horizontal */
}

/* Animações Gerais */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.loaded #preloader {
    opacity: 0;
    pointer-events: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.7s ease-out;
}

.brand-loader-img {
    width: 250px;
    animation: pulse-loader 1.5s infinite ease-in-out;
}

@keyframes pulse-loader {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Container Principal e Fundo */
.hero-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.95) 80%);
    z-index: 2;
}

#background-gallery {
    position: fixed;
    top: -10vh;
    left: -10vw;
    width: 120vw;
    height: 120vh;
    display: flex;
    gap: 2vw;
    z-index: 1;
    transform: rotate(-25deg) scale(1.1);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.column {
    width: 33.33%;
    height: 150%;
    animation: vertical-scroll 60s linear infinite;
}

.column:nth-child(2) {
    animation-duration: 80s;
}

.column:nth-child(3) {
    animation-duration: 50s;
    animation-direction: reverse;
}

.column img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2vw;
    filter: blur(2px) grayscale(0.6);
    opacity: 0.35;
}

@keyframes vertical-scroll {
    from {
        transform: translateY(-30%);
    }

    to {
        transform: translateY(0%);
    }
}

/* Header Principal (com o logo REDFLIX) */
.main-header {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.logo-redflix {
    width: 300px;
    height: auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.5));
}

/* Conteúdo Central */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding-top: 150px;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: content-fade-in 1s ease-out 1.2s forwards;
}

@keyframes content-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    word-break: keep-all;
}

.main-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: reveal-char 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes reveal-char {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-title .highlight {
    color: var(--primary-red);
    text-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
    white-space: nowrap;
    display: inline-block;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
    animation-delay: 1.5s;
}

.features {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0;
}

.features li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.features li:nth-child(1) {
    animation-delay: 1.7s;
}

.features li:nth-child(2) {
    animation-delay: 1.9s;
}

.features li:nth-child(3) {
    animation-delay: 2.1s;
}

.features i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Botão Aurora */
.telegram-button {
    --aurora-speed: 2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 2.3s forwards;
    /* Remove a margem inferior daqui, pois será controlada pelo .cta-section */
    margin-bottom: 0;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: conic-gradient(transparent,
            var(--primary-red),
            transparent 30%);
    transform: translate(-50%, -50%);
    animation: rotate var(--aurora-speed) linear infinite;
    opacity: 0.6;
}

.telegram-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.5);
}

.telegram-button i {
    font-size: 1.5rem;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Estilos para a Seção de Call to Action (Botão + OU + QR Code) */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    /* Espaço entre os elementos */
    margin-top: 2.5rem;
    /* Margem superior para separar das features */
    animation-delay: 2.3s;
    /* Mesma animação e atraso do botão */
    opacity: 0;
    /* Para a animação de entrada */
    animation: fadeIn 0.8s ease-out 2.3s forwards;
}

.cta-divider {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.7;
    white-space: nowrap;
    /* Garante que "OU" não quebre */
}

/* Estilos do QR Code */
.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Remover a animação fadeIn daqui pois será controlada pelo .cta-section */
    /* opacity: 0; */
    /* animation: fadeIn 0.8s ease-out 2.5s forwards; */
    /* margin-top: 2rem; */
}

.qrcode-img {
    width: 110px;
    /* Tamanho menor para o QR Code */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    /* Sombra mais suave */
}

.qrcode-text {
    font-size: 0.85rem;
    color: var(--text-dark);
}


/* ================================================== */
/* RESPONSIVIDADE PARA CELULARES                      */
/* ================================================== */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #background-gallery {
        transform: rotate(0deg) scale(1.5);
        gap: 4vw;
        filter: blur(4px);
    }

    .column:nth-child(3) {
        display: none;
    }

    .column {
        width: 50%;
    }

    .main-header {
        top: 25px;
    }

    .logo-redflix {
        width: clamp(180px, 50vw, 220px);
    }

    .hero-content {
        padding-top: 120px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 50px;
    }

    .main-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .features {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
        display: inline-block;
        text-align: left;
        margin-bottom: 2.5rem;
    }

    .features li {
        font-size: 1rem;
    }

    /* CTA Section em mobile: empilha verticalmente */
    .cta-section {
        flex-direction: column;
        gap: 20px;
        /* Espaço vertical em mobile */
        margin-top: 2rem;
    }

    .telegram-button {
        padding: 0.9rem 2.2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
        /* Limita a largura do botão em mobile */
        margin-bottom: 0;
        /* A margem é controlada pelo gap do .cta-section */
    }

    .telegram-button i {
        font-size: 1.4rem;
    }

    .cta-divider {
        margin: 10px 0;
        /* Espaço para o "OU" em mobile */
    }

    .qrcode-img {
        width: 100px;
        /* QR Code menor em mobile */
    }

    .qrcode-text {
        font-size: 0.8rem;
    }
}