@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #07040D;
    --bg-card: rgba(22, 14, 38, 0.7);
    --border-card: rgba(168, 85, 247, 0.25);
    --accent-purple: #A855F7;
    --accent-pink: #EC4899;
    --accent-cyan: #00E5FF;
    --accent-magenta: #D946EF;
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    selection-background-color: #A855F7;
    selection-color: #FFFFFF;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #07040D;
}
::-webkit-scrollbar-thumb {
    background: #2E1A47;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
::-webkit-scrollbar-thumb:hover {
    background: #A855F7;
}

/* Glowing text and borders */
.glow-purple {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.3);
}
.glow-pink {
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 40px rgba(236, 72, 153, 0.3);
}
.glow-cyan {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.3);
}

.box-glow-purple {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.25), inset 0 0 15px rgba(168, 85, 247, 0.1);
}
.box-glow-pink {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.25), inset 0 0 15px rgba(236, 72, 153, 0.1);
}
.box-glow-cyan {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.25), inset 0 0 15px rgba(0, 229, 255, 0.1);
}

/* Glassmorphic card styling */
.glass-card {
    background: rgba(22, 14, 38, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.25);
}

/* Gradient Backgrounds & Buttons */
.gradient-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 40%, #EC4899 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}
.gradient-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 40%, #DB2777 100%);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
    transform: translateY(-2px);
}

.gradient-btn-cyan {
    background: linear-gradient(135deg, #0284C7 0%, #00E5FF 50%, #A855F7 100%);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
    transition: all 0.3s ease;
}
.gradient-btn-cyan:hover {
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.glass-btn {
    background: rgba(36, 23, 61, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: rgba(56, 29, 94, 0.8);
    border-color: #E879F9;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

/* CRT Scanline Overlay */
.crt-overlay {
    background: linear-gradient(rgba(18, 16, 26, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
}

/* 3D Tilt Wrapper */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}
.tilt-inner {
    transform: translateZ(20px);
}

/* Animated Floating */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Equalizer Bars */
.eq-bar {
    animation: eqAnim 1s ease-in-out infinite alternate;
}
@keyframes eqAnim {
    0% { height: 4px; }
    100% { height: 24px; }
}
.eq-bar:nth-child(1) { animation-delay: 0.1s; }
.eq-bar:nth-child(2) { animation-delay: 0.3s; }
.eq-bar:nth-child(3) { animation-delay: 0.5s; }
.eq-bar:nth-child(4) { animation-delay: 0.2s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; }
