/* Font display optimization for better performance */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/fa-solid-900.woff2') format('woff2'),
       url('/fonts/fa-solid-900.woff') format('woff'),
       url('/fonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fa-regular-400.woff2') format('woff2'),
       url('/fonts/fa-regular-400.woff') format('woff'),
       url('/fonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/fa-light-300.woff2') format('woff2'),
       url('/fonts/fa-light-300.woff') format('woff'),
       url('/fonts/fa-light-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/fonts/fa-thin-100.woff2') format('woff2'),
       url('/fonts/fa-thin-100.woff') format('woff'),
       url('/fonts/fa-thin-100.ttf') format('truetype');
}

/* Preload critical font classes */
.fa-solid,
.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.fa-regular,
.far {
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
}

.fa-light,
.fal {
  font-family: 'Font Awesome 6 Pro';
  font-weight: 300;
}

.fa-thin,
.fat {
  font-family: 'Font Awesome 6 Pro';
  font-weight: 100;
}
