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

/* Fade animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"].animated { opacity: 1; transform: translateY(0); }
[data-animate="fade-down"].animated { opacity: 1; transform: translateY(0); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-right"].animated { opacity: 1; transform: translateX(0); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-left"].animated { opacity: 1; transform: translateX(0); }
[data-animate="fade-in"] { transform: none; }
[data-animate="fade-in"].animated { opacity: 1; }

/* Stagger children animation */
[data-animate].animated .product-card-home,
[data-animate].animated .why-card,
[data-animate].animated .industry-card,
[data-animate].animated .testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
[data-animate].animated > *:nth-child(1) { animation-delay: 0s; }
[data-animate].animated > *:nth-child(2) { animation-delay: 0.1s; }
[data-animate].animated > *:nth-child(3) { animation-delay: 0.2s; }
[data-animate].animated > *:nth-child(4) { animation-delay: 0.3s; }
[data-animate].animated > *:nth-child(5) { animation-delay: 0.4s; }
[data-animate].animated > *:nth-child(6) { animation-delay: 0.5s; }
[data-animate].animated > *:nth-child(7) { animation-delay: 0.6s; }
[data-animate].animated > *:nth-child(8) { animation-delay: 0.7s; }

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

/* Glow pulse */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px var(--cp-primary-glow); }
    50% { box-shadow: 0 0 20px var(--cp-primary-glow), 0 0 40px rgba(0, 212, 255, 0.1); }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.about-experience-badge { animation: float 3s ease-in-out infinite; }

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.gradient-text {
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

/* Spin for preloader */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-animate] { opacity: 1; transform: none; }
}
