/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    /* No border initially */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    transition: all 0.3s ease;
    text-shadow: none;

    /* Glass Chip Style */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.logo:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Desktop Navigation */
.nav-menu ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    text-shadow: none;
    /* Removed for clean glass look */

    /* Glass Chip Style */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.5);
    /* More opaque on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Removed old underline effect */
.nav-menu a::after,
.nav-menu a:hover::after {
    display: none;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        z-index: 1001;
    }

    .nav-toggle .bar {
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        transition: 0.3s;
    }

    /* Mobile Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

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

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    /* Toggle Animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

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