:root {
  /* ------------------ Colors ------------------ */

  /* Primary Colors */
  --color-primary: #1e40af;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e3a8a;
  --color-primary-rgb: 30, 64, 175;

  /* Secondary Colors */
  --color-secondary: #f59e0b;
  --color-secondary-light: #fbbf24;
  --color-secondary-dark: #d97706;
  --color-secondary-rgb: 245, 158, 11;

  /* Accent Colors */
  --color-accent: #10b981;
  --color-accent-light: #34d399;
  --color-accent-dark: #059669;

  /* ------------------ Light Theme (Default) ------------------ */

  /* Background Colors */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #1e293b;
  --bg-nav: rgba(255, 255, 255, 0.95);

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --text-on-primary: #ffffff;
  --text-on-dark: #f1f5f9;

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  --border-color-dark: #cbd5e1;

  /* Shadow Colors */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-lg: rgba(0, 0, 0, 0.15);
  --shadow-color-xl: rgba(0, 0, 0, 0.2);

  /* ------------------ Typography ------------------ */

  /* Font Family */
  --font-family-primary: 'circular', 'iran-sans';

  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ------------------ Spacing ------------------ */

  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ------------------ Border Radius ------------------ */

  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* ------------------ Shadows ------------------ */

  --shadow-sm: 0 1px 2px 0 var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color-lg), 0 4px 6px -4px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color-xl), 0 8px 10px -6px var(--shadow-color);
  --shadow-inner: inset 0 2px 4px 0 var(--shadow-color);

  /* ------------------ Transitions ------------------ */

  --transition-fast: 75ms ease-in-out;
  --transition-base: 150ms ease-in-out;
  --transition-slow: 250ms ease-in-out;
  --transition-slower: 325ms ease-in-out;

  /* ------------------ Z-Index ------------------ */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-header: 800;
  --z-theme-toggle: 900;

  /* ------------------ Container ------------------ */

  --container-max-width: 1200px;
  --container-padding: var(--space-4);

  /* ------------------ Header ------------------ */

  --header-height: 50px;
  --header-hero-height: 250px;
  --header-hero-height-shrink: 145px;

  /* ------------------ Slider ------------------ */

  --slider-transition-duration: 500ms;
  --slider-autoplay-interval: 5000ms;
}

/* ------------------ Dark Theme ------------------ */

[data-theme="dark"] {
  /* Background Colors */
  --bg-body: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #334155;
  --bg-card: #1e293b;
  --bg-header: #1e293b;
  --bg-footer: #020617;
  --bg-hero-overlay: rgba(15, 23, 42, 0.85);
  --bg-nav: hsl(from var(--bg-body) h s l / 0.7);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --text-on-primary: #ffffff;
  --text-on-dark: #f1f5f9;

  /* Border Colors */
  --border-color: #334155;
  --border-color-light: #1e293b;
  --border-color-dark: #475569;

  /* Shadow Colors */
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-color-lg: rgba(0, 0, 0, 0.4);
  --shadow-color-xl: rgba(0, 0, 0, 0.5);

  /* Primary Colors - Adjusted for dark mode */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --header-hero-height: 280px;
    --header-height: 85px;
    --header-hero-height-shrink: 180px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-hero-height: 240px;
    --container-padding: var(--space-3);
    --header-hero-height-shrink: 195px;
  }
}

html[lang="fa"] {
  --font-family-primary: 'iran-sans', 'circular';
}