/* Performance Optimization CSS */

/* Prevent layout shift while fonts load */
body {
    font-display: swap;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for smooth animations */
.shape,
.floating-icon,
.particle,
.animated-gradient {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce paint on scroll */
.navbar {
    contain: layout style paint;
}

/* Optimize hover effects */
@media (hover: hover) {

    .feature-card:hover,
    .pricing-card:hover {
        will-change: transform;
    }
}