/* Navigation bar */
.menu {
    display: flex;
    width: 100%;
    max-width: 1394px;
    height: 128px;
    padding: 10px 20px 40px;
    align-items: center;
    flex-shrink: 0;
    margin: 0 auto;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 30px;
}

/* Logo */
.menu__logo img {
    max-height: 80px;
    object-fit: contain;
    display: block;
    width: 200px;
    height: auto;
}

/* Menu items */
.menu__items {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu__items > li {
    flex: 1;
}

/* Base button style */
.menu .menu_button {
    border: none;
    border-radius: 18px;
    background: #FFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    padding: 10px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    width: 80%;
    box-sizing: border-box;
    text-align: center;
}

/* Hover effect for general buttons */
.menu .menu_button:hover {
    color: white;
    background: #5136EB;
}

/* Special hover for "Sign up" button */
.menu .menu_button.signup:hover {
    background: #CF0202;
}

/* Hamburger button - hidden by default */
.menu__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    margin-left: auto;
}

/* Responsive styles */

/* Tablet and mobile */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 15px;
        gap: 10px;
    }

    .menu__toggle {
        display: block;
    }

    .menu__items {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        display: none; /* Hidden by default */
    }

    .menu__items.show {
        display: flex; /* Shown when toggled */
    }

    .menu .menu_button {
        width: 100%;
        text-align: left;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .menu__logo img {
        max-height: 60px;
    }

    .menu .menu_button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .menu__toggle {
        font-size: 28px;
    }
}