/* animations.css - Modern animations for nDD */

@keyframes floatUp {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes subtleShadow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 80, 0.1);
    }
    50% {
        box-shadow: 0 15px 50px rgba(0, 0, 80, 0.2);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 0, 80, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 0, 80, 0.3);
    }
}

/* Animation classes */
.animated-float {
    animation: floatUp 6s ease-in-out infinite;
}

.animated-shadow {
    animation: subtleShadow 8s ease-in-out infinite;
}

.animated-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Class for animated elements */
.animated-element {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger animations for cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover enhancements */
.feature-card:hover .animated-float,
.service-card:hover .animated-float,
.value-card:hover .animated-float {
    animation-duration: 3s;
}

.feature-card:hover .animated-shadow,
.service-card:hover .animated-shadow,
.value-card:hover .animated-shadow {
    animation-duration: 4s;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animated-float,
    .animated-shadow,
    .animated-glow,
    .animate-in,
    .animation-btn.active {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .value-card:hover,
    .product-card:hover,
    .contact-card:hover {
        transform: none !important;
    }
}

/* Smooth transitions for all animated elements */
.feature-card,
.service-card,
.value-card,
.product-card,
.contact-card,
.stat-card,
.content-section,
.hero-section {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}