/* ============================================
   Design tokens — change the theme here only
   ============================================ */
:root {
  /* Colors */
  --color-primary: #1E3A8A;
  --color-primary-dark: #172554;
  --color-accent: #06B6D4;
  --color-accent-light: #67E8F9;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shape & elevation */
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.14);

  /* Motion & layout */
  --transition: 0.25s ease;
  --container-max: 1200px;
  --section-padding: clamp(3rem, 8vw, 6rem);
}


/* =========================================================
   LIGHT / DARK MODE — additive only; original design stays
   ========================================================= */
:root {
  color-scheme: dark;
  --color-primary: #1E3A8A;
  --color-primary-dark: #172554;
  --color-accent: #06B6D4;
  --color-accent-light: #67E8F9;
  --color-bg: #07111f;
  --color-surface: rgba(15, 23, 42, 0.78);
  --color-text: #eef7ff;
  --color-text-muted: #a9bfd4;
  --color-success: #10B981;
  --color-warning: #F59E0B;
}

html[data-theme="light"] {
  color-scheme: light;
  --color-primary: #1E3A8A;
  --color-primary-dark: #172554;
  --color-accent: #06B6D4;
  --color-accent-light: #a5f3fc;
  --color-bg: #f7f8fc;
  --color-surface: rgba(255, 255, 255, 0.82);
  --color-text: #182033;
  --color-text-muted: #596579;
  --color-success: #10B981;
  --color-warning: #F59E0B;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #1E3A8A;
  --color-primary-dark: #172554;
  --color-accent: #06B6D4;
  --color-accent-light: #67E8F9;
  --color-bg: #07111f;
  --color-surface: rgba(15, 23, 42, 0.78);
  --color-text: #eef7ff;
  --color-text-muted: #a9bfd4;
  --color-success: #10B981;
  --color-warning: #F59E0B;
}

.theme-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: .45rem .6rem;
  border-radius: 10px;
  transition: transform .2s ease, background .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: rgba(127,127,127,.12);
}

html[data-theme="light"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

html[data-theme="dark"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}
