:root {
  --bg: #0b1020;
  --bg-elev: #11182e;
  --bg-elev-2: #162040;
  --text: #e7edf8;
  --text-muted: #93a3c2;
  --accent: #38bdf8;
  --accent-2: #f59e0b;
  --border: rgba(147, 163, 194, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max-width: 1150px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

.narrow {
  max-width: 760px;
}

/* Header / Nav */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
}

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

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

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover,
.nav-cta:focus {
  filter: brightness(1.1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.12), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.08), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-block: 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-block: 0 1.5rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta a {
  color: inherit;
  text-decoration: none;
}

.hero-meta a:hover {
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #062a3f;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-socials a:hover {
  color: var(--text);
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

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

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  opacity: 0.45;
}

.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll 1.6s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Sections */
.section {
  padding-block: 6rem;
}

.section-alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-block: 0 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-block: 0 2.5rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
}

.skill-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.skill-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.skill-card.leadership {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(245, 158, 11, 0.05));
}

/* Experience timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  opacity: 0.35;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1.5rem;
  position: relative;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

.timeline-body {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

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

.timeline-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.timeline-header time {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.role {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.company-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.timeline-body li {
  margin-bottom: 0.5rem;
}

.role.prior {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.prior-list {
  margin-top: 0.5rem;
}

/* Impact */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.impact-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.impact-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.impact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.impact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.edu-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.edu-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.edu-card .detail {
  font-size: 0.92rem;
}

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

.edu-card li {
  margin-bottom: 0.4rem;
}

/* Contact */
.contact {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 2rem 1rem;
}

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

.contact-meta a {
  color: var(--text-muted);
}

.contact-meta a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--text-muted);
}

.footer-grid a:hover {
  color: var(--accent);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 16, 32, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item {
    grid-template-columns: 16px 1fr;
    gap: 1rem;
  }

  .timeline-marker {
    width: 16px;
    height: 16px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .skill-card.leadership {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
}
