/* 
 * FUTURE AI - Main Design System V2
 * Pure Vanilla CSS with Modern Aesthetics
 */

:root {
    --primary: #00f0ff;
    /* Cyan Neon */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #7000ff;
    /* Deep Purple */
    --secondary-glow: rgba(112, 0, 255, 0.4);
    --accent: #ff003c;
    /* Crimson Neon */
    --success: #00ff9d;
    /* Mint Neon */
    --warning: #ffd600;
    /* Cyber Gold */
    --dark: #050510;
    /* Deep Space Black */
    --panel-bg: rgba(15, 20, 35, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);

    /* Animation Timings */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILITIES --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- ANIMATIONS --- */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

/* --- HUB PAGE SPECIFIC STYLES --- */
.cyber-grid {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -2;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    opacity: 0.5;
    pointer-events: none;
}

.ambient-glow {
    position: fixed; width: 800px; height: 800px; border-radius: 50%;
    filter: blur(100px); z-index: -1; pointer-events: none; opacity: 0.15;
    mix-blend-mode: screen;
}
.glow-1 { top: -200px; left: -200px; background: radial-gradient(circle, #06b6d4, transparent 70%); animation: drift 20s ease-in-out infinite alternate; }
.glow-2 { bottom: -200px; right: -200px; background: radial-gradient(circle, #a855f7, transparent 70%); animation: drift 25s ease-in-out infinite alternate-reverse; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

.holo-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.holo-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(34, 211, 238, 0.4), transparent);
    transform: translateX(-100%); transition: transform 0.6s ease; z-index: 1; pointer-events: none;
}
.holo-card:hover {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3), inset 0 0 20px rgba(6, 182, 212, 0.1);
}
.holo-card:hover::before { transform: translateX(100%); }

.dna-container {
    width: 300px; height: 500px; position: relative;
    transform-style: preserve-3d;
    animation: rotateDNA 15s linear infinite;
}
@keyframes rotateDNA { from { transform: rotateY(0deg) rotateX(10deg); } to { transform: rotateY(360deg) rotateX(10deg); } }
.base-pair {
    position: absolute; left: 50%; width: 140px; height: 4px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.8), rgba(6, 182, 212, 0.2));
    transform-origin: center;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
.node {
    position: absolute; top: -4px; width: 12px; height: 12px;
    background: #fff; border-radius: 50%; box-shadow: 0 0 15px #22d3ee;
}
.node.left { left: -6px; } .node.right { right: -6px; box-shadow: 0 0 15px #a855f7; }

.terminal-lines {
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

#preloader {
    position: fixed; inset: 0; background: #030712; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
}
.loader-bar { width: 300px; height: 2px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; margin-top: 20px;}
.loader-progress { position: absolute; top: 0; left: 0; height: 100%; background: #22d3ee; width: 0%; box-shadow: 0 0 10px #22d3ee;}

/* --- TITAN 2.0 ORIENTATION & EVOLUTION VFX --- */
.orientation-overlay {
    position: fixed; inset: 0; z-index: 1000; pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 240, 255, 0.05) 100%);
    box-shadow: inset 0 0 100px rgba(0, 240, 255, 0.1);
    animation: pulse-border 4s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.05); }
    50% { box-shadow: inset 0 0 150px rgba(0, 240, 255, 0.15); }
}

.hologram-scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 1px;
    background: rgba(0, 240, 255, 0.1);
    z-index: 9999; pointer-events: none;
    animation: scanline_move 8s linear infinite;
}

@keyframes scanline_move {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

.glitch-active {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(1deg); }
    40% { transform: skew(-1deg); }
    60% { transform: skew(0.5deg); }
    80% { transform: skew(-0.5deg); }
    100% { transform: skew(0deg); }
}

.evolution-particle {
    position: fixed; width: 4px; height: 4px; border-radius: 50%;
    pointer-events: none; z-index: 2000;
}

/* Dock Evolution States */
.dock-bar.orientation-mode {
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2) !important;
    animation: dock-breathe 2s ease-in-out infinite;
}

@keyframes dock-breathe {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5)); }
}

/* --- AI RECOMMENDATION CARDS --- */
.ai-rec-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    animation: slide-up-fade 0.5s var(--ease-out-expo);
}

.ai-rec-header {
    font-size: 10px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-rec-header i {
    font-size: 12px;
    filter: drop-shadow(0 0 5px var(--primary));
}

.ai-rec-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-rec-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.ai-rec-card:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: -10px 0 20px rgba(0, 240, 255, 0.1);
}

.ai-rec-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 3px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.ai-rec-card:hover::after {
    transform: scaleY(1);
}

.ai-rec-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.ai-rec-info {
    flex: 1;
}

.ai-rec-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.ai-rec-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.ai-rec-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.ai-rec-card:hover .ai-rec-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

@keyframes slide-up-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}