/* ==========================================================================
   Christopher Somoye Portfolio - Core Variables, Design System & Reset
   ========================================================================== */

:root {
  /* Surface & Background Colors */
  --bg-deep: #07090e;
  --bg-canvas: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #162032;
  --bg-surface-hover: #1e293b;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(17, 24, 39, 0.65);
  --glass-bg-subtle: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(255, 255, 255, 0.18);
  --glass-blur: 16px;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Brand Accents - Dual Domain Specialization */
  /* 1. Mobile Engineering (Electric Cyan / Indigo) */
  --mobile-primary: #38bdf8;
  --mobile-secondary: #6366f1;
  --mobile-glow: rgba(56, 189, 248, 0.35);
  --mobile-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --mobile-bg-tint: rgba(56, 189, 248, 0.08);

  /* 2. Geospatial AI & GIS (Neon Emerald / Mint) */
  --geo-primary: #10b981;
  --geo-secondary: #059669;
  --geo-glow: rgba(16, 185, 129, 0.35);
  --geo-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --geo-bg-tint: rgba(16, 185, 129, 0.08);

  /* Unified Highlight Gradient */
  --accent-dual-gradient: linear-gradient(135deg, #38bdf8 0%, #10b981 100%);
  --accent-dual-glow: 0 0 35px rgba(56, 189, 248, 0.25);

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modern CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  background-color: var(--bg-deep);
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Interactive Ambient Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Global Ambient Gradients */
.ambient-glow-top {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* Links & Media */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Typography Helpers */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.gradient-text {
  background: var(--accent-dual-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-mobile {
  background: var(--mobile-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-geo {
  background: var(--geo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
