
.nav-wrapper {
    position: sticky;
    top: 1rem;
    z-index: 100;
    padding: 1.5rem 1rem 0;
    width: 100%;
    max-width: 100%;
}

.nav {
    max-width: min(680px, 100%);
    padding: 0.75rem 4.25rem;
    background: var(--background-color);
    border-radius: 999px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #DCDCDC;
    transform: translateY(-1px);
    width: 100%;
    box-sizing: border-box;
}

.nav-links {
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color-secondary);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    /* The gradient will update to the new colors */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    /* On hover, use the new primary color */
    color: var(--primary-color);
}

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

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}