/* ========================================
   ANIMATION OPTIMIZATIONS
   Faster page load and smoother animations
   ======================================== */

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

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

/* Instant visibility for above-fold content */
.modern-services,
.section-header,
.services-grid {
    animation: fadeIn 0.3s ease-out;
}

/* Reduce animation overhead */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for transforms */
.service-card,
.service-icon,
.service-link,
.cta-button {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize hover states */
.service-card:hover {
    will-change: transform, box-shadow;
}

/* Prevent layout shifts */
.service-icon img {
    display: block;
    width: 50px;
    height: 50px;
}

/* 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;
    }
}
