@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* --- VARIÁVEIS DE TEMA (APENAS DARK AGORA) --- */
:root {
    --brand-bg: radial-gradient(circle at center, #2e0057 0%, #0d001a 100%);
    --brand-text: #f3e8ff;

    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

    --hover-bg: rgba(255, 255, 255, 0.25);
}

body {
    background: var(--brand-bg);
    color: var(--brand-text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
    font-family: 'Inter', sans-serif;
}

/* --- ANIMAÇÃO DE TROCA DE LOGO --- */
.logo-transition {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.logo-hidden {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(5px);
}

/* --- GLASSMORPHISM (BOTÕES) --- */
.glass-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* Mobile-first: toque mais suave */
    -webkit-tap-highlight-color: transparent;
}

.glass-btn:active,
.link-item:active {
    transform: scale(0.96);
    filter: brightness(1.2);
    transition: transform 0.1s;
}

/* Destaque Curso (Borda Dourada Animada) */
.btn-course {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.6) !important;
}

.btn-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

/* --- ANIMAÇÃO DE FUNDO --- */
.falling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.falling-item {
    position: absolute;
    top: -10%;
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0px);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(20px);
        opacity: 0;
    }
}

.animate-fall-slow {
    animation: fall 15s linear infinite;
}

.animate-fall-medium {
    animation: fall 10s linear infinite;
}

.animate-fall-fast {
    animation: fall 7s linear infinite;
}

/* Filtro para transformar o SVG em Roxo Glow (#4a0080) */
.svg-glow-purple {
    filter: invert(13%) sepia(94%) saturate(7450%) hue-rotate(282deg) brightness(80%) contrast(115%) opacity(0.4);
}

/* Filtro para transformar o SVG em Branco */
.svg-glow-white {
    filter: brightness(0) invert(1) opacity(0.3);
}

/* Filtro para transformar o SVG em Amarelo Glow (#FFD700) */
.svg-glow-gold {
    filter: invert(84%) sepia(87%) saturate(2227%) hue-rotate(359deg) brightness(102%) contrast(106%) opacity(0.3);
}

/* Garante que o item caindo não trave o clique nos botões */
.falling-item {
    pointer-events: none;
}