:root {
  /* Brand Colors */
  --color-primary: #2a8b52;
  --color-secondary: var(--mantine-color-orange-filled);
  --color-tertiary: #f59e0b;
  --color-quaternary: #f472b6;

  --color-primary-light: #f4f4f4;
  --color-primary-dark: #1d4ed8;

  --gradient-primary: linear-gradient(45deg, #FF4B2B, #FF416C);
  --color-primary-second: #FF4B2B;
    /* --color-primary: rgb(253 126 21); */

  /* Neutral Colors */
  --color-background: #ffffff;
  --color-foreground: #171717;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-surface: #f8fafc;
  --color-text: #1a1a1a;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: var(--mantine-font-family);
  --font-body: var(--mantine-font-family);

  /* 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 Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --section-spacing-y: 80px;
  --section-spacing-x: 24px;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  /* Layout */
  --app-shell-navbar-width: auto;
  --app-shell-navbar-z-index: 101;
  --app-shell-border-color: transparent;

  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 250ms;
  --transition-slow: 350ms;

  /* Gradient Combinations */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #1a5934 100%);
  --gradient-warm: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-quaternary) 0%, var(--color-tertiary) 100%);
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

  /* Overlays */
  --overlay-dark: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  --overlay-primary: linear-gradient(180deg, rgba(42, 139, 82, 0) 0%, rgba(42, 139, 82, 0.8) 100%);

  /* Shadows */
  --shadow-primary: 0 10px 30px rgba(42, 139, 82, 0.15);
  --shadow-warm: 0 10px 30px rgba(245, 158, 11, 0.15);

  /* Background Patterns */
  --pattern-dots: radial-gradient(circle, var(--color-gray-200) 1px, transparent 1px);
  --pattern-lines: repeating-linear-gradient(45deg, var(--color-gray-100) 0, var(--color-gray-100) 1px, transparent 0, transparent 50%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0a0a0a;
    --color-foreground: #ededed;
  }
}

[data-mantine-color-scheme] {
  --app-shell-navbar-width: auto;
  --app-shell-navbar-z-index: 101;
  --app-shell-border-color: transparent;
}

/* Dark Mode Overrides */
[data-mantine-color-scheme="dark"] {
  --color-background: #0a0a0a;
  --color-foreground: #ededed;
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;

  /* Dark mode specific shadow */
  --shadow-sm: 0 1px 2px 0 rgb(255 255 255 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(255 255 255 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(255 255 255 / 0.1);
}

/* Base Styles */
body {
  color: var(--color-foreground);
  background: var(--color-background);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

/* Typography Utility Classes */
.heading-1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.heading-2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.heading-3 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

/* Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--spacing-8);
}

/* Mantine Overrides */
.mantine-AppShell-navbar {
  border: none !important;
  border-inline-end: none !important;
}

.mantine-Drawer-content {
  min-width: 280px !important;
  width: 30vw !important;
}

.mantine-Drawer-header {
  background-color: var(--mantine-color-body);
  border-bottom: 1px solid var(--mantine-color-gray-2);
}

.mantine-Drawer-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Section Transitions */
.section-transition {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

/* Container Max Widths */
.container-large {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-spacing-x);
}

/* Section Spacing Utilities */
.section-padding {
  padding: var(--section-spacing-y) var(--section-spacing-x);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}