/* ========================================
   WellBodyMind — Animations
   ======================================== */

/* --- Continuous Keyframes --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes geoPulse {
    0%, 100% { opacity: 0.6; stroke-width: 0.8; }
    50% { opacity: 1; stroke-width: 1.4; }
}

/* --- Scroll-Triggered Animations --- */

/* Base state for all animated elements */
[data-animate] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Delay support */
[data-delay="1"] { transition-delay: 150ms; }
[data-delay="2"] { transition-delay: 300ms; }
[data-delay="3"] { transition-delay: 450ms; }
[data-delay="4"] { transition-delay: 600ms; }

/* Animation types — hidden state */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate="scale-in"] {
    transform: scale(0.95);
}

[data-animate="slide-left"] {
    transform: translateX(40px);
}

[data-animate="slide-right"] {
    transform: translateX(-40px);
}

/* Visible state — applied by IntersectionObserver */
[data-animate].visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
