/* ========================================
   CYBERHUB - ELITE TRAINING PLATFORM
   Cyberpunk Terminal Aesthetic
   ======================================== */

:root {
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
    --cyber-purple: #9d00ff;
    --cyber-blue: #0066ff;
   
    --bg-primary: #0a0e27;
    --bg-secondary: #121829;
    --bg-tertiary: #1a1f3a;
    --bg-card: #151a30;

    --text-primary: #ffffff;
    --text-secondary: #b4bcd0;
    --text-muted: #6b7a99;

    --accent-primary: var(--neon-cyan);
    --accent-secondary: var(--cyber-purple);
    --success: var(--neon-green);
    --warning: var(--neon-yellow);
    --danger: #ff0055;

    --glow-cyan: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    --glow-purple: 0 0 10px var(--cyber-purple), 0 0 20px var(--cyber-purple), 0 0 30px var(--cyber-purple);
    --glow-green: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */

.terminal-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
}

.terminal-cursor::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   MATRIX BACKGROUND
   ======================================== */

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* ========================================
   PRELOADER
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.terminal-window {
    width: 600px;
    max-width: 90%;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--glow-cyan);
}

.terminal-header {
    background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
}

.terminal-title {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 14px;
    font-weight: 600;
    text-shadow: var(--glow-cyan);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.terminal-controls span:nth-child(1) { background: #ff5f56; }
.terminal-controls span:nth-child(2) { background: #ffbd2e; }
.terminal-controls span:nth-child(3) { background: var(--success); }

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-green);
    min-height: 200px;
}

.boot-sequence p {
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInText 0.5s forwards;
}

.boot-sequence p:nth-child(1) { animation-delay: 0.2s; }
.boot-sequence p:nth-child(2) { animation-delay: 0.6s; }
.boot-sequence p:nth-child(3) { animation-delay: 1s; }
.boot-sequence p:nth-child(4) { animation-delay: 1.4s; }

@keyframes fadeInText {
    to { opacity: 1; }
}

.prompt {
    color: var(--neon-cyan);
    margin-right: 10px;
}

.success {
    color: var(--success);
    font-weight: 700;
    text-shadow: var(--glow-green);
}

.loading-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--neon-cyan);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--cyber-purple));
    width: 0%;
    animation: loadingProgress 2s ease-in-out forwards;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes loadingProgress {
    to { width: 100%; }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--neon-cyan);
    font-weight: 600;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 24px;
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--cyber-purple);
    text-shadow: var(--glow-purple);
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.nav-menu {
    flex: 1;
    margin: 0 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    text-shadow: var(--glow-cyan);
}

.nav-link:hover {
    color: transparent;
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.active {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
}

.username {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neon-cyan);
}

.user-badge {
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.btn-outline:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
}

.btn:hover .btn-glow {
    animation: btnShine 1s ease;
}

@keyframes btnShine {
    to { transform: translateX(100%); }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.glitch {
    position: relative;
    display: inline-block;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    color: var(--neon-magenta);
    animation: glitch1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--cyber-blue);
    animation: glitch2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.highlight {
    color: var(--cyber-purple);
    text-shadow: var(--glow-purple);
}

.typing-text {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.typing-text::after {
    content: '_';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.terminal-demo .terminal-body {
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
}

#terminalOutput {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--neon-green);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    padding: 15px 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.float-card:nth-child(1) { top: 10%; right: -10%; }
.float-card:nth-child(2) { top: 40%; right: 10%; }
.float-card:nth-child(3) { bottom: 30%; right: -5%; }
.float-card:nth-child(4) { bottom: 10%; right: 15%; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========================================
   LIVE STATS BAR
   ======================================== */

.live-stats-bar {
    background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid var(--neon-cyan);
    border-bottom: 1px solid var(--neon-cyan);
    padding: 15px 0;
    margin-top: 50px;
}

.live-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.live-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-cyan);
}

.live-stat i {
    font-size: 18px;
    text-shadow: var(--glow-cyan);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(157, 0, 255, 0.1);
    border: 1px solid var(--cyber-purple);
    border-radius: 20px;
    color: var(--cyber-purple);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   COURSES
   ======================================== */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--cyber-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card.featured {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(157, 0, 255, 0.1));
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.course-level {
    padding: 4px 12px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--success);
    border-radius: 4px;
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.course-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.course-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    padding: 4px 10px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.coming-soon {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.coming-soon-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--cyber-purple);
    text-shadow: var(--glow-purple);
    letter-spacing: 2px;
}

/* ========================================
   LABS SECTION
   ======================================== */

.labs-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.lab-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.lab-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.active-lab {
    border-color: var(--success);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
}

.lab-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

.lab-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(157, 0, 255, 0.1));
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.lab-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.lab-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.lab-difficulty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.lab-difficulty span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.difficulty-bars {
    display: flex;
    gap: 4px;
}

.difficulty-bars .bar {
    width: 30px;
    height: 6px;
    background: rgba(0, 243, 255, 0.2);
    border-radius: 2px;
}

.difficulty-bars .bar.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.lab-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.lab-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   TOOLS SECTION
   ======================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(157, 0, 255, 0.1));
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.tool-card input[type="text"],
.tool-card input[type="password"] {
    width: 100%;
    padding: 12px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tool-card input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.password-input-group {
    position: relative;
    margin-bottom: 15px;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.toggle-visibility:hover {
    color: var(--neon-cyan);
}

.hash-select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
}

.tool-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neon-cyan);
    display: none;
    word-break: break-all;
}

.tool-result.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LEADERBOARD
   ======================================== */

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateX(5px);
}

.rank-1,
.rank-2,
.rank-3 {
    border-width: 3px;
}

.rank-1 {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), var(--bg-card));
}

.rank-2 {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), var(--bg-card));
}

.rank-3 {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05), var(--bg-card));
}

.rank-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--bg-primary);
    position: relative;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #d4a574);
}

.rank-badge i {
    font-size: 14px;
    margin-bottom: 2px;
}

.rank-number {
    width: 50px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    color: var(--text-muted);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--neon-cyan);
}

.user-details {
    flex: 1;
}

.user-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.user-stats {
    display: flex;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.user-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-score {
    text-align: right;
}

.score-number {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-cyan);
    display: block;
}

.score-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========================================
   USER DASHBOARD
   ======================================== */

.user-dashboard {
    background: var(--bg-secondary);
    padding: 60px 0;
    border-top: 2px solid var(--neon-cyan);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--cyber-purple) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0,50 L50,0 L100,50 L50,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--bg-primary);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 20px;
    color: var(--bg-primary);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-primary {
    background: var(--bg-primary);
    color: var(--neon-cyan);
    border: 2px solid var(--bg-primary);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: var(--bg-primary);
    border-color: var(--bg-primary);
}

.cta-buttons .btn-outline:hover {
    background: var(--bg-primary);
    color: var(--neon-cyan);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 2px solid var(--neon-cyan);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.footer-logo .accent {
    color: var(--cyber-purple);
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    transition: color 0.3s ease;
}

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

/* ========================================
   SCROLL TO TOP
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    border: none;
    border-radius: 4px;
    color: var(--bg-primary);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

/* ========================================
   MODALS
   ======================================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 500px;
    max-width: 90%;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: var(--glow-cyan);
    letter-spacing: 2px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    padding: 12px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    cursor: pointer;
}

.forgot-link {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--cyber-purple);
}

.form-checkbox {
    font-size: 13px;
    color: var(--text-secondary);
}

.form-checkbox a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    animation: toastSlideIn 0.3s ease;
    min-width: 300px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .floating-elements {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-auth {
        gap: 10px;
    }
    
    .nav-auth .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .course-grid,
    .labs-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
