/* ==========================================================================
   BASE STYLES & WHITE • PURPLE • YELLOW GRADIENT MESH
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-darkest);

  /* Modern Tri-Color Gradient Mesh: Frost Highlights, Cyan Flares, Lime Accents */
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(240, 249, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 85% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 15% 40%, rgba(132, 204, 22, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 75% 75%, rgba(244, 63, 94, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 20% 90%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #1a2844 50%, #0f172a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Geometric Matrix Pattern Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(192, 132, 252, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f0f9ff, #06b6d4, #84cc16);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #84cc16;
}

::selection {
  background: rgba(132, 204, 22, 0.4);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

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

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-cyan-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-lime-light);
  text-shadow: 0 0 12px var(--lime-glow);
}

code, pre {
  font-family: var(--font-mono);
}

code {
  padding: 0.2em 0.5em;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 4px;
  color: var(--color-cyan-light);
  font-size: 0.88em;
}

ul, ol {
  list-style: none;
}

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

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-spacing);
  position: relative;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-cyan-light);
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.12), rgba(6, 182, 212, 0.2), rgba(132, 204, 22, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 20px -5px rgba(6, 182, 212, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  font-weight: 800;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 650px;
  margin-inline: auto;
}

/* Modern Tri-Color Radiant Text Gradients */
.gradient-tri {
  background: linear-gradient(135deg, #f0f9ff 0%, #22d3ee 45%, #84cc16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-purple-yellow {
  background: linear-gradient(135deg, #06b6d4 0%, #84cc16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-white-purple {
  background: linear-gradient(135deg, #f0f9ff 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
