/* Hero Section Component Styles */

/* Estilos base da seção hero */
.hero-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

/* Background padrão */
.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(140deg, #000426 20%, #002594, #000426 80%);
    opacity: 30%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100vh;
    background-image: url('/assets/images/banner_2025/Bg_principal_sem_spotlight.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(12%) contrast(120%) saturate(0%);
    z-index: -2;
    opacity: 90%;
}

/* Variante sem vídeo */
.hero-section[data-variant="no-video"]::after {
    display: block;
}

.hero-section[data-variant="no-video"] .hero-video-container {
    display: none;
}

/* Variante simples (sem spotlight) */
.hero-section[data-variant="simple"] .spotlight {
    display: none;
}

/* Variante centralizada */
.hero-section[data-variant="centered"] .spotlight {
    display: none;
}

.hero-section[data-variant="centered"] .hero-container {
    justify-content: center;
    text-align: center;
}

.hero-section[data-variant="centered"] .hero-text-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
}

/* Container de vídeo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;

    /* Máscara para formato de spotlight */
    -webkit-mask-image: url('/assets/images/mask_spotlight_3.png');
    mask-image: url('/assets/images/mask_spotlight_3.png');
    mask-size: 120vw 140vh;
    mask-position: top;
    mask-repeat: no-repeat;
    mix-blend-mode: screen;
    opacity: 70%;
    /*transition: all ease 500ms;*/
}

/* Esta é a camada de cor azul */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 1. Defina a cor azul que você deseja */
    background-image: linear-gradient(80deg, #00051a, #002747);

    /* 3. Isso garante que a camada não bloqueie cliques no vídeo */
    pointer-events: none;
    opacity: 60%;
    filter: blur(200px);
}

/* Vídeo de fundo */
.hero-container-video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container do conteúdo */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease 1s;
}

.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.carousel-item img {
    object-fit: contain;
}

/* Container de texto animado */
/* Text container styles */
.hero-text-container {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

/* Estilos do texto hero */
.hero-text {
    color: white;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    overflow: visible;
    white-space: normal;
    margin: 0 auto;
    letter-spacing: 0.1em;
    opacity: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: normal;
}


/* Estilos para os holofotes */
.spotlight {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 200px;
    z-index: 5;
}

.spotlight img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spotlight-left {
    left: 0;
}

.spotlight-left img {
    transform: scaleX(-1);
}

.spotlight-right {
    right: 0;
}

/* Controle de exibição dos holofotes via atributos */
.hero-section[data-spotlight-left="false"] .spotlight-left {
    display: none;
}

.hero-section[data-spotlight-right="false"] .spotlight-right {
    display: none;
}

/* Posicionamento do texto */
.hero-section[data-text-position="center"] .hero-text-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
}

.hero-section[data-text-position="top"] .hero-text-container {
    position: absolute;
    top: 15%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsividade */
@media screen and (max-width: 426px) {
    .hero-video-container {
        mask-size: 240vw 115vh;
    }
}

@media screen and (max-width: 767px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .spotlight {
        width: 120px;
        height: 120px;
    }

    .carousel-item img {
        max-width: 60%;
        max-height: 60%;
    }

    .hero-text-container {
        max-width: 90%;
    }
}

@media screen and (min-width: 901px) {
    .hero-video-container{
        mask-size: 120vw 145vh;
    }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .spotlight {
        width: 150px;
        height: 150px;
    }

    .carousel-item img {
        max-width: 70%;
        max-height: 70%;
    }
}

/* Animações personalizáveis via atributos */
.hero-section[data-text-animation="fade"] .hero-text {
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-section[data-text-animation="slide"] .hero-text {
    animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Variação de tamanho para holofotes */
.hero-section[data-spotlight-size="small"] .spotlight {
    width: 150px;
    height: 150px;
}

.hero-section[data-spotlight-size="large"] .spotlight {
    width: 250px;
    height: 250px;
}
