/* banner.css - Suporte para Vídeo ou Imagem */

.banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
    /* Fundo preto fallback */
}

/* Estilo para vídeo */
.banner-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Estilo para imagem (caso use foto) */
.banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay mantido igual */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(59, 7, 7, 0.6) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(68, 8, 8, 0.6) 100%);
    z-index: 0;
}

.banner-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    position: relative;
}

.banner-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(218, 214, 214, 0.329);
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.glitch {
    position: relative;
    color: #ffffff;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(58px, 9999px, 14px, 0);
    }

    40% {
        clip: rect(11px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(82px, 9999px, 35px, 0);
    }

    80% {
        clip: rect(43px, 9999px, 91px, 0);
    }

    100% {
        clip: rect(65px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 99px, 0);
    }

    20% {
        clip: rect(12px, 9999px, 43px, 0);
    }

    40% {
        clip: rect(78px, 9999px, 11px, 0);
    }

    60% {
        clip: rect(35px, 9999px, 82px, 0);
    }

    80% {
        clip: rect(91px, 9999px, 43px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 65px, 0);
    }
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e50914;
    letter-spacing: 15px;
    margin: 5px 0;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.banner-content p {
    font-size: 1.3rem;
    color: #cccccc;
    margin: 30px 0 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-glow {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 18px 45px;
    background: #ff0c18;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    /* animation: pulse 2s infinite; */
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.btn-glow:hover {
    background: #ff0a16;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    z-index: 2;
}

.scroll-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #e50914;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
        height: 8px;
    }

    50% {
        top: 15px;
        opacity: 0.8;
        height: 12px;
    }

    100% {
        top: 25px;
        opacity: 0;
        height: 6px;
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .banner-content h1 {
        font-size: 4.5rem;
    }

    .banner-content h2 {
        font-size: 2.2rem;
        letter-spacing: 12px;
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 3.5rem;
    }

    .banner-content h2 {
        font-size: 1.8rem;
        letter-spacing: 8px;
    }

    .banner-content p {
        font-size: 1.1rem;
        margin: 20px 0 30px;
    }

    .btn-glow {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .scroll-indicator {
        width: 22px;
        height: 35px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 2.8rem;
    }

    .banner-content h2 {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .btn-glow {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Suporte para altura menor (celular em landscape) */
@media (max-height: 600px) {
    .banner {
        height: 100vh;
        min-height: 500px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .banner-content h2 {
        font-size: 1.3rem;
        letter-spacing: 5px;
        margin: 2px 0;
    }

    .banner-content p {
        margin: 15px 0 20px;
        font-size: 0.95rem;
    }

    .btn-glow {
        padding: 10px 25px;
    }

    .scroll-indicator {
        bottom: 10px;
        width: 20px;
        height: 30px;
    }
}