/* Variables & Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Outfit:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #09090b;       /* Zinc 950 */
  --bg-secondary: #121215;     /* Dark Charcoal */
  --bg-card: rgba(18, 18, 22, 0.65);
  --bg-glass: rgba(20, 20, 25, 0.8);
  
  --text-primary: #f4f4f5;     /* Zinc 100 */
  --text-secondary: #a1a1aa;   /* Zinc 400 */
  --text-muted: #71717a;       /* Zinc 500 */
  
  --accent-purple: #8b5cf6;    /* Violet 500 */
  --accent-purple-glow: rgba(139, 92, 246, 0.15);
  --accent-cyan: #06b6d4;      /* Cyan 500 */
  --accent-cyan-glow: rgba(6, 182, 212, 0.15);
  
  --accent-gradient: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  --accent-gradient-hover: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-purple: rgba(139, 92, 246, 0.3);
  --border-cyan: rgba(6, 182, 212, 0.3);
  
  /* Fonts */
  --font-ar-cairo: 'Cairo', 'Tajawal', sans-serif;
  --font-en-outfit: 'Outfit', 'Inter', sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadow & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-ar-cairo); /* Default to Arabic since landing is Arabic-first */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Adjust font based on lang attribute */
body[lang="en"] {
  font-family: var(--font-en-outfit);
}

/* Background elements */
.bg-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.bg-glow-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

.bg-glow-3 {
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Utility classes for animation (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Scale Reveal for cards */
.scale-reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scale-reveal.active {
  opacity: 1;
  transform: scale(1);
}
