:root {
  --bg: #080c14;
  --bg-alt: #0f1623;
  --surface: #141c2b;
  --surface-elevated: #1a2438;
  --text: #f0f4fc;
  --text-muted: #8b9cb8;
  --accent: #22d3ee;
  --accent-secondary: #3b82f6;
  --accent-warm: #f59e0b;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --border: rgba(34, 211, 238, 0.15);
  --border-bright: rgba(34, 211, 238, 0.35);
  --gradient-accent: linear-gradient(135deg, #22d3ee, #3b82f6);
  --gradient-cta: linear-gradient(135deg, #f59e0b, #ea580c);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.08);
  --radius: 14px;
  --max-width: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(59, 130, 246, 0.1), transparent 45%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 760px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.08);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.nav-brand {
  font-weight: 700;
  color: var(--text);
}

.nav-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.14), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: var(--text);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.headline {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero-summary {
  max-width: 52ch;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--gradient-cta);
  color: #0a0e14;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.button-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
}

.button-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.button-secondary:hover {
  text-decoration: none;
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.pillar-card,
.skill-group,
.about-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card {
  position: relative;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.metric-card:hover,
.pillar-card:hover,
.skill-group:hover,
.about-highlight:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section {
  padding: 3.5rem 0;
}

.measure {
  max-width: 65ch;
}

.about-lede {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-highlight {
  padding: 1.15rem 1.25rem;
}

.about-highlight h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.about-highlight p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(34, 211, 238, 0.06),
    inset 0 -1px 0 rgba(34, 211, 238, 0.06);
}

.pillar-grid,
.skills-grid {
  display: grid;
  gap: 1.25rem;
}

.pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pillar-card,
.skill-group {
  padding: 1.25rem 1.35rem;
}

.pillar-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.skill-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chips li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.timeline {
  position: relative;
  margin-top: 0.5rem;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(59, 130, 246, 0.55),
    rgba(34, 211, 238, 0.15)
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.35rem;
}

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

.timeline-marker {
  position: absolute;
  left: -1.52rem;
  top: 1.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  z-index: 1;
}

.timeline-item.featured .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2), 0 0 16px rgba(34, 211, 238, 0.35);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item.featured .timeline-card {
  background: var(--surface-elevated);
  border-color: var(--border-bright);
  box-shadow: var(--shadow), 0 0 24px rgba(34, 211, 238, 0.08);
}

.timeline-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.experience-header h3 {
  margin: 0 0 0.25rem;
}

.company,
.dates {
  color: var(--text-muted);
  margin: 0;
}

.role-summary {
  margin: 0;
  color: var(--text-muted);
}

.experience-groups {
  display: grid;
  gap: 1.15rem;
  margin-top: 1rem;
}

.experience-group h4 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.experience-bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.experience-bullets li + li {
  margin-top: 0.45rem;
}

.earlier-career {
  margin: 0;
}

.earlier-career summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.earlier-career summary::-webkit-details-marker {
  display: none;
}

.earlier-career ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline-card:hover {
    transform: none;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: linear-gradient(to bottom, rgba(34, 211, 238, 0.04), transparent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .pillar-grid,
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 4rem;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-elevated);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow), 0 0 24px rgba(34, 211, 238, 0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .experience-header {
    flex-direction: column;
  }
}
