.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(255, 255, 248);
    color: white;
    padding: 10px;
    z-index: 999;
    border-radius: 50px;
    font-weight: 550;
}

.nav-links ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none; /* Removes bullet points */
}

.nav-links li a {
    display: block;
    color: #3d2d0c;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.nav-links.active {
    display: flex; 
}

.toggle-nav {
    display: none;
}

@media (max-width: 768px) {
    .toggle-nav {
        display: block;
        background: transparent;
        border: none;
        font-size: 22px;
        color: #3d2d0c;
        cursor: pointer;
        padding: 6px 10px;
    }

    /* hide menu by default on mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: min(86vw, 280px);
        background-color: rgb(255, 255, 248);
        border-radius: 18px;
        padding: 8px;
        /* overflow: hidden; */
        box-shadow: 0 10px 14px rgba(0,0,0,0.15);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .nav-links li a {
        text-align: center;
        padding: 0.75rem 0.9rem;
        border-radius: 10px;
        margin: 2px 0;
        white-space: nowrap;
        background: rgba(255,255,255,0.35);
    }
}