@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+Arabic:wght@100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Vazirmatn:wght@100..900&display=swap');

:root {
    --glass-bg: rgba(4, 15, 30, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --neon-blue: #0074ac;
    --neon-purple: #20b34d;
    --neon-teal: #20b34d;
    --cosmic-bg: #020b18;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--cosmic-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

body {
    font-family: 'Plus Jakarta Sans', 'Vazirmatn', 'Noto Sans Arabic', sans-serif;
    background-color: var(--cosmic-bg);
    background-image: 
        radial-gradient(at 10% 20%, rgba(0, 116, 172, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(32, 179, 77, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(2, 11, 24, 1) 0px, transparent 100%);
    background-attachment: fixed;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(4, 18, 36, 0.55);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(32, 179, 77, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 116, 172, 0.2);
}

.glass-nav {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
    z-index: 100;
}

/* Dynamic Navbar Style applied when scrolling via JS to keep it ultra polished and clean */
.navbar-scrolled {
    background: rgba(2, 11, 24, 0.85) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}
.nav-link:hover {
    background: rgba(0, 116, 172, 0.1);
    color: #0074ac;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(32, 179, 77, 0.3);
    box-shadow: 0 15px 35px -10px rgba(32, 179, 77, 0.15);
}

/* Neo-Futuristic Buttons */
.btn-neon-blue {
    background: linear-gradient(135deg, rgba(0, 116, 172, 0.15), rgba(0, 116, 172, 0.05));
    border: 1px solid #0074ac;
    text-shadow: 0 0 8px rgba(0, 116, 172, 0.4);
    box-shadow: 0 0 15px rgba(0, 116, 172, 0.05);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-neon-blue:hover {
    background: #0074ac;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 116, 172, 0.35);
    transform: translateY(-1px);
}

.btn-neon-purple {
    background: linear-gradient(135deg, rgba(32, 179, 77, 0.15), rgba(32, 179, 77, 0.05));
    border: 1px solid #20b34d;
    text-shadow: 0 0 8px rgba(32, 179, 77, 0.4);
    box-shadow: 0 0 15px rgba(32, 179, 77, 0.05);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-neon-purple:hover {
    background: #20b34d;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(32, 179, 77, 0.35);
    transform: translateY(-1px);
}

.btn-neon-teal {
    background: linear-gradient(135deg, rgba(32, 179, 77, 0.15), rgba(32, 179, 77, 0.05));
    border: 1px solid #20b34d;
    text-shadow: 0 0 8px rgba(32, 179, 77, 0.4);
    box-shadow: 0 0 15px rgba(32, 179, 77, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-neon-teal:hover {
    background: #20b34d;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(32, 179, 77, 0.35);
    transform: translateY(-1px);
}

/* Animated Neon Blobs */
.neon-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    animation: floatBlob 22s infinite ease-in-out alternate;
}

.blob-blue {
    background: #0074ac;
    width: 450px;
    height: 450px;
    top: 5%;
    left: -10%;
    animation-delay: 0s;
}

.blob-purple {
    background: #20b34d;
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -15%;
    animation-delay: 3s;
}

.blob-teal {
    background: #0074ac;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 40%;
    animation-delay: 6s;
    opacity: 0.15;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(50px, -70px) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 60px) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(0px, 0px) scale(1) rotate(360deg);
    }
}

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

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 15s linear infinite;
    bottom: -20px;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-110vh) scale(0.2) rotate(360deg);
        opacity: 0;
    }
}

/* Custom RTL adaptations */
[dir="rtl"] {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', sans-serif;
}

/* AI Test Elements */
.scanner-ray {
    height: 3px;
    background: linear-gradient(90deg, transparent, #0074ac, transparent);
    box-shadow: 0 0 12px #0074ac;
    animation: scannerMotion 2.5s infinite ease-in-out;
}

@keyframes scannerMotion {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Radial interactive light effects */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle, rgba(0, 116, 172, 0.15) 0%, transparent 70%);
    top: var(--y, 0px);
    left: var(--x, 0px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}

.hover-glow:hover::after {
    opacity: 1;
}

/* Custom interactive eye badge */
.eye-badge {
    box-shadow: inset 0 0 15px rgba(0, 116, 172, 0.2), 0 0 15px rgba(0, 116, 172, 0.15);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: inset 0 0 10px rgba(0, 116, 172, 0.1), 0 0 10px rgba(0, 116, 172, 0.1); }
    100% { box-shadow: inset 0 0 25px rgba(0, 116, 172, 0.3), 0 0 25px rgba(0, 116, 172, 0.3); }
}

/* Doctor Hologram Frame */
.holo-frame {
    position: relative;
}
.holo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #0074ac, #20b34d);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.holo-frame:hover::before {
    opacity: 1;
}

/* AI diagnostics interactive wheel */
.dial-container {
    animation: spinDial 30s linear infinite;
}
@keyframes spinDial {
    100% { transform: rotate(360deg); }
}

/* Ticket blueprint mockup */
.ticket-blueprint {
    background-image: radial-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 0);
    background-size: 16px 16px;
    border: 2px dashed rgba(0, 240, 255, 0.3);
}
