/* ============================================
   Design Tokens — Tariq Abubakar Portfolio
   "Operations meets Tech" direction
   ============================================ */

:root {
  /* ---- Color Palette ----
     Professional foundation (trust-building) with modern tech accents (capability signals).
     Blue-anchored, evolving the existing scheme, with warm neutral backgrounds.
  */
  --color-primary: #1e3a5f;          /* Deep navy — authority, trust, retail professionalism */
  --color-primary-light: #2d5a8e;    /* Lighter navy — hover states, secondary elements */
  --color-primary-dark: #0f2440;     /* Darker navy — active states, deep accents */
  --color-accent: #e85d3a;           /* Warm orange-red — energy, modern tech, CTAs */
  --color-accent-light: #f0815e;     /* Lighter accent — hover states */
  --color-success: #16a34a;          /* Green — positive indicators, inventory */
  --color-warning: #d97706;          /* Amber — alerts, attention */
  --color-error: #dc2626;            /* Red — errors, destructive actions */

  /* Backgrounds */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;           /* Subtle section alternation */
  --color-bg-dark: #0f172a;          /* Dark sections (hero, footer) */
  --color-bg-card: #ffffff;

  /* Text */
  --color-text: #1a1a2e;             /* Primary text — near-black, not pure black */
  --color-text-muted: #6b7280;       /* Secondary text */
  --color-text-light: #9ca3af;       /* Tertiary, placeholders */
  --color-text-inverse: #f8f9fa;     /* Text on dark backgrounds */
  --color-text-link: #2d5a8e;        /* Link color — matches primary-light */

  /* Borders */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;

  /* ---- Tech Tag Colors (category-based) ---- */
  --tag-language-bg: #dbeafe;       /* Blue family — programming languages */
  --tag-language-text: #1e40af;
  --tag-framework-bg: #f3e8ff;      /* Purple family — frameworks/libraries */
  --tag-framework-text: #6b21a8;
  --tag-database-bg: #dcfce7;        /* Green family — databases */
  --tag-database-text: #166534;
  --tag-tool-bg: #f3f4f6;            /* Gray family — tools/config */
  --tag-tool-text: #374151;
  --tag-platform-bg: #fef3c7;        /* Amber family — platforms */
  --tag-platform-text: #92400e;

  /* ---- Hero Visual ---- */
  --hero-pattern-opacity: 0.06;
  --hero-accent-size: clamp(200px, 30vw, 400px);

  /* ---- Typography ----
     Inter — professional, highly legible, excellent for retail/operations context.
     Maximum 2 weights to keep font payload small.
  */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Fluid Type Scale (Utopian — clamp-based, scales with viewport) */
  --step--1: clamp(0.833rem, 0.8rem + 0.17vw, 0.938rem);   /* ~13-15px */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);        /* ~16-18px */
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);          /* ~19-24px */
  --step-2: clamp(1.44rem, 1.25rem + 0.95vw, 2rem);         /* ~23-32px */
  --step-3: clamp(1.728rem, 1.4rem + 1.64vw, 2.667rem);     /* ~28-43px */
  --step-4: clamp(2.074rem, 1.5rem + 2.87vw, 3.556rem);     /* ~33-57px */
  --step-5: clamp(2.488rem, 1.5rem + 4.94vw, 4.741rem);     /* ~40-76px */

  /* Font Weights (only 2 — keep payload small) */
  --weight-normal: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ---- Spacing Rhythm ----
     Consistent spacing scale based on 0.25rem (4px) increments.
     Section spacing is fluid, gutter is responsive.
  */
  --space-3xs: 0.125rem;   /* 2px */
  --space-2xs: 0.25rem;    /* 4px */
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 0.75rem;     /* 12px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4rem;       /* 64px */
  --space-4xl: 6rem;       /* 96px */

  /* Fluid section spacing — scales with viewport */
  --space-section: clamp(4rem, 2rem + 8vw, 8rem);
  --space-gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  /* ---- Layout ---- */
  --content-max-width: 1200px;
  --content-narrow: 720px;
  --content-wide: 1400px;

  /* ---- Border Radius ---- */
  --radius-sm: 0.25rem;    /* 4px — subtle rounding */
  --radius-md: 0.5rem;     /* 8px — cards, buttons */
  --radius-lg: 1rem;       /* 16px — large cards, sections */
  --radius-xl: 1.5rem;     /* 24px — hero cards, feature blocks */
  --radius-full: 9999px;   /* Pills, avatars */

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
