:root {
    --nav-bg: rgba(2, 6, 23, 0.7);
    --nav-border: rgba(255, 255, 255, 0.05);
    --dropdown-bg: rgba(15, 23, 42, 0.95);
    --dropdown-border: rgba(255, 255, 255, 0.08);
    --nav-text: rgba(255, 255, 255, 0.6);
    --nav-text-hover: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}

.hamburger,
.mobile-nav-overlay {
    display: none !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    /* Higher than overlay to keep hamburger accessible */
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 32px;
    /* Fixed height for consistency */
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-links-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav Item */
.nav-item {
    position: relative;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-text);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-item:hover .nav-btn {
    color: var(--nav-text-hover);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-btn i[data-lucide="chevron-down"] {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--dropdown-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--dropdown-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 2.5rem;
    width: max-content;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Column */
.submenu-column h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nav-text);
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submenu-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 240px;
}

.submenu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text-hover);
    transition: all 0.3s ease;
}

.submenu-link:hover .submenu-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.submenu-info p.label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nav-text-hover);
    margin: 0;
}

.submenu-info p.desc {
    font-size: 0.75rem;
    color: var(--nav-text);
    margin: 0;
    transition: color 0.3s;
}

.submenu-link:hover .submenu-info p.desc {
    color: var(--nav-text-hover);
}

/* Specific to the "Other Solutions" dropdown */
.other-solutions-menu {
    left: auto;
    right: 0;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 3005;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    /* Premium Dark Glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2004;
    padding: 100px 2rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    text-align: left;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}

.mobile-submenu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nav-text);
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
    display: block;
    opacity: 0.6;
}

.mobile-submenu-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.mobile-submenu-item i {
    width: 20px;
    height: 20px;
    color: #3b82f6;
}

.mobile-cta {
    margin-top: 2rem;
    padding: 1.25rem;
    text-align: center;
    background: #3b82f6;
    color: #FFFFFF !important;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: block;
}

@media (max-width: 992px) {
    .mobile-nav-overlay {
        display: flex !important;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    header .btn,
    header .btn-primary,
    header .btn-get-started,
    header .btn-accent {
        display: none !important;
    }
}