/* ===== NAVBAR ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: rgb(40, 40, 59);
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    padding: 0 24px;
    position: relative;
    z-index: 1000;
}

nav .left {
    font-size: 1.6rem;
    color: aqua;
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

/* Hamburger button — hidden on desktop */
nav .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

nav .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Desktop nav links */
nav .right ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

nav ul li {
    list-style: none;
    margin: 0 16px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}

nav ul li a:hover {
    color: rgb(202, 67, 67);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    nav .hamburger {
        display: flex;
    }

    nav .right {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgb(40, 40, 59);
        padding: 12px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    nav .right.open {
        display: block;
    }

    nav .right ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 12px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    nav ul li a:hover {
        background-color: rgba(255,255,255,0.06);
        color: rgb(202, 67, 67);
    }
}
