
:root {
    --bg-base: #030305;
    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;
    
    --accent-orange: #FF5E00;
    --accent-red: #EF4444;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    
    --card-bg: rgba(255, 255, 255, 0.02);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   PRIMARY NAVIGATION & MEGA MENU (GLOBAL)
   ========================================================================== */

.alpha-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

/* Modifies nav to erase horizontal white structural line in mobile view */
.alpha-nav.menu-open {
    border-bottom-color: transparent;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a { 
    font-family: var(--font-heading); 
    font-weight: 900; 
    font-size: 1.4rem; 
    color: var(--text-main); 
    text-decoration: none; 
    letter-spacing: 3px;
}

.accent-dot { color: var(--accent-orange); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-item, .menu-trigger {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 0;
}

.nav-item:hover, .nav-item.active, .menu-trigger:hover {
    color: var(--text-main);
}

/* Dropdown & Mega Menu Logic */
.nav-item-dropdown { position: relative; }

.arrow-icon {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.2s ease;
    display: inline-block;
}

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

.mega-menu-panel {
    position: absolute;
    top: 150%;
    right: 0;
    background: rgba(5, 5, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1100;
}

/* Trigger menu on hover */
.nav-item-dropdown:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-card {
    display: block;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.mega-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-orange);
}

.card-title {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.external-link-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--accent-orange);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.mega-card:hover .external-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Ventures Tab Neon Highlight */
.highlight-venture {
    color: var(--accent-orange);
    text-shadow: 0 0 12px rgba(255, 94, 0, 0.4);
    font-weight: 600;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.highlight-venture:hover {
    color: #FF8533; 
    text-shadow: 0 0 20px rgba(255, 94, 0, 0.9);
}

/* Responsive adjustment for Mega Menu */
@media (max-width: 992px) {
    .mega-menu-panel { width: 250px; }
}

/* ==========================================================================
   MOBILE HAMBURGER & RESPONSIVE NAV MENU
   ========================================================================== */

/* Hamburger Button Setup */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative; /* Forces absolute top layer */
    z-index: 1005; /* Ensures strict touch accessibility */
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #FF5E00; /* Alpha Knight Orange */
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop Mega Menu Hover (Ensure this exists for desktop) */
@media screen and (min-width: 993px) {
    .nav-item-dropdown:hover .mega-menu-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media screen and (max-width: 992px) {
    .hamburger-btn {
        display: flex;
    }

    /* Full Screen Center-Aligned Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98); 
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;    /* Center align horizontally */
        justify-content: center; /* Center align vertically */
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-links.nav-active {
        right: 0; /* Slides in */
    }

    /* Mobile Nav Item Adjustments */
    .nav-item, .menu-trigger {
        font-size: 1.5rem; /* Larger font for mobile */
        text-align: center;
        display: inline-block;
    }

    /* Transform Hamburger into 'X' */
    .hamburger-btn.toggle .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
    }
    .hamburger-btn.toggle .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .hamburger-btn.toggle .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* --- MOBILE MEGA MENU HANDLING --- */
    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .mega-menu-panel {
        position: static; /* Overrides desktop absolute positioning */
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
        max-width: 300px;
        padding: 20px 0 0 0;
        
        /* Mobile Toggle State */
        display: none; 
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* When the JS adds this class, the mega menu slides down inline */
    .nav-item-dropdown.mobile-dropdown-active .mega-menu-panel {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .mega-menu-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mega-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
}


/* ==========================================================================
   GLOBAL FOOTER ARCHITECTURE
   ========================================================================== */
.site-footer {
    padding: 80px 48px 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
}

.footer-heading {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fun-fact {
    font-style: italic;
}

/* Footer Responsive adjustments */
@media (max-width: 768px) {
    .site-footer { padding: 60px 24px 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}