/* Core Variables & Theme System (Default Light Theme + Dark Theme) */
:root {
  /* Default Light Theme (High-End Silicon Valley Corporate Clean) */
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(0, 102, 255, 0.5);
  
  --primary-blue: #0052d4;
  --primary-cobalt: #0062ff;
  --accent-cyan: #0284c7;
  --accent-azure: #0ea5e9;
  --accent-amber: #ea580c;
  --accent-gold: #d97706;
  --accent-emerald: #059669;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  
  --font-display: 'Kanit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Explicit Dark Theme Mode */
[data-theme="dark"] {
  --bg-dark: #06080e;
  --bg-surface: #0a0e17;
  --bg-card: rgba(14, 20, 34, 0.75);
  --bg-card-hover: rgba(18, 26, 44, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 180, 216, 0.5);
  
  --primary-blue: #0052d4;
  --primary-cobalt: #0062ff;
  --accent-cyan: #00b4d8;
  --accent-azure: #48cae4;
  --accent-amber: #ff7a00;
  --accent-gold: #ffa500;
  --accent-emerald: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --nav-bg: rgba(6, 8, 14, 0.8);
  --nav-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection {
  background: var(--accent-amber);
  color: #fff;
}

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

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}
