/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: linear-gradient(180deg, #0b1c2d, #020a12);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Nav Menu (Desktop) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a,
.dropbtn {
    color: whitesmoke;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    }

.nav-menu a:hover,
.dropbtn:hover,
.nav-menu a:focus-visible,
.dropbtn:focus-visible {
    color: #3fa9f5;
    outline: none;
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #0b1c2d;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.dropdown-content.open {
display: flex;
}

.dropdown-content a {
    padding: 12px 16px;
    font-size: 14px;
    color: whitesmoke;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    color: #3fa9f5;
}

/* Desktop hover for dropdown */
@media (min-width: 901px) {
    .dropdown:hover .dropdown-content {
    display: flex;
}

    .hamburger {
        display: none;
    }
}

/* --- Hamburger --- */
.hamburger {
    display: none; /* hidden by default; shown on mobile via media query */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: whitesmoke;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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