/* Font Display Optimization */
@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  font-display: swap;
}

/* Critical CSS - Above the fold optimization */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preloader optimization */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header optimization */
.vs-header {
  position: relative;
  z-index: 999;
}

/* Hero section optimization */
.vs-hero-wrapper {
  position: relative;
  min-height: 600px;
}

/* Reduce layout shifts */
img {
  max-width: 100%;
  height: auto;
}

/* Improve text rendering */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

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

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

