/* ============================================================================
   QuantumNeuro Diagnostics - Custom Styles
   ============================================================================ */

/* Base Styles */
:root {
    --primary: #F472B6;
    --secondary: #6366F1;
    --accent: #FBBF24;
    --navy: #0C0A1D;
    --deep-purple: #1A0F2E;
    --rose: #F9A8D4;
    --indigo: #818CF8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-purple) 40%, #120B24 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--rose) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.nav-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Glow Button */
.btn-glow {
    background: linear-gradient(135deg, var(--primary) 0%, #A855F7 50%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
}

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

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(244, 114, 182, 0.5), 0 0 60px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.btn-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-glow:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Glass Button */
.glass-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(ellipse at center, rgba(244, 114, 182, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(251, 191, 36, 0.08) 0%, transparent 40%);
}

.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(244, 114, 182, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.06) 0%, transparent 30%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-icon {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Loading Bar */
.loading-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #A855F7 50%, var(--secondary) 100%);
    background-size: 200% 100%;
    animation: loading-gradient 2s ease infinite;
}

@keyframes loading-gradient {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Confidence Circle */
.confidence-circle {
    filter: drop-shadow(0 0 25px rgba(244, 114, 182, 0.4));
}

#progressCircle {
    stroke: url(#circleGradient);
    transition: stroke-dashoffset 1s ease;
}

/* Result Card */
.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tech Cards */
.tech-card {
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-icon {
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

/* FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.show {
    max-height: 300px;
}

/* Toast Notifications */
.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(20px);
    animation: toast-in 0.3s ease;
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
}

.toast-info {
    background: rgba(6, 182, 212, 0.9);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #A855F7, var(--secondary));
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .text-4xl {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .btn-glow,
    .glass-btn {
        width: 100%;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }
}

/* Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Nav Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Selection */
::selection {
    background: rgba(244, 114, 182, 0.4);
    color: #fff;
}