/* ============================================
   MIDNIGHT BLUE FUTURISTIC THEME
   LearnVaultX - Exact Match to Reference Image
   ============================================ */

/* ============================================
   STRICT COLOR PALETTE - REFERENCE IMAGE MATCH
   ============================================ */

:root {
    /* Midnight Blue Backgrounds */
    --midnight-bg-primary: #0A0E27;
    --midnight-bg-secondary: #101633;
    --midnight-bg-glass: rgba(255, 255, 255, 0.06);

    /* Neon Blue / Cyan ONLY */
    --neon-blue: #4DA3FF;
    --neon-cyan: #67E8F9;
    --neon-blue-dark: #3B82F6;

    /* Text Colors */
    --midnight-text-primary: #EAF0FF;
    --midnight-text-secondary: #A8B0D8;

    /* Borders */
    --midnight-border: rgba(77, 163, 255, 0.35);
    --midnight-border-soft: rgba(77, 163, 255, 0.2);

    /* Glow Effects */
    --glow-soft: 0 0 20px rgba(77, 163, 255, 0.4);
    --glow-medium: 0 0 30px rgba(77, 163, 255, 0.5);
    --glow-strong: 0 0 40px rgba(77, 163, 255, 0.6);
    --glow-cyan: 0 0 25px rgba(103, 232, 249, 0.5);

    /* Glassmorphism */
    --glass-blur: 12px;
}

/* ============================================
   UPDATE FUTURISTIC THEME TO MIDNIGHT BLUE
   ============================================ */

[data-theme="futuristic"] {
    /* Override existing futuristic theme with midnight blue */
    --bg-primary: #0A0E27;
    --bg-secondary: #101633;
    --bg-tertiary: #1a1f3a;
    --bg-surface: #131829;

    --text-primary: #EAF0FF;
    --text-secondary: #A8B0D8;
    --text-tertiary: #9ca3af;
    --text-muted: #64748b;

    /* STRICT: Blue/Cyan ONLY - NO PURPLE/PINK/MAGENTA */
    --primary: #4DA3FF;
    --primary-hover: #3B82F6;
    --secondary: #67E8F9;
    --secondary-hover: #22d3ee;
    --accent: #06b6d4;
    --accent-hover: #0891b2;

    /* Borders */
    --border-primary: rgba(77, 163, 255, 0.35);
    --border-secondary: rgba(77, 163, 255, 0.2);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(77, 163, 255, 0.35);
    --glass-blur: 12px;

    /* Glows */
    --glow-primary: 0 0 20px rgba(77, 163, 255, 0.4);
    --glow-primary-strong: 0 0 40px rgba(77, 163, 255, 0.6);
}

/* ============================================
   BACKGROUND ANIMATIONS
   ============================================ */

[data-theme="futuristic"] body,
[data-theme="futuristic"] .homepage {
    background: var(--midnight-bg-primary);
    position: relative;
    overflow-x: hidden;
}

/* Star Dust Noise Effect */
[data-theme="futuristic"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(255, 255, 255, 0.15), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Horizontal Light Sweep */
[data-theme="futuristic"] body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(77, 163, 255, 0.05) 45%,
            rgba(103, 232, 249, 0.1) 50%,
            rgba(77, 163, 255, 0.05) 55%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: lightSweep 15s ease-in-out infinite;
}

@keyframes lightSweep {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(50%);
    }
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

[data-theme="futuristic"] .glass-card,
[data-theme="futuristic"] .metric-card,
[data-theme="futuristic"] .feature-card,
[data-theme="futuristic"] .card,
[data-theme="futuristic"] .faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--midnight-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    box-shadow: var(--glow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

[data-theme="futuristic"] .glass-card:hover,
[data-theme="futuristic"] .metric-card:hover,
[data-theme="futuristic"] .feature-card:hover,
[data-theme="futuristic"] .card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-medium);
    transform: translateY(-4px);
}

/* ============================================
   NEON GLOW BUTTONS - EXACT MATCH REFERENCE
   ============================================ */

[data-theme="futuristic"] .btn-hero-primary,
[data-theme="futuristic"] .btn-primary {
    /* SOLID blue background with gradient */
    background: linear-gradient(135deg, #1E40AF, #1E3A8A) !important;
    border: 2px solid #67E8F9 !important;
    color: #FFFFFF !important;
    /* Strong cyan glow */
    box-shadow: 0 0 30px rgba(103, 232, 249, 0.6), 0 0 60px rgba(103, 232, 249, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="futuristic"] .btn-hero-primary:hover,
[data-theme="futuristic"] .btn-primary:hover {
    /* Intensified glow on hover */
    box-shadow: 0 0 40px rgba(103, 232, 249, 0.8), 0 0 80px rgba(103, 232, 249, 0.4) !important;
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #2563EB, #1E40AF) !important;
}

[data-theme="futuristic"] .btn-hero-primary:active,
[data-theme="futuristic"] .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Ripple Effect on Click */
[data-theme="futuristic"] .btn-hero-primary::after,
[data-theme="futuristic"] .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

[data-theme="futuristic"] .btn-hero-primary:active::after,
[data-theme="futuristic"] .btn-primary:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Secondary Button - Glass Style - EXACT MATCH */
[data-theme="futuristic"] .btn-hero-secondary,
[data-theme="futuristic"] .btn-secondary {
    background: rgba(10, 14, 39, 0.6) !important;
    border: 1.5px solid rgba(103, 232, 249, 0.3) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="futuristic"] .btn-hero-secondary:hover,
[data-theme="futuristic"] .btn-secondary:hover {
    border-color: rgba(103, 232, 249, 0.5) !important;
    background: rgba(10, 14, 39, 0.8) !important;
    box-shadow: 0 0 25px rgba(103, 232, 249, 0.3);
}

/* Focus State - Neon Outline */
[data-theme="futuristic"] button:focus,
[data-theme="futuristic"] a:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
    box-shadow: var(--glow-soft);
}

/* ============================================
   HERO VIDEO CONTAINER (Replacing Four-Square)
   ============================================ */

.hero-video-container {
    border: none;
    box-shadow: none;
    background: transparent;
}

.hero-video-container:hover {
    box-shadow: none;
}

/* ============================================
   FORM INPUTS - NEON FOCUS STATES
   ============================================ */

[data-theme="futuristic"] input,
[data-theme="futuristic"] textarea,
[data-theme="futuristic"] select {
    background: rgba(16, 22, 51, 0.6);
    border: 1px solid var(--midnight-border-soft);
    color: var(--midnight-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="futuristic"] input:focus,
[data-theme="futuristic"] textarea:focus,
[data-theme="futuristic"] select:focus {
    border-color: var(--neon-blue);
    background: rgba(16, 22, 51, 0.8);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2), var(--glow-soft);
    outline: none;
}

[data-theme="futuristic"] input::placeholder,
[data-theme="futuristic"] textarea::placeholder {
    color: var(--midnight-text-secondary);
    opacity: 0.6;
}

/* ============================================
   HERO SECTION - REFERENCE IMAGE MATCH
   ============================================ */

[data-theme="futuristic"] .hero-section {
    /* Enhanced 4-stop gradient for depth */
    background: linear-gradient(135deg,
            #0A0E27 0%,
            /* Very dark navy */
            #0d1229 40%,
            /* Slightly lighter */
            #101633 70%,
            /* Mid navy */
            #131a3d 100%
            /* Lighter navy at bottom */
        );
    position: relative;
    overflow: hidden;
}

/* Smooth ambient glow overlays - NO partition, full width blend */
[data-theme="futuristic"] .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(77, 163, 255, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 35%, rgba(103, 232, 249, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(138, 70, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(77, 163, 255, 0.04) 0%, transparent 45%);
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Glow Stroke Around Hero Container */
[data-theme="futuristic"] .hero-container {
    position: relative;
    z-index: 2;
}

/* Brand Badge - Pill Style */
[data-theme="futuristic"] .brand-badge {
    background: rgba(77, 163, 255, 0.1);
    border: 1px solid rgba(77, 163, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--glow-soft);
}

[data-theme="futuristic"] .brand-text {
    color: var(--neon-blue);
}

/* Brand Name - Neon Blue Gradient */
[data-theme="futuristic"] .brand-name {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(77, 163, 255, 0.3);
}

/* ============================================
   PROGRESS BARS - NEON GRADIENT
   ============================================ */

[data-theme="futuristic"] .progress-bar {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    box-shadow: var(--glow-soft);
    border-radius: 8px;
}

[data-theme="futuristic"] .progress-container {
    background: rgba(16, 22, 51, 0.5);
    border: 1px solid var(--midnight-border-soft);
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .hero-video {
        max-width: 380px;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-video-container {
        grid-column: 1;
        grid-row: auto;
        min-height: 240px;
        height: auto;
        margin: 16px auto;
        pointer-events: auto;
        transform: none;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration for Animations */
[data-theme="futuristic"] .glass-card,
[data-theme="futuristic"] .btn-hero-primary,
[data-theme="futuristic"] .btn-hero-secondary,
[data-theme="futuristic"] .hero-video-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    [data-theme="futuristic"] * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-theme="futuristic"] body::after {
        animation: none;
    }
}

/* ============================================
   SIDEBAR & PANELS - GLASSMORPHISM
   ============================================ */

[data-theme="futuristic"] .sidebar,
[data-theme="futuristic"] .left-zone,
[data-theme="futuristic"] #ai-panel,
[data-theme="futuristic"] #classAI,
[data-theme="futuristic"] .right-zone {
    background: rgba(16, 22, 51, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--midnight-border);
}

/* ============================================
   MODAL & SETTINGS - GLASSMORPHISM
   ============================================ */

[data-theme="futuristic"] .settings-content,
[data-theme="futuristic"] .modal-content {
    background: rgba(16, 22, 51, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--midnight-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--glow-soft);
}

[data-theme="futuristic"] .settings-modal.active,
[data-theme="futuristic"] .modal-backdrop {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}