:root {
  --bg: #0b0e11;
  --bg-elevated: #11161c;
  --surface: rgba(17, 22, 28, 0.72);
  --surface-solid: #141a21;
  --surface-hover: rgba(24, 32, 40, 0.9);
  --ink: #f4f7fa;
  --muted: #9aa6b2;
  --muted-2: #6f7b88;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.22);
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --lime: #a3e635;
  --lime-glow: rgba(163, 230, 53, 0.45);
  --max: min(1480px, 94vw);
  --radius: 1.1rem;
  --radius-sm: 0.75rem;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(94, 234, 212, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(163, 230, 53, 0.05), transparent 50%),
    linear-gradient(180deg, #0b0e11 0%, #0d1116 40%, #0b0e11 100%);
  z-index: -2;
}

.page-glow {
  position: fixed;
  width: 42rem;
  height: 42rem;
  top: -12rem;
  right: -10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

a {
  color: inherit;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 3vw, 2.75rem);
  background: rgba(11, 14, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.loc svg {
  color: var(--accent);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav a svg {
  opacity: 0.75;
}

.site-nav a:hover {
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.35);
  background: var(--accent-soft);
}

/* ——— Hero ——— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vh, 3.5rem) clamp(1.25rem, 3vw, 2.75rem) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
}

.hero-copy > * {
  animation: heroIn 0.7s ease both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(8) { animation-delay: 0.3s; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
  }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.hero-tag {
  color: var(--muted);
  text-decoration: none;
}

.hero-tag:hover {
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-tag.is-kaggle {
  border-color: rgba(94, 234, 212, 0.42);
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-tag.is-kaggle:hover {
  border-color: rgba(94, 234, 212, 0.65);
  background: rgba(94, 234, 212, 0.18);
  color: #fff;
}

.hero-tag svg {
  display: block;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}

.role {
  margin: 0.9rem 0 0.55rem;
  color: var(--accent);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.affiliation {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.affiliation a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.affiliation a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.affiliation .sep {
  margin: 0 0.4rem;
  opacity: 0.45;
}

.lead {
  margin: 0 0 0.9rem;
  max-width: 42rem;
  color: #b6c0cb;
  font-size: 1.05rem;
  line-height: 1.72;
}

.lead + .lead {
  margin-bottom: 0;
}

.cta-bar.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.65rem 0 1.9rem;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 0.95rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: rgba(94, 234, 212, 0.4);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn.solid {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--accent);
}

.btn.solid:hover {
  background: rgba(94, 234, 212, 0.22);
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: #fff;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.meta-card {
  position: relative;
  padding: 1.05rem 1.1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 32, 40, 0.9), rgba(17, 22, 28, 0.65));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.meta-card:hover {
  border-color: rgba(94, 234, 212, 0.28);
  transform: translateY(-2px);
  background: linear-gradient(165deg, rgba(28, 38, 48, 0.95), rgba(17, 22, 28, 0.8));
}

.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: var(--accent-soft);
  color: var(--accent);
}

.meta-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3c7;
}

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

.hero-photo {
  position: sticky;
  top: 5.5rem;
  animation: heroIn 0.85s ease 0.2s both;
}

.photo-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: var(--surface-solid);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(94, 234, 212, 0.08);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 14, 17, 0.35) 100%);
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* ——— Sections ——— */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem clamp(1.25rem, 3vw, 2.75rem);
}

.block h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.block-intro {
  margin: -0.55rem 0 1.6rem;
  color: var(--muted);
  max-width: 42rem;
}

.glass-panel {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-panel {
  max-width: 48rem;
}

.about-panel p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-panel a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.35);
}

.about-panel a:hover {
  color: var(--accent);
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-panel strong {
  color: var(--ink);
}

/* ——— Timeline ——— */
.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 1.65rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(163, 230, 53, 0.55),
    rgba(94, 234, 212, 0.2),
    rgba(148, 163, 184, 0.1)
  );
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -1.42rem;
  top: 1.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 0 4px rgba(163, 230, 53, 0.12),
    0 0 14px var(--lime-glow);
  z-index: 1;
}

.job-card {
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.job-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.job-head {
  margin-bottom: 0.75rem;
}

.job-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
}

.job-title-wrap h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  padding-left: 0.7rem;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.company {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.company:hover {
  text-decoration: underline;
}

.company.muted {
  color: var(--muted);
  font-weight: 500;
}

.company.muted a {
  color: var(--accent);
  text-decoration: none;
}

.company.muted a:hover {
  text-decoration: underline;
}

.job-sum {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 52rem;
}

.job-sum strong,
.job-sum em {
  color: #dce5ee;
}

.job-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.detail-col.full {
  grid-column: 1 / -1;
}

.detail-col h4 {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.detail-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-col li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-col li + li {
  margin-top: 0.45rem;
}

.detail-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.45);
}

.detail-col strong {
  color: var(--ink);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.card-links a,
.more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-links a:hover,
.more:hover {
  text-decoration: underline;
}

/* ——— Projects ——— */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #080b0e;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
}

.project-card:hover {
  border-color: rgba(94, 234, 212, 0.28);
  transform: translateY(-2px);
}

.project-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.project-meta {
  margin: 0.3rem 0 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-body > p,
.project-card > p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tags span {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

.project-card .more {
  margin-top: 0.95rem;
  display: inline-block;
}

.project-card .tags {
  margin-top: 1rem;
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-stack .project-card {
  flex: 1;
}

/* ——— Education ——— */
.edu-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.edu-level {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.edu-main h3 {
  margin: 0;
  font-size: 1.25rem;
}

.edu-org {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.edu-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.gpa {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.gpa.subtle {
  font-weight: 400;
  color: var(--muted);
}

/* ——— Contact / Footer ——— */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.email-line {
  margin: 0;
}

.email-line a {
  color: var(--muted);
  text-decoration: none;
}

.email-line a:hover {
  color: var(--accent);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem clamp(1.25rem, 3vw, 2.75rem) 2.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero,
  .edu-card,
  .meta-grid,
  .job-details,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    align-items: start;
  }

  .cta-bar.hero-actions {
    border-radius: 1.25rem;
    width: 100%;
  }

  .hero-photo {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.75rem;
    min-width: 13.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(17, 22, 28, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .job-title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .timeline {
    padding-left: 1.35rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 1.75rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cta-bar.hero-actions {
    border-radius: 1.1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1 1 calc(50% - 0.5rem);
  }
}
