/* Performance Optimization CSS */

/* Critical Path CSS - Above the fold content */
body {
  font-family: 'Jost', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar optimization */
.navbar {
  will-change: transform;
  backface-visibility: hidden;
}

/* Image optimization */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Reduce animation impact */
.animate__animated {
  animation-duration: 0.3s !important;
}

/* Optimize mobile performance */
@media (max-width: 768px) {
  .mbr-gallery {
    will-change: transform;
  }
}

/* Remove unused animations from animate.css */
.animate__bounce,
.animate__flash,
.animate__pulse,
.animate__shake,
.animate__swing,
.animate__wobble,
.animate__jello,
.animate__rollIn,
.animate__rollOut,
.animate__rotateIn,
.animate__rotateOut,
.animate__lightSpeedIn,
.animate__lightSpeedOut,
.animate__slideInDown,
.animate__slideOutUp {
  display: none !important;
}

/* Font optimization */
@font-face {
  font-family: 'Jost';
  src: local('Jost');
  font-display: swap;
}

/* Reduce paint operations */
.modal {
  will-change: opacity;
  backface-visibility: hidden;
}

/* Optimize carousel */
.carousel-item {
  will-change: opacity;
}

/* CSS containment for better performance */
.testimonials1,
.gallery5,
.team1 {
  contain: layout style paint;
}

/* Optimize dropdown */
.navbar-dropdown {
  will-change: max-height;
}

/* Smooth transitions */
.nav-link,
.btn {
  transition: all 0.2s ease-in-out;
}
