/* Font Awesome Local - Optimized for Ahmed's Portfolio */
/* Only includes icons actually used in the portfolio */

/* Font Awesome 6 Free Font Face - Optimized Loading */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/fontawesome/fa-solid-900.woff2") format("woff2"),
         url("../fonts/fontawesome/fa-solid-900.ttf") format("truetype");
}

/* Font Awesome 6 Brands Font Face - Optimized Loading */
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/fontawesome/fa-brands-400.woff2") format("woff2"),
         url("../fonts/fontawesome/fa-brands-400.ttf") format("truetype");
}

/* Font Awesome Base Styles - Performance Optimized */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: none;
    text-transform: none;
}

/* Brand Icons */
.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Icons Actually Used in Portfolio */

/* Arrow Right Icon - Used in CTA buttons */
.fa-arrow-right:before {
    content: "\f061";
}

/* Arrow Up Icon - Used in scroll to top button */
.fa-arrow-up:before {
    content: "\f062";
}

/* External Link Alt Icon - Used in project links */
.fa-external-link-alt:before {
    content: "\f35d";
}

/* Chevron Down Icon - Used in scroll indicator */
.fa-chevron-down:before {
    content: "\f078";
}

/* Envelope Icon - Used in contact section */
.fa-envelope:before {
    content: "\f0e0";
}

/* Phone Icon - Used in contact section */
.fa-phone:before {
    content: "\f3cd";
}

/* Map Marker Alt Icon - Used in contact section */
.fa-map-marker-alt:before {
    content: "\f3c5";
}

/* Social Media Icons (if needed) */
.fa-github:before {
    content: "\f09b";
}

.fa-twitter:before {
    content: "\f099";
}

.fa-linkedin:before {
    content: "\f08c";
}

/* Timeline Icons */
.fa-code:before {
    content: "\f121";
}

.fa-mobile:before {
    content: "\f10b";
}

.fa-star:before {
    content: "\f005";
}

.fa-search:before {
    content: "\f002";
}

.fa-users:before {
    content: "\f0c0";
}

.fa-graduation-cap:before {
    content: "\f19d";
}

/* Performance optimizations */
.fa, .fas, .far, .fal, .fab {
    /* Prevent text selection on icons */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Prevent layout shift */
    width: 1em;
    text-align: center;
}
