/* ===================== */
/*  Header & Navigation  */
/* ===================== */

/* Desktop Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

.mobile-menu-toggle .close-icon,
.mobile-menu-toggle .menu-icon {
    font-size: 2rem;
    color: var(--primary-dark);
    vertical-align: middle;
}

/* Mobile Navigation Active State */
.nav-links.mobile-active {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
    z-index: 1000;
}

.nav-links.mobile-active a {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    width: 200px;
    text-align: center;
    background: var(--gray-50);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -8px 0 40px rgba(70, 90, 130, 0.09);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        font-size: 1.2rem;
        z-index: 1000;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(.68, -0.55, .27, 1.55), opacity 0.35s;
        display: flex;
    }

    .nav-links.mobile-active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo {
        margin-top: 1rem;
    }

    .nav {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .nav-links.mobile-active a {
        width: 100%;
        max-width: 200px;
    }
}

/* Reserve space for fixed header */
body {
    padding-top: 68px;
    /* desktop */
}

@media (max-width: 991.98px) {
    body {
        padding-top: 64px;
        /* mobile/tablet */
    }
}