:root {
  --bg: #050816;
  --bg-alt: #070b1a;
  --bg-soft: #0b1024;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --accent-strong: #38bdf8;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.28);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-full: 999px;
  --nav-height: 72px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #111827 0, var(--bg) 40%, #020617 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Skip link for accessibility & SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 8px 14px;
  background: var(--accent-strong);
  color: #0b1120;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin: 0 -18px 24px;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.logo:hover {
  opacity: 0.9;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #38bdf8, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #0b1120;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 14px;
  font-weight: 600;
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav-links a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Sections */

.section {
  padding: 32px 0 8px;
}

/* Reduce space directly under hero */
.hero + .section {
  padding-top: 16px;
}

.section-header {
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

.section h2 {
  font-size: 24px;
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 26px;
  padding-top: 24px;
}

.hero-content h1 {
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.1;
  margin: 10px 0 14px;
}

.hero-kicker {
  font-size: 12px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.highlight {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  color: #020617;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.55);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-resume {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.98);
  color: var(--accent-strong);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.btn-resume:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glass-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.glass-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.glass-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.stat-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

/* Generic cards & layout */

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 45%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
  font-size: 14px;
}

.card-compact {
  background: rgba(15, 23, 42, 0.98);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

.card a {
  color: #7dd3fc;
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.tag-list li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.definition-list {
  margin: 0;
}

.definition-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  font-size: 13px;
  padding: 4px 0;
}

.definition-list dt {
  color: var(--text-muted);
}

.definition-list dd {
  margin: 0;
}

.definition-list a {
  color: var(--accent-strong);
  font-weight: 500;
  text-decoration: none;
}

.definition-list a:hover {
  text-decoration: underline;
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(96, 165, 250, 0.2), rgba(15, 23, 42, 0.8));
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-dot {
  position: absolute;
  left: -1px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #0b1120;
  background: radial-gradient(circle at 0 0, #38bdf8, #22c55e);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.timeline-content {
  margin-left: 14px;
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.timeline-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.timeline-role {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Projects */

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  margin-bottom: 6px;
}

.project-header h3 {
  margin-bottom: 2px;
}

.project-stack {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.project-body {
  font-size: 13px;
  margin-bottom: 8px;
}

.project-link {
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent-strong);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.4);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.project-link:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.35);
}

/* Education & contact */

.edu-meta {
  font-size: 13px;
}

.contact-card {
  display: grid;
  row-gap: 10px;
}

.contact-card h3 {
  margin-bottom: 2px;
}

.contact-card a {
  color: var(--accent-strong);
  font-size: 13px;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  font-size: 12px;
  color: var(--text-muted);
}

.back-to-top {
  color: var(--accent-strong);
  text-decoration: none;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* Scroll reveal animation */

.section,
.hero {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.section.visible,
.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

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

  .hero-panel {
    order: -1;
  }

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

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 16px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .nav-links {
    position: absolute;
    right: 18px;
    top: calc(var(--nav-height) + 8px);
    flex-direction: column;
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.98);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.95);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .timeline {
    padding-left: 10px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

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

