/* Font Loading Optimization */
/* Note: Font files are loaded from onest.css, this is just for optimization */

/* Font Loading States */
.font-loading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.font-loaded {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Critical Font Loading */
.critical-text {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
}

/* Font Loading Animation */
@keyframes fontLoading {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.font-loading-animation {
    animation: fontLoading 1.5s ease-in-out infinite;
}

/* Font Fallback Optimization */
body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-display: swap;
}

/* Ensure Font Awesome icons load properly */
.fas, .far, .fab, .fal {
    font-display: block;
}

/* Font Loading Performance */
.font-preload {
    font-family: 'Onest', sans-serif;
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    font-size: 0;
}
