:root {
  --bg: #0b1120;
  --bg-soft: #111827;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e5e7eb;
  --muted: #a5b4c8;
  --heading: #f8fafc;
  --accent: #60a5fa;
  --accent-2: #c084fc;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(192, 132, 252, 0.12), transparent 25%),
    linear-gradient(180deg, #07111f 0%, #0b1120 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

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

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--heading);
  border-radius: 999px;
}

.hero-grid,
.about-grid,
.research-grid,
.education-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  min-height: calc(100vh - 78px);
}

.hero-copy h1 {
  margin: 0.25rem 0 1rem;
  color: var(--heading);
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.hero-text,
.about-card p,
.feature-card p,
.contact-card p,
.info-card p,
.timeline-card li {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-badges,
.tag-list,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges {
  margin: 1.6rem 0;
}

.hero-badges span,
.tag-list span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #08111d;
  background: linear-gradient(135deg, var(--accent), #93c5fd);
  box-shadow: 0 12px 28px rgba(96, 165, 250, 0.28);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual,
.about-image,
.research-image {
  position: relative;
}

.hero-photo,
.about-image img,
.research-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.15), rgba(192, 132, 252, 0.08));
}

.photo-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.9rem;
  background: rgba(7, 17, 31, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--heading);
  font-size: 0.88rem;
}

.photo-note:empty {
  display: none;
}

.section-heading h2,
.contact-card h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.narrow {
  max-width: 860px;
}

.about-grid,
.research-grid,
.education-grid {
  grid-template-columns: 1fr 1fr;
}

.about-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "heading ."
    "image card";
  align-items: start;
}

#about .section-heading {
  grid-area: heading;
}

#about .about-card {
  grid-area: card;
  align-self: center;
  height: fit-content;
}

#about .about-image {
  grid-area: image;
}

.research-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "heading ."
    "image card";
  align-items: start;
}

#research .section-heading {
  grid-area: heading;
}

#research .feature-card {
  grid-area: card;
  align-self: center;
  height: fit-content;
}

#research .research-image {
  grid-area: image;
}

.about-card,
.feature-card,
.info-card,
.skill-card,
.timeline-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-card,
.feature-card,
.contact-card {
  padding: 2rem;
}

.timeline {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.2rem;
}

.timeline-card {
  padding: 1.8rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-date {
  color: var(--heading);
  font-weight: 700;
}

.timeline-card h3,
.feature-card h3,
.info-card h3,
.skill-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.25rem;
}

.timeline-org,
.feature-subtitle,
.card-subtitle,
.muted {
  color: var(--muted);
}

.timeline-org,
.feature-subtitle,
.card-subtitle {
  margin: 0.25rem 0 1rem;
}

.cards.two-up,
.skill-grid,
.project-grid {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.2rem;
}

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

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

.info-card,
.skill-card {
  padding: 1.65rem;
}

.project-card {
  padding: 1.65rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.project-grid {
  margin-top: 2.25rem;
}

.project-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.project-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.project-text {
  color: var(--muted);
  margin: 1rem 0 0;
}

.project-tags,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tags {
  margin-top: 1.5rem;
}

.project-tags span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.project-actions {
  margin-top: auto;
  padding-top: 1.5rem;
}

.contact-section {
  padding-top: 2rem;
}

.contact-card {
  text-align: center;
}

.contact-links {
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-links a {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .research-grid,
  .education-grid,
  .cards.two-up,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .research-grid {
    grid-template-areas:
      "heading"
      "card"
      "image";
  }

  .hero-grid {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-copy {
    order: -1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-photo {
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 70px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 1.02;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .photo-note {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    text-align: center;
  }

  .about-card,
  .feature-card,
  .contact-card,
  .info-card,
  .skill-card,
  .timeline-card {
    padding: 1.35rem;
  }

  .hero-badges span,
  .tag-list span,
  .contact-links a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .project-tags span {
    width: 100%;
    text-align: center;
  }

  .project-actions .btn {
    width: 100%;
  }

  .contact-links {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4rem 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .site-nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.05);
  }

  .footer-wrap {
    flex-direction: column;
  }
}
