/* Tailwind Configuration CSS */
:root {
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base Styles */
body {
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Glass Effect */
.glass-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #2563eb;
}

.hover-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-card:hover::after {
    opacity: 1;
    animation: scan 1.5s linear infinite;
}

/* Background Grid */
.bg-grid {
    background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Canvas Background */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive SVG Styles */
.node-group {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node-group:hover circle,
.node-group:hover rect,
.node-group:hover polygon {
    stroke: #2563eb;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.node-group:hover text {
    fill: #2563eb;
    font-weight: 700;
}