html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: #0f172a;
}

body {
  min-height: 100vh;
  color: #e5e7eb;
  font-family: "Inter", BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(135deg, #111827 0%, #0f172a 48%, #0b1120 100%);
}

a {
  color: #60a5fa;
}

a:hover {
  color: #93c5fd;
}

.site-nav {
  min-height: 72px;
  padding: 0 5vw;
  color: #f8fafc;
  background: rgba(9, 15, 28, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.site-nav .navbar-brand,
.site-nav .navbar-tabs {
  min-height: 72px;
}

.site-nav .navbar-item,
.site-nav .navbar-link {
  color: #e5e7eb;
  font-size: 0.96rem;
  font-weight: 600;
}

.site-nav .navbar-item:hover,
.site-nav .navbar-link:hover,
.site-nav .navbar-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-brand {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav .navbar-burger {
  width: 4.5rem;
  height: 4.5rem;
  color: #e5e7eb;
}

.site-nav .navbar-burger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .navbar-dropdown {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.site-nav .navbar-dropdown .navbar-item {
  color: #e5e7eb;
}

.github-button {
  height: 42px;
  min-width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050707;
}

.github-button:hover {
  background: #101819;
}

.github-button img {
  max-height: 22px;
}

.site-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.hero-section {
  display: block;
  margin-bottom: 24px;
}

.hero-copy {
  padding: clamp(28px, 5vw, 44px);
  color: #e5e7eb;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.18), transparent 42%),
    #172033;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 6px solid #3b82f6;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0 0 10px;
  color: #60a5fa;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #93c5fd;
}

.hero-copy h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
}

.hero-summary {
  max-width: 620px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.55;
}

.contact-panel {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(23, 32, 51, 0.5);
  box-shadow: none;
}

.contact-panel > span {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

.contact-email {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #e5e7eb;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.66);
}

.social-links a:hover {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(59, 130, 246, 0.16);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.include-error {
  padding: 18px 20px;
  color: #7a1f1f;
  border: 1px solid rgba(122, 31, 31, 0.18);
  border-radius: 8px;
  background: rgba(255, 245, 245, 0.85);
}

.content-flow {
  display: grid;
  gap: 34px;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(23, 32, 51, 0.48);
  box-shadow: none;
}

.panel-primary {
  padding: clamp(24px, 4vw, 36px);
  border-left: 0;
}

.section-heading + .panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.page-section {
  padding: 16px 0 0;
  border: 0;
  border-radius: 0;
}

.page-section:first-child {
  padding-top: 16px;
  border-top: 0;
}

.about-section {
  background: transparent;
}

.experience-section {
  background: transparent;
}

.education-section {
  background: transparent;
}

.projects-section {
  background: transparent;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 0;
  border-left: 4px solid #3b82f6;
  border-radius: 12px 12px 0 0;
  background: rgba(23, 32, 51, 0.36);
}

.section-heading .eyebrow {
  margin: 0;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

.section-heading h2 {
  max-width: 620px;
  margin: 0;
  color: #94a3b8;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.28;
}

.prose {
  margin-top: 20px;
  color: #cbd5e1;
  font-size: 1rem;
}

.about-section .prose {
  margin-top: 0;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 18px;
}

.skills-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.skills-block h3 {
  margin: 0 0 16px;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-list span {
  padding: 8px 12px;
  color: #bfdbfe;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
}

.projects-section {
  margin-top: 0;
}

.experience-section {
  margin-top: 0;
}

.experience-card {
  padding: 24px;
  border-left: 0;
}

.education-card {
  padding: 20px;
}

.education-header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.education-header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 700;
  line-height: 1.18;
}

.education-header p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.education-date {
  flex: 0 0 auto;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

.research-block,
.coursework-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.research-block h4,
.coursework-block h4 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
}

.research-block p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.course-list span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 5px 8px;
  color: #cbd5e1;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.26);
}

.course-list strong {
  color: #f8fafc;
  font-weight: 600;
}

.experience-header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.experience-header .eyebrow {
  margin-bottom: 6px;
}

.experience-header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.18;
}

.experience-date {
  flex: 0 0 auto;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.94rem;
  font-weight: 700;
}

.experience-level {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 500;
}

.impact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  color: #cbd5e1;
  list-style: none;
}

.impact-list li {
  position: relative;
  padding-left: 22px;
}

.impact-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #60a5fa;
  content: "";
}

.project-card {
  padding: 24px;
  border-left: 0;
}

.project-topline {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-topline .eyebrow {
  margin: 0;
}

.project-topline a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 8px;
  background: #2563eb;
}

.project-topline a:hover {
  color: #ffffff;
  background: #1d4ed8;
}

.project-card h3 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.18;
}

.tech-stack {
  margin: 16px 0 0;
  padding: 14px 16px;
  color: #dbeafe;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

@media only screen and (max-width: 900px) {
  .site-nav {
    padding: 0 20px;
  }

  .site-nav .navbar-menu {
    border-radius: 0 0 8px 8px;
    background: #0f172a;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  }

  .contact-panel {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media only screen and (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 820px);
    padding-top: 104px;
  }

  .hero-copy,
  .panel-primary,
  .project-card,
  .contact-panel {
    padding: 24px;
  }

  .contact-panel {
    display: block;
  }

  .project-topline {
    display: grid;
    justify-items: start;
  }

  .experience-header {
    display: grid;
  }

  .education-header {
    display: grid;
  }

  .experience-date {
    margin-top: 4px;
  }

  .education-date {
    margin-top: 4px;
  }
}
