:root {
  --bg: #f2f4f7;
  --surface: #f5f6f8;
  --header: #ffffff;
  --text: #171a21;
  --muted: #525c70;
  --line: #d8dde7;
  --accent: #1a66ff;
  --radius: 12px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.03rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 500;
  color: #1c2431;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 38px 34px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.7fr);
  gap: 36px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 16px 0 36px;
  margin-bottom: 0;
}

.home-page .hero {
  min-height: clamp(520px, calc(100vh - 220px), 680px);
  align-content: center;
  padding-bottom: 32px;
}

.hero.compact {
  min-height: 250px;
  align-content: center;
}

.hero h1,
.section-title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.12rem, 3.55vw, 2.95rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-page .hero h1 {
  margin-bottom: 30px;
}

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

.stack {
  justify-self: end;
  padding-top: 56px;
}

.profile-photo-card {
  margin-bottom: 16px;
}

.profile-photo {
  width: min(220px, 32vw);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  background: #dfe4ec;
}

.connect-card {
  padding: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.icon-link {
  width: 42px;
  height: 42px;
  border: 1px solid #c9cfdb;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #29384f;
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.entry-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.entry-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.icon-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.section {
  margin-top: 56px;
}

#education.section {
  margin-top: 26px;
}

#expertise.section {
  margin-top: 72px;
}

.section h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.02rem, 3.15vw, 2.72rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.card-grid.mentoring-list {
  gap: 42px;
}

.mentoring-page .hero.compact {
  min-height: 42vh;
}

.mentoring-page .mentoring-list {
  margin-top: 26px;
  gap: 72px;
}

.mentoring-page .mentoring-list .card {
  padding: 24px 26px;
}

.mentoring-page .mentoring-list .card h3 {
  font-size: 1.28rem;
}

.mentoring-page .mentoring-list .card p {
  font-size: 1.03rem;
  line-height: 1.65;
}

.mentoring-page .timeline-date {
  font-size: 1.02rem;
}

.research-page .hero.compact {
  min-height: 44vh;
}

.research-page .research-list {
  margin-top: 28px;
  gap: 110px;
}

.projects-page .hero.compact {
  min-height: 46vh;
}

.projects-page .hero h1 {
  margin-bottom: 24px;
}

.projects-page .project-list {
  display: grid;
  gap: 74px;
  margin-top: 28px;
  padding-top: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.13rem;
  font-weight: 650;
  line-height: 1.45;
  color: #11151d;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.55;
}

.meta strong {
  color: #2d3c56;
}

#expertise .card {
  padding: 16px 18px;
}

#expertise .card h3 {
  font-weight: 700;
  color: #0d1118;
}

#expertise .card p:first-of-type {
  margin-bottom: 14px;
}

#education .card > p:not(.meta) {
  margin-bottom: 8px;
}

#education .card .degree {
  margin-bottom: 8px;
  font-weight: 600;
  color: #2b364b;
  font-size: 0.93rem;
}

#education .card .specialization {
  margin: 0 0 10px;
  color: #5a657c;
  font-size: 0.9rem;
}

#education .card .meta {
  margin-top: 20px;
  padding-top: 18px;
  font-size: 0.9rem;
}

#expertise .meta {
  margin-top: 20px;
  padding-top: 18px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

#expertise .meta strong {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: baseline;
}

.chip-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #eaf0fe;
  color: #204182;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 38px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid #7b8598;
  border-radius: 50%;
  background: #fff;
}

.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.timeline-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.timeline-date {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.95rem;
  color: #5b667b;
}

.timeline-org {
  margin: 3px 0 7px;
  font-size: 1.3rem;
}

.timeline-location {
  margin: 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.95rem;
  color: #5b667b;
}

.timeline-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 980px;
}

.work-page .timeline {
  margin-top: 16px;
}

.work-page .timeline::before {
  top: 12px;
}

.work-page .timeline-head {
  margin-bottom: 6px;
}

.work-page .timeline-item {
  margin-bottom: 46px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 24px;
}

.project-media {
  min-height: 260px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 30%, rgba(17, 98, 255, 0.26), transparent 36%),
    radial-gradient(circle at 20% 80%, rgba(13, 170, 120, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2533, #2a3d5d);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-media-spendlark {
  background-image: url("project-images/SpendLark.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

.project-media-pms {
  background-image:
    url("project-images/PMSMoodCompass.png"),
    radial-gradient(circle at 82% 30%, rgba(17, 98, 255, 0.26), transparent 36%),
    radial-gradient(circle at 20% 80%, rgba(13, 170, 120, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2533, #2a3d5d);
}

.project-media-studybuddy {
  background-image: url("project-images/StudyBuddyAI.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

.project-media-fraud {
  background-image:
    url("project-images/FraudDetection.png"),
    radial-gradient(circle at 82% 30%, rgba(17, 98, 255, 0.26), transparent 36%),
    radial-gradient(circle at 20% 80%, rgba(13, 170, 120, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2533, #2a3d5d);
}

.project-media-spotify {
  background-image: url("project-images/Spotify.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

.project-media-retail {
  background-image: url("project-images/Retail-Customer.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

.project-media-youtube {
  background-image: url("project-images/Youtube.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

.project-media-sqlsprint {
  background-image:
    url("project-images/SQLSprint.png"),
    radial-gradient(circle at 82% 30%, rgba(17, 98, 255, 0.26), transparent 36%),
    radial-gradient(circle at 20% 80%, rgba(13, 170, 120, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2533, #2a3d5d);
}

.project-media-glowkind {
  background-image:
    url("project-images/GlowKind.png"),
    radial-gradient(circle at 82% 30%, rgba(17, 98, 255, 0.26), transparent 36%),
    radial-gradient(circle at 20% 80%, rgba(13, 170, 120, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2533, #2a3d5d);
}

.project-actions {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}

.action-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.recommendation-links {
  display: grid;
  gap: 10px;
}

.recommendation-links .action-link {
  width: fit-content;
}

.publication-line {
  margin: 8px 0 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  color: #5b667b;
  font-size: 0.88rem;
}

.research-overview {
  margin-top: 16px !important;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-list span {
  color: #576179;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-list a {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.field textarea {
  min-height: 144px;
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 8px;
  background: #111723;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 18px;
  width: fit-content;
  cursor: pointer;
}

.btn:hover {
  background: #1d293d;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.home-page .hero .reveal {
  transition-delay: 0.05s;
}

@media (max-width: 1300px) {
  .brand {
    font-size: 1.72rem;
  }

  .site-nav a {
    font-size: 1.05rem;
  }
}

@media (max-width: 980px) {
  .header-inner {
    padding: 14px 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 1rem;
  }

  .page {
    padding: 24px 16px 48px;
  }

  .hero,
  .contact-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
    padding-bottom: 34px;
    margin-bottom: 30px;
  }

  .home-page .hero {
    min-height: auto;
    padding-bottom: 34px;
  }

  .mentoring-page .hero.compact {
    min-height: auto;
  }

  .mentoring-page .mentoring-list {
    margin-top: 18px;
    gap: 44px;
  }

  .research-page .hero.compact {
    min-height: auto;
  }

  .research-page .research-list {
    margin-top: 18px;
    gap: 46px;
  }

  .projects-page .hero.compact {
    min-height: auto;
  }

  .projects-page .project-list {
    margin-top: 18px;
    gap: 40px;
  }

  #education.section,
  #expertise.section {
    margin-top: 44px;
  }

  .stack {
    justify-self: start;
    padding-top: 0;
  }

  .profile-photo {
    width: min(210px, 52vw);
  }

  .card-grid.two,
  .card-grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
