.navbar {
    /* display: flex; */
    background-color: #333;
    position: relative;
    /* justify-content: space-between; */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: max-content; */
}

.logo {
    color: white;
    margin-left: var(--space-big-x2);
}

#gs-navigation .logo a {
    color: white;
    text-decoration: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display:flex;
    /* align-items: center;
    position: absolute; */
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.active {
    max-height: 400px;
}

.nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    padding: 0.75rem 1rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #4CAF50;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop layout */
@media (min-width: 1024px) {
    .navbar {
        display: flex;
        justify-content: space-between;
    }
    .hamburger {
        display: none;
    }
    .nav-container {
        width: max-content;

    }
    .nav-menu {
        align-items: center;
    position: absolute;
        position: static;
        max-height: none;
        background-color: transparent;
        width: auto;
    }

    .nav-menu ul {
        display: flex;
        background-color: transparent;
        padding: 0;
        justify-content: flex-end;
    }

    .nav-menu li {
        padding: 0.75rem 1rem;
    }

    .nav-menu a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }

    .nav-menu a:hover {
        color: #4CAF50;
    }
}