:root {
  --bg: #0b0f14;
  --surface: #151b24;
  --surface-soft: #1d2633;
  --surface-glass: rgba(21, 27, 36, 0.8);
  --text: #f1f5f9;
  --text-muted: #a6b3c6;
  --accent: #5b9bff;
  --accent-strong: #1f6fff;
  --accent-glow: rgba(91, 155, 255, 0.2);
  --border: #2a3646;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(7, 10, 16, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, rgba(79, 140, 255, 0.18), transparent 48%),
    radial-gradient(circle at 20% 20%, rgba(125, 245, 201, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 70ch;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-top: 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

p + p {
  margin-top: 1rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lead {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 70ch;
}

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

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

.hero {
  position: relative;
  padding-top: 5.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79, 140, 255, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hero-content {
  display: grid;
  gap: 1.2rem;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.highlight-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.highlight-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.highlight-value {
  font-weight: 600;
}

.hero-card {
  display: grid;
  gap: 1.2rem;
}

.profile-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  aspect-ratio: 4 / 5;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details p {
  color: var(--text-muted);
}

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

.profile-list li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(13, 17, 23, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

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

.menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  padding: 0.8rem 4%;
  gap: 0.8rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0;
  position: relative;
}

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

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

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

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 140, 255, 0.25);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: linear-gradient(160deg, rgba(21, 27, 36, 0.98), rgba(21, 27, 36, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

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

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.about-card {
  display: grid;
  gap: 1rem;
}

.about-note {
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(31, 38, 51, 0.7);
  color: var(--text-muted);
}

.stack {
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.9rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-link:hover,
.project-link:focus {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.contact-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

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

.media-card {
  display: grid;
  gap: 0.8rem;
}

.media-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.media-card figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.credential-details {
  display: grid;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
  }

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

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

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    gap: 1.5rem;
  }

  .hero-card {
    padding: 1.5rem;
  }
}
