/* --- VARS & CORE --- */
:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #fcee0a;
    --void-black: #050505;
    --panel-bg: rgba(10, 15, 30, 0.90);
}

body {
    background-color: var(--void-black);
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

h1, h2, h3, .brand-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* --- GLITCH EFFECT --- */
.glitch-text {
    position: relative;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 81px, 0); }
    20% { clip: rect(88px, 9999px, 17px, 0); }
    40% { clip: rect(23px, 9999px, 8px, 0); }
    60% { clip: rect(69px, 9999px, 4px, 0); }
    80% { clip: rect(9px, 9999px, 55px, 0); }
    100% { clip: rect(35px, 9999px, 86px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(4px, 9999px, 14px, 0); }
    40% { clip: rect(38px, 9999px, 63px, 0); }
    60% { clip: rect(98px, 9999px, 24px, 0); }
    80% { clip: rect(12px, 9999px, 35px, 0); }
    100% { clip: rect(81px, 9999px, 60px, 0); }
}

/* --- UI COMPONENTS --- */
.cyber-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-transform: uppercase;
    position: relative;
    transition: 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    cursor: pointer;
}

.cyber-btn:hover {
    background: var(--neon-cyan);
    color: var(--void-black);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.cyber-card {
    background: var(--panel-bg);
    border-left: 2px solid var(--neon-cyan);
    position: relative;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-left: 2px solid var(--neon-pink);
    box-shadow: -5px 0 15px rgba(255, 0, 255, 0.2);
}

/* MEGA MENU & MOBILE NAV */
.mega-menu {
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 2px solid var(--neon-cyan);
    backdrop-filter: blur(15px);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

.mega-menu.active {
    transform: translateY(0);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 80px; /* Header Height */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--void-black);
    z-index: 45;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

/* RPG Stats Bar */
.xp-bar {
    background: #333;
    height: 4px;
    width: 100px;
    position: relative;
}
.xp-fill {
    background: var(--neon-yellow);
    height: 100%;
    width: 65%;
    box-shadow: 0 0 5px var(--neon-yellow);
}

/* Scanline */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0, 243, 255, 0.1) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}
@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100%; }
}