/* ============================================
   ADVANCED ANIMATIONS
   ============================================ */

/* Fade in variants */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Hover effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .hover-lift:hover {
        transform: translateY(-6px);
    }
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

@media (hover: hover) {
    .hover-glow:hover {
        box-shadow: 0 0 20px rgba(86, 200, 120, 0.4);
    }
}

/* Interactive states */
.tactile-press {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.tactile-press:active {
    transform: scale(0.95);
}

/* ============================================
   REDUCED MOTION - Accessibility
   Respects user's system preference for 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;
    }

    .animate-fade-in,
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-scale-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hover-lift:hover,
    .tactile-press:active {
        transform: none !important;
    }

    .hover-glow:hover {
        box-shadow: none !important;
    }
}