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

:root {
    --bg-dark: #060913;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary-blue: #3b82f6;
    --primary-indigo: #6366f1;
    --primary-purple: #a855f7;
    --primary-cyan: #06b6d4;
    --primary-emerald: #10b981;
    --primary-amber: #f59e0b;
}

* {
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #f1f5f9;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Background Canvas */
#antigravity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #060913;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Glassmorphism & Neon Shadows */
.glass-panel {
    background: rgba(13, 19, 36, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
}

.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.2), 0 0 15px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

/* Glowing Border Animation */
.gradient-border-animated {
    position: relative;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

.gradient-border-animated::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: calc(1.5rem + 1.5px);
    background: linear-gradient(90deg, #3b82f6, #a855f7, #06b6d4, #10b981, #3b82f6);
    background-size: 300% 300%;
    z-index: -1;
    animation: gradientShift 6s ease infinite;
    opacity: 0.6;
}

.gradient-border-animated:hover::before {
    opacity: 1;
    animation-duration: 3s;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-12px) scale(1.03); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; filter: blur(20px); transform: scale(1); }
    50% { opacity: 0.8; filter: blur(30px); transform: scale(1.15); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmerWave {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-float {
    animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-orb {
    animation: floatOrb 4s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spinReverse 25s linear infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Animated Gradient Text */
.text-gradient-shimmer {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 35%, #c084fc 70%, #67e8f9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s linear infinite;
}

/* 3D Card Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-inner {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Terminal Scanline & CRT Glow */
.terminal-window {
    position: relative;
    overflow: hidden;
}

.terminal-window::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 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));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.4;
}

/* Equalizer Bars */
.sound-bar {
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #38bdf8;
    border-radius: 2px;
    margin: 0 1px;
    animation: soundWave 0.8s ease-in-out infinite alternate;
}
.sound-bar:nth-child(2) { animation-delay: 0.2s; height: 16px; background: #818cf8; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; background: #c084fc; }

@keyframes soundWave {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.3); }
}

/* Roadmap Pipeline Conduit Line */
.roadmap-conduit {
    position: relative;
}
.roadmap-conduit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7, #10b981);
    z-index: 0;
    opacity: 0.4;
}

/* Interactive Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}
