/* Performance-optimized CSS for reduced render blocking */

/* Critical path optimization - immediate styles */
.hero-section {
  background: linear-gradient(135deg, hsl(206, 84%, 17%) 0%, hsl(220, 13%, 18%) 50%, hsl(206, 84%, 17%) 100%);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(29, 29, 29, 0.7) 0%,
    rgba(29, 29, 29, 0.5) 50%,
    rgba(29, 29, 29, 0.7) 100%
  );
  z-index: 10;
}

/* Font loading optimization */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat Regular'), local('Montserrat-Regular'),
       url('/assets/fonts/montserrat-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
       url('/assets/fonts/opensans-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layout shift prevention */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

/* Performance loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Optimize button interactions */
.btn-optimized {
  will-change: transform;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-optimized:hover {
  transform: translateY(-1px);
}

/* Navigation performance */
.nav-optimized {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  will-change: background-color;
  transition: background-color 0.3s ease;
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
  .loading-skeleton,
  .btn-optimized,
  .nav-optimized {
    animation: none;
    transition: none;
  }
}

/* Critical FontAwesome font-display optimization - 250ms savings from PageSpeed report */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fontawesome-webfont.woff2') format('woff2');
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400; 
  font-display: swap;
  src: url('/assets/fonts/fontawesome-brands.woff2') format('woff2');
}