=/* 🚀 ETHEREAL-GLASS MEGA MENU SYSTEM - V6 (DARK GLASS SOPHISTICATED EDITION) */

:root {
    --primary-color: #ff0033; /* BRAND RED */
    --secondary-color: #ff3366; 
    --panel-bg: rgba(10, 12, 25, 0.95); /* DARKER glass */
    --panel-border: rgba(255, 255, 255, 0.08); /* More subtle border */
    --column-border: rgba(255, 255, 255, 0.05);
    --hover-bg: rgba(255, 0, 51, 0.08); /* Even more subtle red */
    --text-light: rgba(255, 255, 255, 0.85);
    --text-dark: rgba(255, 255, 255, 0.02);
    --glass-panel-blur: 35px; /* Enhanced blur */
    --theme-red: #ff0033;
    --primary-accent: var(--theme-red);
}

.mega-menu-parent {
    position: relative;
}

/* 🎨 DESKTOP TRIGGER - DARK GLASS STYLE */
.mega-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9) !important; /* Softer white */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px); /* More blur */
    border: 1px solid transparent;
}

.mega-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 0, 51, 0.3); /* Very subtle red */
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255, 0, 51, 0.4); /* Minimal glow */
    transform: translateY(-1px);
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3), /* Dark shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mega-indicator {
    font-size: 0.7em;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 8px;
    color: rgba(255, 0, 51, 0.6); /* More subtle red */
}

.mega-menu-parent:hover .mega-indicator {
    transform: rotate(180deg) scale(1.1);
    color: rgba(255, 0, 51, 0.8);
}

/* 🌟 DESKTOP MEGA MENU - DARK GLASS STYLE */
.cyber-mega-menu {
    position: absolute;
    top: 60px !important;
    left: 0;
    transform: translateX(0) translateY(0px);
    width: auto;
    min-width: 280px;
    top: 45px !important; 
    
    /* Dark Glass Style */
    background: var(--panel-bg) !important;
    backdrop-filter: blur(var(--glass-panel-blur)) saturate(160%) !important;
    border: 1px solid var(--panel-border) !important;
    border-top: 2px solid rgba(255, 0, 51, 0.6); /* Subtle red accent */
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.03); /* Very subtle inner border */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    border-radius: 14px;
    overflow: visible;
    padding: 0;
}

/* Make multi-column menus wider */
.mega-multi-column .cyber-mega-menu {
    width: 750px;
    overflow: hidden;
}

.nav-menu-left .cyber-mega-menu {
    left: 0;
    right: auto;
}

.nav-menu-right .cyber-mega-menu {
    left: auto;
    right: 0;
}

.mega-menu-parent:hover .cyber-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(8px);
}

/* 🔥 DESKTOP GRID - DARK GLASS LAYOUT */
.mega-menu-grid {
    display: grid;
    gap: 0;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
}

.mega-multi-column .mega-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 10px;
    gap: 20px;
}

.mega-single-column .mega-menu-grid {
     grid-template-columns: 1fr;
}

/* Mega Column - DARK GLASS SECTIONS */
.mega-column {
    padding: 0;
    background: rgba(255, 255, 255, 0.02); /* Almost transparent */
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mega-column:hover {
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.mega-multi-column .mega-column {
     border-right: 1px solid var(--column-border);
     margin: 0;
}

.mega-column:last-child {
    border-right: none;
}

/* Hide column headers if it's a simple single column */
.mega-single-column .mega-column-header {
    display: none;
}

/* MULTI-COLUMN headers - DARK GLASS TITLES */
.mega-column-header {
    margin-bottom: 0;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

/* BOTH multi-column AND single-column headers - DARK GLASS TITLES */
.mega-parent-link {
    color: rgba(255, 255, 255, 0.9) !important; /* Softer white */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 0, 51, 0.3); /* Minimal glow */
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.mega-column-indicator {
    font-size: 0.8rem;
    color: rgba(255, 0, 51, 0.6);
    transition: transform 0.3s ease;
}

/* =================================
 * ✨✨ V6 COLLAPSIBLE & FLY-OUT STYLES ✨✨
 * =================================
 */

/* === A. Styles for MULTI-COLUMN Accordions === */
.mega-multi-column .mega-column-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 20px;
    transition: all 0.4s ease-out;
}

.mega-multi-column .mega-column.column-active .mega-column-items {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
    padding: 0 20px 20px 20px;
}

.mega-multi-column .mega-column.column-active .mega-column-indicator {
    transform: rotate(180deg);
}

/* === B. Styles for SINGLE-COLUMN Fly-outs === */
.mega-single-column .mega-column-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

/* Fly-out trigger item - DARK GLASS BUTTONS */
.mega-flyout-trigger {
    position: relative;
    list-style: none;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mega-flyout-trigger:hover {
    border-color: rgba(255, 0, 51, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Fly-out panel - DARK GLASS */
.mega-flyout-panel {
    position: absolute;
    top: -8px;
    left: 100%;
    margin-left: 10px;
    width: auto;
    min-width: 220px;
    
    /* Dark Glass Style */
    background: rgba(10, 12, 25, 0.95) !important;
    backdrop-filter: blur(35px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 0, 51, 0.5);
    border-radius: 14px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    padding: 20px;
    
    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: all 0.3s ease;
    
    /* Content styles */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Show fly-out panel on trigger hover */
.mega-flyout-trigger:hover > .mega-flyout-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Highlight the trigger item when its fly-out is open */
.mega-flyout-trigger:hover > .mega-parent-link {
    color: #fff !important;
}

.mega-flyout-trigger > .mega-parent-link {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
    background: transparent;
}

/* Child Items - DARK GLASS BUTTONS */
.mega-child-item {
    list-style: none;
}

.mega-child-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-size: 0.95rem;
    padding: 12px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    white-space: nowrap;
    
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    backdrop-filter: blur(10px);
}

.mega-child-link::before {
    content: '▶';
    color: rgba(255, 0, 51, 0.5); /* Subtle red */
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.mega-child-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 0, 51, 0.2);
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(255, 0, 51, 0.3); /* Minimal glow */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mega-child-link:hover::before {
    transform: translateX(3px);
    color: rgba(255, 0, 51, 0.7);
}

/* Single column direct links */
.mega-single-column .mega-child-link {
    font-size: 1rem;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin: 2px 0;
}

.mega-single-column .mega-child-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 0, 51, 0.2);
    transform: translateX(4px);
}

/* Active state for multi-column accordion headers */
.mega-multi-column .mega-column.column-active .mega-column-header {
    background: rgba(255, 0, 51, 0.06);
    border-bottom-color: rgba(255, 0, 51, 0.3);
}

.mega-multi-column .mega-column.column-active .mega-parent-link {
    color: #fff !important;
    text-shadow: 0 0 6px rgba(255, 0, 51, 0.4);
}

/* 📱 MOBILE STYLES */
@media (max-width: 768px) {
    .cyber-mega-menu,
    .mega-menu-grid,
    .mega-column,
    .mega-column-header,
    .mega-column-items,
    .mega-accordion-content,
    .mega-accordion-grid,
    .mega-accordion-column,
    .mega-flyout-panel {
        display: none !important;
    }
    
    .mega-menu-parent {
        position: static;
    }
    
    .mobile-menu .mega-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 18px 20px;
        margin: 0;
        border-radius: 0;
        border: none;
        background: rgba(255, 255, 255, 0.03);
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9) !important;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-family: 'Oswald', sans-serif;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .mobile-menu .mega-trigger:hover {
        background: rgba(255, 0, 51, 0.06);
        color: #fff !important;
        transform: none;
    }
    
    .mobile-menu .mega-indicator {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
        font-size: 0.8rem;
        color: rgba(255, 0, 51, 0.6);
    }
}

/* 💫 SMOOTH TRANSITIONS */
.mega-menu-parent {
    transition: all 0.3s ease;
}

/* 🌟 DESKTOP ONLY SUBTLE GLOW ANIMATION */
@media (min-width: 769px) {
    .cyber-mega-menu:hover {
        animation: subtleGlowPulse 4s ease-in-out infinite;
    }
}

@keyframes subtleGlowPulse {
    0%, 100% { 
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(255, 255, 255, 0.03);
    }
    50% { 
        box-shadow: 
            0 25px 60px rgba(255, 0, 51, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.03);
    }
}

/* 🎨 BRAND COLOR ENHANCEMENTS */
.mega-menu-parent.active .mega-trigger {
    background: rgba(255, 0, 51, 0.08);
    border-color: rgba(255, 0, 51, 0.4);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.2);
}

/* Active fly-out trigger enhancement */
.mega-flyout-trigger.active {
    background: rgba(255, 0, 51, 0.06);
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.15);
}

/* Multi-column active state enhancement */
.mega-multi-column .mega-column.column-active {
    border-color: rgba(255, 0, 51, 0.25);
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.1);
}

/*
=====================================================
  🚀 HEADER RESPONSIVE TOGGLE 
=====================================================
*/
.mobile-nav-toggle {
    display: none; 
}

@media (max-width: 768px) {
    .nav-links-wrapper {
        display: none;
    }
    .mobile-nav-toggle {
        display: block; 
        margin-left: 15px; 
    }
    .main-nav {
        justify-content: space-between;
    }
}