/* Advanced animation utilities */
:root {
    --animation-float-duration: 6s;
    --animation-pulse-duration: 2.8s;
    --animation-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes floatUp {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 12px 30px rgba(164, 255, 0, 0.18); }
    50% { box-shadow: 0 18px 45px rgba(164, 255, 0, 0.35); }
}

@keyframes subtleScaleIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-float {
    animation: floatUp var(--animation-float-duration) ease-in-out infinite;
}

.animate-glow {
    animation: pulseGlow var(--animation-pulse-duration) var(--animation-ease-smooth) infinite;
}

.animate-scale-in {
    animation: subtleScaleIn 0.8s var(--animation-ease-smooth) forwards;
}

[data-animate="stagger"] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-animate="stagger"].is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-animate="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.18s; }
[data-animate="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.26s; }

body.motion-lite .animate-float,
body.motion-lite .animate-glow,
body.motion-lite .animate-scale-in,
body.motion-lite .fade-in-up,
body.motion-lite [data-animate="stagger"] > * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-glow,
    .animate-scale-in,
    [data-animate="stagger"] > * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
