/* Critical CSS - Above the fold styles */
/* Only include styles needed for initial render */

/* Font optimization - all in one place */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.woff2") format("woff2");
}

/* Basic typography and layout with font-display optimization */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Font Awesome optimization */
.fa, .fas, .far, .fal, .fab {
    font-display: swap !important;
}

.fa-solid::before, .fas::before {
    font-family: "Font Awesome 6 Free", "Arial Unicode MS", sans-serif;
    font-weight: 900;
    font-display: swap;
}

.fa-brands::before, .fab::before {
    font-family: "Font Awesome 6 Brands", "Arial Unicode MS", sans-serif;
    font-weight: 400;
    font-display: swap;
}

/* Hero section - critical for LCP */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    font-display: swap;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

/* Navigation - if visible above fold */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

/* Primary CTA button */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0969da;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0550ae;
}

/* Loading state to prevent FOUC */
.loading {
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Container and responsive grid basics */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive basics */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}