@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

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

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A0A0F 0%, #1a1a2e 35%, #16213e 70%, #0f0f15 100%);
    color: white;
}

.quantum-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F7E7CE 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease-in-out infinite;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.threads-title {
    background: linear-gradient(135deg, #D4AF37 0%, #F7E7CE 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease-in-out infinite;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.glass-morphism {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 40px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.glow-effect {
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.quantum-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    outline: none;
    transition: all 0.3s ease;
}

.quantum-slider:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.quantum-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF, #8B5CF6);
    cursor: pointer;
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.quantum-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.8),
        0 6px 16px rgba(0, 0, 0, 0.4);
}

.quantum-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF, #8B5CF6);
    cursor: pointer;
    border: none;
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes float-smooth {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-3px) scale(1.01); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

@keyframes drift {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

@keyframes pulse-quantum {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes pulse-soft {
    0%, 100% { 
        opacity: 0.8;
    }
    50% { 
        opacity: 1;
    }
}

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

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00D4FF, #8B5CF6);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00B8E6, #7C3AED);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(135deg, #00D4FF, #8B5CF6);
    border-radius: 50%;
    pointer-events: none;
    animation: drift 25s linear infinite;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

/* Neural Network Lines */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

/* Enhanced Holographic Text Effects */
.holographic {
    text-shadow: 
        0 0 8px #00D4FF,
        0 0 16px #00D4FF,
        0 0 24px #00D4FF,
        0 0 32px #8B5CF6;
    animation: glow 3s ease-in-out infinite alternate;
}

/* Loading Animation */
@keyframes quantum-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quantum-spinner {
    animation: quantum-spin 1.5s linear infinite;
}

/* Enhanced Selection Styles */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* Enhanced Focus Styles */
input:focus, textarea:focus, select:focus, button:focus {
    outline: 2px solid rgba(0, 212, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-morphism {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    #neural-bg {
        opacity: 0.4;
    }
    
    .quantum-gradient, .threads-title {
        background-size: 150% 150%;
    }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #050508 0%, #0f0f1a 35%, #0a0f1c 70%, #05050a 100%);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse-quantum,
    .animate-float,
    .animate-float-smooth,
    .quantum-gradient,
    .threads-title {
        animation: none;
    }
    
    .transition-all {
        transition: none;
    }
}