/* ─────────────────────────────────────────
   Lake Herd · Personal Site
   lakeherd.dev
───────────────────────────────────────── */

:root {
  --bg:       #0a0612;
  --surface:  #120d1e;
  --surface2: #1a1228;

  /* Rainbow palette */
  --r1: #ff6b6b;   /* red-pink */
  --r2: #ff9f43;   /* orange */
  --r3: #ffd32a;   /* yellow */
  --r4: #0be881;   /* green */
  --r5: #48dbfb;   /* cyan */
  --r6: #a29bfe;   /* purple */
  --r7: #fd79a8;   /* pink */

  --text:       #f0eeff;
  --text-muted: #8b7db8;
  --text-dim:   #8070aa;
  --border:     rgba(162, 155, 254, 0.15);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Rainbow gradient */
  --rainbow: linear-gradient(135deg,
    #ff6b6b 0%, #ff9f43 16%, #ffd32a 32%,
    #0be881 48%, #48dbfb 64%, #a29bfe 80%, #fd79a8 100%);

  --rainbow-soft: linear-gradient(135deg,
    rgba(255,107,107,0.7) 0%, rgba(255,159,67,0.7) 16%,
    rgba(255,211,42,0.7) 32%, rgba(11,232,129,0.7) 48%,
    rgba(72,219,251,0.7) 64%, rgba(162,155,254,0.7) 80%,
    rgba(253,121,168,0.7) 100%);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ── CANVAS ── */
#rainbow-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

/* ── SCANLINES ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.page { position: relative; z-index: 2; }

/* ────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: linear-gradient(to bottom, rgba(10,6,18,0.96), transparent);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  overflow: hidden;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--r6); }

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(162,155,254,0.3);
  color: var(--r6);
  background: rgba(162,155,254,0.08);
  white-space: nowrap;
}

/* ────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 5rem;
  position: relative;
  text-align: center;
  width: 100%;
}

/* Glow orbs behind hero */
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.glow-orb-1 { width: 500px; height: 500px; background: #ff6b6b; top: -100px; left: -100px; animation: drift1 8s ease-in-out infinite; }
.glow-orb-2 { width: 400px; height: 400px; background: #a29bfe; top: 10%; right: -50px; animation: drift2 10s ease-in-out infinite; }
.glow-orb-3 { width: 350px; height: 350px; background: #0be881; bottom: 0; left: 30%; animation: drift3 9s ease-in-out infinite; }
.glow-orb-4 { width: 300px; height: 300px; background: #48dbfb; bottom: 10%; right: 10%; animation: drift1 7s ease-in-out infinite 2s; }

@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,-30px) scale(1.1); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-30px,40px) scale(0.95); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-20px) scale(1.05); }
}

.hero-content { position: relative; max-width: 800px; }

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(162,155,254,0.05);
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline em {
  font-style: normal;
  color: var(--r5);
}

/* AI family illustration placeholder */
.hero-illustration {
  margin: 3rem auto 0;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 680 / 280;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(162,155,254,0.2);
}

.hero-illustration canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(162,155,254,0.2), transparent);
  max-width: 1100px;
  margin: 0 auto;
}

/* ────────────────────────────────────────
   SECTIONS COMMON
───────────────────────────────────────── */
section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 3rem;
}

/* ────────────────────────────────────────
   STORY CARDS (The Grind / Wins / Family)
───────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.story-card:hover {
  transform: translateY(-6px);
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.card-grind::before  { background: linear-gradient(90deg, var(--r1), var(--r2)); }
.card-wins::before   { background: linear-gradient(90deg, var(--r4), var(--r5)); }
.card-family::before { background: linear-gradient(90deg, var(--r7), var(--r6)); }

.card-grind:hover  { border-color: rgba(255,107,107,0.3); }
.card-wins:hover   { border-color: rgba(11,232,129,0.3); }
.card-family:hover { border-color: rgba(253,121,168,0.3); }

.story-emoji {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
}

.story-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.card-grind  .story-title { color: var(--r2); }
.card-wins   .story-title { color: var(--r4); }
.card-family .story-title { color: var(--r7); }

.story-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.story-body p + p { margin-top: 0.85rem; }

.story-body strong {
  color: var(--text);
  font-weight: 500;
}

/* ────────────────────────────────────────
   MILESTONES TIMELINE
───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--r1), var(--r2), var(--r3),
    var(--r4), var(--r5), var(--r6), var(--r7));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--r1);
}

.timeline-item:nth-child(1) .timeline-dot { background: var(--r1); }
.timeline-item:nth-child(2) .timeline-dot { background: var(--r2); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--r3); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--r4); }
.timeline-item:nth-child(5) .timeline-dot { background: var(--r5); }
.timeline-item:nth-child(6) .timeline-dot { background: var(--r6); }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.timeline-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ────────────────────────────────────────
   PROJECTS SECTION
───────────────────────────────────────── */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rainbow-soft);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162,155,254,0.4);
}

.project-card:hover::before { opacity: 0.05; }

.project-left { position: relative; }

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.project-url {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.project-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.3s;
  position: relative;
}

.project-card:hover .project-arrow {
  transform: translateX(6px);
  color: var(--r6);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid;
}

.tag-green  { color: #0be881; border-color: rgba(11,232,129,0.3); background: rgba(11,232,129,0.06); }
.tag-blue   { color: #48dbfb; border-color: rgba(72,219,251,0.3); background: rgba(72,219,251,0.06); }
.tag-purple { color: #a29bfe; border-color: rgba(162,155,254,0.3); background: rgba(162,155,254,0.06); }
.tag-gold   { color: #ffd32a; border-color: rgba(255,211,42,0.3); background: rgba(255,211,42,0.06); }

/* ────────────────────────────────────────
   FAMILY SECTION
───────────────────────────────────────── */
.family-section {
  text-align: center;
}

.family-illustration {
  margin: 0 auto 3rem;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 600 / 240;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(253,121,168,0.2);
  position: relative;
}

.family-illustration canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.family-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
}

.family-quote span {
  background: linear-gradient(135deg, var(--r7), var(--r6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.family-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ────────────────────────────────────────
   FOOTER + PERSONAL
───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(162,155,254,0.04);
  transition: all 0.2s;
  white-space: nowrap;
}

.social-link:hover {
  background: rgba(162,155,254,0.12);
  border-color: rgba(162,155,254,0.4);
  color: var(--r6);
}

.social-link svg { flex-shrink: 0; }

/* ────────────────────────────────────────
   FADE IN
───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.6s; }

/* ────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: 7rem 1.5rem 4rem; }
  section { padding: 4rem 1.5rem; }
  .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { flex-direction: column; align-items: flex-start; }
  .project-arrow { display: none; }
  .site-footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .family-section { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  nav { padding: 0.85rem 1rem; overflow: hidden; }
  .nav-logo { font-size: 1rem; }
  .nav-badge { display: none; }
  .hero { padding: 6rem 1rem 3rem; }
  .hero-name { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-illustration { height: 200px; border-radius: 16px; }
  section { padding: 3rem 1rem; }
  h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .story-card { padding: 1.5rem; border-radius: 14px; }
  .project-card { padding: 1.5rem; border-radius: 14px; }
  .family-illustration { height: 180px; border-radius: 16px; }
  .family-quote { font-size: 1.15rem; }
  .site-footer { padding: 1.5rem 1rem; }
  .social-links { gap: 0.35rem; }
  .social-link { font-size: 0.55rem; padding: 0.35rem 0.65rem; }
}
