/* ===== PERFORMANCE & SMOOTH ANIMATION OVERRIDES ===== */
/* Add to end of main.css for GPU-composited smooth animations */

/* Smooth transitions on interactive elements */
.card, .btn, .tool-card, .tool-item, .exp-card, .gh-card, .back-top, .nav, .hero-tag {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* GPU-composited animations */
.card, .btn, .tool-card, .tool-item, .exp-card, .gh-card, .back-top, .hero-avatar {
  will-change: transform;
}

/* Navbar hide on scroll down */
.nav.nav-hidden {
  transform: translateX(-50%) translateY(-80px) !important;
  opacity: 0;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s;
}

/* Smooth stagger delays */
.stagger > *:nth-child(1) { transition-delay: .04s; }
.stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .12s; }
.stagger > *:nth-child(4) { transition-delay: .16s; }
.stagger > *:nth-child(5) { transition-delay: .20s; }
.stagger > *:nth-child(6) { transition-delay: .24s; }
.stagger > *:nth-child(7) { transition-delay: .28s; }
.stagger > *:nth-child(8) { transition-delay: .32s; }

/* Content visibility for off-screen sections */
.section-pad {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Reduce paint cost on scroll */
.nav, .back-top {
  contain: layout style;
}
