/* ============================================
   TOKENS — Crowe-inspired palette
   Indigo (primary) + Amber (accent)
   ============================================ */
:root {
  --bg: #080d1e;
  --bg-elev: #0e1530;
  --bg-elev-2: #141d40;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #eaedf4;
  --text-dim: #8a93af;
  --text-dimmer: #5a6384;

  --amber: #d4a843;
  --amber-dim: rgba(212,168,67,0.13);
  --amber-line: rgba(212,168,67,0.50);
  --amber-light: #e4c06a;

  --indigo: #4e6baf;
  --indigo-dim: rgba(78,107,175,0.13);
  --indigo-line: rgba(78,107,175,0.45);

  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1120px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.mono { font-family: var(--font-mono); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,13,30,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.logo-core { fill: var(--text); }
.logo-node-gold { fill: var(--amber); }
.logo-node-teal { fill: var(--indigo); }
.logo-line { stroke: var(--border-strong); stroke-width: 1; }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--amber-line); }
.lang-sep { color: var(--text-dimmer); }
.lang-opt { transition: color 0.2s ease; }
.lang-opt.active { color: var(--amber); font-weight: 500; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 8px 32px 20px;
}
.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
}
.nav-mobile.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

/* Subtle radial glow background */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, rgba(78,107,175,0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-schema {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(60vw, 640px);
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}
.schema-lines line { stroke: var(--border-strong); stroke-width: 1; }
.schema-fact { fill: var(--text-dim); }
.schema-dim-gold { fill: var(--amber); }
.schema-dim-teal { fill: var(--indigo); }

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-w);
}

.hero-eyebrow {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 14ch;
}

.hero-role {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text);
  max-width: 42ch;
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 40ch;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: #1a1200;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--amber-line); color: var(--amber); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 32px;
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--amber);
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section { padding: 120px 0; border-top: 1px solid var(--border); }

.section-label {
  color: var(--text-dimmer);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo-wrapper {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}
.about-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--amber-line), var(--indigo-line));
  z-index: 0;
}
.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  background: var(--bg-elev);
}

.about-content {}

.about-text {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 22px;
  max-width: 58ch;
}
.about-text:last-of-type { margin-bottom: 0; }

.about-facts {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-value {
  font-size: 2.1rem;
  color: var(--amber);
  font-weight: 500;
}
.fact-label { color: var(--text-dim); font-size: 0.9rem; }

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  border-left: 1px solid var(--border);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
}
.timeline-date {
  display: block;
  color: var(--text-dimmer);
  font-size: 13px;
  margin-bottom: 10px;
}
.timeline-content h3 { font-size: 1.25rem; margin-bottom: 4px; }
.timeline-org { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 12px; }
.timeline-desc { color: var(--text-dim); max-width: 62ch; margin-bottom: 16px; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.tag-teal { background: var(--indigo-dim); color: var(--indigo); }
.tag-gold { background: var(--amber-dim); color: var(--amber); }
.tag-both {
  background: linear-gradient(90deg, var(--amber-dim), var(--indigo-dim));
  color: var(--text);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.project-tags { margin-bottom: 18px; }
.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-context {
  color: var(--text-dimmer);
  font-size: 12px;
  margin-bottom: 16px;
}
.project-card p:not(.project-context) {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin-bottom: 22px;
  flex-grow: 1;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.project-stack li {
  font-size: 11.5px;
  color: var(--text-dimmer);
}
.project-stack li:not(:last-child)::after { content: '·'; margin-left: 8px; color: var(--border-strong); }

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 72px;
}
.skills-group-title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-teal { background: var(--indigo); }
.dot-gold { background: var(--amber); }
.dot-both { background: linear-gradient(90deg, var(--amber), var(--indigo)); }

.skills-list { display: flex; flex-direction: column; gap: 10px; }
.skills-list li {
  color: var(--text-dim);
  font-size: 0.94rem;
  padding-left: 16px;
  position: relative;
}
.skills-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 1px;
  background: var(--text-dimmer);
}

.education { border-top: 1px solid var(--border); padding-top: 48px; }
.education .skills-group-title { margin-bottom: 28px; }
.edu-item {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  align-items: baseline;
}
.edu-year { color: var(--amber); font-size: 13px; min-width: 80px; }
.edu-degree { font-size: 1rem; margin-bottom: 2px; }
.edu-school { color: var(--text-dim); font-size: 0.88rem; }

/* ============================================
   CONTACT
   ============================================ */
.section-contact { text-align: center; padding-bottom: 100px; }
.contact-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.contact-text {
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 auto 36px;
}
.contact-email { font-family: var(--font-mono); font-size: 15px; }
.contact-location {
  margin-top: 24px;
  color: var(--text-dimmer);
  font-size: 13px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 13px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-wrapper { width: 180px; margin: 0 auto; }
  .about-facts { flex-wrap: wrap; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .section { padding: 88px 0; }
  .section-inner { padding: 0 24px; }
  .hero { padding: 110px 24px 70px; }
  .hero-schema { opacity: 0.22; width: 80vw; right: -20%; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline { padding-left: 28px; }
  .timeline-item::before { left: -33px; }
  .about-photo-wrapper { width: 160px; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
}
