/* ============================================
   PERFORMANCE OPTIMIZED ANIMATIONS
   ============================================ */

/* Use GPU acceleration for smooth animations */
.animated,
.project-card,
.skill-card,
.resource-card,
.stat-card,
.profile-card-animated {
    will-change: transform, opacity; transform: translateZ(0); backface-visibility: hidden; perspective: 1000px; }

/* Optimize transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Optimize scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0; }
}

/* Use contain for better performance */
.project-card,
.skill-card,
.resource-card {
    contain: layout style paint; }

/* Optimize image loading animations */
img {
    content-visibility: auto; contain-intrinsic-size: 1px 1000px; }

/* Reduce repaints on scroll */
body {
    scroll-behavior: smooth; }

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
