.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    position: relative;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .brand-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;
    transition: transform 0.3s;
}

.navbar .brand-logo:hover {
    transform: rotate(-10deg) scale(1.1);
}

.navbar .brand-name {
    color: black;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.navbar .nav-center {
    display: flex;
    gap: 2rem;
    transition: max-height 0.4s cubic-bezier(.4, 2, .6, 1), opacity 0.3s;
}

.navbar .nav-link {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    position: relative;
}

.navbar .nav-link:hover {
    background: #5d9600;
    color: white;
    transform: translateY(-2px) scale(1.05);
}

.navbar .login-icon {
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.navbar .login-icon:hover {
    color: #ffb400;
    transform: scale(1.15);
}

/* Hamburger menu for mobile */
.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar .hamburger span {
    width: 25px;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .navbar .nav-center {
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }

    .navbar .nav-center {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        z-index: 10;
    }

    .navbar .nav-center.open {
        max-height: 300px;
        opacity: 1;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .navbar .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-radius: 0;
    }

    .navbar .hamburger {
        display: flex;
    }
}

/* ...existing code... */

/* Liquid glass nav bubble */
.nav-center {
    position: relative;
}

.nav-bubble {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 38px;
    background: rgba(255, 255, 255, 0.658);
    box-shadow: 0 4px 24px rgba(47, 49, 42, 0.144), 0 1.5px 8px rgba(93, 150, 0, 0.08) inset;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 22px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    transition:
        left 0.45s cubic-bezier(.77, 0, .18, 1),
        width 0.45s cubic-bezier(.77, 0, .18, 1),
        background 0.3s,
        box-shadow 0.3s;
    opacity: 1;
}

@media (max-width: 700px) {
    .nav-bubble {
        height: 48px;
        border-radius: 0;
        left: 0 !important;
        width: 100% !important;
        top: 0;
        transform: none;
        transition: top 0.45s cubic-bezier(.77, 0, .18, 1), width 0.45s cubic-bezier(.77, 0, .18, 1);
    }
}