/* =========================================================================
   main.css - Variables and Global Reset
   ========================================================================= */

/* --- CSS Variables & Tokens (Stitch Design System Approach) --- */
:root {
  /* Colors - Base Dark Theme */
  --bg-dark: #090e17;       /* Very dark navy / anthacite */
  --bg-darker: #05080c;     /* Even darker for contrast sections */
  --bg-card: #111a27;       /* Slightly lighter for cards/surfaces */
  --bg-card-hover: #172335; /* Hover state for surfaces */
  
  /* Text Colors */
  --text-primary: #f8fafc;  /* White/Off-white for readability */
  --text-secondary: #94a3b8; /* Slate gray for secondary text */
  --text-muted: #64748b;    /* Muted gray for lesser text */
  
  /* Accents - Tech/AI feel */
  --accent-cyan: #00f2fe;
  --accent-cyan-dark: #008fdb;
  --accent-neon: #39ff14;   /* Green neon touch */
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-glow: rgba(0, 242, 254, 0.15);
  
  /* Border Colors */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.5);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  /* 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;
  --space-16: 8rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.5);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Theme transition */
  --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Light Theme Override --- */
:root[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-darker: #eef2f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-cyan: #0891b2;
  --accent-cyan-dark: #0e7490;
  --accent-neon: #16a34a;
  --accent-gradient: linear-gradient(135deg, #0891b2 0%, #0284c7 100%);
  --accent-glow: rgba(8, 145, 178, 0.1);
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(8, 145, 178, 0.5);
  
  --shadow-glow: 0 0 20px rgba(8, 145, 178, 0.12);
  --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.08);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  font-weight: 600;
}

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

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

a:hover {
  color: var(--accent-cyan);
}

ul {
  list-style: none;
}

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.max-w-lg { max-width: 800px; margin: 0 auto; }
.max-w-md { max-width: 600px; margin: 0 auto; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent-cyan); }

/* Grid Utilities */
.grid, .grid-2, .grid-3 {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.items-center { align-items: center; }
.align-center-vert { align-items: center; }

/* Spacing and Visibility Utils */
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

/* Typography utils */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-bold { font-weight: 600; }
.font-light { font-weight: 300; }

.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1.125rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-3xl { font-size: 2.5rem; }

.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

.opacity-20 { opacity: 0.2; }
.bg-accent { background-color: var(--accent-cyan); }
.bg-darker { background-color: var(--bg-darker); }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.inline-block { display: inline-block; }
