:root {
  /* Common Colors */
  --white: #ffffff;
  --black: #000000;
  --brand-green: #0a4f2e;
  --brand-yellow: #facc15;

  /* Light Mode (Default) Colors */
  --primary: #0a4f2e;
  --primary-light: #167a4b;
  --secondary: #f1f5f9;
  --secondary-light: #e2e8f0;
  --accent: #16a34a;
  --accent-secondary: #eab308;
  --text-main: #32b077;
  --text-muted: #a7a7a7;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-border: #e2e8f0;

  /* Shadow Variants for Light Mode */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 10px 20px -5px rgba(22, 163, 74, 0.25), 0 0 10px rgba(22, 163, 74, 0.1);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  /* Borders and Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

[data-theme="dark"] {
  /* Dark Mode Colors */
  --primary: #0a4f2e;
  --primary-light: #167a4b;
  --secondary: #0a192f;
  --secondary-light: #112240;
  --accent: #00d47e;
  --accent-secondary: #facc15;
  --text-main: #ccd6f6;
  --text-muted: #8892b0;
  --background: #020c1b;
  --surface: #112240;
  --surface-hover: #233554;
  --surface-border: rgba(255, 255, 255, 0.05);

  /* Bright shadows for Dark Mode */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 10px 20px -5px rgba(0, 212, 126, 0.25), 0 0 10px rgba(0, 212, 126, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--text-muted);
}

/* Common Layout Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-12) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-header h2 {
  margin-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--surface);
  box-shadow: var(--shadow-glow);
}

[data-theme="dark"] .btn-primary {
  color: var(--secondary);
}

.btn-primary:hover {
  background-color: var(--accent);
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: rgba(22, 163, 74, 0.1);
  transform: translateY(-2px);
}