/* =============================================
   NAVIGATION DROPDOWN STYLES
   ============================================= */

/* Dropdown Container */
.has-dropdown {
    position: relative;
    z-index: 999;
}

/* Dropdown Menu */
.has-dropdown .dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    background: #111111;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 9999;  /* Increased z-index */
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.has-dropdown .dropdown a {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

.has-dropdown .dropdown a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
}

/* Chevron Icon */
.has-dropdown .chev {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .chev {
    transform: rotate(180deg);
}

/* =============================================
   HEADER - Ensure header has proper z-index
   ============================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;  /* Increased z-index */
    background:
        repeating-linear-gradient(
            115deg,
            rgba(255,255,255,0.025) 0px,
            rgba(255,255,255,0.025) 1px,
            transparent 1px,
            transparent 46px
        ),
        linear-gradient(90deg, #050505 0%, #0d0d0d 55%, #050505 100%);
    border-bottom: 1px solid var(--border);
    overflow: visible;  /* Changed from hidden to visible */
    transition: all 0.3s ease-in-out;
}

header.hide {
    transform: translateY(-100%);
}

header.active {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-wrap {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    position: relative;
    z-index: 2;
}