/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:    #0F172A;
  --bg-mid:     #1E293B;
  --bg-surface: #263346;
  --text:       #F8FAFC;
  --text-muted: #94A3B8;
  --accent:     #06B6D4;
  --accent-dim: #0D9488;
  --border:     rgba(6, 182, 212, 0.15);
  --font-sans:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

/* ─── 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: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0 50% 0 0;
  background: url('assets/images/hero-bg.png') center center / cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem max(3rem, calc((100vw - 1200px) / 2 + 3rem));
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.accent { color: var(--accent); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── HERO PANEL ───────────────────────────────────────────────────────────── */
.hero-panel {
  position: relative;
  overflow: hidden;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-panel-img {
  position: absolute;
  inset: -15% 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg-deep) 0%,
    rgba(15, 23, 42, 0.4) 40%,
    transparent 100%
  );
  z-index: 1;
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: #22D3EE;
  color: var(--bg-deep);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ─── SECTIONS ─────────────────────────────────────────────────────────────── */
.section {
  padding: 6rem 3rem;
}

.section-alt {
  background: var(--bg-mid);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

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

/* ─── TIMELINE ─────────────────────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 200px 40px 1fr;
  gap: 0 1.5rem;
  position: relative;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0.2rem;
  padding-bottom: 3rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-top: 0.3rem;
  position: relative;
  z-index: 1;
}

.timeline-dot--current {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.timeline-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}

.timeline-body {
  padding-bottom: 3rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  padding-top: 0.1rem;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
}

.timeline-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.15rem;
}

/* ─── ABOUT ────────────────────────────────────────────────────────────────── */
.about-bg {
  position: relative;
}

.about-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/about-accent.png') center center / cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.about-bg .container {
  position: relative;
  z-index: 1;
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-headshot-wrap {
  position: relative;
  width: 100%;
  margin-bottom: -1px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.about-headshot {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.3s;
}

.about-headshot-wrap:hover .about-headshot {
  filter: grayscale(0%) contrast(1);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
  line-height: 1.85;
}

.about-text em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.stat {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-mid);
}

.stat:last-child { border-bottom: none; }

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ─── CARDS ────────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── CONTACT ──────────────────────────────────────────────────────────────── */
.contact-container {
  text-align: center;
}

.contact-container .section-intro {
  margin: 0 auto 3rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-sep { color: var(--border); }

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.5;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .hero-content {
    padding: 7rem 2rem 4rem;
    text-align: center;
  }

  .hero-tagline { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }

  .hero-panel {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-headshot {
    height: 240px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav { padding: 1rem 1.5rem; }
  .section { padding: 4rem 1.5rem; }

  .timeline-entry {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .timeline-meta {
    align-items: flex-start;
    padding-bottom: 0.5rem;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  .timeline-node { display: none; }

  .timeline-body { padding-bottom: 2.5rem; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .nav-links { gap: 1.5rem; }
}
