@import url('https://fonts.googleapis.com/css?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    /* Fusion: Dark Fintech Base (V1) + Deep Cyber Tones (V2) */
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a8a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    position: relative;
}

/* === CORE EFFECTS === */

/* Optimized Particle Canvas */
.particle-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
}

/* Enhanced Glassmorphism */
.glassmorphism {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Holographic Border Animation */
.holographic {
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: pulse-border 4s infinite alternate;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

@keyframes pulse-border {
    0% {
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
    }

    100% {
        border-color: rgba(147, 197, 253, 0.5);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    }
}

.neon-text {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Typing Cursor */
.ai-typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Interactive Elements */
.card-interactive {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-gradient {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-gradient:hover::after {
    left: 100%;
}

/* Voice Button Pulse */
.mic-active {
    animation: pulse-red 1.5s infinite;
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}