/**
 * PHASE 5: Animation Styles
 * CSS for scroll-triggered animations and interactions
 */

/* Fade Reveal Animation */
.fade-reveal-ready,
.fade-in-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-revealed {
    opacity: 1 !important;
}

/* Slide Reveal Animation */
.slide-reveal-ready,
.slide-up-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scale Reveal Animation */
.scale-reveal-ready,
.scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-revealed {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Stagger Reveal Animation */
.stagger-reveal-ready .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ripple Effect for Buttons */
.btn,
.hero-cta,
.hero-cta-secondary,
.btn-primary,
.btn-get-started {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn .ripple,
.hero-cta .ripple,
.hero-cta-secondary .ripple,
.btn-primary .ripple,
.btn-get-started .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Card Hover Animations */
.value-card,
.feature-card,
.testimonial-card,
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Footer Cat Animation */
.footer-cat {
    transition: transform 0.3s ease;
}

/* Baby Moon Animation */
.baby-moon,
[data-baby-moon] {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce Motion for Accessibility */
@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;
    }
    
    .fade-reveal-ready,
    .slide-reveal-ready,
    .scale-reveal-ready,
    .stagger-reveal-ready .stagger-item {
        opacity: 1 !important;
        transform: none !important;
    }
}


