
/* ============================================
   HEADER PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for sticky header */
.navbar.fixed {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Optimize backdrop-blur performance */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .backdrop-blur-sm {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .navbar,
  .transition,
  .transition-all {
    transition-duration: 0.01ms !important;
  }
}

/* Optimize scroll performance */
.navbar {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
