/* Cosmic portfolio — content overlay styles */

:root {
  --bg: #05071a;
  --fog: #0a0e2e;
  --text: #e8ecf8;
  --text-muted: #8a93b8;
  --text-dim: #5d6688;
  --accent: #67e8f9;
  --accent-2: #a78bfa;
  --accent-3: #ec4899;
  --line: rgba(180, 200, 255, 0.12);
  --card-bg: rgba(10, 14, 40, 0.55);
  --card-border: rgba(180, 200, 255, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* 9 sections × 100vh */
  min-height: 900vh;
  overflow-x: hidden;
}

/* Three.js canvas — fixed full-viewport behind everything */
#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
}

/* Vignette overlay for cinematic feel */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.55) 100%);
}

/* Sections — one per 100vh, content positioned over scene */
.sections {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.sections a, .sections button, .sections [data-interactive],
.gh-scroll, .recs-scroll, .skills-grid, .projects-list, .timeline,
.tags, .ai-list, .contact-actions, .contact-links, .topbar-nav,
.contact-form, .contact-form input, .contact-form textarea,
.contact-form button, .contact-form label, .contact-cards,
.contact-card, .form-group, .form-row {
  pointer-events: auto;
}

.section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4vh 6vw;
  position: relative;
}

.section--right { justify-content: flex-end; }
.section--left  { justify-content: flex-start; }
.section--center { justify-content: center; text-align: center; }

.panel {
  max-width: 540px;
  position: relative;
}
.panel--wide { max-width: 720px; }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 62px;
  pointer-events: auto;
  background: rgba(5, 7, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(103, 232, 249, 0.12);
  transition: background 0.3s ease;
}
.topbar--scrolled { background: rgba(5, 7, 26, 0.97); }

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.topbar .brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 12px #67e8f9;
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8ecf8 !important;
  text-transform: none;
  line-height: 1;
  text-decoration: none !important;
}
.brand-highlight {
  background: linear-gradient(90deg, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Topbar horizontal nav */
.topbar-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180,200,255,0.1);
  border-radius: 10px;
  padding: 4px;
}
.topbar-nav a,
.topbar-nav a:link,
.topbar-nav a:visited {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #8a93b8 !important;
  text-decoration: none !important;
  padding: 5px 11px;
  border-radius: 7px;
  transition: all 0.2s ease;
  display: block;
}
.topbar-nav a:hover,
.topbar-nav a.active-nav {
  color: #67e8f9 !important;
  background: rgba(103, 232, 249, 0.1) !important;
  text-decoration: none !important;
}

.topbar .meta {
  color: #5d6688;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* Hero offset so content starts below fixed topbar */
.hero-offset { padding-top: 90px; }

/* Hero two-column split layout */
.panel--hero { max-width: 860px; }
.hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 220px;
}
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 40px rgba(14,165,233,0.25), 0 0 0 6px rgba(14,165,233,0.12);
}
.hero-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(14,165,233,0.35);
  animation: spin-slow 18s linear infinite;
  z-index: 0;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-photo-badge {
  position: absolute;
  bottom: 10px;
  right: -6px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 12px;
  padding: 6px 12px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(14,165,233,0.4);
  line-height: 1;
}
.hero-photo-badge span {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.hero-photo-badge small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  opacity: 0.9;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .hero-split { flex-direction: column-reverse; gap: 24px; align-items: flex-start; }
  .hero-photo-wrap { width: 160px; height: 160px; }
  .hero-photo { width: 160px; height: 160px; }
}

/* Side dot navigator */
.nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}
.nav-dots a {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(180, 200, 255, 0.25);
  display: block;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}
.nav-dots a:hover {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.4);
}
.nav-dots a.active {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: scale(1.5);
}
.nav-dots a::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.nav-dots a:hover::before { opacity: 1; }

/* ── Hero section ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1.display {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}
h1.display em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}
h2.section-title em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  color: var(--accent);
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
  text-wrap: pretty;
  max-width: 480px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(10, 14, 40, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag--accent {
  color: var(--accent);
  border-color: rgba(103, 232, 249, 0.35);
}

/* CTA / scroll hint */
.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(103, 232, 249, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(103, 232, 249, 0.18);
}
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
}
.scroll-hint .line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── Section index label (e.g. 02 — About) ─────────────────────────── */
.section-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}
.section-index .idx { color: var(--accent); }

/* ── Skills grid ───────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.skill-card {
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.skill-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.skill-card p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}
.skill-card .icon {
  width: 22px; height: 22px;
  margin-bottom: 10px;
  color: var(--accent);
}

/* ── Projects ──────────────────────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.project-card {
  padding: 20px 22px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(103, 232, 249, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.project-card:hover::before { opacity: 1; }
.project-card .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}
.project-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.project-card .year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.project-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.project-card .stack {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ── Experience timeline ───────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.timeline-item .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.timeline-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text);
}
.timeline-item p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ── AI section — bullet list with glowing arrows ──────────────────── */
.ai-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.ai-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-left: 2px solid rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.04);
}
.ai-item:hover {
  border-left-color: var(--accent-2);
  background: rgba(167, 139, 250, 0.08);
}
.ai-item .ai-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 2px;
}
.ai-item .ai-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text);
}
.ai-item .ai-body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-title {
  font-size: clamp(40px, 5.5vw, 72px);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}
.contact-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.contact-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.contact-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Loading splash ──────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.8s ease;
}
#loader.gone { opacity: 0; pointer-events: none; }
#loader .l-spin {
  width: 28px; height: 28px;
  border: 2px solid rgba(103, 232, 249, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
#loader .l-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Section panels: visible by default, gently fade on scroll-in ─── */
.section .panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section .panel.fade-in {
  animation: panelIn 0.9s ease both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────────────── */

/* Tablet / small desktop */
@media (max-width: 900px) {
  .panel--wide { max-width: 560px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Mobile */
@media (max-width: 720px) {
  /* Sections: allow content to overflow 100vh on short screens */
  .section {
    height: auto;
    min-height: 100vh;
    padding: 10vh 6vw 8vh;
  }
  .section--right,
  .section--left {
    justify-content: flex-start;
  }

  .panel { max-width: 100%; }
  .panel--wide { max-width: 100%; }

  /* Typography scale down */
  h1.display { font-size: clamp(32px, 9vw, 52px); }
  h2.section-title { font-size: clamp(26px, 7vw, 38px); }
  .lede { font-size: 16px; margin-bottom: 22px; max-width: 100%; }

  /* Topbar */
  .topbar {
    padding: 10px 16px;
  }
  .topbar .meta { display: none; }
  .brand-name { font-size: 17px; }
  .topbar-nav { display: none; }

  /* Panels more transparent on mobile so 3D scene shows through */
  .section-light .panel,
  .section-light .panel--wide {
    background: rgba(255, 255, 255, 0.75);
    padding: 24px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Contact cards single column on mobile */
  .contact-cards { grid-template-columns: 1fr; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .panel--contact { text-align: left; }
  .panel--contact .eyebrow { justify-content: flex-start; }
  .panel--contact .contact-title { font-size: clamp(24px, 6vw, 36px); }

  /* Nav dots → bottom horizontal strip */
  .nav-dots {
    top: auto;
    bottom: 16px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 12px;
    background: rgba(5, 7, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
  }
  .nav-dots a::before {
    /* Hide hover labels on mobile */
    display: none;
  }

  /* CTA row: stack buttons */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn {
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  /* Scroll hint: tighter spacing */
  .scroll-hint { bottom: 60px; }

  /* Skills grid: single column */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .skill-card { padding: 14px 16px; }

  /* Project cards */
  .project-card { padding: 16px 18px; }
  .project-card .head { flex-direction: column; gap: 4px; }
  .project-card h3 { font-size: 17px; }
  .project-card p { font-size: 13px; }

  /* Timeline */
  .timeline { gap: 18px; padding-left: 20px; }
  .timeline-item h4 { font-size: 15px; }

  /* AI items */
  .ai-item { padding: 12px 14px; }
  .ai-item .ai-body h4 { font-size: 14px; }

  /* Contact */
  .contact-title { font-size: clamp(28px, 7vw, 44px); }
  .contact-links { gap: 12px; }
  .contact-links a { font-size: 11px; }
}

/* ── Light panel — all sections ─────────────────────────────────────── */
.section-light .panel,
.section-light .panel--wide {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
}

/* Typography overrides */
.section-light .eyebrow { color: #0ea5e9; }
.section-light .eyebrow::before { background: #0ea5e9; }
.section-light h1.display { color: #111827; }
.section-light h1.display em {
  background: linear-gradient(90deg, #0ea5e9, #7c3aed);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-light h2.section-title { color: #111827; }
.section-light h2.section-title em { color: #0ea5e9; -webkit-text-fill-color: #0ea5e9; }
.section-light .lede { color: #4b5563; }
.section-light .section-index { color: #6b7280; }
.section-light .section-index .idx { color: #0ea5e9; }
.section-light strong { color: #111827 !important; }
.section-light .scroll-hint { color: #9ca3af; }
.section-light .scroll-hint .line { background: linear-gradient(to bottom, #0ea5e9, transparent); }

/* Tags */
.section-light .tag { color: #6b7280; border-color: #e5e7eb; background: #f9fafb; }
.section-light .tag--accent { color: #0ea5e9; border-color: rgba(14,165,233,0.4); background: rgba(14,165,233,0.06); }

/* Buttons */
.section-light .btn { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.section-light .btn:hover { box-shadow: 0 8px 28px rgba(14,165,233,0.35); }
.section-light .btn--ghost { background: transparent; color: #0ea5e9; border-color: #0ea5e9; }
.section-light .btn--ghost:hover { background: #0ea5e9; color: #fff; }

/* Skill cards */
.section-light .skill-card { background: #f8fafc; border-color: #e5e7eb; }
.section-light .skill-card:hover { border-color: #0ea5e9; background: #f0f9ff; }
.section-light .skill-card h4 { color: #111827; }
.section-light .skill-card p { color: #6b7280; }
.section-light .skill-card .icon { color: #0ea5e9; }

/* Project cards */
.section-light .project-card { background: #f8fafc; border-color: #e5e7eb; }
.section-light .project-card::before { background: linear-gradient(135deg, transparent, rgba(14,165,233,0.06)); }
.section-light .project-card:hover { border-color: #0ea5e9; transform: translateX(4px); }
.section-light .project-card h3 { color: #111827; }
.section-light .project-card p { color: #6b7280; }
.section-light .project-card .year { color: #9ca3af; }
.section-light .project-card .stack { color: #9ca3af; }

/* Timeline */
.section-light .timeline::before { background: linear-gradient(to bottom, #0ea5e9, transparent); }
.section-light .timeline-item::before { background: #0ea5e9; box-shadow: 0 0 10px rgba(14,165,233,0.3); }
.section-light .timeline-item .meta { color: #9ca3af; }
.section-light .timeline-item h4 { color: #111827; }
.section-light .timeline-item p { color: #6b7280; }

/* AI items */
.section-light .ai-item { border-left-color: rgba(124,58,237,0.25); background: rgba(124,58,237,0.04); }
.section-light .ai-item:hover { border-left-color: #7c3aed; background: rgba(124,58,237,0.08); }
.section-light .ai-item .ai-num { color: #7c3aed; }
.section-light .ai-item .ai-body h4 { color: #111827; }
.section-light .ai-item .ai-body p { color: #6b7280; }

/* Contact */
.section-light .contact-links a,
.section-light .contact-links a:link,
.section-light .contact-links a:visited { color: #6b7280 !important; text-decoration: none !important; }
.section-light .contact-links a:hover { color: #0ea5e9 !important; border-bottom-color: #0ea5e9; }

/* Inline link */
.section-light .inline-link,
.section-light .inline-link:link,
.section-light .inline-link:visited { color: #0ea5e9 !important; border-bottom-color: rgba(14,165,233,0.4); }

/* ── Inline link ───────────────────────────────────────────────────── */
.inline-link,
.inline-link:link,
.inline-link:visited {
  color: #67e8f9 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(103,232,249,0.35);
  transition: border-color 0.2s ease;
}
.inline-link:hover { border-color: #67e8f9; }

/* ── GitHub repo cards — horizontal scroll ────────────────────────── */
.gh-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-top: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(103,232,249,0.3) transparent;
}
.gh-scroll::-webkit-scrollbar { height: 4px; }
.gh-scroll::-webkit-scrollbar-track { background: transparent; }
.gh-scroll::-webkit-scrollbar-thumb {
  background: rgba(103,232,249,0.3);
  border-radius: 4px;
}
.gh-card {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none !important;
  scroll-snap-align: start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  color: #111827;
}
.gh-card:hover {
  transform: translateY(-4px);
  border-color: #0ea5e9;
  box-shadow: 0 12px 32px rgba(14,165,233,0.18);
}
.gh-card--more {
  border-style: dashed;
  align-items: center;
  justify-content: center;
}
/* Coloured thumbnail header */
.gh-thumb {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.gh-thumb svg {
  position: absolute;
  right: 12px; bottom: 8px;
  width: 28px; height: 28px;
  opacity: 0.35;
}
.gh-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gh-repo-name,
.gh-repo-name:link,
.gh-repo-name:visited {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  text-decoration: none !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-break: break-word;
}
.gh-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.gh-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #6b7280;
}
.gh-lang-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── LinkedIn recommendation cards — horizontal scroll ─────────────── */
.recs-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-top: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,0.3) transparent;
}
.recs-scroll::-webkit-scrollbar { height: 4px; }
.recs-scroll::-webkit-scrollbar-track { background: transparent; }
.recs-scroll::-webkit-scrollbar-thumb {
  background: rgba(167,139,250,0.3);
  border-radius: 4px;
}
.rec-card {
  flex-shrink: 0;
  width: 380px;
  padding: 24px 26px;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #0ea5e9;
  border-radius: 16px;
  background: #ffffff;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rec-card:nth-child(2) { border-top-color: #7c3aed; }
.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14,165,233,0.15);
}
.rec-quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  line-height: 1;
  color: #0ea5e9;
  opacity: 0.25;
  margin-bottom: -14px;
}
.rec-text {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
  font-style: italic;
  text-wrap: pretty;
  flex: 1;
}
.rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.rec-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}
.rec-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: #111827; }
.rec-title { font-size: 11px; color: #6b7280; line-height: 1.3; }
.rec-date  { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #9ca3af; letter-spacing: 0.06em; margin-top: 2px; }
.rec-more-btn {
  margin-top: 18px;
  font-size: 13px;
  align-self: flex-start;
  background: #0ea5e9 !important;
  color: #fff !important;
  border-color: #0ea5e9 !important;
}

/* ── Contact section layout ────────────────────────────────────────── */
.panel--contact { max-width: 680px; text-align: center; }

/* Contact info cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none !important;
  transition: all 0.2s ease;
  color: inherit;
}
.contact-card:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.12);
}
.contact-card-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: #0ea5e9;
}
.contact-card:nth-child(1) .contact-card-icon { color: #25d366; }
.contact-card:nth-child(3) .contact-card-icon { color: #0077b5; }
.contact-card:nth-child(4) .contact-card-icon { color: #333; }
.contact-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}
.contact-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact form */
.contact-form {
  text-align: left;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.req { color: #ef4444; }
.form-group input,
.form-group textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #111827;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-submit-btn {
  align-self: flex-start;
  margin-top: 4px;
}
.form-status {
  font-size: 13px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}
.form-status--ok {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-status--err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Small phones */
@media (max-width: 400px) {
  .section { padding: 8vh 5vw 6vh; }
  h1.display { font-size: clamp(28px, 8.5vw, 40px); }
  h2.section-title { font-size: clamp(22px, 6.5vw, 32px); }
  .lede { font-size: 15px; }
  .eyebrow { font-size: 10px; }
  .topbar .brand { font-size: 11px; }
  .skills-grid { gap: 8px; }
  .skill-card { padding: 12px 14px; }
  .skill-card h4 { font-size: 12px; }
  .skill-card p { font-size: 10px; }
  .project-card h3 { font-size: 16px; }
  .nav-dots { padding: 8px 12px; gap: 10px; }
  .gh-card { width: 180px; }
  .gh-thumb { height: 56px; }
  .rec-card { width: 300px; padding: 16px 18px; }
}
