.container {
    margin: 0 auto;
    padding: 0 40px;
}
.logo img {
    padding-left: 10px;
    width: 150px;
    height: auto;
}

.header {
    position: sticky;
    top: 0;           /* required for sticky to actually work */
    z-index: 100;     /* always sits above the panel (10) and overlay (9) */
    background-color: #07273D;
    padding: 20px 0;
}
.nav-bar {
    padding: 20px 40px;;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

nav{
     display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 16px;
}
ul {
    list-style: none;
    display: flex;          /* ← this was missing! */
    flex-direction: row;
    align-items: center;
}

li {
    margin-left: 20px;
}

li:hover a {               /* ← target the <a> inside the hovered <li> */
    color: #e3b716;
}

a {
    text-decoration: none;
    color: #ffffff;
}


.hire-me-button {
    background-color: #47b522;
    color: #07273D;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
/* --- Mobile nav: hidden by default on big screens --- */
.mobile-nav {
    display: none;
}

/* --- Hamburger button: the three bars --- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative; /* required for z-index to work */
    z-index: 20;        /* above the panel (10) so it's always clickable */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* --- Mobile slide-in panel ---
   Always rendered as a flex column, but pushed off-screen to the right.
   We use transform instead of display:none so we can animate it.        */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    background-color: #07273D;

    /* Fixed so it overlays the whole page, not just the navbar */
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;

    padding-top: 80px; /* leave room so links don't sit behind the navbar */

    /* Start off-screen to the right */
    transform: translateX(100%);

    /* Animate the slide — 0.3s is fast enough to feel snappy */
    transition: transform 0.3s ease;

    /* Disable all clicks while the panel is off-screen */
    pointer-events: none;
}

/* When JS adds .open, slide the panel into view and re-enable clicks */
.mobile-nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-nav-links li {
    margin: 0;
    padding: 16px 40px;
}

.mobile-nav-links li:hover {
    background-color: #0a3a5c;
}

/* Dark overlay behind the panel so the rest of the page fades out */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;                  /* shorthand for top/right/bottom/left: 0 */
    background-color: rgba(67, 67, 67, 0.5);
    z-index: 9;
}

.nav-overlay.open {
    display: block;
}

/* Give the panel a higher z-index so it sits on top of the overlay */
.mobile-nav-links {
    z-index: 10;
}


/* --- Media query: switch to mobile nav below 768px --- */
@media (max-width: 768px) {
    /* Hide the desktop nav and hire-me button */
    nav:not(.mobile-nav) {
        display: none;
    }

    .hire-me-button {
        display: none;
    }

    /* Show the mobile nav (just the hamburger button) */
    .mobile-nav {
        display: block;
    }

    ul{
        margin-top: 30px;
    }
}