/* ==========================================================================
   ai.css — styling for the AI-translated version of the site.
   Human version lives in human.css and is intentionally left untouched.
   ========================================================================== */

:root {
  --bg: #07080d;
  --bg-soft: #0e1018;
  --surface: rgba(20, 23, 34, 0.55);
  --surface-border: rgba(140, 160, 255, 0.14);
  --text: #e7e9f3;
  --text-dim: #969cb3;
  --accent: #00b4d8;   /* echoes the cyan of the human nav */
  --accent-2: #7c5cff; /* AI-purple */
  --accent-3: #ff5cc8; /* magenta highlight */
  --radius: 18px;
  --maxw: 68ch;
  --font: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(1100px 650px at 110% 10%, rgba(0, 180, 216, 0.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(255, 92, 200, 0.12), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Animated aurora background (pure CSS, no dependencies)
   -------------------------------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  filter: blur(60px) saturate(140%);
  opacity: 0.7;
}
.aurora span {
  position: absolute;
  display: block;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite;
}
.aurora span:nth-child(1) { background: var(--accent-2); top: -10%; left: -5%;  animation-delay: 0s; }
.aurora span:nth-child(2) { background: var(--accent);   top: 20%;  right: -10%; animation-delay: -7s; }
.aurora span:nth-child(3) { background: var(--accent-3); bottom: -15%; left: 25%; animation-delay: -13s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(6vw, 4vh) scale(1.15); }
  66%      { transform: translate(-5vw, -3vh) scale(0.9); }
}

/* faint dot grid on top of the aurora */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

/* --------------------------------------------------------------------------
   Navigation + Human/AI toggle (same markup as the human page)
   -------------------------------------------------------------------------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}

.site-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  cursor: pointer;
}
.toggle-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.45;
  transition: opacity 0.2s;
}
/* AI side active */
.toggle--ai .toggle-label:first-child { opacity: 0.45; }
.toggle--ai .toggle-label:last-child  { opacity: 1; }

.toggle-track {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.6);
  transition: background 0.2s;
}
.toggle-knob {
  position: absolute;
  top: 50%;
  left: calc(100% - 1rem - 3px);   /* knob on the AI (right) side */
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle:hover .toggle-knob { left: calc(100% - 1rem - 5px); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
main {
  width: 90vw;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

/* AI badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--surface-border);
  background: rgba(124, 92, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.ai-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.25) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 60% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}
.ai-badge .spark {
  display: inline-block;
  animation: spin-pulse 4s ease-in-out infinite;
}
@keyframes spin-pulse {
  0%, 100% { transform: rotate(0) scale(1); opacity: 1; }
  50%      { transform: rotate(180deg) scale(1.25); opacity: 0.7; }
}

/* Hero */
.hero { margin: 1.6rem 0 2.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0.6rem 0 0.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 20%, var(--accent) 55%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  min-height: 1.7em;      /* reserve space for the typewriter line */
}
.hero .subtitle .typed-cursor { color: var(--accent); }

/* Motto */
.motto {
  margin: 2.2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--accent-3)) 1;
  background: linear-gradient(90deg, rgba(124,92,255,0.08), transparent);
  font-style: italic;
  color: #c7cbe0;
}
.motto cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* Glass content cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 1.4rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 30px 70px -30px rgba(124, 92, 255, 0.4);
}
.card p:last-child { margin-bottom: 0; }

h2 {
  font-size: 1.4rem;
  margin: 2.6rem 0 0.4rem;
  letter-spacing: -0.01em;
}
h2 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { color: #d3d7e6; }
strong { color: #fff; }

/* Tag chips for the "who am I" fields */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Pipeline note / footer */
.pipeline {
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  border: 1px dashed var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.pipeline code {
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 2rem 0 3rem;
  letter-spacing: 0.03em;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .aurora span,
  .ai-badge::after,
  .ai-badge .spark { animation: none; }
  html { scroll-behavior: auto; }
}
