* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;           /* lets nav row wrap below on mobile */
    padding: 14px 60px;
    background: #0f172a;
    color: white;
    position: relative;
    z-index: 1000;
}

.logo a { display: inline-block; }

.logo img {
    height: 50px;
    width: auto;
    cursor: pointer;
    display: block;
}

/* ===== DESKTOP NAV ===== */
#menu {
    display: flex;
    align-items: center;
}

#menu ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

#menu a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

#menu a:hover { color: #38bdf8; }

/* ===== HAMBURGER — hidden on desktop ===== */
.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    user-select: none;
    padding: 4px 6px;
    line-height: 1;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    header { padding: 14px 18px; }

    .menu-btn { display: block; }

    /* Nav becomes a full-width row below header bar */
    #menu {
        width: 100%;
        order: 3;
    }

    /* Hidden by default */
    #menu ul { display: none; }

    /* Shown when JS adds .active */
    #menu.active ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #0f172a;
        padding: 10px 18px 18px;
        gap: 0;
        margin: 0;
        border-top: 1px solid #1e293b;
    }

    #menu.active ul li {
        border-bottom: 1px solid #1e293b;
    }

    #menu.active ul li:last-child {
        border-bottom: none;
    }

    #menu.active ul li a {
        display: block;
        padding: 14px 2px;
        font-size: 16px;
    }
}
