/* ========================================
   Modern Future-Proof Navigation Styles
   ======================================== */

/* CSS Variables for Navigation */
:root {
    --nav-height: 70px;
    --nav-topbar-height: 40px;
    --nav-primary: #93c33b;
    --nav-dark: #1a1a2e;
    --nav-darker: #16213e;
    --nav-text: #ffffff;
    --nav-text-secondary: #b0b0b0;
    --nav-hover: #7ccc24;
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --nav-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-container-width: 1400px;
}

/* Container */
.modern-nav .container {
    max-width: var(--nav-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Top Bar
   ======================================== */
.nav-topbar {
    background: linear-gradient(135deg, var(--nav-darker) 0%, var(--nav-dark) 100%);
    height: var(--nav-topbar-height);
    border-bottom: 1px solid rgba(147, 195, 59, 0.1);
    font-size: 13px;
    padding: 6px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 4px;
}

.topbar-left {
    flex: 1;
}

.topbar-announcement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nav-text);
    font-weight: 500;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--nav-primary);
    border-radius: 50%;
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    transition: var(--nav-transition);
}

.topbar-link:hover {
    color: var(--nav-primary);
}

.topbar-link svg {
    flex-shrink: 0;
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Social Media Icons */
.topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--nav-text-secondary);
    text-decoration: none;
    transition: var(--nav-transition);
}

.social-link:hover {
    background: var(--nav-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-link svg {
    flex-shrink: 0;
}

/* ========================================
   Main Navigation Bar
   ======================================== */
.nav-main {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(100px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(100px) saturate(200%) brightness(1.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1000;
    transition: var(--nav-transition);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--nav-height);
    gap: 32px;
}

/* ========================================
   Logo
   ======================================== */
.nav-brand {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-primary, 'Poppins', sans-serif);
    letter-spacing: -0.5px;
}

.logo-edu {
    color: var(--nav-dark);
}

.logo-syms {
    color: var(--nav-primary);
}

/* ========================================
   Desktop Menu
   ======================================== */
.desktop-menu {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    color: var(--nav-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--nav-transition);
    position: relative;
}

.menu-link:hover {
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
}

.menu-arrow {
    transition: transform 0.3s ease;
}

.menu-item.has-dropdown:hover .menu-arrow {
    transform: rotate(180deg);
}

/* ========================================
   Dropdown Menus
   ======================================== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    list-style: none;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--nav-transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   NVIDIA-Style Mega Menu
   ======================================== */
.mega-menu .nav-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3), 
                0 5px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(229, 231, 235, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--nav-transition);
    z-index: 100;
    margin-top: 8px;
    border-radius: 0 0 16px 16px;
}

.mega-menu:hover .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 350px;
    position: relative;
}

.mega-menu-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgb(255, 255, 255) 0%, 
                rgb(249, 250, 251) 50%,
                rgb(255, 255, 255) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 0 0 16px 16px;
}

.mega-menu-sidebar {
    width: 220px;
    background: rgb(248, 249, 250);
    padding: 24px 0;
    border-right: 1.5px solid rgb(229, 231, 235);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.5);
}

.mega-category {
    display: block;
    padding: 14px 24px;
    color: var(--nav-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--nav-transition);
    border-left: 3px solid transparent;
}

.mega-category:hover,
.mega-category.active {
    background: rgb(255, 255, 255);
    color: var(--nav-primary);
    border-left-color: var(--nav-primary);
    box-shadow: 0 2px 8px rgba(147, 195, 59, 0.15);
}

.mega-menu-content {
    flex: 1;
    padding: 48px 56px;
    background: rgb(255, 255, 255);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mega-category-content {
    display: none;
}

.mega-category-content.active {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Column-based layout for mega menu (NVIDIA-style) */
.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding: 0;
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mega-column-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    padding: 12px 16px 10px;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(147, 195, 59, 0.4);
    display: flex;
    align-items: center;
}

.mega-column-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 231, 235, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    min-height: 72px;
}

.mega-column-item:hover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    transform: translateX(4px);
    border-color: rgba(147, 195, 59, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mega-column-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mega-column-item:hover .mega-column-item-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mega-column-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mega-column-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.mega-column-item-title i.fa-arrow-right {
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--nav-primary);
}

.mega-column-item:hover .mega-column-item-title i.fa-arrow-right {
    opacity: 1;
    transform: translateX(4px);
}

.mega-column-item-desc {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--nav-transition);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mega-menu-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(147, 195, 59, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(147, 195, 59, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(80px) saturate(200%);
    -webkit-backdrop-filter: blur(80px) saturate(200%);
}

.mega-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 20px;
}

.mega-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--nav-dark);
    display: block;
}

.mega-item-desc {
    font-size: 13px;
    color: var(--nav-text-secondary);
    line-height: 1.4;
}

/* ========================================
   Legacy Dropdown Menus (for other items)
   ======================================== */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--nav-transition);
    z-index: 100;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--nav-transition);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.nav-dropdown-item:last-child {
    margin-bottom: 0;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(147, 195, 59, 0.3);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(147, 195, 59, 0.1);
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(135deg, #93c33b 0%, #7da82f 100%);
}

.platform-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--nav-dark);
}

.platform-description {
    font-size: 12px;
    color: var(--nav-text-secondary);
    line-height: 1.3;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--nav-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--nav-transition);
}

.dropdown-menu a:hover {
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
    transform: translateX(4px);
}

.dropdown-menu .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

.dropdown-menu .dropdown-highlight a {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
}

.dropdown-menu .dropdown-highlight a:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ========================================
   Navigation Actions
   ======================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-wishlist-btn,
.nav-cart-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(147, 195, 59, 0.1);
    border-radius: 10px;
    color: var(--nav-primary);
    cursor: pointer;
    transition: var(--nav-transition);
    text-decoration: none;
    position: relative;
}

.nav-wishlist-btn:hover,
.nav-cart-btn:hover {
    background: var(--nav-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.wishlist-count,
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

.nav-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(147, 195, 59, 0.1);
    border-radius: 10px;
    color: var(--nav-primary);
    cursor: pointer;
    transition: var(--nav-transition);
}

.nav-search-btn:hover {
    background: var(--nav-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.nav-cta-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-demo,
.btn-quote {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--nav-transition);
    display: inline-block;
}

.btn-demo {
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
    border: 2px solid transparent;
}

.btn-demo:hover {
    background: transparent;
    border-color: var(--nav-primary);
}

.btn-quote {
    background: linear-gradient(135deg, var(--nav-primary) 0%, var(--nav-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 195, 59, 0.3);
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 195, 59, 0.4);
}

/* Google-style Sign In Dropdown */
.signin-dropdown-wrapper {
    position: relative;
}

.btn-signin {
    padding: 10px 24px;
    border-radius: 24px;
    background: var(--nav-primary);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(147, 195, 59, 0.3);
}

.btn-signin:hover {
    background: var(--nav-hover);
    box-shadow: 0 4px 12px rgba(147, 195, 59, 0.4);
    transform: translateY(-1px);
}

.signin-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 560px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(100px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(100px) saturate(200%) brightness(1.1);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15),
                0 4px 16px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.signin-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.signin-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.signin-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.signin-header p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.signin-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.signin-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signin-section h4 {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    padding: 0 8px;
}

.signin-portal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.signin-portal-item:hover {
    background: rgba(147, 195, 59, 0.15);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    border-color: rgba(147, 195, 59, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(147, 195, 59, 0.2);
}

.signin-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.signin-icon i {
    display: block;
    line-height: 1;
}

.signin-portal-item:hover .signin-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signin-portal-item span {
    font-size: 12px;
    font-weight: 500;
    color: #1a202c;
    text-align: center;
}

.btn-register {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--nav-transition);
    display: inline-flex;
    align-items: center;
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
    border: 2px solid transparent;
}

.btn-register:hover {
    background: transparent;
    border-color: var(--nav-primary);
}

.btn-dashboard {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--nav-transition);
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--nav-primary) 0%, var(--nav-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 195, 59, 0.3);
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 195, 59, 0.4);
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--nav-dark);
    border-radius: 2px;
    transition: var(--nav-transition);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Search Overlay
   ======================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--nav-transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: var(--nav-transition);
}

.search-close:hover {
    background: var(--nav-primary);
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 20px 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-family: var(--font-primary);
    transition: var(--nav-transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--nav-primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-form button {
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--nav-primary) 0%, var(--nav-hover) 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--nav-transition);
}

.search-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(147, 195, 59, 0.4);
}

.search-suggestions {
    margin-top: 40px;
    color: #ffffff;
}

.search-suggestions h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tags a {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: var(--nav-transition);
}

.suggestion-tags a:hover {
    background: var(--nav-primary);
    border-color: var(--nav-primary);
    transform: scale(1.05);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-logo {
    font-size: 24px;
    font-weight: 700;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: rgba(147, 195, 59, 0.1);
    border: none;
    border-radius: 10px;
    color: var(--nav-primary);
    cursor: pointer;
    transition: var(--nav-transition);
}

.mobile-menu-close:hover {
    background: var(--nav-primary);
    color: #ffffff;
}

.mobile-menu-body {
    padding: 20px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: var(--nav-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--nav-transition);
}

.mobile-menu-link:hover {
    color: var(--nav-primary);
}

.submenu-arrow {
    color: var(--nav-primary);
}

/* Mobile Submenu */
.mobile-submenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.mobile-submenu.active {
    transform: translateX(0) !important;
    visibility: visible;
    opacity: 1;
}

.submenu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}

.submenu-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(147, 195, 59, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--nav-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--nav-transition);
}

.submenu-back:hover {
    background: var(--nav-primary);
    color: #ffffff;
}

.submenu-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--nav-dark);
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.submenu-list li {
    margin-bottom: 8px;
}

.submenu-list a {
    display: block;
    padding: 14px;
    color: var(--nav-dark);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--nav-transition);
}

.submenu-list a:hover {
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
}

.submenu-list .highlight a {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submenu-list .highlight a:hover {
    transform: scale(1.02);
}

/* Mobile CTA Buttons */
.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.mobile-btn-demo,
.mobile-btn-quote {
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: var(--nav-transition);
}

.mobile-btn-demo {
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
    border: 2px solid var(--nav-primary);
}

.mobile-btn-quote {
    background: linear-gradient(135deg, var(--nav-primary) 0%, var(--nav-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 195, 59, 0.3);
}

/* Mobile Quick Links */
.mobile-quick-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: rgba(147, 195, 59, 0.05);
    border-radius: 10px;
    color: var(--nav-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--nav-transition);
}

.quick-link:hover {
    background: rgba(147, 195, 59, 0.1);
    color: var(--nav-primary);
}

/* ========================================
   Sticky Navigation
   ======================================== */
.modern-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-nav.sticky .nav-topbar {
    display: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.modern-nav.sticky.hidden {
    transform: translateY(-100%);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Extra large screens - normal spacing */
@media (max-width: 1400px) {
    .menu-link {
        padding: 12px 14px;
        font-size: 14.5px;
    }
    
    .menu-list {
        gap: 6px;
    }
}

/* Large screens to handle many menu items */
@media (max-width: 1200px) {
    .menu-link {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .menu-list {
        gap: 3px;
    }
}

/* Switch to mobile menu earlier for better UX */
@media (max-width: 1150px) {
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .nav-cta-buttons .btn-register {
        display: none;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-topbar {
        font-size: 11px;
    }
    
    .topbar-announcement {
        font-size: 11px;
    }
    
    .topbar-link {
        font-size: 11px;
        gap: 4px;
    }
    
    .topbar-link span {
        display: none;
    }
    
    .topbar-social {
        gap: 6px;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
    
    .desktop-menu,
    .nav-cta-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        height: 60px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .nav-topbar {
        display: none;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav-wrapper {
        height: 60px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .nav-search-btn {
        width: 36px;
        height: 36px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input,
    .search-form button {
        width: 100%;
    }
    
    .suggestion-tags {
        flex-direction: column;
    }
    
    .suggestion-tags a {
        text-align: center;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .menu-list {
        gap: 12px;
    }
    
    .menu-link {
        padding: 12px 22px;
        font-size: 16px;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Focus States */
.menu-link:focus,
.nav-search-btn:focus,
.btn-demo:focus,
.btn-quote:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--nav-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .modern-nav {
        display: none;
    }
}

/* ========================================
   Dark Mode Support
   ======================================== */
@media (prefers-color-scheme: dark) {
    .nav-main {
        background: var(--nav-dark);
    }
    
    .menu-link,
    .mobile-menu-link {
        color: var(--nav-text);
    }
    
    .dropdown-menu {
        background: var(--nav-darker);
    }
    
    .dropdown-menu a {
        color: var(--nav-text);
    }
    
    .mobile-menu {
        background: var(--nav-dark);
    }
    
    .mobile-submenu {
        background: var(--nav-dark);
    }
}
