:root {
  --bg: #f7f7fb;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(97, 67, 255, 0.14);
  --text: #121212;
  --muted: #5b6273;
  --accent: #6a38ff;
  --accent-soft: #8d57ff;
  --shadow: 0 20px 60px rgba(76, 55, 177, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(132, 86, 255, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(97, 67, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #fcfcff 0%, #f3f3fb 100%);
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 20px 24px 0;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(170, 146, 255, 0.05));
  -webkit-backdrop-filter: blur(13px) saturate(155%);
  backdrop-filter: blur(13px) saturate(155%);
  border: 1px solid rgba(106, 56, 255, 0.22);
  border-radius: 999px;
  box-shadow:
    0 16px 40px rgba(90, 76, 160, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.nav::before,
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.nav::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 82% 50%, rgba(168, 137, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  opacity: 0.72;
}

.nav::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  opacity: 0.54;
  z-index: -1;
}

.brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

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

main {
  position: relative;
  z-index: 1;
}

.hero,
.content-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0 80px;
}

.hero-content {
  max-width: 900px;
}

.eyebrow,
.section-label,
.project-tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  font-size: 0.82rem;
}

.hero-title {
  margin: 12px 0 12px;
  min-height: 1.2em;
  font-size: clamp(2.3rem, 5.9vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

#typing-text {
  color: #121212;
}

.name-highlight {
  background: linear-gradient(90deg, var(--accent) 0%, #914bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.1em;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: blink 0.8s step-end infinite;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  color: #394156;
  font-weight: 700;
}

.hero-description {
  max-width: 720px;
  margin: 32px auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  line-height: 1.8;
  color: #707789;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.social-link,
.resume-button,
.contact-button {
  border: 2px solid rgba(106, 56, 255, 0.75);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-link {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.resume-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1.28rem;
  font-weight: 700;
}

.social-link:hover,
.social-link:focus-visible,
.resume-button:hover,
.resume-button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 55px rgba(106, 56, 255, 0.18);
}

.content-section {
  margin-bottom: 28px;
  padding: 42px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

#about.content-section {
  margin-top: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

#education.content-section {
  margin-top: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

#experience.content-section {
  margin-top: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

#projects.content-section {
  margin-top: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.about-heading {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(2.35rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading h3 {
  margin: 12px 0 0;
  font-size: clamp(1.55rem, 2.55vw, 2.3rem);
  line-height: 1.15;
}

.about-card {
  margin: 0;
  display: grid;
  gap: 38px;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  padding: 34px 38px;
  border: 1.5px solid rgba(106, 56, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 40px rgba(106, 56, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.education-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  width: 100%;
  padding: 34px 38px;
  border: 1.5px solid rgba(106, 56, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 40px rgba(106, 56, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.experience-board {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 48px 24px;
  border: 1.5px solid rgba(106, 56, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 40px rgba(106, 56, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.experience-board::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: rgba(106, 56, 255, 0.95);
  box-shadow: 0 0 18px rgba(106, 56, 255, 0.18);
}

.experience-axis {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  border-right: 4px solid rgba(106, 56, 255, 0.95);
  border-bottom: 4px solid rgba(106, 56, 255, 0.95);
  transform: translateX(-50%) rotate(45deg);
  z-index: 2;
}

.experience-axis-top {
  top: 14px;
  transform: translateX(-50%) rotate(225deg);
}

.experience-axis-bottom {
  bottom: 14px;
  transform: translateX(-50%) rotate(45deg);
}

.experience-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(100%, 860px);
  margin: 0 auto;
  min-height: 88px;
  padding: 14px 20px;
  border: 1px solid rgba(106, 56, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(106, 56, 255, 0.08);
}

.experience-row::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  z-index: -1;
}

.experience-logo-slot {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(106, 56, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(106, 56, 255, 0.1), rgba(106, 56, 255, 0.03));
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
}

.experience-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

.experience-row-main,
.experience-row-meta {
  position: relative;
}

.experience-row-main {
  padding-right: 14px;
}

.experience-row-role,
.experience-row-company,
.experience-row-detail,
.experience-row-meta {
  margin: 0;
}

.experience-row-role {
  color: #1d1d1f;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.experience-row-company {
  margin-top: 5px;
  color: #ff61aa;
  font-size: 0.98rem;
  font-weight: 700;
}

.experience-row-detail {
  margin-top: 4px;
  color: #5e6577;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.experience-row-meta {
  min-width: 245px;
  color: #6a7081;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  text-align: right;
}

.education-logo-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.education-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.education-copy h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.education-degree,
.education-meta,
.education-gpa,
.education-coursework-title {
  margin: 0;
}

.education-degree {
  margin-top: 10px;
  color: #4a5164;
  font-size: 1.45rem;
  line-height: 1.35;
}

.education-meta,
.education-gpa {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.education-gpa {
  font-weight: 700;
  color: #394156;
}

.education-coursework {
  margin-top: 22px;
}

.education-coursework-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b3140;
}

.coursework-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 26px;
  color: var(--muted);
}

.coursework-list li {
  font-size: 0.98rem;
  line-height: 1.45;
  padding-left: 4px;
}

.coursework-list li::marker {
  color: var(--accent);
}

.about-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(106, 56, 255, 0.12);
  background: #f2efff;
  box-shadow: 0 12px 28px rgba(106, 56, 255, 0.08);
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-copy {
  max-width: 640px;
  text-align: left;
  display: flex;
  align-items: center;
}

.about-copy p,
.project-card p,
.contact-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.about-copy p {
  font-size: 1.08rem;
  line-height: 1.95;
}

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

.project-board {
  padding: 34px 38px;
  border: 1.5px solid rgba(106, 56, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 40px rgba(106, 56, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.project-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(106, 56, 255, 0.12);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.project-card h4 {
  margin: 0;
  font-size: 1.22rem;
}

.contact-section {
  margin-bottom: 72px;
  text-align: center;
}

.contact-heading {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.contact-copy {
  max-width: 700px;
  margin: 24px auto 30px;
}

.background-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(85px);
  z-index: 0;
  opacity: 0.35;
}

.background-glow-left {
  left: -80px;
  top: 90px;
  background: rgba(145, 75, 255, 0.34);
}

.background-glow-right {
  right: -80px;
  top: 180px;
  background: rgba(99, 78, 255, 0.28);
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 87, 255, 0.9) 0%, rgba(142, 87, 255, 0) 70%);
  animation: floatParticle linear infinite;
}

.reveal {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-left {
  transform: translateX(-48px);
}

.reveal-right {
  transform: translateX(48px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes floatParticle {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift-x), calc(var(--drift-y) * -1), 0) scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .about-card,
  .education-card,
  .project-grid {
    grid-template-columns: 1fr;
  }

  #about.content-section {
    margin-top: 56px;
    padding: 0;
  }

  #education.content-section {
    margin-top: 56px;
    padding: 0;
  }

  #experience.content-section {
    margin-top: 56px;
    padding: 0;
  }

  #projects.content-section {
    margin-top: 56px;
    padding: 0;
  }

  .nav {
    border-radius: 24px;
    padding: 16px 18px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.88rem;
  }

  .content-section {
    padding: 32px 22px;
  }

  .about-photo-frame {
    width: min(280px, 100%);
    min-height: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .about-card {
    gap: 24px;
    padding: 30px 24px;
  }

  .education-card {
    gap: 22px;
    padding: 30px 24px;
  }

  .project-board {
    padding: 30px 24px;
  }

  .experience-board {
    gap: 14px;
    padding: 38px 16px 34px;
  }

  .experience-board::before {
    left: 46px;
    transform: none;
    width: 4px;
  }

  .experience-axis {
    left: 46px;
    width: 16px;
    height: 16px;
    transform: translateX(-50%) rotate(45deg);
  }

  .experience-axis-top {
    transform: translateX(-50%) rotate(225deg);
  }

  .experience-axis-bottom {
    transform: translateX(-50%) rotate(45deg);
  }

  .experience-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    min-height: auto;
    width: min(100%, 740px);
    padding: 15px 16px 15px 10px;
    border-radius: 28px;
  }

  .experience-row::after {
    left: 46px;
    width: 24px;
    transform: translateX(-50%);
  }

  .about-copy {
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .education-logo-wrap {
    padding-top: 0;
  }

  .education-copy {
    text-align: center;
  }

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

  .experience-logo-slot {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 0.74rem;
  }

  .experience-row-main {
    padding-right: 0;
  }

  .experience-row-main::after {
    display: none;
  }

  .experience-row-meta {
    min-width: 0;
    margin-top: 10px;
    text-align: left;
  }

  .experience-row-main,
  .experience-row-meta {
    grid-column: 2;
  }

  .experience-row-role {
    font-size: 1rem;
  }

  .experience-row-company {
    font-size: 0.92rem;
  }

  .experience-row-detail {
    font-size: 0.82rem;
  }

  .social-link {
    width: 58px;
    height: 58px;
  }

  .resume-button,
  .contact-button {
    min-height: 58px;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal.is-visible,
  .particle,
  .cursor {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 16px 0;
  }

  .hero,
  .content-section {
    width: min(calc(100% - 32px), var(--max-width));
  }

  #about.content-section {
    padding: 0;
  }

  #education.content-section {
    padding: 0;
  }

  #experience.content-section {
    padding: 0;
  }

  #projects.content-section {
    padding: 0;
  }

  .about-heading {
    margin-bottom: 16px;
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .about-card {
    gap: 18px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .education-card {
    gap: 18px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .project-board {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .experience-board {
    gap: 14px;
    padding: 32px 10px 24px;
  }

  .experience-board::before {
    left: 34px;
  }

  .experience-axis {
    left: 34px;
    width: 14px;
    height: 14px;
  }

  .experience-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    padding: 14px 14px 14px 12px;
    border-radius: 22px;
  }

  .experience-row::after {
    left: 34px;
    width: 18px;
  }

  .experience-logo-slot {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.62rem;
  }

  .experience-row-role {
    font-size: 0.98rem;
  }

  .experience-row-company {
    font-size: 0.94rem;
  }

  .experience-row-detail {
    font-size: 0.78rem;
  }

  .experience-row-meta {
    font-size: 0.82rem;
  }

  .about-photo-frame {
    width: min(240px, 100%);
    min-height: 240px;
    height: 240px;
  }

  .about-copy p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .education-copy h3 {
    font-size: 1.6rem;
  }

  .education-degree {
    font-size: 1.15rem;
  }

  .education-meta,
  .education-gpa,
  .education-coursework-title,
  .coursework-list li {
    font-size: 0.96rem;
  }

  .coursework-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-description {
    line-height: 1.6;
  }
}
