/* ===================================================
   VIRTUAL VANGUARDS - MAIN STYLESHEET
   Extracted from index.html
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET & ROOT VARIABLES ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --darker: #020617;
    --text-light: #cbd5e1;
    --mega-bg: rgba(10, 14, 30, 0.98);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

html { 
    scroll-behavior: smooth; 
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 10001; 
    width: 0%; 
    will-change: width;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed; 
    top: 0; 
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: transform;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

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

.logo {
    font-size: 1.5rem; 
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex; 
    list-style: none;
    gap: 0.25rem; 
    align-items: center;
}

.nav-menu > li { 
    position: relative; 
}

.has-mega { 
    position: relative; 
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.93rem;
    transition: color 0.25s;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex; 
    align-items: center; 
    gap: 0.35rem;
}

.nav-menu > li > a:hover { 
    color: #fff; 
    background: rgba(255,255,255,0.06); 
}

.nav-menu > li > a .chevron {
    font-size: 0.65rem; 
    transition: transform 0.3s; 
    opacity: 0.6;
}

.nav-menu > li.has-mega:hover > a .chevron { 
    transform: rotate(180deg); 
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.65rem 1.6rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
    margin-left: 0.5rem;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 6px 28px rgba(99,102,241,0.55) !important;
    transform: translateY(-1px);
}

/* ===== MEGA MENU ===== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 999;
}

.mega-menu-inner {
    background: var(--mega-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.15);
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-6px);
    transition: transform 0.2s ease;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.has-mega:hover .mega-menu-inner {
    transform: translateY(0);
}

.mega-menu.mega-services .mega-menu-inner {
    width: 780px;
}

.mega-menu.mega-platforms .mega-menu-inner {
    width: 480px;
}

.mega-top {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mega-top h4 {
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    color: var(--primary); 
    font-weight: 700;
}

.mega-top a {
    font-size: 0.82rem; 
    color: var(--text-light);
    text-decoration: none; 
    transition: color 0.2s;
    display: flex; 
    align-items: center; 
    gap: 0.4rem;
}

.mega-top a:hover { 
    color: var(--primary); 
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mega-item {
    display: flex; 
    gap: 1rem; 
    align-items: flex-start;
    padding: 1rem; 
    border-radius: 12px;
    text-decoration: none; 
    color: inherit;
    transition: background 0.2s;
    position: relative;
}

.mega-item:hover {
    background: rgba(99,102,241,0.08);
}

.mega-item-icon {
    width: 42px; 
    height: 42px; 
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.mega-item:hover .mega-item-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

.mega-item-icon i { 
    color: var(--primary); 
    transition: color 0.2s; 
}

.mega-item:hover .mega-item-icon i { 
    color: #fff; 
}

.mega-item-text h5 {
    font-size: 0.9rem; 
    font-weight: 700; 
    margin-bottom: 0.2rem;
    color: #fff;
}

.mega-item-text p {
    font-size: 0.78rem; 
    color: var(--text-light); 
    line-height: 1.4;
}

.mega-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.mega-promo {
    display: flex; 
    align-items: center; 
    gap: 0.75rem;
}

.mega-promo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 50px; 
    font-size: 0.72rem; 
    font-weight: 700;
}

.mega-promo p {
    font-size: 0.82rem; 
    color: var(--text-light);
}

.mega-cta-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 0.4rem;
    background: var(--primary); 
    color: white;
    padding: 0.55rem 1.2rem; 
    border-radius: 50px;
    font-size: 0.82rem; 
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.mega-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Platform Mega Menu Styles */
.platform-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.platform-mega-item {
    display: flex; 
    gap: 0.85rem; 
    align-items: center;
    padding: 0.85rem 1rem; 
    border-radius: 12px;
    text-decoration: none; 
    color: inherit;
    transition: background 0.2s;
}

.platform-mega-item:hover { 
    background: rgba(99,102,241,0.08); 
}

.platform-mega-icon {
    width: 38px; 
    height: 38px; 
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.1rem; 
    transition: all 0.2s;
}

.platform-mega-item:hover .platform-mega-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.platform-mega-icon i { 
    transition: color 0.2s; 
}

.platform-mega-item:hover .platform-mega-icon i { 
    color: #fff !important; 
}

.platform-mega-text h5 { 
    font-size: 0.88rem; 
    font-weight: 700; 
    margin-bottom: 0.1rem; 
}

.platform-mega-text p  { 
    font-size: 0.76rem; 
    color: var(--text-light); 
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px; 
    cursor: pointer; 
    z-index: 1001;
}

.menu-toggle span {
    width: 25px; 
    height: 3px; 
    background: white;
    border-radius: 3px; 
    transition: all 0.3s;
}

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

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

.menu-toggle.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(7px,-7px); 
}

.mobile-sub { 
    display: none; 
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2rem; 
    border-radius: 50px;
    font-weight: 600; 
    font-size: 1rem;
    text-decoration: none; 
    transition: all 0.3s;
    display: inline-flex; 
    align-items: center; 
    gap: 0.75rem; 
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; 
    box-shadow: 0 10px 40px rgba(99,102,241,0.4);
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 50px rgba(99,102,241,0.6); 
}

.btn-secondary {
    background: rgba(255,255,255,0.05); 
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: var(--primary); 
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
}

/* ===== RESPONSIVE - TABLET & MOBILE ===== */
@media (max-width: 1024px) {
    .menu-toggle { 
        display: flex; 
    }

    .nav-menu {
        position: fixed; 
        top: 0; 
        left: -100%;
        width: min(360px, 100%);
        height: 100vh;
        background: rgba(10,14,30,0.99);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
        border-right: 1px solid rgba(255,255,255,0.08);
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-menu.active { 
        left: 0; 
    }

    .nav-menu > li { 
        width: 100%; 
    }

    .nav-menu > li > a { 
        width: 100%; 
        padding: 0.9rem 1rem; 
        border-radius: 10px; 
        font-size: 1rem; 
    }

    /* Hide mega menus on mobile, show sub-items inline */
    .mega-menu { 
        display: none; 
    }

    /* Mobile service sub-links */
    .mobile-sub { 
        display: flex; 
        flex-direction: column; 
        gap: 0; 
        padding-left: 1rem; 
        overflow: hidden; 
        max-height: 0; 
        transition: max-height 0.35s; 
    }

    .mobile-sub.open { 
        max-height: 600px; 
    }

    .mobile-sub a { 
        display: block; 
        padding: 0.6rem 1rem; 
        font-size: 0.9rem; 
        color: var(--text-light); 
        text-decoration: none; 
        border-radius: 8px; 
        transition: background 0.2s; 
    }

    .mobile-sub a:hover { 
        background: rgba(99,102,241,0.1); 
        color: var(--primary); 
    }

    .nav-cta { 
        margin-left: 0; 
        width: 100%; 
        text-align: center; 
        justify-content: center; 
        margin-top: 0.5rem; 
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 640px) {
    .btn { 
        width: 100%; 
        justify-content: center; 
    }
}
