/* === FONTES E CONFIGURAÇÕES GLOBAIS === */
body {
    font-family: 'Outfit', sans-serif;
}

/* === BAUHAUS DESIGN TOKENS === */
:root {
    --bauhaus-red: #D02020;
    --bauhaus-blue: #1040C0;
    --bauhaus-yellow: #F0C020;
    --bauhaus-black: #121212;
    --bauhaus-white: #F0F0F0;
    --bauhaus-muted: #E0E0E0;
}

/* === BAUHAUS COMPONENTS === */
.btn-bauhaus {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 3px solid var(--bauhaus-black);
    box-shadow: 6px 6px 0px 0px var(--bauhaus-black);
    transition: all 200ms ease-out;
    position: relative;
    overflow: hidden;
}

.btn-bauhaus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-bauhaus:hover::before {
    left: 100%;
}

.btn-bauhaus:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px 0px var(--bauhaus-black);
}

.btn-bauhaus:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.btn-bauhaus-primary {
    background-color: var(--bauhaus-red);
    color: white;
}

.btn-bauhaus-secondary {
    background-color: var(--bauhaus-blue);
    color: white;
}

.btn-bauhaus-yellow {
    background-color: var(--bauhaus-yellow);
    color: var(--bauhaus-black);
}

.btn-bauhaus-outline {
    background-color: white;
    color: var(--bauhaus-black);
    border: 3px solid var(--bauhaus-black);
}

.card-bauhaus {
    background-color: white;
    border: 4px solid var(--bauhaus-black);
    box-shadow: 8px 8px 0px 0px var(--bauhaus-black);
    position: relative;
    transition: all 300ms ease-out;
}

.card-bauhaus:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0px 0px var(--bauhaus-black);
}

.section-bauhaus {
    padding: 4rem 1rem;
    position: relative;
}

.section-bauhaus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--bauhaus-red), var(--bauhaus-yellow), var(--bauhaus-blue));
    border-radius: 0;
}

@media (min-width: 640px) {
    .section-bauhaus {
        padding: 5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-bauhaus {
        padding: 7rem 2rem;
    }
}

.section-divider-bauhaus {
    height: 4px;
    width: 80px;
    margin: 24px auto;
    background: var(--bauhaus-black);
    border-radius: 0;
    transform: scaleX(0);
    animation: scaleX 0.6s ease-out 0.2s forwards;
}

@keyframes scaleX {
    to {
        transform: scaleX(1);
    }
}

html {
    /* Melhora a precisão da rolagem para o JavaScript */
    scroll-padding-top: 100px; 
}
    transform-origin: center;
    transition: transform 0.8s 0.4s ease-out;
}

/* === ANIMAÇÕES === */
.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.2s 0.2s ease-out forwards; /* Adicionado delay */
}

/* Performance Optimization */
main section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px; /* Estimativa de altura para evitar layout shifts drásticos ao rolar */
}

.hero-bg-animate {
    animation: subtle-zoom-in 20s infinite alternate ease-in-out;
    will-change: transform;
}

.course-tabs-scroller {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.course-tabs-scroller::-webkit-scrollbar { display: none; }

/* Mobile adjustments */
@media (max-width: 767px) {
    .section-divider {
        width: 40px;
        margin: 16px auto;
    }
    .btn-prata {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    /* Animação do menu mobile */
    #mobile-menu {
        font-size: 1.2rem;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    #mobile-menu a { /* Aumentando a área de toque */
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    #mobile-menu.is-open {
        transform: translateY(0);
    }

    /* Ajuste para botões de carrossel em telas pequenas */
    .swiper-button-mobile-adj {
        transform: translateY(-50%) scale(0.85);
    }
}

.project-card-aurora {
    background-position: 0% 0%;
    background-size: 300% 300%;
    transition: background-position 0.5s ease-in-out;
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .section-divider {
        width: 60px;
        margin: 20px auto;
    }

    .btn-prata {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .btn-prata {
        padding: 1.25rem 2.5rem;
        font-size: 1.25rem;
    }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.quiz-animate-in {
    animation: quizFadeIn 0.4s ease-out forwards;
}

.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animated-section.is-visible .section-divider {
    transform: scaleX(1);
}

[data-fslightbox] {
    cursor: pointer;
}

/* === ANIMAÇÕES PARA POP-UPS === */
@keyframes subtle-zoom-in {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

@keyframes slide-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Indicador animado para abas de cursos */
#course-tabs-container {
    position: relative;
}
#active-tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--prata-dark);
    border-radius: 2px;
    transition: left 0.4s ease-in-out, width 0.4s ease-in-out;
}


@keyframes text-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === POP-UP JOGOS INTERNOS === */
.animated-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem; /* 16px */
    z-index: 0;
}

.sports-popup-bg-image {
    animation: subtle-zoom-in 15s infinite alternate ease-in-out;
}

/* Efeito de Aurora para Cards */
.project-card-aurora:hover {
    background-position: 100% 100%;
}