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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Apply animations */
.page-header {
    animation: fadeIn 0.8s ease-out;
}

.page-header h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.motto-wrap {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-grid {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.service-card,
.our-services-grid > div {
    animation: fadeInUp 0.8s ease-out both;
}

.our-services-grid > div:nth-child(1) { animation-delay: 0.1s; }
.our-services-grid > div:nth-child(2) { animation-delay: 0.2s; }
.our-services-grid > div:nth-child(3) { animation-delay: 0.3s; }
.our-services-grid > div:nth-child(4) { animation-delay: 0.4s; }
.our-services-grid > div:nth-child(5) { animation-delay: 0.5s; }
.our-services-grid > div:nth-child(6) { animation-delay: 0.6s; }

/* Service icon spin animation */
@keyframes spinIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.service-icon {
    animation: spinIn 0.8s ease-out both;
}

.our-services-grid > div:nth-child(1) .service-icon { animation-delay: 0.2s; }
.our-services-grid > div:nth-child(2) .service-icon { animation-delay: 0.3s; }
.our-services-grid > div:nth-child(3) .service-icon { animation-delay: 0.4s; }
.our-services-grid > div:nth-child(4) .service-icon { animation-delay: 0.5s; }
.our-services-grid > div:nth-child(5) .service-icon { animation-delay: 0.6s; }
.our-services-grid > div:nth-child(6) .service-icon { animation-delay: 0.7s; }

.product-card {
    animation: scaleIn 0.6s ease-out both;
}

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

.process-container {
    animation: fadeInUp 1s ease-out both;
}

.process-container:nth-of-type(1) { animation-delay: 0.2s; }
.process-container:nth-of-type(2) { animation-delay: 0.4s; }

.emphasize {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.contact-container {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Slider animation */
.slider {
    animation: fadeIn 1.2s ease-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
