/* Critical CSS - Above the fold content only */
/* This prevents FOUC by loading essential styles immediately */
/* Only includes structural styles, no colors or themes */
/* IMPORTANT: This file should NOT override theme-specific styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Remove specific colors - let main CSS handle them */
}

/* Header and navigation - critical for first paint */
.header {
    /* Remove specific background - let main CSS handle it */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    padding: 1rem 0;
    height: 120px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    gap: 2rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.logo-fallback {
    font-size: 24px;
    font-weight: 700;
    /* Remove specific color - let main CSS handle it */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: -10%;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Remove specific hover styles - let main CSS handle them */

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section - critical for first paint */
.hero {
    /* Remove specific background - let main CSS handle it */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Hide content until CSS loads */
.no-js .nav-menu {
    display: none;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth transitions for loaded elements */
.loaded {
    transition: opacity 0.3s ease;
}

/* Mobile responsiveness - critical */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 120px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}
