/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --bg-0:   #07080f;
  --bg-1:   #0d0e1a;
  --bg-2:   #12132000;
  --card:   #131422;
  --card-hi:#171829;
  --border: rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.13);

  --tx-0: #eeeeff;
  --tx-1: #9090b8;
  --tx-2: #50507a;

  --blue:   #60a5fa;
  --green:  #34d399;
  --purple: #a78bfa;
  --amber:  #fbbf24;
  --rose:   #fb7185;
  --orange: #fb923c;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --nav-h:   64px;
  --max-w:   1160px;
  --r-sm:    6px;
  --r-md:    12px;
  --r-lg:    18px;
  --r-xl:    24px;
  --ease:    0.2s ease;
  --sec-pad: 96px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--tx-0);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
strong { color: var(--tx-0); font-weight: 600; }

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2a2b40; border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: var(--sec-pad) 0; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.12em;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 100px;
  padding: 3px 10px;
  flex-shrink: 0;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--tx-0);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-blink {
  animation: blink 1.1s step-end infinite;
  color: var(--blue);
  font-weight: 300;
  margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(7, 8, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: border-color var(--ease);
}
.nav.scrolled { border-color: var(--border-hi); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo { flex-shrink: 0; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
}
.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tx-1);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: var(--tx-0);
  background: var(--border);
}

.nav__cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg-0);
  background: var(--blue);
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-sm);
  transition: opacity var(--ease), transform var(--ease);
}
.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tx-1);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ── Theme toggle button ── */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--tx-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  flex-shrink: 0;
  padding: 0;
}
.theme-btn:hover {
  color: var(--tx-0);
  border-color: var(--border-hi);
  background: rgba(255,255,255,0.1);
}
/* Icon visibility controlled by theme */
.theme-icon        { display: block; }
.theme-icon--moon  { display: none; }
[data-theme="light"] .theme-icon--sun  { display: none; }
[data-theme="light"] .theme-icon--moon { display: block; }

/* ── Language toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-opt {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--tx-2);
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
}
.lang-opt:hover { color: var(--tx-1); }
.lang-opt.active {
  background: var(--blue);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 2rem 80px;
  overflow: hidden;
}

/* Gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
}
.blob--blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96,165,250,0.5), transparent 70%);
  top: -150px;
  right: -100px;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob--purple {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.4), transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

/* Left: text */
.hero__greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero__name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #eeeeff 0%, #a0c4ff 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}

.hero__role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tx-1);
  margin-bottom: 1.5rem;
  min-height: 1.8rem;
}
#typewriter { color: var(--green); }

.hero__tagline {
  font-size: 1rem;
  color: var(--tx-1);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 0.65rem 1.5rem;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--bg-0);
  border: 2px solid var(--blue);
}
.btn--primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(96,165,250,0.3); }
.btn--ghost {
  background: transparent;
  color: var(--tx-0);
  border: 2px solid var(--border-hi);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* Hero chips */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-hi);
  color: var(--tx-1);
  transition: all var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip--sm { font-size: 0.72rem; padding: 3px 9px; }

/* Profile card */
.hero__card-wrap {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.profile-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 4px rgba(96,165,250,0.15);
}

.profile-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx-0);
  line-height: 1.3;
}
.profile-card__title {
  font-size: 0.8rem;
  color: var(--tx-1);
  margin-top: -0.5rem;
}

.profile-card__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.profile-card__stats {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: space-around;
}
.pstat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pstat__val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tx-0);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pstat__lbl {
  font-size: 0.65rem;
  color: var(--tx-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.profile-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.profile-card__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(52,211,153,0.08); }
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--tx-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.about__body p {
  font-size: 0.97rem;
  color: var(--tx-1);
  line-height: 1.8;
}
.about__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  transition: border-color var(--ease), transform var(--ease);
}
.stat-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.stat-card__val {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card__lbl {
  font-size: 0.78rem;
  color: var(--tx-2);
  font-weight: 500;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--bg-1); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.skill-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.skill-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.skill-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--blue));
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--c, var(--blue));
}
.skill-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tx-0);
  letter-spacing: -0.01em;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--tx-1);
  transition: all var(--ease);
  cursor: default;
  white-space: nowrap;
}
.stag:hover { border-color: var(--border-hi); color: var(--tx-0); }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience { background: var(--bg-0); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.job:last-child { padding-bottom: 0; }

.job__aside {
  padding-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}
.job__period {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tx-2);
  white-space: nowrap;
  text-align: right;
  letter-spacing: 0.01em;
}
.job__line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border-hi), transparent);
  border-radius: 2px;
  margin-right: 0;
  min-height: 40px;
}

.job__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.job__card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.job__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.job__company {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.job__role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tx-0);
  letter-spacing: -0.02em;
}
.job__badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.job__desc {
  font-size: 0.88rem;
  color: var(--tx-2);
  line-height: 1.7;
  margin-bottom: 1rem;
  border-left: 2px solid var(--border-hi);
  padding-left: 0.9rem;
}

.job__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.job__bullets li {
  font-size: 0.9rem;
  color: var(--tx-1);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.65;
}
.job__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.6;
}

.job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.jtag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.18);
  color: var(--blue);
}

/* ============================================================
   CERTIFICATIONS & EDUCATION
   ============================================================ */
.certs { background: var(--bg-1); }

.creds__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.creds__sub {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx-2);
  margin-bottom: 1.2rem;
}
.cred-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cred-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  transition: border-color var(--ease), transform var(--ease);
}
.cred-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.cred-card--hi {
  border-color: rgba(96,165,250,0.3);
  background: rgba(96,165,250,0.04);
}
.cred-card--hi:hover { border-color: rgba(96,165,250,0.55); }

.cred-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.cred-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tx-0);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.cred-from { font-size: 0.76rem; color: var(--tx-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.contact__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.contact__inner .section-head {
  flex-direction: column;
  text-align: center;
  margin-bottom: 1rem;
}
.contact__sub {
  font-size: 1rem;
  color: var(--tx-1);
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
  line-height: 1.7;
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tx-0);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.contact-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(96,165,250,0.05);
  transform: translateY(-2px);
}
.contact-btn svg { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer p {
  font-size: 0.8rem;
  color: var(--tx-2);
}

/* ============================================================
   EASTER EGG
   ============================================================ */
.easter-egg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--r-md);
  padding: 0.9rem 1.3rem;
  font-size: 0.82rem;
  color: var(--green);
  box-shadow: 0 0 24px rgba(52,211,153,0.15);
  animation: slideUp 0.3s ease;
  pointer-events: none;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --bg-0:      #eef0ff;
  --bg-1:      #f6f7ff;
  --card:      #ffffff;
  --card-hi:   #f0f2ff;
  --border:    rgba(0,0,0,0.08);
  --border-hi: rgba(0,0,0,0.15);

  --tx-0: #0a0b1e;
  --tx-1: #38395c;
  --tx-2: #8888aa;

  --blue:   #3b82f6;
  --green:  #059669;
  --purple: #7c3aed;
  --amber:  #d97706;
  --rose:   #e11d48;
  --orange: #ea580c;
}

/* Nav */
[data-theme="light"] .nav {
  background: rgba(246,247,255,0.88);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .nav.scrolled { border-color: rgba(0,0,0,0.13); }

[data-theme="light"] .theme-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .theme-btn:hover {
  background: rgba(0,0,0,0.08);
  color: var(--tx-0);
}

[data-theme="light"] .lang-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .lang-opt:hover { color: var(--tx-0); }
[data-theme="light"] .lang-opt.active { background: var(--blue); color: #fff; }

[data-theme="light"] .nav__cta {
  background: var(--blue);
  color: #fff;
}

/* Hero */
[data-theme="light"] .blob--blue   { opacity: 0.18; }
[data-theme="light"] .blob--purple { opacity: 0.12; }

[data-theme="light"] .hero__name {
  background: linear-gradient(135deg, #0a0b1e 0%, #3b82f6 52%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .chip {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

[data-theme="light"] .btn--ghost {
  border-color: rgba(0,0,0,0.18);
  color: var(--tx-0);
}
[data-theme="light"] .btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Profile card */
[data-theme="light"] .profile-card {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
}

/* About */
[data-theme="light"] .stat-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .stat-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Skills */
[data-theme="light"] .skill-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
[data-theme="light"] .skill-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
[data-theme="light"] .stag {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .stag:hover {
  background: rgba(59,130,246,0.07);
  border-color: var(--blue);
  color: var(--blue);
}

/* Experience */
[data-theme="light"] .tl-dot {
  border-color: var(--bg-1);
}
[data-theme="light"] .job__card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .job__card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
[data-theme="light"] .jtag {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
}

/* Certifications */
[data-theme="light"] .cred-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
[data-theme="light"] .cred-card--hi {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.05);
}
[data-theme="light"] .cred-card--hi:hover {
  border-color: rgba(59,130,246,0.6);
}

/* Contact */
[data-theme="light"] .contact-btn {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
[data-theme="light"] .contact-btn:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}

/* Footer */
[data-theme="light"] .footer {
  background: #e8eaff;
  border-color: rgba(0,0,0,0.08);
}

/* Easter egg */
[data-theme="light"] .easter-egg {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ============================================================
   RESPONSIVE — tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  :root { --sec-pad: 72px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero__tagline { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__chips   { justify-content: center; }
  .hero__card-wrap { order: -1; }
  .profile-card { max-width: 300px; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .job {
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
  }

  .creds__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — mobile (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --sec-pad: 56px; }

  /* Nav */
  .nav__inner { padding: 0 1.2rem; gap: 0.75rem; }
  .nav__cta    { display: none; }
  .lang-toggle { order: 2; margin-left: auto; }
  .nav__toggle { order: 3; margin-left: 0; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: auto;
    width: 200px;
    background: rgba(7, 8, 15, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-hi);
    border-top: none;
    border-radius: 0 0 var(--r-md) var(--r-md);
    flex-direction: column;
    padding: 0.25rem 1.2rem 0.75rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav__links.open { display: flex; }
  [data-theme="light"] .nav__links {
    background: rgba(246, 247, 255, 0.98);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    width: 100%;
    border-radius: 0;
  }
  .nav__link:last-child { border-bottom: none; }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero__name { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero__role { font-size: 1.05rem; }
  .hero__actions { flex-direction: column; }
  .btn { text-align: center; width: 100%; }

  /* About */
  .container { padding: 0 1.2rem; }
  .about__stats { grid-template-columns: 1fr 1fr; }

  /* Skills */
  .skills__grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .section-title { font-size: 1.5rem; }

  /* Experience */
  .job {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 2rem;
  }
  .job__aside {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .job__period { text-align: left; }
  .job__line {
    flex: 1;
    width: auto;
    height: 2px;
    min-height: 0;
    background: linear-gradient(to right, var(--border-hi), transparent);
  }
  .job__card  { padding: 1.2rem; }
  .job__role  { font-size: 1rem; }
  .job__header { flex-direction: column; gap: 0.5rem; }

  /* Contact */
  .contact-btn { font-size: 0.83rem; padding: 0.75rem 1rem; }
}

/* ============================================================
   RESPONSIVE — small mobile (≤420px)
   ============================================================ */
@media (max-width: 420px) {
  :root { --sec-pad: 44px; }

  .hero { padding-top: calc(var(--nav-h) + 28px); padding-left: 1rem; padding-right: 1rem; }
  .container { padding: 0 1rem; }

  .hero__name  { font-size: 2rem; }
  .hero__chips { gap: 0.35rem; }
  .chip { font-size: 0.72rem; }

  .about__stats { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .stat-card__val { font-size: 1.6rem; }

  .job__card  { padding: 1rem; }
  .job__role  { font-size: 0.95rem; }
  .job__bullets li { font-size: 0.85rem; }

  .cred-card  { padding: 0.9rem; gap: 0.7rem; }
  .cred-icon  { font-size: 1.1rem; }

  .section-title { font-size: 1.3rem; }

  .profile-card { padding: 1.4rem; }
  .profile-card__avatar { width: 60px; height: 60px; font-size: 1.1rem; }
}
