/* Critical CSS for mobile performance optimization */

/* Above-the-fold styles */
.hero-section-spacing {
  padding-bottom: 2rem;
}

@media (max-width: 640px) {
  .hero-section-spacing {
    padding-bottom: 1.5rem;
  }
}

/* Prevent layout shifts - simple and efficient */
.hero-image-container {
  max-width: 1000px;
  overflow: hidden;
  position: relative;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile-specific hero container sizing */
@media (max-width: 640px) {
  .hero-image-container {
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    min-height: 140px;
  }
}

/* Optimize font loading */
.font-plus-jakarta-sans {
  font-display: swap;
}

/* Parallax scroll effect */
[data-scroll-speed] {
  will-change: transform;
}

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

/* Critical layout styles */
.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
}

/* Optimize image loading */
.hero-image-container img {
  will-change: transform;
  transform: translateZ(0);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .hero-image-container {
    width: 100% !important;
    max-width: 100vw;
    padding: 0 1rem;
  }
  
  .hero-image-container img {
    max-height: 50vh;
    object-fit: cover;
  }
}

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

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