
/* --- 1. UTILITÁRIOS DE SCROLL REVEAL --- */

/* Estado inicial (invisível e deslocado) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* Estado final (ativado via JS) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Atrasos em cascata */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


/* --- 2. EFEITOS CONTÍNUOS --- */

/* Pulso Neon para Botões CTA */
@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(230, 35, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(252, 0, 0, 0);
    }
}

.animate-pulse {
    animation: neon-pulse 2s infinite;
}


/* Flutuação para Ícones e Stats */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}


/* --- 3. EFEITO GLITCH --- */

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%   { clip: rect(10px, 9999px, 30px, 0); }
    20%  { clip: rect(80px, 9999px, 100px, 0); }
    40%  { clip: rect(10px, 9999px, 50px, 0); }
    60%  { clip: rect(60px, 9999px, 80px, 0); }
    80%  { clip: rect(20px, 9999px, 60px, 0); }
    100% { clip: rect(90px, 9999px, 100px, 0); }
}

@keyframes glitch-anim-2 {
    0%   { clip: rect(60px, 9999px, 90px, 0); }
    20%  { clip: rect(10px, 9999px, 50px, 0); }
    40%  { clip: rect(90px, 9999px, 100px, 0); }
    60%  { clip: rect(30px, 9999px, 40px, 0); }
    80%  { clip: rect(70px, 9999px, 80px, 0); }
    100% { clip: rect(20px, 9999px, 30px, 0); }
}


/* --- 4. ANIMAÇÕES SINCRONIZADAS DOS PERSONAGENS --- */

/* MG (Central): sobe e desce */
@keyframes sync-mg-float {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -20px;
    }
}

/* SUM: afasta mais para a esquerda */
@keyframes sync-expand-left {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: clamp(-80px, -4.5vw, -60px) 0;
    }
}

/* SM: afasta mais para a direita */
@keyframes sync-expand-right {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: clamp(60px, 4.5vw, 80px) 0;
    }
}


/* Aplicação das animações */
.anim-mg-float {
    animation: sync-mg-float 6s ease-in-out infinite;
    will-change: translate;
}

.anim-expand-left {
    animation: sync-expand-left 6s ease-in-out infinite;
    will-change: translate;
}

.anim-expand-right {
    animation: sync-expand-right 6s ease-in-out infinite;
    will-change: translate;
}
