/* Ultra-aggressive performance optimizations */

/* Critical rendering optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for all animations */
.hero-section,
.hero-video-container,
.hero-video,
.hero-content,
nav,
header {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Optimize video rendering */
.hero-video {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Prevent layout shifts */
.hero-section {
  contain: layout style paint;
}

.hero-video-container {
  contain: strict;
}

/* Lazy load below-the-fold content */
section:not(.hero-section) {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Optimize font loading */
body {
  font-display: swap;
}

/* Reduce paint complexity */
img,
video {
  content-visibility: auto;
}

/* Optimize scrolling */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Reduce repaints on scroll */
body {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Disable all animations for instant rendering */
* {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* Critical elements only - minimal animation */
.hero-content {
  animation-duration: 0.2s !important;
  transition-duration: 0.2s !important;
}

/* Instant page transitions */
body, html {
  animation: none !important;
  transition: none !important;
}

