/* Navbar container with grid */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Logo, spacer, hamburger */
    align-items: center;
    background-color: #000000;
    position: relative; /* To position the menu beneath */
    padding: 0 40px;
    z-index: 100;
}

/* Logo styles */
.navbar h1 {
    margin: 0;
    color: white;
    font-size: 24px;
}

/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: none;
    text-align: end;
    padding: 0;
    margin: 0;
}

/* Nav menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Default layout for larger screens */
    width: 100%;
    justify-content: end;
    z-index: 100;
}

nav ul li {
    padding: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    z-index: 100;
}

nav ul li a:hover {
    color: #007BFF;
    text-decoration: underline;
}

/* Menu for mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger button */
    }

    nav ul {
        display: none; /* Initially hide menu */
        flex-direction: column;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 100%; /* Position menu directly below navbar */
        left: 0;
        padding: 10px 0;
        z-index: 100;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    nav.active ul {
        display: flex; /* Show menu when active */
        z-index: 100;
    }
}
