/* DIGIMENTRA MASTER HEADER & MOBILE NAVIGATION CSS */
.glass-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}
@media (min-width: 768px) {
    .desktop-nav {
        display: flex !important;
        align-items: center;
        gap: 2rem;
    }
    .desktop-nav a {
        font-size: 0.875rem;
        font-weight: 600;
        color: #64748b;
        text-decoration: none;
        transition: color 0.3s ease;
        letter-spacing: 0.02em;
    }
    .desktop-nav a:hover {
        color: #10b981;
    }
    .hamburger {
        display: none !important;
    }
}

/* Dropdowns */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 17rem;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    padding: 0.6rem !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.nav-dropdown:hover svg,
.nav-dropdown.is-open svg {
    transform: rotate(180deg) !important;
}
.nav-dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.65rem 0.9rem !important;
    border-radius: 0.85rem !important;
    font-size: 0.825rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    border-bottom: none !important;
}
.nav-dropdown-item:hover {
    background: #ecfdf5 !important;
    color: #047857 !important;
    transform: translateX(3px) !important;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: relative;
    background: transparent;
    border: none;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 380px !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    z-index: 100000 !important;
    transition: right 0.45s cubic-bezier(0.23, 1, 0.32, 1) !important;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15) !important;
    padding: 30px 24px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.mobile-nav.open {
    right: 0 !important;
}
.mobile-nav a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: color 0.3s ease, padding-left 0.3s ease;
    text-decoration: none;
}
.mobile-nav a:hover {
    color: #10b981;
    padding-left: 8px;
}
.mobile-nav .sub-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #059669 !important;
    padding: 8px 0 8px 16px;
    border-bottom: none;
}

/* Overlay */
.nav-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease !important;
}
.nav-overlay.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Language Toggle */
.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(250, 250, 250, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 3px;
    cursor: pointer;
}
.lang-btn {
    position: relative;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    transition: color 0.3s ease;
    user-select: none;
    background: transparent;
    border: none;
    cursor: pointer;
}
.lang-btn.active {
    color: #0f172a;
}
.lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.lang-toggle[data-active=tr] .lang-slider {
    transform: translateX(100%);
}
