.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    /* More opaque */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 72px;
    /* Fixed height for calculations */
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logoText {
    color: white;
}

/* Desktop Nav */
.desktopNav {
    display: none;
}

@media (min-width: 900px) {
    .desktopNav {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }
}

.navItem {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navLink {
    color: #ccc;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navLink:hover,
.activeLink {
    color: white;
}

.chevron {
    transition: transform 0.2s ease;
}

.chevronOpen {
    transform: rotate(180deg);
}

/* Enhanced Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: -1rem;
    padding-top: 1.5rem;
    /* Gap filler */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdownVisible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdownInner {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdownLink {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdownLink:hover {
    background: #222;
}

.iconPlaceholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.linkContent {
    display: flex;
    flex-direction: column;
}

.linkTitle {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.linkDesc {
    color: #888;
    font-size: 0.8rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.loginBtn {
    color: white;
    font-weight: 500;
    display: none;
}

@media (min-width: 640px) {
    .loginBtn {
        display: block;
    }
}

.signupBtn {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
    display: none;
}

@media (min-width: 640px) {
    .signupBtn {
        display: block;
    }
}

/* Mobile Toggle Hamburger */
.mobileToggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

@media (min-width: 900px) {
    .mobileToggle {
        display: none;
    }
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burgerOpen span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burgerOpen span:nth-child(2) {
    opacity: 0;
}

.burgerOpen span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobileNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic viewport height */
    background: #000;
    padding: 80px 1.5rem 2rem;
    /* Clear the header */
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 99;
}

.mobileNavOpen {
    transform: translateX(0);
}

.mobileNavContent {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Ensure content is visible */
    width: 100%;
}

.mobileItem {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobileNavLink {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    border: none;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
    width: 100%;
    text-align: left;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobileDropdown {
    padding: 1rem 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
    margin-top: 0.5rem;
    width: 100%;
}

.mobileSubLink {
    color: #aaa;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    display: block;
}

.mobileSubLink:hover {
    color: white;
    background: #111;
    border-radius: 4px;
}

.mobileActions {
    margin-top: auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
    /* Extra padding for bottom URL bars on mobile */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobileBtn {
    text-align: center;
    padding: 1rem;
    color: white;
    border: 1px solid #333;
    border-radius: 12px;
    font-weight: 600;
}

.mobileBtnPrimary {
    text-align: center;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 700;
}