/*
 * Hire IT Expert — Design System CSS
 * ==========================================================================
 * Global variables, resets, typography, spacing, and base layout utilities.
 */

:root {
  /* ─── Color Tokens ────────────────────────────────────────────────────── */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0b0f19;
  
  --color-heading: #0f172a;
  --color-text: #334155;
  --color-text-light: #64748b;
  
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: rgba(99, 102, 241, 0.08);
  --color-primary-dark: #3730a3;
  
  --color-secondary: #0f172a;
  --color-secondary-hover: #1e1b4b;
  
  --color-accent: #ff007f;
  --color-accent-hover: #d6006b;
  --color-accent-light: #ffe5f0;
  
  --color-success: #10b981;
  --color-success-light: #ecfdf5;
  
  --color-border: #f1f5f9;
  --color-border-dark: #e2e8f0;

  /* ─── Modern Gradients ────────────────────────────────────────────────── */
  --gradient-hero: linear-gradient(135deg, #090d16 0%, #18143c 100%);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-glow: linear-gradient(135deg, #6366f1 0%, #d946ef 50%, #ff007f 100%);
  --gradient-dark: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 100%);

  /* ─── Glassmorphism ───────────────────────────────────────────────────── */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-backdrop: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);

  /* ─── Typography ──────────────────────────────────────────────────────── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ─── Spacing scale (4px base) ───────────────────────────────────────── */
  --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 */

  /* ─── Border Radius ───────────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ─── Shadows ─────────────────────────────────────────────────────────── */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 24px rgba(99, 102, 241, 0.15);
  --shadow-header: 0 4px 20px rgba(15, 23, 42, 0.03);

  /* ─── Transitions ─────────────────────────────────────────────────────── */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ─── Layout ──────────────────────────────────────────────────────────── */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* ─── Typography Styles ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: var(--font-bold);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);
  }
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  h2 {
    font-size: var(--font-size-4xl);
  }
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-semibold);
}

@media (min-width: 768px) {
  h3 {
    font-size: var(--font-size-2xl);
  }
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ─── Accessibility ─────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Utility Classes ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white);
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
