/* --- GLOBAL DARK THEME & HEADER --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #050505;
    --glass-nav: rgba(5, 5, 5, 0.8);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --logo-grad: linear-gradient(135deg, #FF2E63 0%, #FF9933 100%);
    --accent-cyan: #00C2FF;
    --border-light: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; transition: 0.3s; }

/* --- HEADER STYLING --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: 0.4s ease;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

/* Jab scroll karenge tab ye class lagegi (JS se) */
header.scrolled {
    background: var(--glass-nav);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    height: 45px;
    display: block;
}

/* NAVIGATION LINKS */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item { position: relative; padding: 15px 0; }

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    opacity: 0.8;
}

/* Hover Effect: Gradient Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--logo-grad);
    transition: 0.3s;
}

.nav-link:hover { opacity: 1; color: #fff; }
.nav-link:hover::after { width: 100%; }

.nav-link i { font-size: 10px; margin-left: 5px; color: var(--accent-cyan); }

/* HEADER BUTTON (Small Glow) */
.nav-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--logo-grad);
    transition: 0.4s;
    z-index: -1;
}

.nav-btn:hover { border-color: transparent; }
.nav-btn:hover::before { left: 0; }

/* --- DARK MEGA MENU --- */
.mega-box {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 1100px;
    background: #0f0f12; /* Dark Background */
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Triangle Arrow on Top */
.mega-box::before {
    content: '';
    position: absolute;
    top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 16px; height: 16px;
    background: #0f0f12;
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
}

.nav-item:hover .mega-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--logo-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mega-col ul li { margin-bottom: 12px; }

.mega-col ul li a {
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-col ul li a i {
    font-size: 6px;
    color: var(--accent-cyan);
    transition: 0.3s;
}

.mega-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.mega-col ul li a:hover i {
    font-size: 12px; /* Icon bada ho jayega */
    color: #FF9933;
}

/* MOBILE TOGGLE */
.menu-toggler {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .nav-menu, .nav-btn { display: none; }
    .menu-toggler { display: block; }
}