/* =====================================================
   WEBLY DIGITAL SOLUTIONS - Design System
   CSS Variables & Design Tokens
   ===================================================== */

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

:root {
  /* ==================== COLORS ==================== */
  
  /* Primary Brand Colors */
  --color-primary: #C77DFF;           /* Light Purple - Logo accent */
  --color-primary-dark: #A855F7;      /* Darker purple for hover */
  --color-primary-light: #E0AAFF;     /* Lighter purple for glows */
  
  /* Secondary Colors */
  --color-secondary: #4A0080;         /* Dark Purple - Text accent */
  --color-secondary-light: #7B2CBF;   /* Secondary hover */
  
  /* Background Colors */
  --color-bg-dark: #0D0A1A;           /* Deep navy - Main dark bg */
  --color-bg-darker: #080510;         /* Even darker for contrast */
  --color-bg-card: rgba(255, 255, 255, 0.05);  /* Glassmorphic cards */
  --color-bg-card-hover: rgba(255, 255, 255, 0.1);
  --color-bg-light: #F8F9FA;          /* Light sections */
  --color-bg-gradient: linear-gradient(135deg, #0D0A1A 0%, #1A1030 50%, #0D0A1A 100%);
  
  /* Text Colors */
  --color-text-white: #FFFFFF;
  --color-text-light: rgba(255, 255, 255, 0.9);
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dark: #1A1A2E;
  --color-text-body: #4A4A68;
  
  /* Accent Colors */
  --color-whatsapp: #25D366;
  --color-calendly: #006BFF;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #C77DFF 0%, #7B2CBF 100%);
  --gradient-primary-hover: linear-gradient(135deg, #E0AAFF 0%, #A855F7 100%);
  --gradient-dark: linear-gradient(180deg, #0D0A1A 0%, #1A1030 100%);
  --gradient-glow: radial-gradient(circle, rgba(199, 125, 255, 0.3) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  
  /* ==================== TYPOGRAPHY ==================== */
  
  /* Font Families */
  --font-english: 'Poppins', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
  --font-primary: var(--font-arabic);  /* Default to Arabic */
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */
  --text-hero: clamp(3rem, 8vw, 7rem);
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* ==================== SPACING ==================== */
  
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */
  
  /* Section Padding */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-padding: clamp(1rem, 5vw, 3rem);
  
  /* ==================== BORDERS & RADIUS ==================== */
  
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-2xl: 2rem;      /* 32px */
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-light: rgba(255, 255, 255, 0.2);
  
  /* ==================== SHADOWS ==================== */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(199, 125, 255, 0.3);
  --shadow-glow-lg: 0 0 80px rgba(199, 125, 255, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* ==================== BLUR & EFFECTS ==================== */
  
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;
  --blur-2xl: 40px;
  --backdrop-blur: blur(20px);
  
  /* ==================== TRANSITIONS ==================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 700ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: 600ms cubic-bezier(0.23, 1, 0.32, 1);
  
  /* ==================== Z-INDEX ==================== */
  
  --z-behind: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-max: 9999;
  
  /* ==================== LAYOUT ==================== */
  
  --container-max: 1400px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  
  /* Header Height */
  --header-height: 80px;
  --header-height-mobile: 70px;
}

/* ==================== ENGLISH OVERRIDE ==================== */
html[lang="en"] {
  --font-primary: var(--font-english);
}

/* ==================== RESPONSIVE VARIABLES ==================== */
@media (max-width: 768px) {
  :root {
    --text-hero: clamp(2.5rem, 10vw, 4rem);
    --section-padding: clamp(3rem, 8vw, 5rem);
  }
}
