:root {
  --body-bg: #121722;
  --panel-bg: #1f242d;
  --accent: #00e6ff;
  --accent-soft: #26f0ff;
  --text-main: #f5f8ff;
  --text-muted: #c2cbda;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 2% 95%, rgba(0, 230, 255, 0.58), rgba(0, 230, 255, 0) 30%),
    radial-gradient(circle at 96% 96%, rgba(0, 230, 255, 0.55), rgba(0, 230, 255, 0) 34%),
    linear-gradient(180deg, #111827 0%, #0f1623 100%);
  overflow-x: hidden;
  position: relative;
}

body.about-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(180deg, rgba(0, 230, 255, 0), rgba(0, 230, 255, 0.55));
  z-index: -2;
  pointer-events: none;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(0, 230, 255, 0.56);
  filter: blur(88px);
  pointer-events: none;
}

.glow-left {
  left: -170px;
  bottom: 38px;
}

.glow-right {
  right: -170px;
  bottom: 4px;
}

.page-shell {
  width: min(1160px, 90vw);
  margin: clamp(22px, 5vh, 50px) auto 0;
}

.hero-card {
  background: var(--panel-bg);
  border-radius: 24px;
  padding: clamp(18px, 2.5vw, 30px) clamp(18px, 3.2vw, 56px) clamp(24px, 3vw, 40px);
  box-shadow:
    0 26px 60px rgba(2, 8, 20, 0.62),
    0 0 56px rgba(0, 230, 255, 0.16);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.06rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 34px);
}

.hero-copy {
  max-width: 570px;
  animation: rise-in 550ms ease both;
}

.hello-line {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.hero-copy h1 {
  margin: 2px 0 0;
  font-size: clamp(2.2rem, 4.5vw, 3.95rem);
  line-height: 1.12;
}

.hero-copy h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 700;
}

.hero-copy h2 span {
  color: var(--accent);
}

.hero-summary {
  margin: 16px 0 0;
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 0.84rem;
  line-height: 1.9;
}

.social-links {
  margin-top: 18px;
  display: flex;
  gap: 11px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #10252c;
  box-shadow: 0 0 22px rgba(0, 230, 255, 0.7);
}

.hero-actions {
  margin-top: 19px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 42px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0c1c22;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(0, 230, 255, 0.45);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(0, 230, 255, 0.8);
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise-in 680ms ease both;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  width: min(390px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 230, 255, 0.36), rgba(0, 230, 255, 0));
  filter: blur(18px);
  z-index: -1;
}

.photo-hex {
  position: relative;
  width: min(368px, 76vw);
  aspect-ratio: 1 / 1;
  clip-path: polygon(25% 7%, 75% 7%, 96% 50%, 75% 93%, 25% 93%, 4% 50%);
  background: linear-gradient(145deg, #11eeff 0%, #00d6ec 100%);
  filter: drop-shadow(0 0 24px rgba(0, 230, 255, 0.86));
  overflow: hidden;
}

.photo-hex::before {
  content: "";
  position: absolute;
  inset: 11px;
  clip-path: polygon(25% 7%, 75% 7%, 96% 50%, 75% 93%, 25% 93%, 4% 50%);
  background: #102533;
}

.photo-hex img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: center 24%;
  clip-path: polygon(25% 7%, 75% 7%, 96% 50%, 75% 93%, 25% 93%, 4% 50%);
}

.info-section {
  --section-accent: var(--accent);
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(0, 230, 255, 0.08), rgba(0, 230, 255, 0) 40%),
    rgba(31, 36, 45, 0.88);
  border: 1px solid color-mix(in srgb, var(--section-accent) 28%, transparent);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.info-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--section-accent), transparent 78%);
}

.info-section:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--section-accent) 52%, transparent);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.3),
    0 0 30px color-mix(in srgb, var(--section-accent) 18%, transparent);
}

.info-section h3 {
  margin: 2px 0 0;
  font-size: 1rem;
  color: #f6fbff;
}

.info-publications {
  --section-accent: #35d8ff;
}

.info-employment {
  --section-accent: #58f5bf;
}

.info-wip {
  --section-accent: #22f3da;
}

.info-certifications {
  --section-accent: #7ce8ff;
}

.info-projects {
  --section-accent: #2cf1ff;
}

.info-contact {
  --section-accent: #44d8ff;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.section-kicker {
  color: var(--section-accent);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.67rem;
  font-weight: 700;
}

.inline-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(38, 240, 255, 0.34);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(14, 28, 37, 0.72);
}

.inline-link:hover {
  text-decoration: none;
  border-color: rgba(38, 240, 255, 0.7);
  box-shadow: 0 0 18px rgba(38, 240, 255, 0.28);
}

.info-section p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.card-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.content-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(20, 29, 42, 0.92);
  border: 1px solid rgba(0, 230, 255, 0.24);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.25);
}

.content-card h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #ffffff;
}

.content-card .tagline {
  margin: 5px 0 0;
  color: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.content-card .description {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.content-card .meta {
  margin: 7px 0 0;
  color: #e7f3ff;
  font-size: 0.83rem;
}

.content-card .meta a {
  color: var(--accent-soft);
  text-decoration: none;
}

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

.content-card .card-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.content-card .card-list li + li {
  margin-top: 4px;
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 11px;
  background: rgba(12, 20, 29, 0.54);
  border: 1px solid rgba(0, 230, 255, 0.2);
  border-radius: 14px;
  padding: 12px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  color: #dce9ff;
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: #eff8ff;
  background: rgba(13, 21, 31, 0.92);
  border: 1px solid rgba(0, 230, 255, 0.32);
  border-radius: 10px;
  padding: 10px 11px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 230, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(0, 230, 255, 0.2);
}

.contact-form .btn-download {
  width: fit-content;
}

.form-status {
  margin: 1px 0 0;
  min-height: 20px;
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 18, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  z-index: 20;
}

.about-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(50vw, 760px);
  height: 100vh;
  background: #1a2230;
  border-left: 1px solid rgba(0, 230, 255, 0.35);
  box-shadow: -26px 0 50px rgba(2, 8, 20, 0.7);
  padding: 26px 28px 24px;
  transform: translateX(102%);
  transition: transform 320ms ease;
  z-index: 30;
  overflow-y: auto;
}

.about-drawer h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0;
  transform: translateX(18px);
}

.about-drawer p {
  margin: 12px 0 0;
  color: #d5deea;
  line-height: 1.8;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(18px);
}

.about-close {
  position: absolute;
  top: 11px;
  right: 14px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  color: #031117;
  background: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

body.about-open .about-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.about-open .about-drawer {
  transform: translateX(0);
}

body.about-open .about-drawer h3 {
  animation: about-line-in 360ms ease forwards 120ms;
}

body.about-open .about-drawer p:nth-of-type(1) {
  animation: about-line-in 420ms ease forwards 190ms;
}

body.about-open .about-drawer p:nth-of-type(2) {
  animation: about-line-in 420ms ease forwards 260ms;
}

body.about-open .about-drawer p:nth-of-type(3) {
  animation: about-line-in 420ms ease forwards 330ms;
}

body.about-open .about-drawer p:nth-of-type(4) {
  animation: about-line-in 420ms ease forwards 400ms;
}

.site-footer {
  width: min(1160px, 90vw);
  margin: 14px auto 30px;
  color: #95a7c0;
  text-align: center;
  font-size: 0.82rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-line-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-photo-wrap {
    order: -1;
  }

  .hero-copy {
    text-align: center;
    max-width: 100%;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links,
  .hero-actions {
    display: flex;
    justify-content: center;
  }

  .site-header {
    gap: 12px;
  }

  .about-drawer {
    width: min(90vw, 620px);
  }
}

@media (max-width: 620px) {
  .page-shell {
    margin-top: 12px;
  }

  .hero-card {
    border-radius: 18px;
    padding: 14px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.95rem, 8vw, 2.7rem);
  }

  .hero-copy h2 {
    font-size: clamp(1.16rem, 5.6vw, 1.68rem);
  }

  .info-section p {
    font-size: 0.88rem;
  }

  .section-kicker {
    font-size: 0.63rem;
  }

  .contact-form {
    padding: 10px;
  }

  .about-drawer {
    width: 100vw;
    padding: 20px 18px 16px;
  }
}
