:root {
  /* Palette: Neon Pink / Indigo Bloom / Vivid Royal / Electric Sapphire / Sky Aqua */
  --bg: #07030f;
  --bg-soft: #0d0619;
  --surface: rgba(20, 8, 42, 0.76);
  --surface-strong: #14082a;
  --border: rgba(114, 9, 183, 0.20);
  --border-strong: rgba(67, 97, 238, 0.42);
  --text: #f8f5ff;
  --text-soft: #c7b9dd;
  --text-muted: #8d7ca5;
  --text-dim: #5e4d73;
  --pink: #F72585;
  --indigo: #7209B7;
  --royal: #3A0CA3;
  --blue: #4361EE;
  --blue-bright: #4CC9F0;
  --cyan: #4CC9F0;
  --purple: #7209B7;
  --accent: linear-gradient(135deg, var(--pink), var(--indigo) 38%, var(--royal) 68%, var(--blue) 86%, var(--cyan));
  --shadow: 0 24px 80px rgba(20, 4, 48, 0.52);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 50% at 18% 0%, rgba(67, 97, 238, .13), transparent 60%),
    radial-gradient(55% 44% at 84% 7%, rgba(114, 9, 183, .12), transparent 58%),
    radial-gradient(50% 45% at 50% 100%, rgba(76, 201, 240, .08), transparent 60%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .028;
  z-index: 999;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-nav.scrolled,
.site-nav.menu-open {
  background: rgba(7, 3, 15, .84);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff7fb;
  font-size: 11px;
  letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(67, 97, 238, .24), rgba(247, 37, 133, .18));
  border: 1px solid rgba(76, 201, 240, .34);
  box-shadow: 0 8px 30px rgba(76, 201, 240, .10);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-cta {
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(114, 9, 183, .10); }
.nav-cta {
  margin-left: 7px;
  color: #fff3fa;
  border: 1px solid rgba(76, 201, 240, .28);
  background: linear-gradient(135deg, rgba(76, 201, 240, .10), rgba(114, 9, 183, .10));
}
.nav-cta:hover { border-color: rgba(76, 201, 240, .55); transform: translateY(-1px); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 7px; }
.nav-toggle span { display: block; width: 23px; height: 2px; margin: 4px 0; border-radius: 99px; background: var(--text-soft); }

.section-shell, .section { position: relative; z-index: 1; }
.hero {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 132px 40px 96px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 72px;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(67, 97, 238, .20);
  background: rgba(58, 12, 163, .10);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 700;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4361EE; box-shadow: 0 0 12px rgba(67, 97, 238, .62); }
h1 { font-family: var(--font-display); font-size: clamp(50px, 7vw, 84px); line-height: 1.02; letter-spacing: -.055em; font-weight: 800; }
.gradient-text { background: linear-gradient(135deg, #fff1f8 0%, #4CC9F0 45%, #7209B7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { margin-top: 16px; color: #cabddd; font-size: 18px; font-weight: 700; }
.hero-intro { max-width: 650px; margin-top: 18px; color: var(--text-muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s, border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.button-primary { color: #15071f; background: linear-gradient(135deg, var(--cyan), var(--blue)); border-color: #4CC9F0; box-shadow: 0 14px 38px rgba(67, 97, 238, .20); }
.button-ghost { color: var(--text); background: rgba(255,255,255,.035); }
.button-icon { color: var(--text-soft); background: rgba(255,255,255,.025); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span, .pill-list span {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(114, 9, 183, .12);
  color: var(--text-soft);
  background: rgba(114, 9, 183, .06);
  font-size: 11px;
  font-weight: 600;
}

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; position: relative; }
.profile-orb {
  width: min(300px, 70vw);
  height: min(300px, 70vw);
  padding: 3px;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--pink), var(--indigo), var(--royal), var(--blue), var(--cyan), var(--pink));
  box-shadow: 0 25px 80px rgba(67,97,238,.10);
}
.profile-orb::before, .profile-orb::after { content: ""; position: absolute; inset: -22px; border: 1px dashed rgba(114, 9, 183, .18); border-radius: 50%; }
.profile-orb::after { inset: -48px; opacity: .7; }
.profile-orb-inner { width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(247, 37, 133, .18), transparent 38%), linear-gradient(145deg, #180b2e, #0d0619); border: 1px solid rgba(76, 201, 240, .20); box-shadow: inset 0 0 48px rgba(7, 3, 15, .62); }
.profile-orb-inner::before { content: ""; position: absolute; width: 180%; height: 75%; transform: rotate(-25deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); }
.profile-initials { font-family: var(--font-display); font-size: clamp(62px, 9vw, 110px); font-weight: 800; letter-spacing: -.08em; color: #fff1f8; text-shadow: 0 0 35px rgba(67, 97, 238, .20); }
.orb-caption { position: absolute; bottom: 38px; color: #806e9a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .15em; }
.orbit { position: absolute; border: 1px dashed rgba(114, 9, 183, .10); border-radius: 50%; pointer-events: none; }
.orbit-a { width: 350px; height: 350px; animation: spin 18s linear infinite; }
.orbit-b { width: 410px; height: 410px; animation: spin 26s linear infinite reverse; }
.stat-grid { width: min(430px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 2; }
.stat-card { padding: 15px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(20,8,42,.66); backdrop-filter: blur(12px); }
.stat-card strong { display: block; color: #f6ecff; font-family: var(--font-display); font-size: 17px; }
.stat-card span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .10em; font-size: 10px; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--blue), transparent); }

.section { padding: 104px 0; }
.section-muted { background: rgba(24, 8, 42, .58); }
.content-grid { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 70px; }
.section-header { max-width: 1120px; padding: 0 40px; margin: 0 auto 52px; text-align: center; }
.section-label { display: inline-flex; width: max-content; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(67,97,238,.20); background: rgba(58,12,163,.10); color: var(--blue-bright); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; }
.section-title { margin-top: 12px; color: #f6f0ff; font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.04em; }
.section-sub { max-width: 620px; margin: 12px auto 0; color: var(--text-muted); font-size: 14px; }
.body-copy { max-width: 610px; margin-top: 20px; color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.body-copy-spaced { margin-top: 14px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.facts-card, .skill-group, .project-card, .timeline { border: 1px solid var(--border); background: rgba(20, 8, 42, .62); backdrop-filter: blur(10px); }
.facts-card { padding: 24px; border-radius: 16px; }
.card-kicker { margin-bottom: 8px; color: var(--text-muted); font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.fact-row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(114,9,183,.07); }
.fact-row:last-of-type { border-bottom: 0; }
.fact-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 8px; border-radius: 50%; background: #4361EE; box-shadow: 0 0 12px rgba(67,97,238,.35); }
.fact-row small { display: block; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; font-size: 10px; }
.fact-row strong { display: block; margin-top: 2px; color: #e8dcf5; font-size: 13px; }
.card-note { margin-top: 14px; padding: 11px 12px; border-left: 2px solid var(--pink); border-radius: 7px; color: #8b79a5; background: rgba(59,130,246,.05); font-size: 11px; line-height: 1.6; }

.projects-grid { max-width: 1120px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { min-height: 300px; display: flex; flex-direction: column; border-radius: 16px; padding: 23px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.project-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.04), transparent 52%); pointer-events: none; }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.project-category { color: var(--blue-bright); text-transform: uppercase; letter-spacing: .05em; font-size: 9px; font-weight: 800; }
.project-year { color: var(--text-muted); font-size: 10px; }
.project-card h3 { margin-top: 16px; color: #f2eaff; font-family: var(--font-display); font-size: 18px; line-height: 1.28; }
.project-card p { margin-top: 11px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tech-stack span { padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(114, 9, 183, .10); color: var(--text-soft); background: rgba(114, 9, 183, .06); font-size: 10px; font-weight: 600; }
.project-link { margin-top: auto; padding-top: 18px; color: #58c9ef; font-size: 12px; font-weight: 700; border-top: 1px solid rgba(255,255,255,.06); }
.project-link span { display: inline-block; margin-left: 3px; transition: transform .2s; }
.project-link:hover span { transform: translate(2px,-2px); }

.skills-grid { max-width: 1120px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-group { border-radius: 16px; padding: 22px; }
.skill-group-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.skill-group-heading h3 { color: #eadef7; font-family: var(--font-display); font-size: 15px; }
.skill-dot { width: 7px; height: 7px; border-radius: 50%; }
.skill-dot.blue { background: var(--blue); box-shadow: 0 0 12px rgba(67,97,238,.50); }
.skill-dot.cyan { background: var(--cyan); box-shadow: 0 0 12px rgba(76,201,240,.45); }
.skill-dot.purple, .skill-dot.violet { background: var(--indigo); box-shadow: 0 0 12px rgba(114,9,183,.45); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span { padding: 6px 9px; border: 1px solid rgba(114, 9, 183, .10); border-radius: 8px; color: var(--text-soft); background: rgba(114,9,183,.06); font-size: 11px; }

.timeline { border: 0; background: transparent; backdrop-filter: none; display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(114,9,183,.08); }
.timeline-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.timeline-date { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .05em; }
.timeline-item h3 { color: #f8f5ff; font-family: var(--font-display); font-size: 16px; }
.timeline-item p { margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.tag { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 7px; background: rgba(58,12,163,.10); border: 1px solid rgba(67,97,238,.14); color: var(--blue-bright); font-size: 10px; font-weight: 700; }

.contact-section { padding-top: 30px; }
.contact-card { max-width: 1120px; margin: 0 auto; padding: 34px 36px; display: flex; justify-content: space-between; align-items: end; gap: 35px; border-radius: 18px; border: 1px solid rgba(114,9,183,.15); background: linear-gradient(135deg, rgba(36, 10, 66, .90), rgba(10, 4, 24, .94)); box-shadow: var(--shadow); }
.contact-card h2 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.contact-card p { max-width: 560px; margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.contact-links { display: grid; gap: 8px; min-width: 220px; }
.contact-links a { color: #63d9f4; font-size: 12px; font-weight: 700; }
.contact-links a:hover { color: #fff0fa; }
.site-footer { max-width: 1120px; margin: 0 auto; padding: 26px 40px 42px; display: flex; justify-content: space-between; gap: 16px; color: var(--text-dim); font-size: 10px; }

.reveal { transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 58px; padding-top: 120px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 500px; margin: 0 auto; width: 100%; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
}

@media (max-width: 800px) {
  .site-nav { padding: 0 22px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 18px; right: 18px; display: none; padding: 10px; flex-direction: column; align-items: stretch; border: 1px solid var(--border); background: rgba(7,3,15,.97); backdrop-filter: blur(14px); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.menu-open .nav-links { display: flex; }
  .nav-link, .nav-cta { width: 100%; text-align: left; padding: 11px 13px; }
  .nav-cta { margin-left: 0; margin-top: 4px; }
  .hero { padding-left: 22px; padding-right: 22px; min-height: auto; }
  .content-grid, .projects-grid, .skills-grid, .section-header { padding-left: 22px; padding-right: 22px; }
  .two-col, .skills-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { margin: 0 22px; padding: 28px; flex-direction: column; align-items: flex-start; }
  .contact-links { min-width: 0; }
  .site-footer { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 580px) {
  .hero { padding-top: 110px; padding-bottom: 70px; }
  h1 { font-size: clamp(43px, 14vw, 64px); }
  .hero-role { font-size: 16px; }
  .hero-intro { font-size: 14px; }
  .orbit-a { width: 320px; height: 320px; }
  .orbit-b { width: 350px; height: 350px; }
  .profile-orb { width: 230px; height: 230px; }
  .stat-grid { grid-template-columns: 1fr; width: 100%; }
  .scroll-cue { display: none; }
  .section { padding: 78px 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- Light-card polish and media components --- */
.timeline { border-radius: 20px; overflow: hidden; }
.timeline-item {
  border-bottom: 0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(58,12,163,.09);
  box-shadow: 0 12px 32px rgba(58,12,163,.055);
}
.timeline-item:last-child { margin-bottom: 0; }
.certification-timeline .cert-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 22px;
  align-items: center;
}
.cert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 13px; }
.cert-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  color: var(--royal);
  background: rgba(67,97,238,.06);
  border: 1px solid rgba(67,97,238,.14);
  font-size: 11px;
  font-weight: 800;
}
.cert-link:hover { color: var(--pink); border-color: rgba(247,37,133,.22); }
.cert-link.is-disabled { opacity: .55; cursor: default; }
.cert-media {
  position: relative;
  aspect-ratio: 1.45 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(58,12,163,.10);
  background: linear-gradient(135deg, rgba(247,37,133,.07), rgba(67,97,238,.10), rgba(76,201,240,.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.cert-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.cert-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(245,241,255,.90));
  color: var(--royal);
}
.cert-placeholder span { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.cert-placeholder small { margin-top: 5px; color: #756d8a; font-size: 10px; }
.cert-media:not(.is-missing) .cert-placeholder { display: none; }
.cert-media.is-missing img { display: none; }

/* Keep the floating orb clearly visible on the light theme. */
.profile-orb {
  will-change: transform;
  isolation: isolate;
}
.profile-orb::before { animation: ringFloat 7s ease-in-out infinite; }
.profile-orb::after { animation: ringFloat 9s ease-in-out infinite reverse; }
.profile-orb-inner {
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
}
.profile-image {
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
}

@media (max-width: 700px) {
  .certification-timeline .cert-content { grid-template-columns: 1fr; }
  .cert-media { max-width: 320px; width: 100%; }
}
