﻿:root {
  --bg: #0c141c;
  --panel: #11202e;
  --panel-soft: #152836;
  --text: #ecf3f8;
  --muted: #b5c5d2;
  --accent: #2ec4b6;
  --accent-2: #ff9f1c;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.22);
  --scroll-y: 0px;
}

body[data-theme="light"] {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f1f5fa;
  --text: #102031;
  --muted: #4f6478;
  --accent: #0fa39a;
  --accent-2: #de8b17;
  --border: rgba(16, 32, 49, 0.14);
  --shadow: 0 14px 30px rgba(16, 32, 49, 0.12);
  --shadow-soft: 0 8px 20px rgba(16, 32, 49, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, #17324a, var(--bg) 45%);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
}

.ambient-topics {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none;
}

.ambient-topics span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.68rem, 1.2vw, 0.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(181, 197, 210, 0.34);
  animation: drift 11s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); opacity: 0.28; }
  50% { transform: translate(-50%, -50%) translateY(-12px); opacity: 0.55; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 40;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.35;
}

.bg-shape-a {
  width: 340px;
  height: 340px;
  top: -100px;
  right: -100px;
  background: var(--accent);
  transform: translateY(calc(var(--scroll-y) * -0.06));
}

.bg-shape-b {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -100px;
  background: var(--accent-2);
  transform: translateY(calc(var(--scroll-y) * 0.05));
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}


.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0b2632;
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
  top: 10px;
  z-index: 50;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(12, 20, 28, 0.72);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

main {
  padding-top: 68px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  min-height: 68px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  order: 3;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.24rem 0.52rem 0.24rem 0.3rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.theme-track {
  width: 2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
}

.theme-thumb {
  position: absolute;
  top: 0.13rem;
  left: 0.14rem;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease;
}

body[data-theme="light"] .theme-toggle {
  background: rgba(16, 32, 49, 0.04);
}

body[data-theme="light"] .theme-track {
  background: rgba(15, 163, 154, 0.3);
}

body[data-theme="light"] .theme-thumb {
  transform: translateX(0.86rem);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.hero {
  padding: 5rem 0 2.25rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.18;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 0.4rem;
}

.lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1rem 0 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(100px, auto);
  gap: 0.6rem;
  perspective: 900px;
}
















.hero-portrait {
  grid-column: 1 / -1;
  margin: 0;
  width: min(100%, 342px);
  justify-self: end;
  position: relative;
  border-radius: 16px;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
  transform: translateY(var(--parallax-y, 0px)) rotate(0deg);
}

.hero-portrait::before {
  content: none;
  position: absolute;
  width: 68px;
  height: 18px;
  top: -10px;
  right: 18px;
  border-radius: 4px;
  transform: rotate(8deg);
  background: linear-gradient(90deg, rgba(255, 159, 28, 0.85), rgba(255, 208, 70, 0.85));
}

.hero-portrait picture,
.hero-portrait img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.hero-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 24%;
}

.hero-portrait::after {
  content: "Open to Full-Time Roles";
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #f2fafc;
  background: rgba(8, 19, 26, 0.55);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.hero-shot {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  overflow: hidden;
  padding: 0.7rem;
  min-height: 104px;
  transform: translateY(var(--parallax-y, 0px));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

[data-parallax] {
  will-change: transform;
}

.hero-shot::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  top: -32px;
  right: -24px;
  background: var(--tone-a, rgba(46, 196, 182, 0.45));
  filter: blur(1px);
}

.hero-shot::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 8px;
  bottom: 16px;
  left: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.hero-shot:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 2px));
  border-color: rgba(46, 196, 182, 0.55);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.hero-shot span,
.hero-shot small {
  position: relative;
  z-index: 1;
  display: block;
}

.mini-svg {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 78px;
  height: 44px;
  z-index: 2;
  opacity: 0.92;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

.mini-svg .ms-line {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

.mini-svg .ms-dot {
  fill: rgba(255, 255, 255, 0.9);
}

.mini-svg .ms-soft {
  fill: rgba(255, 255, 255, 0.28);
}

.mini-svg .anim-drift {
  animation: bob 4.2s ease-in-out infinite;
}

.mini-svg .anim-pulse {
  transform-origin: center;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-shot span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.hero-shot small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(110deg, var(--accent), #21d2c2);
  color: #0d2024;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.section {
  padding: 1.7rem 0 0.4rem;
}

.section + .section {
  margin-top: 0.55rem;
}

.recruiter-snapshot {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(16, 30, 42, 0.92);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.recruiter-snapshot h2 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.recruiter-snapshot ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.recruiter-snapshot li + li {
  margin-top: 0.32rem;
}

.visa-notice {
  border: 1px solid rgba(255, 159, 28, 0.45);
  border-left: 5px solid #ff9f1c;
  border-radius: 12px;
  background: rgba(40, 30, 12, 0.46);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
}

.visa-notice p {
  margin: 0;
  color: #f0dfc0;
}

.section-head {
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  border: 1px solid var(--border);
  background: rgba(17, 32, 46, 0.9);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.timeline-item.is-active {
  border-color: rgba(46, 196, 182, 0.58);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.timeline-item .meta {
  margin: 0.3rem 0 0.6rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}


.trust-strip {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  padding: 0.62rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(16, 30, 42, 0.9);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.trust-strip p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.38rem 0.58rem;
  text-align: center;
  color: #d7e5ef;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.03);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.87rem;
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(46, 196, 182, 0.12);
}

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

.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(170deg, rgba(17, 32, 46, 0.95), rgba(20, 37, 51, 0.92));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 205px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 196, 182, 0.55);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.project-card .project-meta {
  color: var(--accent);
  font-size: 0.85rem;
}

.project-card a {
  margin-top: auto;
  color: var(--text);
}

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

.blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(170deg, rgba(17, 32, 46, 0.95), rgba(20, 37, 51, 0.92));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-card h3 {
  font-size: 1.02rem;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-card a {
  margin-top: auto;
  color: var(--text);
}

.blog-tag {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5e6f1;
}

.blog-more {
  margin: 0.85rem 0 0;
}

.blog-more a {
  color: #d9eef7;
}

.project-thumb {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  overflow: hidden;
  padding: 0.35rem;
  transition: border-color 180ms ease;
}

.project-thumb:hover {
  border-color: rgba(46, 196, 182, 0.55);
}

.project-art {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(130deg, var(--tone-a), var(--tone-b));
}

.project-art::before,
.project-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.project-art::before {
  width: 110px;
  height: 110px;
  top: -40px;
  right: -30px;
  background: rgba(255, 255, 255, 0.18);
}

.project-art::after {
  width: 62px;
  height: 8px;
  bottom: 13px;
  left: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.project-art span {
  position: absolute;
  left: 12px;
  top: 11px;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.18);
}

.tone-rag { --tone-a: #1d8f83; --tone-b: #2d4a9b; }
.tone-db { --tone-a: #9a5d12; --tone-b: #1f7a92; }
.tone-cv { --tone-a: #6642b5; --tone-b: #1d9a8a; }
.tone-rl { --tone-a: #bf4b3e; --tone-b: #874aa2; }
.tone-nlp { --tone-a: #1f7b89; --tone-b: #7640a5; }
.tone-mix { --tone-a: #9e3f67; --tone-b: #32729f; }

.sig-rag::after {
  width: 68px;
  height: 22px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3) 0 6px,
    rgba(255, 255, 255, 0.08) 6px 12px
  );
}

.sig-db::after {
  width: 54px;
  height: 26px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)) 50% 22%/80% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)) 50% 50%/80% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)) 50% 78%/80% 2px no-repeat,
    rgba(0, 0, 0, 0.15);
}

.sig-ppo::after {
  width: 64px;
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.75) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 50%, rgba(255, 255, 255, 0.55) 0 4px, transparent 5px),
    radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.4) 0 4px, transparent 5px),
    radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.3) 0 4px, transparent 5px);
}

.sig-recon::after {
  width: 64px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 35% 42%, transparent 42% 52%, rgba(255, 255, 255, 0.28) 52% 60%, transparent 60%),
    rgba(0, 0, 0, 0.15);
}

.sig-rerank::after {
  width: 62px;
  height: 20px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 20%, rgba(255, 255, 255, 0.34) 20% 55%, rgba(255, 255, 255, 0.14) 55%);
}

.sig-recsys::after {
  width: 66px;
  height: 24px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.36) 0 3px, transparent 4px),
    radial-gradient(circle at 42% 70%, rgba(255, 255, 255, 0.3) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 38%, rgba(255, 255, 255, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 66%, rgba(255, 255, 255, 0.24) 0 3px, transparent 4px),
    rgba(0, 0, 0, 0.12);
}

.sig-finetune::after {
  width: 66px;
  height: 18px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.22) 7px 9px);
}

.sig-transformer::after {
  width: 60px;
  height: 22px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 6px, rgba(255, 255, 255, 0.35) 6px 8px, transparent 8px 12px, rgba(255, 255, 255, 0.25) 12px 14px, transparent 14px);
}

.sig-deepvo::after {
  width: 64px;
  height: 20px;
  border-radius: 999px;
  background:
    linear-gradient(120deg, transparent 0 25%, rgba(255, 255, 255, 0.45) 25% 36%, transparent 36% 50%, rgba(255, 255, 255, 0.3) 50% 58%, transparent 58%);
}

.sig-bertops::after {
  width: 64px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1)),
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) 50% 50%/85% 2px no-repeat;
}

.sig-ner::after {
  width: 66px;
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 64% 50%, rgba(255, 255, 255, 0.4) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.28) 0 3px, transparent 4px);
}

.sig-vit::after {
  width: 66px;
  height: 22px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 6px);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

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

.skills-grid article,
.credentials {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(17, 32, 46, 0.9);
  padding: 1rem;
}

.skills-grid p,
.credentials p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.cta {
  padding-bottom: 2.2rem;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.8rem 0 2rem;
}

.built-with {
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 520ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 342px;
    justify-self: center;
    transform: rotate(0deg);
  }

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

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .nav-wrap {
    min-height: auto;
    padding: 0.55rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: center;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle {
    font-size: 0.75rem;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.25rem;
  }

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

  .nav a {
    width: 100%;
    padding: 0.56rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a::after {
    display: none;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-portrait {
    transform: rotate(0deg);
  }

  

  

  .project-grid,
  .skills-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .ambient-topics span { font-size: 0.66rem; }

  .mini-svg {
    width: 64px;
    height: 38px;
  }

  .section {
    padding-top: 1.15rem;
  }

  #experience {
    padding-bottom: 0.2rem;
  }

  #projects {
    margin-top: 0;
    padding-top: 0.7rem;
    padding-bottom: 0.2rem;
  }

  #blogs {
    margin-top: 0;
    padding-top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .project-card,
  .ambient-topics span,
  .hero-shot,
  .project-art::after,
  .hero-shot::after,
  .mini-svg .anim-drift,
  .mini-svg .anim-pulse {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


body[data-theme="light"] {
  background:
    radial-gradient(circle at 8% 0%, #e5f1fb, transparent 38%),
    radial-gradient(circle at 92% 10%, #eef6ec, transparent 34%),
    radial-gradient(circle at 50% 100%, #f2eefb, transparent 38%),
    var(--bg);
}

body[data-theme="light"] .header {
  background: rgba(244, 247, 251, 0.84);
}

body[data-theme="light"] .hero-portrait {
  background: linear-gradient(135deg, rgba(16, 32, 49, 0.12), rgba(16, 32, 49, 0.04));
}

body[data-theme="light"] .hero-shot {
  background: linear-gradient(135deg, rgba(16, 32, 49, 0.06), rgba(16, 32, 49, 0.02));
}

body[data-theme="light"] .timeline-item,
body[data-theme="light"] .recruiter-snapshot,
body[data-theme="light"] .visa-notice,
body[data-theme="light"] .skills-grid article,
body[data-theme="light"] .credentials,
body[data-theme="light"] .blog-card {
  background: var(--panel);
}

body[data-theme="light"] .project-card {
  background: linear-gradient(170deg, #ffffff, #f2f7fc);
}

body[data-theme="light"] .project-thumb {
  background: rgba(16, 32, 49, 0.03);
}

body[data-theme="light"] .blog-tag {
  border-color: rgba(16, 32, 49, 0.24);
  color: #314860;
  background: rgba(16, 32, 49, 0.04);
}

body[data-theme="light"] .ambient-canvas {
  opacity: 0.18;
}

/* Light mode: professional, lower-saturation tile palette with stronger contrast */
body[data-theme="light"] .hero-shot,
body[data-theme="light"] .project-art {
  border-color: rgba(19, 44, 68, 0.16);
  background: linear-gradient(180deg, #fcfeff, #f4f8fc);
  box-shadow: 0 8px 18px rgba(16, 32, 49, 0.08);
}

body[data-theme="light"] .hero-shot::after,
body[data-theme="light"] .project-art::after {
  content: none;
}

body[data-theme="light"] .hero-shot::before,
body[data-theme="light"] .project-art::before {
  content: none;
}

body[data-theme="light"] .hero-shot {
  background: linear-gradient(145deg, var(--tone-a), var(--tone-b));
  border-left: 4px solid #3d7ca9;
  padding-left: 0.85rem;
}

body[data-theme="light"] .project-art {
  background: linear-gradient(145deg, var(--tone-a), var(--tone-b));
  border-radius: 10px;
}

body[data-theme="light"] .project-thumb {
  padding: 0.45rem;
  border-style: solid;
  border-color: rgba(19, 44, 68, 0.12);
  background: linear-gradient(180deg, #f7fbff, #edf4fb);
}

body[data-theme="light"] .project-art span {
  color: #1d3953;
  background: rgba(28, 63, 92, 0.08);
  border-color: rgba(28, 63, 92, 0.2);
}

body[data-theme="light"] .mini-svg .ms-line {
  stroke: rgba(24, 63, 92, 0.82);
  stroke-width: 2.4;
}

body[data-theme="light"] .mini-svg .ms-dot {
  fill: #2a6f9e;
}

body[data-theme="light"] .mini-svg .ms-soft {
  fill: rgba(38, 88, 128, 0.16);
}

body[data-theme="light"] .mini-svg {
  opacity: 0.98;
  filter: none;
}

body[data-theme="light"] .blog-more a,
body[data-theme="light"] .project-card a,
body[data-theme="light"] .blog-card a {
  color: #173d5a;
}

body[data-theme="light"] .btn-ghost {
  background: rgba(16, 32, 49, 0.03);
}

body[data-theme="light"] .tone-rag { --tone-a: #edf8f8; --tone-b: #e8f1fb; }
body[data-theme="light"] .tone-db { --tone-a: #f8f3e8; --tone-b: #e8f2f6; }
body[data-theme="light"] .tone-cv { --tone-a: #eeeefe; --tone-b: #e8f5f2; }
body[data-theme="light"] .tone-rl { --tone-a: #f9ece9; --tone-b: #efeafb; }
body[data-theme="light"] .tone-nlp { --tone-a: #ebf6f8; --tone-b: #efecfb; }
body[data-theme="light"] .tone-mix { --tone-a: #f5ebf3; --tone-b: #e9f2fa; }

body[data-theme="light"] .hero-shot.tone-rag { border-left-color: #3f8a8a; }
body[data-theme="light"] .hero-shot.tone-db { border-left-color: #9b7a45; }
body[data-theme="light"] .hero-shot.tone-cv { border-left-color: #6272a7; }
body[data-theme="light"] .hero-shot.tone-rl { border-left-color: #9b675f; }
body[data-theme="light"] .hero-shot.tone-nlp { border-left-color: #4d748f; }
body[data-theme="light"] .hero-shot.tone-mix { border-left-color: #7d638f; }

body[data-theme="light"] .visa-notice {
  border: 1px solid rgba(58, 105, 148, 0.28);
  border-left: 5px solid #3e6f9c;
  background: linear-gradient(160deg, #f4f8fd, #edf4fb);
}

body[data-theme="light"] .visa-notice p {
  color: #25435f;
}
