/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    width: 100%;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 75px;
}

/* Logo */
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: var(--accent-color);
}

.logo .highlight {
    color: var(--accent-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo {
    order: 1;
    margin-right: auto;
}

/* Theme Controls */
.theme-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    order: 3;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    order: 2;
    margin-left: auto;
    margin-right: 12px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background-color: var(--accent-color);
    color: white !important;
}

.cta-link::after {
    display: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: nowrap;
        gap: 10px;
        position: relative;
        justify-content: flex-start;
        height: 60px;
    }

    .logo {
        flex: 1 1 auto;
        order: 1;
    }

    .theme-controls {
        flex-direction: row;
        gap: 8px;
        order: 2;
        position: absolute;
        right: 56px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle {
        display: flex;
        order: 3;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 99;
    }

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

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        transition: border-color 0.3s ease;
    }

    .nav-link {
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .cta-link {
        margin: 10px auto;
        display: inline-block;
        border-radius: 5px;
    }

    .logo a {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo a {
        font-size: 1rem;
    }

    .nav-menu {
        top: 60px;
    }
}