@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

#meteors-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Behind content but potentially in front of background gradient */
    overflow: hidden;
}

.meteor {
    position: absolute;
    top: -50px;
    width: 2px;
    height: 80px;
    /* Tail length */
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0), rgba(255, 215, 0, 1));
    border-radius: 9999px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
    animation: meteor-fall linear forwards;
    opacity: 0;
}

/* Head of the meteor */
.meteor::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.8);
}

@keyframes meteor-fall {
    0% {
        transform: translateY(-100px) translateX(-100px) rotate(-45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(100vh) rotate(-45deg);
        opacity: 0;
    }
}


:root {
    --primary-blue: #1C5D9E;
    /* Azul aproximado do fundo */
    --accent-blue: #009EE2;
    /* Azul claro dos icones */
    --text-white: #ffffff;
    --gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    background: radial-gradient(circle at center, #2a75c4 0%, #185494 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
    padding-bottom: 150px;
    /* Space for the wave */
}

.container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-placeholder {
    width: 100%;
    max-width: 730px;
    height: auto;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-placeholder img {
    max-width: 100%;
    height: auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    flex-wrap: wrap;
}

.prizes-composition {
    flex: 1;
    min-width: 300px;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.prizes-composition img {
    width: 100%;
    height: auto;
    display: block;
}

.legal-text {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 1rem;
    text-align: center;
    max-width: 100%;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-box svg {
    width: 28px;
    height: 28px;
    color: white;
}

.text-box {
    font-size: 1rem;
    color: white;
}

.text-box strong {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Decorações (Estrelas) */
.decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('assets/star.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    z-index: 1;
    /* Animação de brilho pulsante */
    animation: pulse-glow 3s infinite alternate;
    will-change: transform, filter;
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)) blur(var(--blur-amount, 0px));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) blur(var(--blur-amount, 0px));
    }
}

.star-top-left {
    top: 5%;
    left: -2%;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(-15deg) scale(1.2);
    --blur-amount: 2px;
}

.star-top-right {
    top: 5%;
    right: -2%;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(15deg) scale(1.5);
    --blur-amount: 4px;
}

.star-bottom-left {
    bottom: 10%;
    left: 5%;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(-30deg) scale(0.8);
}

.star-bottom-right {
    bottom: 5%;
    right: 5%;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(45deg) scale(1.1);
}

/* Novas estrelas espalhadas */
.star-scatter-1 {
    top: 20%;
    left: 20%;
    width: 60px;
    height: 60px;
    opacity: 0.6;
    animation-delay: 0.5s;
}

.star-scatter-2 {
    top: 15%;
    right: 15%;
    width: 40px;
    height: 40px;
    opacity: 0.5;
    animation-delay: 1s;
}

.star-scatter-3 {
    bottom: 30%;
    left: 40%;
    width: 80px;
    height: 80px;
    opacity: 0.4;
    animation-delay: 1.5s;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: #E9B80C !important;
    /* Cor da próxima seção */
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .benefits-list {
        width: 100%;
        max-width: 400px;
    }

    .hero {
        padding-bottom: 100px;
    }

    .wave-divider svg {
        height: 60px;
    }

    .decoration {
        z-index: 20;
        pointer-events: none;
    }

    .star-bottom-left,
    .star-scatter-1,
    .star-scatter-2,
    .star-scatter-3 {
        display: none;
    }

    .star-top-left {
        top: -5%;
        left: -15%;
        transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) scale(0.7) rotate(-15deg);
    }

    .star-top-right {
        top: -5%;
        right: -15%;
        transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) scale(0.7) rotate(15deg);
    }

    .star-bottom-right {
        bottom: 12%;
        right: -10%;
        transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) scale(0.7) rotate(45deg);
    }
}

/* * CSS MODULAR E ISOLADO */

:root {
    --w-primary-blue: #3C5791;
    --w-gradient-start: #FFBF2A;
    --w-gradient-end: #AB7800;
    --w-placeholder-gray: #D9D9D9;
    --w-white: #FFFFFF;
    --w-shadow: 0px 14px 24px rgba(0, 0, 0, 0.15);

    /* --- VARIÁVEIS DE CONFIGURAÇÃO (Desktop/Padrão) --- */
    /* Definindo tamanhos fixos aqui para o cálculo da animação ser exato */
    --w-card-width: 280px;
    --w-gap: 24px;
    --w-total-items-in-set: 8;
    /* Quantidade de cards originais */
}

/* --- INICIO DO COMPONENTE --- */

.winners-section {
    width: 100%;
    max-width: 100%;
    /* Changed to full width */
    min-height: 670px;

    background: #E9B80C;

    border-radius: 0;
    /* Removed border radius */
    padding: 30px 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
    /* Removed margin */
}

.winners-section::before,
.winners-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.winners-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    text-align: center;

    /* SHINE TEXT EFFECT */
    background: linear-gradient(to right,
            #1C5D9E 20%,
            #3F94FF 30%,
            #65a8ff 40%,
            #1C5D9E 50%);
    background-size: 200% auto;
    color: #1C5D9E;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 4.5s linear infinite;

    margin-bottom: 0px;
    letter-spacing: -0.02em;
    padding: 0 20px;
    z-index: 10;
}

.winners-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #1C5D9E;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
    z-index: 10;
}

@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

.carousel-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Trilha que se move */
.carousel-track {
    display: flex;
    gap: var(--w-gap);
    width: max-content;

    /* Animação Contínua */
    animation: scroll-loop 30s linear infinite;
    /* Força o uso da GPU para evitar tremedeiras */
    will-change: transform;
}

/* LÓGICA MATEMÁTICA PERFEITA PARA O LOOP:
   Movemos exatamente a largura de UM conjunto de cards (Cards + Gaps).
   Ao chegar no final, o frame 0% é idêntico ao frame 100%, criando a ilusão.
   
   Distância = (Largura Card + Gap) * Quantidade de Itens
*/
@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * (var(--w-card-width) + var(--w-gap)) * var(--w-total-items-in-set)));
    }
}

/* Card Individual */
.winner-card {
    background: transparent;
    width: var(--w-card-width);
    height: 400px;
    /* Updated height */
    border-radius: 30px;
    /* Updated radius */
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;

    /* REVEAL ANIMATION STATE (Initial) */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms ease, transform 400ms ease, box-shadow 0.4s ease;
    overflow: hidden;
    /* for hover shine */
}

/* SHINE EFFECT ON CARD HOVER */
.winner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: 0s;
    /* Reset immediately */
    pointer-events: none;
    z-index: 10;
}

.winner-card:hover::before {
    left: 200%;
    transition: 1.2s;
}

/* Acessibilidade: Desativar animação se preferir movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .winner-card {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

/* Estado Final (Entrou na tela) */
.winner-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.winner-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
    /* White/Blue glow */
}

.winner-card:hover .card-footer {
    background-color: #334c80;
    transition: background-color 0.3s;
}

.card-image-area {
    flex: 1;
    background-color: #D9D9D9;
    /* Placeholder gray from example */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 14px 20px 19.4px rgba(0, 0, 0, 0.15);
    /* Shadow from example */
    z-index: 1;
    overflow: hidden;
}

.card-image-placeholder-text {
    color: var(--w-white);
    font-weight: 600;
    font-size: 1.25rem;
    opacity: 0.8;
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* From example */
    display: block;
    padding: 0;
}

.card-footer {
    background-color: var(--w-primary-blue);
    min-height: 70px;
    /* Reduced height as requested */
    padding: 10px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0px 6px 12.8px rgba(0, 0, 0, 0.15);
    /* Shadow from example */
    z-index: 2;
}

.card-name {
    font-family: 'Poppins', sans-serif;
    /* From example */
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--w-white);
    margin: 0;
}

/* Footer Styles */
.main-footer {
    background-color: #E9B80C;
    /* Same as winners section */
    color: var(--w-primary-blue);
    padding: 20px 0 40px;
    text-align: center;
    font-weight: 600;
    display: flex;
    justify-content: center;
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 1024px) {
    .winners-section {
        padding: 20px 0;
        height: auto;
        min-height: auto;
        border-radius: 0;
        /* Removed border radius */
        width: 100%;
        /* Changed to full width */
        margin: 0;
        /* Removed margin */
    }

    .winners-title {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .carousel-track {
        animation-duration: 25s;
    }
}

/* MOBILE ADJUSTMENTS - TUDO MENOR AQUI */
@media (max-width: 768px) {
    :root {
        /* Redefine as variáveis para o cálculo da animação no mobile */
        --w-card-width: 180px;
        --w-gap: 16px;
    }

    .winners-section {
        border-radius: 0;
        /* Removed border radius */
        min-height: 400px;
        width: 100%;
        /* Changed to full width */
        margin: 0;
        /* Removed margin */
    }

    .winners-title {
        font-size: 1.75rem;
        margin-bottom: 5px;
    }

    .winners-subtitle {
        font-size: 0.8rem;
        margin-bottom: 24px;
    }

    .winner-card {
        /* Altura fixa, largura vem da variável */
        height: 250px;
        border-radius: 16px;
    }

    .card-footer {
        height: 60px;
        padding: 4px 8px;
    }

    .card-name {
        font-size: 0.85rem;
    }

    .card-image-placeholder-text {
        font-size: 1rem;
    }

    .carousel-track {
        animation-duration: 20s;
    }
}

/* CTA Button Styles (New) */
.cta-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 20;
    position: relative;
    gap: 20px;
    /* Space between buttons */
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
}

.CartBtn {
    width: 240px;
    height: 56px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #FFD700 0%, #FBB91F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(251, 185, 31, 0.5),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.CartBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.CartBtn:hover::before {
    left: 100%;
}

.CartBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -5px rgba(251, 185, 31, 0.6),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.CartBtn:active {
    transform: translateY(2px) scale(0.98);
}

.IconContainer {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
}

.IconContainer svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.CartBtn .text {
    width: auto;
    height: auto;
    color: #1C5D9E;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: none;
    margin: 0;
}

/* Secondary Button Variant */
.CartBtn.secondary {
    background: #FFFFFF;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.CartBtn.secondary:hover {
    background: #F8F9FA;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3);
}

.CartBtn.secondary .text {
    color: #1C5D9E;
}

.CartBtn.secondary .IconContainer svg path {
    fill: #1C5D9E;
}

/* Blue Button Variant */
.CartBtn.blue {
    background: linear-gradient(135deg, #1C5D9E 0%, #185494 100%);
    box-shadow: 0 10px 20px -5px rgba(28, 93, 158, 0.5),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.CartBtn.blue .text {
    color: #ffffff;
}

.CartBtn.blue .IconContainer svg path {
    fill: #ffffff;
}

.CartBtn.blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -5px rgba(28, 93, 158, 0.6),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: scale(0.7) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    color: #1C5D9E;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    background-color: #FBB91F;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.step-text a {
    color: #1C5D9E;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.step-text a:hover {
    color: #009EE2;
}

/* PDF Modal Specifics */
.modal-content.pdf-modal {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.pdf-container {
    flex: 1;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
}

/* Winners Modal Specifics */
.modal-content.winners-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.winners-list-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

#winners-table {
    width: 100%;
    border-collapse: collapse;
}

#winners-table th,
#winners-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

#winners-table th {
    background-color: #f8f9fa;
    color: #1C5D9E;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

#winners-table tr:hover {
    background-color: #f1f1f1;
}

/* Staggered Animation for Steps */
.modal-overlay.active .step-item {
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

.modal-overlay.active .step-item:nth-child(1) {
    animation-delay: 0.1s;
}

.modal-overlay.active .step-item:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-overlay.active .step-item:nth-child(3) {
    animation-delay: 0.3s;
}

.modal-overlay.active .step-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In for PDF */
.modal-overlay.active .pdf-container {
    animation: fadeIn 0.6s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.gradual-blur-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gradual-blur-inner>div {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.gradual-blur {
    isolation: isolate;
}

@supports not (backdrop-filter: blur(1px)) {
    .gradual-blur-inner>div {
        background: rgba(0, 0, 0, 0.3);
        opacity: 0.5;
    }
}

.gradual-blur-fixed {
    position: fixed !important;
    top: auto;
    /* Override top:0 */
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
}

/* --- LOADER & ANIMATION STYLES (ADDED) --- */

/* Esconde inicialmente o logo do header para evitar duplicação visual antes da animação terminar */
/* Esconde inicialmente o logo do header para evitar duplicação visual antes da animação terminar */
#hero-logo-img {
    opacity: 0;
    transition: none !important;
    /* Evita delays na troca de opacidade */
}

/* Oculta elementos antes da animação começar */
/* Ensure Hero Elements are above the loader curtain so they are visible during the reveal animation */
#prizes-img,
.cta-container {
    position: relative;
    z-index: 20010;
    /* Above #loader (20000) */
}

/* O Loader (Fundo Inicial) */
#loader {
    color: #333;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    color: #1C5D9E;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    background-color: #FBB91F;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.step-text a {
    color: #1C5D9E;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.step-text a:hover {
    color: #009EE2;
}

/* PDF Modal Specifics */
.modal-content.pdf-modal {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.pdf-container {
    flex: 1;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
}

/* Staggered Animation for Steps */
.modal-overlay.active .step-item {
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

.modal-overlay.active .step-item:nth-child(1) {
    animation-delay: 0.1s;
}

.modal-overlay.active .step-item:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-overlay.active .step-item:nth-child(3) {
    animation-delay: 0.3s;
}

.modal-overlay.active .step-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In for PDF */
.modal-overlay.active .pdf-container {
    animation: fadeIn 0.6s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.gradual-blur-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gradual-blur-inner>div {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.gradual-blur {
    isolation: isolate;
}

@supports not (backdrop-filter: blur(1px)) {
    .gradual-blur-inner>div {
        background: rgba(0, 0, 0, 0.3);
        opacity: 0.5;
    }
}

.gradual-blur-fixed {
    position: fixed !important;
    top: auto;
    /* Override top:0 */
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
}

/* --- LOADER & ANIMATION STYLES (ADDED) --- */

/* Esconde inicialmente o logo do header para evitar duplicação visual antes da animação terminar */
/* Esconde inicialmente o logo do header para evitar duplicação visual antes da animação terminar */
#hero-logo-img {
    opacity: 0;
    transition: none !important;
    max-width: 450px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Oculta elementos antes da animação começar */
/* Ensure Hero Elements are above the loader curtain so they are visible during the reveal animation */
#prizes-img,
.cta-container {
    position: relative;
    z-index: 20010;
    /* Above #loader (20000) */
}

/* O Loader (Fundo Inicial) */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E9B80C;
    /* Cor solicitada: Amarelo/Dourado */
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure rays don't overflow */
}

/* Efeito de Raios Girando no fundo do Loader */
.loader-bg-effect {
    position: absolute;
    width: 200vmax;
    height: 200vmax;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(transparent 0 15deg,
            rgba(255, 255, 255, 0.15) 15deg 30deg);
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
    z-index: 1;
    /* Lowest inside loader */
}

@keyframes rotateBg {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Balloons Styles */
.balloons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    /* Above BG rays (1), below Curtain */
    overflow: hidden;
}

.balloon {
    position: absolute;
    bottom: -200px;
    /* Start off-screen bottom */
    width: 140px;
    /* Bigger on Desktop */
    height: auto;
    opacity: 0.9;
    will-change: transform;
}

@media (max-width: 768px) {
    .balloon {
        width: 80px;
        /* Smaller on Mobile */
    }
}

/* O Blue Curtain (Faixa Azul) */
#blue-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a75c4 0%, #185494 100%);
    background-size: cover;
    z-index: 20002;
    transform: translateY(100%);
}

/* O Logo que "Viaja" */
#animating-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 800px;
    z-index: 20003;
    opacity: 0;
}

/* --- MOBILE ADJUSTMENTS (FINAL & STRICT) --- */
@media (max-width: 768px) {
    #animating-logo {
        width: 100% !important;
        max-width: 460px !important;
    }

    .logo-placeholder {
        max-width: 300px !important;
    }
}