:root {
  --p-bg: #f7f9fc;
  --p-surface: #ffffff;
  --p-surface-2: #eef3f8;
  --p-text: #142033;
  --p-muted: #607086;
  --p-border: rgba(20, 32, 51, 0.10);
  --p-accent: #2563eb;
  --p-accent-2: #06b6d4;
  --p-accent-soft: rgba(37, 99, 235, 0.10);
  --p-shadow: 0 18px 50px rgba(20, 32, 51, 0.08);
  --p-radius: 22px;
  --p-heading: "Plus Jakarta Sans", sans-serif;
  --p-body: "Inter", sans-serif;
}

html[data-theme="dark"] {
  --p-bg: #07101d;
  --p-surface: #0d1726;
  --p-surface-2: #111e30;
  --p-text: #eef5ff;
  --p-muted: #9cafc4;
  --p-border: rgba(238, 245, 255, 0.10);
  --p-accent: #60a5fa;
  --p-accent-2: #22d3ee;
  --p-accent-soft: rgba(96, 165, 250, 0.12);
  --p-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--p-bg) !important;
  color: var(--p-text);
  font-family: var(--p-body);
  line-height: 1.65;
}

body,
body * {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--p-bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--p-border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--p-heading);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
  box-shadow: 0 8px 22px rgba(37, 99, 235, .20);
  font-size: .78rem;
  letter-spacing: -.03em;
}

.brand-name {
  color: var(--p-text);
  font-size: .96rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav .nav-link,
.mobile-nav a {
  text-decoration: none;
  color: var(--p-muted);
  font-size: .86rem;
  font-weight: 600;
  transition: .2s ease;
}

.desktop-nav .nav-link {
  padding: 9px 11px;
  border-radius: 10px;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
  color: var(--p-text);
  background: var(--p-accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.mobile-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--p-surface);
  color: var(--p-text);
  cursor: pointer;
  transition: .2s ease;
}

.theme-toggle:hover,
.mobile-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--p-accent) 40%, var(--p-border));
}

.mobile-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--p-border);
}

.mobile-nav.open {
  display: grid;
  gap: 3px;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: var(--p-accent-soft);
  color: var(--p-text);
}

.hero-v2 {
  min-height: 100vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, .12), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(6, 182, 212, .08), transparent 28%),
    var(--p-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-kicker {
  color: var(--p-accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-accent-2);
  box-shadow: 0 0 0 5px rgba(6,182,212,.10);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--p-heading);
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.065em;
  color: var(--p-text);
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 25px 0 22px;
  font-family: var(--p-heading);
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
}

.hero-role-static {
  color: var(--p-text);
}

.hero-role-dot {
  color: var(--p-accent);
}

.hero-summary {
  max-width: 670px;
  margin: 0 0 20px;
  color: var(--p-muted);
  font-size: 1.05rem;
}

.hero-status {
  max-width: 650px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 28px;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--p-surface) 78%, transparent);
  color: var(--p-muted);
  font-size: .86rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn-primary-v2,
.btn-secondary-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: .25s ease;
}

.btn-primary-v2 {
  color: #fff;
  background: linear-gradient(135deg, var(--p-accent), #1d4ed8);
  box-shadow: 0 10px 28px rgba(37,99,235,.22);
}

.btn-secondary-v2 {
  color: var(--p-text);
  background: var(--p-surface);
  border: 1px solid var(--p-border);
}

.btn-primary-v2:hover,
.btn-secondary-v2:hover {
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 9px;
  margin-top: 25px;
}

.hero-socials a {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-surface);
  color: var(--p-muted);
  text-decoration: none;
  transition: .2s ease;
}

.hero-socials a:hover {
  color: var(--p-accent);
  border-color: color-mix(in srgb, var(--p-accent) 45%, var(--p-border));
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-photo-frame {
  position: relative;
  width: min(410px, 78vw);
  height: 510px;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--p-accent), var(--p-accent-2));
  box-shadow: 0 30px 70px rgba(20,32,51,.18);
  transform: rotate(2deg);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 27%;
  border-radius: 27px;
  background: #dbeafe;
}

.hero-orbit {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--p-accent) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 560px;
  height: 560px;
}

.orbit-two {
  width: 650px;
  height: 390px;
  transform: rotate(-25deg);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: color-mix(in srgb, var(--p-surface) 90%, transparent);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  box-shadow: var(--p-shadow);
  backdrop-filter: blur(12px);
}

.floating-card i {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--p-accent-soft);
  color: var(--p-accent);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  font-size: .82rem;
  color: var(--p-text);
}

.floating-card span {
  color: var(--p-muted);
  font-size: .72rem;
}

.card-top {
  top: 16%;
  right: 2%;
}

.card-bottom {
  bottom: 11%;
  left: 1%;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--p-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-scroll i {
  color: var(--p-accent);
}

.section-v2 {
  padding: 105px 0;
  background: var(--p-bg);
}

.section-alt {
  background: var(--p-surface-2);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 10px 0 14px;
  font-family: var(--p-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--p-text);
}

.section-heading p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--p-muted);
  font-size: .98rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr .825fr .825fr;
  gap: 18px;
}

.about-card {
  padding: 28px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.about-main {
  min-height: 300px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--p-accent-soft);
  color: var(--p-accent);
  font-size: 1.1rem;
}

.about-card h3 {
  margin: 0 0 9px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: 1.1rem;
}

.about-card p {
  margin: 0 0 12px;
  color: var(--p-muted);
  font-size: .9rem;
}

.mini-label {
  display: block;
  margin-bottom: 7px;
  color: var(--p-accent);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}

.metric strong {
  font-family: var(--p-heading);
  font-size: 2.5rem;
  letter-spacing: -.06em;
}

.metric span {
  color: var(--p-muted);
  font-size: .78rem;
  font-weight: 700;
}

.language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.language-row span,
.skill-tags span,
.timeline-tags span,
.visual-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--p-border);
  border-radius: 999px;
  font-weight: 700;
}

.language-row span {
  padding: 5px 9px;
  color: var(--p-muted);
  font-size: .7rem;
  background: var(--p-surface-2);
}

.coding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: auto;
}

.profile-card {
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  overflow: hidden;
}

.leetcode-card {
  background: linear-gradient(160deg, #17120a, #0e1725 70%);
  border-color: rgba(255,161,22,.24);
}

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

.profile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-logo {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-weight: 800;
  font-size: .75rem;
}

.lc-logo {
  color: #1c150a;
  background: #ffa116;
}

.hr-logo {
  color: #06140d;
  background: #00ea64;
  font-size: 1.1rem;
}

.profile-brand h3 {
  margin: 0;
  color: #fff;
  font-family: var(--p-heading);
  font-size: 1.05rem;
}

.profile-brand span {
  color: #aeb8c6;
  font-size: .72rem;
}

.profile-arrow {
  color: #aeb8c6;
}

.leetcode-visual {
  margin: 25px 0 18px;
  min-height: 265px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.leetcode-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.coding-placeholder {
  min-height: 265px;
  margin: 25px 0 18px;
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--p-border);
  border-radius: 15px;
}

.placeholder-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 17px;
  color: var(--p-accent);
  background: var(--p-accent-soft);
  font-size: 1.3rem;
}

.coding-placeholder h4 {
  margin: 0 0 8px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: 1rem;
}

.coding-placeholder p {
  max-width: 390px;
  margin: 0;
  color: var(--p-muted);
  font-size: .82rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p-accent);
  text-decoration: none;
  font-weight: 800;
  font-size: .78rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-group {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--p-border);
  border-radius: 18px;
  background: var(--p-surface);
  transition: .25s ease;
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--p-shadow);
}

.skill-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.skill-group-title i {
  color: var(--p-accent);
  font-size: 1rem;
}

.skill-group-title h3 {
  margin: 0;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: .95rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tags span {
  padding: 6px 9px;
  color: var(--p-muted);
  background: var(--p-surface-2);
  font-size: .7rem;
}

.timeline {
  max-width: 1050px;
  margin: auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 1px;
  background: linear-gradient(var(--p-accent), color-mix(in srgb, var(--p-accent-2) 35%, transparent));
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 22px;
}

.timeline-marker {
  position: absolute;
  top: 20px;
  left: 0;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 6px solid var(--p-surface-2);
  border-radius: 50%;
  background: var(--p-accent);
  color: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-accent) 30%, transparent);
  z-index: 1;
}

.timeline-card {
  padding: 25px 27px;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 17px;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--p-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.timeline-card h3 {
  margin: 0 0 5px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: 1.12rem;
  line-height: 1.35;
}

.timeline-card h4 {
  margin: 0;
  color: var(--p-muted);
  font-size: .82rem;
  font-weight: 700;
}

.timeline-tags {
  max-width: 310px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.timeline-tags span {
  padding: 5px 8px;
  color: var(--p-muted);
  background: var(--p-surface-2);
  font-size: .66rem;
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--p-muted);
  font-size: .84rem;
}

.timeline-card li {
  margin-bottom: 7px;
}

.timeline-card li:last-child {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  min-width: 0;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--p-accent) 28%, var(--p-border));
  box-shadow: 0 25px 65px rgba(20,32,51,.12);
}

.featured-project,
.flagship-project {
  grid-column: 1 / -1;
}

.project-card .project-body p {
  min-height: auto;
}

.project-visual {
  height: 190px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,.45));
  z-index: -1;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(500px) rotateX(55deg) scale(1.5);
  transform-origin: center bottom;
}

.visual-deepfake { background: linear-gradient(135deg, #0b1532, #263c88 55%, #0ea5e9); }
.visual-quantum { background: linear-gradient(135deg, #0a1023, #3b176e 55%, #0e7490); }
.visual-ml { background: linear-gradient(135deg, #07242c, #0e7490 58%, #2563eb); }
.visual-stock { background: linear-gradient(135deg, #06291e, #047857 55%, #2563eb); }
.visual-health { background: linear-gradient(135deg, #3b1014, #b91c1c 55%, #f97316); }
.visual-nlp { background: linear-gradient(135deg, #30200b, #b45309 55%, #eab308); }
.visual-recommendation { background: linear-gradient(135deg, #251033, #7e22ce 55%, #db2777); }
.visual-genai { background: linear-gradient(135deg, #20103c, #7e22ce 55%, #4f46e5); }
.visual-web { background: linear-gradient(135deg, #082d2c, #0f766e 55%, #16a34a); }

.visual-icon {
  color: rgba(255,255,255,.94);
  font-size: 3.1rem;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,.28));
}

.project-number {
  position: absolute;
  top: 14px;
  left: 15px;
  color: rgba(255,255,255,.72);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.visual-tags {
  position: absolute;
  right: 13px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  z-index: 2;
}

.visual-tags span {
  padding: 5px 8px;
  color: #fff;
  border-color: rgba(255,255,255,.15);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(7px);
  font-size: .61rem;
}

.chart-bars {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  height: 95px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  opacity: .30;
}

.chart-bars span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: #fff;
}

.chart-bars span:nth-child(1) { height: 32%; }
.chart-bars span:nth-child(2) { height: 54%; }
.chart-bars span:nth-child(3) { height: 45%; }
.chart-bars span:nth-child(4) { height: 77%; }
.chart-bars span:nth-child(5) { height: 92%; }

.stock-line {
  width: 78%;
  height: 100px;
  border-bottom: 3px solid rgba(255,255,255,.5);
  border-right: 3px solid rgba(255,255,255,.5);
  clip-path: polygon(0 76%, 12% 62%, 23% 68%, 34% 39%, 46% 52%, 57% 25%, 68% 36%, 79% 14%, 100% 4%, 100% 8%, 80% 19%, 69% 42%, 58% 32%, 47% 59%, 35% 46%, 24% 75%, 13% 69%, 0 84%);
  background: rgba(255,255,255,.45);
}

.quantum-lines {
  position: absolute;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255,255,255,.04),
    0 0 0 60px rgba(255,255,255,.03);
}

.project-body {
  padding: 23px;
}

.project-label {
  margin-bottom: 7px;
  color: var(--p-accent);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.project-body h3 {
  margin: 0 0 11px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: 1.08rem;
  line-height: 1.3;
}

.project-body p {
  min-height: 78px;
  margin: 0 0 15px;
  color: var(--p-muted);
  font-size: .81rem;
}

.project-detail {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding-top: 9px;
  margin-top: 9px;
  border-top: 1px solid var(--p-border);
  font-size: .71rem;
}

.project-detail strong {
  color: var(--p-text);
}

.project-detail span {
  color: var(--p-muted);
}

.project-note {
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--p-accent-soft);
  color: var(--p-muted);
  font-size: .69rem;
}

.project-note i {
  color: var(--p-accent);
  margin-right: 4px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tags span {
  padding: 4px 9px;
  color: var(--p-accent);
  background: var(--p-accent-soft);
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--p-accent) 18%, transparent);
}

.project-highlights-header {
  margin-top: 14px;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--p-border);
  color: var(--p-text);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.project-highlights {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--p-muted);
  font-size: .78rem;
  line-height: 1.6;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
}

.project-highlights li {
  margin-bottom: 4px;
}

.project-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--p-border);
}

.btn-project-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--p-surface-2);
  color: var(--p-text);
  font-size: .80rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--p-border);
  transition: all .2s ease;
}

.btn-project-github:hover,
.btn-project-github:focus-visible {
  background: var(--p-accent);
  color: #ffffff;
  border-color: var(--p-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--p-accent) 35%, transparent);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--p-border);
  border-radius: 17px;
  background: var(--p-surface);
  transition: .25s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--p-shadow);
}

.cert-card img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--p-border);
}

.cert-card > div {
  padding: 15px;
}

.cert-card > div > span {
  color: var(--p-accent);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cert-card h3 {
  min-height: 43px;
  margin: 6px 0 10px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: .88rem;
  line-height: 1.35;
}

.cert-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--p-muted);
  text-decoration: none;
  font-size: .69rem;
  font-weight: 800;
}

.cert-card a:hover {
  color: var(--p-accent);
}

.contact-v2 {
  padding-top: 80px;
  padding-bottom: 90px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 45px;
  padding: 48px;
  border: 1px solid var(--p-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(37,99,235,.13), transparent 35%),
    var(--p-surface);
  box-shadow: var(--p-shadow);
}

.contact-copy h2 {
  margin: 10px 0 12px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.contact-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--p-muted);
  font-size: .9rem;
}

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

.contact-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: var(--p-surface-2);
  text-decoration: none;
  transition: .2s ease;
}

.contact-links a:hover {
  border-color: color-mix(in srgb, var(--p-accent) 35%, var(--p-border));
  transform: translateX(3px);
}

.contact-links span,
.contact-links strong {
  display: block;
}

.contact-links span {
  margin-bottom: 4px;
  color: var(--p-muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-links span i {
  margin-right: 6px;
  color: var(--p-accent);
}

.contact-links strong {
  color: var(--p-text);
  font-size: .78rem;
  word-break: break-word;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--p-border);
  background: var(--p-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner > div:first-child strong,
.footer-inner > div:first-child span {
  display: block;
}

.footer-inner strong {
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: .82rem;
}

.footer-inner > div:first-child span {
  margin-top: 2px;
  color: var(--p-muted);
  font-size: .68rem;
}

.footer-inner small {
  color: var(--p-muted);
  font-size: .65rem;
}

.footer-socials {
  display: flex;
  gap: 7px;
}

.footer-socials a {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  color: var(--p-muted);
  text-decoration: none;
}

.footer-socials a:hover {
  color: var(--p-accent);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p-border);
  border-radius: 13px;
  background: var(--p-surface);
  color: var(--p-text);
  box-shadow: var(--p-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-summary, .hero-status { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-visual { min-height: 540px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-main { grid-column: span 2; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { min-height: 68px; }
  .brand-name { font-size: .88rem; }
  .hero-v2 { padding-top: 102px; min-height: auto; }
  .hero-grid { gap: 15px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-role { justify-content: center; font-size: .95rem; }
  .hero-summary { font-size: .91rem; }
  .hero-status { text-align: left; font-size: .76rem; }
  .hero-visual { min-height: 500px; }
  .hero-photo-frame { width: min(350px, 82vw); height: 440px; }
  .orbit-one { width: 460px; height: 460px; }
  .orbit-two { width: 510px; height: 320px; }
  .card-top { right: 0; top: 12%; }
  .card-bottom { left: 0; bottom: 9%; }
  .floating-card { padding: 10px 12px; }
  .section-v2 { padding: 78px 0; }
  .section-heading { margin-bottom: 35px; }
  .about-grid,
  .coding-grid,
  .skills-grid,
  .project-grid,
  .contact-panel { grid-template-columns: 1fr; }
  .about-main { grid-column: auto; }
  .project-body p { min-height: auto; }
  .project-highlights { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item { padding-left: 0; }
  .timeline-marker { display: none; }
  .timeline-head { flex-direction: column; }
  .timeline-tags { justify-content: flex-start; max-width: none; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { padding: 28px; gap: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { display: none; }
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-visual { min-height: 450px; }
  .hero-photo-frame { width: 78vw; height: 390px; }
  .floating-card { transform: scale(.88); }
  .card-top { right: -12px; }
  .card-bottom { left: -12px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card img { height: 190px; }
}


/* Portfolio project visuals added for GitHub-backed projects */
.visual-caregrid {
  background:
    radial-gradient(circle at 78% 24%, rgba(34, 197, 94, .20), transparent 30%),
    linear-gradient(135deg, #0f2b2a, #153e57);
}
.caregrid-nodes,
.career-nodes {
  position: absolute;
  inset: 18%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.25) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 75%, rgba(255,255,255,.25) 0 2px, transparent 3px);
  opacity: .55;
}
.visual-omnis {
  background:
    radial-gradient(circle at center, rgba(124, 58, 237, .35), transparent 34%),
    linear-gradient(135deg, #17152d, #25204b);
}
.omnis-core {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 18px rgba(124,58,237,.08), 0 0 0 36px rgba(124,58,237,.05);
}
.visual-leettracker {
  background:
    linear-gradient(135deg, #102840, #174a68);
}
.tracker-bars,
.analytics-bars {
  position: absolute;
  bottom: 24%;
  left: 19%;
  right: 19%;
  height: 46%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
}
.tracker-bars span,
.analytics-bars span {
  width: 15px;
  height: 25%;
  border-radius: 5px 5px 2px 2px;
  background: rgba(255,255,255,.55);
}
.tracker-bars span:nth-child(2),
.analytics-bars span:nth-child(2) { height: 45%; }
.tracker-bars span:nth-child(3),
.analytics-bars span:nth-child(3) { height: 68%; }
.tracker-bars span:nth-child(4),
.analytics-bars span:nth-child(4) { height: 82%; }
.tracker-bars span:nth-child(5),
.analytics-bars span:nth-child(5) { height: 96%; }
.visual-career {
  background:
    radial-gradient(circle at 70% 28%, rgba(59,130,246,.22), transparent 32%),
    linear-gradient(135deg, #13213b, #1d3153);
}
.visual-analytics {
  background:
    radial-gradient(circle at 20% 25%, rgba(6,182,212,.18), transparent 30%),
    linear-gradient(135deg, #102b35, #174a57);
}
.visual-spacey {
  background:
    radial-gradient(circle at 75% 22%, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(135deg, #111827, #243b53);
}
.spacey-orbit {
  width: 160px;
  height: 88px;
  border: 1px dashed rgba(255,255,255,.26);
  border-radius: 50%;
  transform: rotate(-18deg);
}


/* Research & publications */
.research-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--p-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .10), transparent 36%),
    var(--p-surface);
  box-shadow: var(--p-shadow);
}
.research-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.research-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.research-date {
  color: var(--p-muted);
  font-size: .78rem;
  font-weight: 700;
}
.research-card h3 {
  margin: 0 0 12px;
  color: var(--p-text);
  font-family: var(--p-heading);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -.025em;
}
.research-meta {
  margin-bottom: 16px;
  color: var(--p-muted);
  font-size: .82rem;
  font-weight: 700;
}
.research-summary {
  max-width: 860px;
  margin-bottom: 22px;
  color: var(--p-muted);
  font-size: .92rem;
  line-height: 1.8;
}
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.research-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--p-border);
  border-radius: 999px;
  background: var(--p-surface-2);
  color: var(--p-muted);
  font-size: .7rem;
  font-weight: 700;
}
.research-actions {
  padding-top: 18px;
  border-top: 1px solid var(--p-border);
}
.research-note {
  margin: 14px 0 0;
  color: var(--p-muted);
  font-size: .72rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .research-card-top { align-items: flex-start; flex-direction: column; }
  .research-card { padding: 22px; }
}
