/* QuantumCortex Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    min-height: 100vh;
    position: relative;
}

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

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0ea5e9, #a855f7);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0284c7, #9333ea);
}

/* Quantum Glow Effects */
.quantum-glow {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.neural-glow {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

/* Particle Animation */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Quantum Grid Background */
.quantum-grid {
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* Neural Network Connections */
.neural-connection {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    height: 2px;
    transform-origin: left center;
}
/* Quantum Pulse Animation */
@keyframes quantum-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.quantum-pulse {
    animation: quantum-pulse 2s ease-in-out infinite;
}

/* Vector Physics Specific */
.vector-glow {
    box-shadow: 0 0 40px rgba(245, 147, 38, 0.3);
}

@keyframes vector-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.vector-spin {
    animation: vector-spin 10s linear infinite;
}

/* Three‑Body Simulation Canvas */
.simulation-canvas {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2d1b69 100%);
}
/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #a855f7, #0ea5e9);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Glass Morphism */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quantum Orb */
.quantum-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(14, 165, 233, 0.4) 0%,
        rgba(168, 85, 247, 0.3) 30%,
        transparent 70%);
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
}

/* Loading Quantum Dots */
.quantum-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0ea5e9;
    position: relative;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.quantum-dot:nth-child(2) {
    background: #a855f7;
    animation-delay: 0.2s;
}

.quantum-dot:nth-child(3) {
    background: #0ea5e9;
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quantum-orb {
        width: 200px;
        height: 200px;
    }
    
    .glass {
        backdrop-filter: blur(5px);
    }
}

/* Quantum Circuit Lines */
.quantum-circuit {
    position: relative;
    overflow: hidden;
}

.quantum-circuit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    animation: circuit-flow 3s linear infinite;
}

@keyframes circuit-flow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}