:root {
  --bg: #f5f7ff;
  --bg-soft: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-2: #c026d3;
  --accent: #06b6d4;
  --header: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 60px rgba(79, 70, 229, 0.12);
  --ring: conic-gradient(from 180deg, #6366f1, #22d3ee, #ec4899, #a855f7, #6366f1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.12);
  --card: #1f2937;
  --header: rgba(15, 23, 42, 0.86);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 12px; top: 12px; z-index: 80; background: #fff; padding: 8px 12px; }

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
  animation: blob 7s ease-in-out infinite;
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  animation: particle-float ease-in-out infinite;
}
html[data-theme="dark"] .particle { background: #a5b4fc; }
.blob-a { top: -6rem; left: 12%; background: #a5b4fc; }
.blob-b { top: 0; right: 8%; background: #f0abfc; animation-delay: 2s; }
.blob-c { bottom: -8rem; left: 40%; background: #67e8f9; animation-delay: 4s; }
html[data-theme="dark"] .blob { opacity: 0.16; }

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.96); }
}
@keyframes particle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes glow {
  from { box-shadow: 0 0 14px rgba(99, 102, 241, 0.28); }
  to { box-shadow: 0 0 32px rgba(236, 72, 153, 0.42); }
}
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(8deg) scale(1.06); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}
@keyframes ping-slow {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.18); opacity: 0; }
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 80px;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: var(--header);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo-mark { flex-shrink: 0; }
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #6366f1, #c026d3);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}
.logo-text strong { display: block; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo-text span { display: block; font-size: 0.72rem; color: var(--muted); }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--text); background: color-mix(in srgb, var(--primary) 8%, transparent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.menu-btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-hire, .btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 140px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: visible;
}
.hero > div:first-child { animation: fadeIn 0.85s ease both; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.7s ease both;
}
.pulse-wrap {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.pulse {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}
.pulse-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hero-kicker {
  display: block;
  color: #94a3b8;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin: 18px 0 8px;
  letter-spacing: -0.03em;
}
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.typed-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 18px 0 16px;
}
.typed { background: linear-gradient(90deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cursor { color: var(--primary); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 52ch; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pill {
  color: var(--text);
  padding: 5px 12px 5px 5px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pill .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pill .ico svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.p1 .ico { background: #FF2D20; color: #fff; }
.p2 .ico { background: #777BB4; color: #fff; }
.p3 .ico { background: #F7DF1E; color: #111827; }
.p4 .ico { background: #42B883; color: #fff; }
.p5 .ico { background: #0b1220; color: #61DAFB; }
.p6 .ico { background: #00758F; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.follow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--card);
  transition: transform 0.2s ease;
}
.social:hover { transform: scale(1.08); }
.btn-hire, .btn-primary, .btn-ghost { transition: transform 0.2s ease, filter 0.2s ease; }
.btn-hire:hover, .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.portrait-wrap {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait {
  position: relative;
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  margin: 0;
}
.morph {
  position: absolute;
  inset: 22px;
  z-index: 0;
  background: linear-gradient(135deg, #818cf8, #f0abfc, #67e8f9);
  filter: blur(16px);
  opacity: 0.55;
  animation: morph 8s ease-in-out infinite;
}
.ring-ping {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.35);
  animation: ping-slow 2.8s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ring);
  box-shadow: var(--shadow);
  animation: spin 18s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.portrait-photo {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
  animation: glow 2.4s ease-in-out infinite alternate;
}
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--bg);
  background: #e2e8f0;
}
.orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.orb {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.orb-face {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  animation: spin 18s linear infinite reverse;
}
.orb-face svg { width: 100%; height: 100%; display: block; }
.o-laravel { top: 0; left: 50%; transform: translate(-50%, -50%); background: #fff; }
.o-react { top: 50%; right: 0; transform: translate(50%, -50%); background: #0b1220; border-color: #1e293b; }
.o-vue { bottom: 0; left: 50%; transform: translate(-50%, 50%); background: #fff; }
.o-php { top: 50%; left: 0; transform: translate(-50%, -50%); background: #fff; }
.o-php .orb-face { width: 40px; height: 40px; }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
}
.code-float {
  top: 0;
  right: 0;
  left: auto;
  width: min(320px, 90%);
  padding: 18px 20px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  z-index: 20;
  text-align: left;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(18px);
  animation: floaty 6s ease-in-out infinite;
}
.code-float .code-3d { transition: transform 0.35s ease; }
.code-float:hover { animation-play-state: paused; }
.code-float:hover .code-3d {
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg) scale(1.04);
}
.code-body { display: grid; gap: 4px; }
.code-float .k { color: #a855f7; font-weight: 500; }
.code-float .key { color: #3b82f6; }
.code-float .s { color: #22c55e; }
.code-float .a { color: #eab308; }
.code-float .n { color: #ec4899; }
.code-float .indent { padding-left: 1.1em; color: #3b82f6; }
.dots { display: flex; gap: 6px; margin-bottom: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.stat-float { padding: 16px 18px; text-align: center; z-index: 21; animation: floaty 6s ease-in-out infinite; }
.stat-float b { display: block; font-size: 1.8rem; background: linear-gradient(90deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s1 { left: 0; bottom: 0; animation-delay: 1s; }
.s2 { right: 40px; left: auto; bottom: 80px; animation-delay: 2s; }
.section { padding: 88px 0; scroll-margin-top: 88px; }
.hero { scroll-margin-top: 88px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e0e7ff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.eyebrow.pink { background: #fce7f3; color: #db2777; }
.eyebrow.green { background: #dcfce7; color: #15803d; }
html[data-theme="dark"] .eyebrow { background: rgba(99, 102, 241, 0.2); color: #c7d2fe; }
html[data-theme="dark"] .eyebrow.pink { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; }
html[data-theme="dark"] .eyebrow.green { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.about-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.sec-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
.grad { background: linear-gradient(90deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-sub { color: var(--muted); max-width: 46rem; margin: 0 auto 40px; }

.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.mini-card {
  position: absolute;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
}
.mini-card b { display: block; font-size: 1.3rem; }
.m1 { left: 16px; bottom: 16px; animation: floaty 6s ease-in-out 0.6s infinite; }
.m2 { right: 16px; top: 16px; animation: floaty 6s ease-in-out 1.4s infinite; }
.icon-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.bars { display: grid; gap: 16px; margin: 22px 0; }
.bar-top { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
html[data-theme="dark"] .bar { background: #334155; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.1s ease; }
.b1 { background: linear-gradient(90deg, #6366f1, #ec4899); }
.b2 { background: linear-gradient(90deg, #a855f7, #f472b6); }
.b3 { background: linear-gradient(90deg, #22d3ee, #34d399); }
.b4 { background: linear-gradient(90deg, #f97316, #ef4444); }
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.counter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.counter::before {
  content: "";
  position: absolute;
  inset: 0 20% auto;
  height: 4px;
  border-radius: 0 0 8px 8px;
}
.counter.c-blue::before { background: #6366f1; }
.counter.c-pink::before { background: #ec4899; }
.counter.c-teal::before { background: #14b8a6; }
.counter.c-orange::before { background: #f97316; }
.counter b { display: block; font-size: 2rem; letter-spacing: -0.04em; }
.counter span { color: var(--muted); font-size: 0.86rem; }
.jobs { display: grid; gap: 14px; }
.job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(79, 70, 229, 0.14);
}
.job h3 { margin: 0 0 6px; }
.job p { margin: 0; color: var(--muted); }
.job-meta { display: grid; align-content: start; gap: 4px; }
.job-meta span { color: var(--muted); font-size: 0.88rem; }
.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

.cards-6, .cards-3 { display: grid; gap: 18px; }
.cards-6 { grid-template-columns: repeat(3, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(79, 70, 229, 0.16);
}
.card h3 { margin: 10px 0; }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 18px; }
.svc { display: flex; flex-direction: column; min-height: 100%; }
.checks { list-style: none; padding: 0; margin: 8px 0 16px; }
.checks li { position: relative; padding-left: 22px; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.learn { font-weight: 800; font-size: 0.92rem; margin-top: auto; }
.c1-t, .c1-t li::before { color: #4f46e5; }
.c2-t, .c2-t li::before { color: #db2777; }
.c3-t, .c3-t li::before { color: #0d9488; }
.c4-t, .c4-t li::before { color: #ea580c; }
.c5-t, .c5-t li::before { color: #7c3aed; }
.c6-t, .c6-t li::before { color: #2563eb; }
.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}
.svc:hover .svc-icon { transform: scale(1.08); }
.c1 { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.c2 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.c3 { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.c4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.c5 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.c6 { background: linear-gradient(135deg, #14b8a6, #2563eb); }

.project {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.project-cover {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-weight: 800;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.project:hover .project-cover { filter: brightness(1.08); }
.pc1 { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.pc2 { background: linear-gradient(135deg, #6d28d9, #db2777); }
.pc3 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.pc4 { background: linear-gradient(135deg, #0f766e, #2563eb); }
.pc5 { background: linear-gradient(135deg, #9a3412, #ea580c); }
.pc6 { background: linear-gradient(135deg, #065f46, #14b8a6); }
.pc7 { background: linear-gradient(135deg, #334155, #64748b); }
.pc8 { background: linear-gradient(135deg, #1e3a8a, #0ea5e9); }
.pc9 { background: linear-gradient(135deg, #166534, #84cc16); }
.pc10 { background: linear-gradient(135deg, #9a3412, #f59e0b); }
.pc11 { background: linear-gradient(135deg, #9d174d, #c026d3); }
.pc12 { background: linear-gradient(135deg, #0f766e, #a78bfa); }
.project-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.icon-btn.sm { width: 36px; height: 36px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.tag.t-blue { background: #dbeafe; color: #1d4ed8; }
.tag.t-pink { background: #fce7f3; color: #be185d; }
.tag.t-teal { background: #ccfbf1; color: #0f766e; }
.tag.t-orange { background: #ffedd5; color: #c2410c; }
html[data-theme="dark"] .tag { background: rgba(99,102,241,.2); color: #c7d2fe; }
.center-cta { display: flex; justify-content: center; margin-top: 28px; }
.quote { font-size: 1.02rem; }
.quote p { margin: 0 0 16px; }
.quote-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.qmark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
}
.q-blue { background: #dbeafe; color: #2563eb; }
.q-pink { background: #fce7f3; color: #db2777; }
.q-teal { background: #ccfbf1; color: #0d9488; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.person strong { display: block; color: var(--text); }
.person .role { display: block; color: var(--muted); font-size: 0.86rem; }
.blog { overflow: hidden; padding: 0; }
.blog-cover {
  height: 170px;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.bc1 { background: linear-gradient(135deg, #db2777, #6366f1); }
.bc2 { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.bc3 { background: linear-gradient(135deg, #7c3aed, #0ea5e9); }
.blog-meta { font-size: 0.8rem; color: var(--muted); margin: 0 0 8px; }
.avatar-init {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 500;
}
.form textarea { min-height: 140px; resize: vertical; }
.btn-full { width: 100%; }
.contact-list { display: grid; gap: 12px; margin: 18px 0; }
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.info-card .svc-icon { flex-shrink: 0; }
.info-card > span:last-child { display: grid; }
.info-card b { font-size: 0.78rem; color: var(--muted); font-weight: 700; }

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 56px 0 28px;
}
.site-footer a, .site-footer p, .site-footer .copy { color: #94a3b8; }
.foot-brand { display: block; font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.site-footer .social { background: #1e2937; border-color: #334155; color: #e2e8f0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.footer-grid h4 { margin: 0 0 10px; }
.footer-grid a { display: block; color: #94a3b8; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #94a3b8; margin-top: 28px; font-size: 0.9rem; border-top: 1px solid #1e2937; padding-top: 18px; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.a-blue { background: linear-gradient(135deg, #2563eb, #6366f1); }
.a-pink { background: linear-gradient(135deg, #db2777, #a855f7); }
.a-teal { background: linear-gradient(135deg, #0d9488, #22c55e); }

@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 0.88rem; }
  .code-float { width: min(260px, 72%); font-size: 0.72rem; padding: 14px 16px; }
  .portrait { width: min(300px, 70vw); height: min(300px, 70vw); }
  .s2 { right: 16px; bottom: 64px; }
}
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in,
html.js .reveal-left.in,
html.js .reveal-right.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero, .about-grid, .contact-grid, .cards-6, .cards-3, .footer-grid, .counters, .job, .edu-row, .form-row { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--bg-soft); padding: 16px 20px 20px; flex-direction: column; border-bottom: 1px solid var(--line); z-index: 60; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { color: var(--text); }
  .menu-btn { display: grid; }
  .btn-hire { display: none; }
  .hero { padding-top: 110px; text-align: center; }
  .typed-row, .hero-actions, .pills, .follow { justify-content: center; }
  .lede { margin-inline: auto; }
  .portrait { margin: 24px auto 0; width: min(300px, 80vw); height: min(300px, 80vw); }
  .code-float { position: static; width: 100%; max-width: 420px; margin: 0 auto 16px; left: auto; right: auto; text-align: left; animation: floaty 6s ease-in-out infinite; }
  .code-float:hover .code-3d { transform: none; }
  .portrait-wrap { min-height: 0; display: block; }
  .s1, .s2 { position: static; display: inline-block; margin: 10px; left: auto; right: auto; }
  .about-photo img { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .orbit, .orb-face, .blob, .particle, .morph, .pulse-ping, .ring-ping,
  .code-float, .stat-float, .mini-card, .portrait-photo, .badge, .hero > div:first-child {
    animation: none !important;
  }
  html.js .reveal, html.js .reveal-left, html.js .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover, .job:hover, .code-float:hover .code-3d { transform: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(1200px, calc(100% - 24px)); }
  .logo-text { display: none; }
  h1 { font-size: 3rem; }
  .section { padding: 56px 0; }
}
