/* Imports of Premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ======= Design Tokens & Base Variables ======= */
:root {
  --color-bg-primary: #070B14;
  --color-bg-secondary: #0D1425;
  --color-accent-cyan: #00E5FF;
  --color-accent-purple: #7B2FBE;
  --color-glass-white: rgba(255, 255, 255, 0.08);
  --color-text-primary: #F0F4FF;
  --color-text-secondary: #8892A4;
  --color-success: #00FF8C;
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif;
}

/* ======= Custom Scrollbar ======= */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(0, 229, 255, 0.25), rgba(123, 47, 190, 0.25));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, rgba(0, 229, 255, 0.5), rgba(123, 47, 190, 0.5));
}

/* ======= Global Base Elements ======= */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-arabic);
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

/* ======= Premium UI Utilities ======= */
.glass-panel {
  background: rgba(13, 20, 37, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.03);
}

.glow-border {
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.neon-text {
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.2);
}

/* Futuristic Scanline Overlay */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 229, 255, 0.008) 3px,
    rgba(0, 229, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ======= Custom Animations ======= */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.15); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes reverse-spin {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

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

@keyframes float-tilt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(8deg); }
  66% { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes cube-spin {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(38deg); }
}

@keyframes diamond-spin {
  0%, 100% { transform: rotate(45deg); }
  50% { transform: rotate(90deg); }
}

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

/* Animation Classes */
.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}
.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.animate-spin-slow {
  animation: spin-slow 16s linear infinite;
}
.animate-reverse-spin {
  animation: reverse-spin 10s linear infinite;
}
.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}
.animate-gradient-shift {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.animate-float-tilt {
  animation: float-tilt 6s ease-in-out infinite;
}
.animate-cube-spin {
  animation: cube-spin 8s ease-in-out infinite;
}
.animate-diamond-spin {
  animation: diamond-spin 9s ease-in-out infinite;
}
.animate-pulse-orb {
  animation: pulse-orb 4.5s ease-in-out infinite;
}

/* Navigation active line styles */
.active-nav-bg {
  background: linear-gradient(to right, rgba(0, 229, 255, 0.15), rgba(123, 47, 190, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

/* Chat bubble styling overrides */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
