:root {
  --bg: #030712;
  --bg2: #07111f;
  --panel: rgba(17, 24, 39, 0.62);
  --panel2: rgba(15, 23, 42, 0.76);
  --line: rgba(148, 163, 184, 0.16);
  --line2: rgba(96, 165, 250, 0.38);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --cyan: #12d6c5;
  --green: #34d399;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.16), transparent 34%),
              radial-gradient(circle at 82% 14%, rgba(18, 214, 197, 0.08), transparent 26%),
              linear-gradient(180deg, #030712 0%, #07111f 48%, #030712 100%);
  font-family: var(--sans);
  letter-spacing: -0.006em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -8;
  pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -7;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0, rgba(2,6,23,.18) 55%, rgba(0,0,0,.38) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: rgba(37, 99, 235, 0.38); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,.72); border-radius: 999px; }

#spaceCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background: #030712;
}

.section-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad { padding: 96px 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .22s ease, background .22s ease, border-color .22s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.header-inner {
  width: min(1510px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 19px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.01em;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(30, 41, 59, 0.72); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; }
.mobile-toggle span { width: 24px; height: 2px; border-radius: 99px; background: white; transition: .2s; }
.mobile-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2){ opacity: 0; }
.mobile-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.mobile-panel {
  position: fixed;
  inset: 76px 20px auto 20px;
  z-index: 99;
  display: none;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.mobile-panel.open { display: grid; gap: 8px; }
.mobile-panel a { padding: 14px 16px; border-radius: 12px; color: #dbeafe; font-weight: 600; }
.mobile-panel a:hover { background: rgba(37,99,235,.16); color: white; }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  padding-top: 104px;
  padding-bottom: 76px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 86px;
}
.eyebrow {
  display: inline-flex;
  color: #3b82f6;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-title {
  min-height: 84px;
  font-size: clamp(50px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.065em;
  color: #fff;
  text-shadow: 0 0 28px rgba(96, 165, 250, .12);
  margin-bottom: 20px;
}
.cursor { color: #60a5fa; animation: blink .9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle,
.section-heading h2 span {
  background: linear-gradient(90deg, #3b82f6, #22d3ee, #12d6c5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.048em;
  margin-bottom: 26px;
}
.hero-text {
  max-width: 590px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 30px;
  font-weight: 400;
}
.hero-actions, .social-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hero-actions { margin-bottom: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #2563eb; color: white; box-shadow: 0 16px 36px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 22px 44px rgba(37, 99, 235, .34); }
.btn-outline { color: #60a5fa; border-color: rgba(37,99,235,.74); background: rgba(37,99,235,.055); }
.btn-outline:hover { background: rgba(37,99,235,.12); border-color: #60a5fa; color: #bfdbfe; }
.social-row a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #a8b3c7;
  border-radius: 999px;
  font-size: 20px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.social-row a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 430px; }
.portrait-shell { position: relative; width: 360px; aspect-ratio: 1; }
.portrait-glow { position: absolute; inset: -36px; border-radius: 999px; background: rgba(37,99,235,.18); filter: blur(48px); }
.portrait-card {
  position: absolute;
  inset: 0;
  padding: 20px;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 24px;
  background: rgba(30, 41, 59, .56);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.portrait-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.portrait-card img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #111827;
}
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, .58);
  animation: softBounce 2.4s infinite;
}
@keyframes softBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

.about { background: linear-gradient(180deg, rgba(3,7,18,.2), rgba(3,7,18,.74)); }
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
}
.section-heading::after { content: ""; height: 1px; flex: 1; background: rgba(148,163,184,.15); }
.section-kicker { color: #60a5fa; font: 600 13px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.section-heading h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.06em; font-weight: 600; white-space: nowrap; }
.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30,41,59,.62), rgba(15,23,42,.54));
  box-shadow: 0 16px 50px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 28px; align-items: stretch; }
.about-card { padding: 28px; }
.about-card p { color: #d4deec; font-size: 16px; line-height: 1.78; margin-bottom: 18px; font-weight: 400; }
.info-list { display: grid; gap: 12px; margin-top: 26px; }
.info-list div {
  display: grid;
  grid-template-columns: 42px 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(15,23,42,.52);
}
.info-list i { width: 42px; height: 42px; display: grid; place-items: center; color: #60a5fa; border-radius: 12px; background: rgba(37,99,235,.12); }
.info-list span { color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.info-list strong { color: #f8fafc; font-weight: 600; font-size: 14px; word-break: break-word; }
.terminal-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(2, 6, 23, .72);
  box-shadow: 0 20px 70px rgba(0,0,0,.25);
}
.terminal-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(15,23,42,.9);
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.terminal-top span { width: 10px; height: 10px; border-radius: 999px; }
.terminal-top span:nth-child(1) { background: #ff5f57; }
.terminal-top span:nth-child(2) { background: #febc2e; }
.terminal-top span:nth-child(3) { background: #28c840; }
.terminal-top small { margin-left: auto; margin-right: auto; color: #64748b; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.terminal-card pre { padding: 25px 26px 28px; white-space: pre-wrap; color: #d1fae5; font: 500 14px/1.85 var(--mono); }
.term-prompt { color: #60a5fa; }

.skills { background: linear-gradient(180deg, rgba(15,23,42,.74), rgba(3,7,18,.72)); }
.tabs { padding: 8px; border: 1px solid rgba(148,163,184,.14); border-radius: 20px; background: rgba(15,23,42,.34); }
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(2, 6, 23, .38); padding: 7px; border-radius: 14px; }
.tab-btn { height: 48px; border: 0; border-radius: 10px; background: transparent; color: #cbd5e1; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: .18s; }
.tab-btn.active { background: #2563eb; color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .24); }
.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-card { padding: 24px 20px; text-align: center; border-radius: 18px; border: 1px solid rgba(148,163,184,.14); background: linear-gradient(180deg, rgba(30,41,59,.62), rgba(15,23,42,.52)); transition: .18s; }
.skill-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.48); background: rgba(30,41,59,.66); }
.skill-card i { font-size: 24px; color: #60a5fa; margin-bottom: 15px; }
.skill-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.03em; font-weight: 600; }
.skill-card p { font-size: 14px; color: #aab8ca; line-height: 1.58; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-cloud span { display: inline-flex; padding: 11px 16px; border-radius: 999px; background: rgba(30,41,59,.7); border: 1px solid rgba(148,163,184,.16); color: #dbeafe; font-weight: 600; font-size: 14px; transition: .18s; }
.tool-cloud span:hover { border-color: #60a5fa; color: #fff; transform: translateY(-2px); }

.work { background: #030712; }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 32px; align-items: center; }
.feature-preview { border: 1px solid rgba(255,255,255,.32); border-radius: 28px; padding: 12px; }
.preview-card { min-height: 430px; border-radius: 22px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.gradient-a { background: radial-gradient(circle at 28% 16%, #7c73ff 0, #465acc 30%, #14224f 68%, #081020 100%); }
.preview-label { display: inline-flex; margin-bottom: 16px; color: rgba(255,255,255,.72); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.preview-card h3 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -0.065em; font-weight: 700; max-width: 500px; }
.preview-window { background: #0b1220; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 25px 50px rgba(0,0,0,.36); transform: rotate(1.3deg); overflow: hidden; }
.window-bar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #111827; }
.window-bar span { width: 10px; height: 10px; border-radius: 999px; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-body { padding: 24px; font: 500 15px/2 var(--mono); color: #dbeafe; }
.window-body b { color: #67e8f9; }
.feature-copy { padding: 14px; }
.feature-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feature-head span { width: 5px; height: 28px; border-radius: 999px; background: #3654d9; }
.feature-head h3 { font-size: 28px; letter-spacing: -0.045em; font-weight: 700; }
.feature-copy p { color: #d7e1ee; font-size: 16px; margin-bottom: 20px; line-height: 1.7; }
.feature-copy ul { display: grid; gap: 13px; list-style: none; }
.feature-copy li { position: relative; color: #cbd5e1; padding-left: 25px; line-height: 1.62; }
.feature-copy li::before { content: "✦"; position: absolute; left: 0; color: #60a5fa; }

.experience { background: rgba(3,7,18,.55); }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, #2563eb, #12d6c5, rgba(148,163,184,.15)); }
.timeline-item { position: relative; padding-left: 46px; }
.timeline-dot { position: absolute; left: 5px; top: 24px; width: 18px; height: 18px; border-radius: 999px; background: #2563eb; border: 4px solid #07111f; box-shadow: 0 0 0 5px rgba(37,99,235,.18); }
.timeline-dot.muted { background: #64748b; box-shadow: 0 0 0 5px rgba(100,116,139,.12); }
.timeline-card { padding: 25px; border-radius: 18px; transition: .18s; }
.timeline-card:hover { transform: translateX(4px); border-color: rgba(59,130,246,.44); }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.timeline-meta span { color: #94a3b8; font: 600 12px/1 var(--mono); letter-spacing: .08em; }
.timeline-meta b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #34d399; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25); padding: 5px 9px; border-radius: 999px; }
.timeline-meta b.past { color: #94a3b8; background: rgba(148,163,184,.1); border-color: rgba(148,163,184,.16); }
.timeline-card h3 { font-size: 20px; letter-spacing: -0.035em; margin-bottom: 4px; font-weight: 700; }
.timeline-card h4 { font-size: 14px; color: #60a5fa; font-weight: 600; margin-bottom: 11px; }
.timeline-card p { color: #cbd5e1; font-size: 15px; line-height: 1.7; }

.education { background: linear-gradient(180deg, rgba(15,23,42,.68), rgba(3,7,18,.7)); }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edu-card { padding: 26px; position: relative; overflow: hidden; transition: .18s; }
.edu-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #12d6c5); opacity: .45; }
.edu-card.active::before { opacity: 1; }
.edu-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.45); }
.edu-card span { display: block; color: #94a3b8; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.edu-card h3 { font-size: 19px; letter-spacing: -0.035em; margin-bottom: 9px; font-weight: 700; }
.edu-card p { color: #cbd5e1; font-size: 15px; min-height: 48px; line-height: 1.55; }
.edu-card strong { display: inline-flex; margin-top: 16px; color: #60a5fa; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22); border-radius: 999px; padding: 7px 11px; font-size: 13px; }

.contact { background: rgba(3,7,18,.56); }
.contact-grid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(360px,1fr); gap: 32px; align-items: start; }
.contact-copy p { font-size: 18px; color: #d7e1ee; margin-bottom: 22px; line-height: 1.7; }
.contact-links { display: grid; gap: 12px; }
.contact-links a { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 14px; border-radius: 16px; background: rgba(15,23,42,.6); border: 1px solid rgba(148,163,184,.16); transition: .18s; }
.contact-links a:hover { transform: translateX(4px); border-color: rgba(59,130,246,.45); }
.contact-links i { grid-row: 1/3; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #60a5fa; background: rgba(59,130,246,.12); }
.contact-links span { font-size: 12px; color: #94a3b8; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-links strong { font-size: 15px; font-weight: 600; color: #f8fafc; word-break: break-word; }
.contact-form { overflow: hidden; padding-bottom: 20px; }
.form-top { border-radius: 18px 18px 0 0; }
.contact-form label { display: block; padding: 0 22px 16px; }
.contact-form label:first-of-type { padding-top: 22px; }
.contact-form label span { display: block; color: #94a3b8; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(148,163,184,.18); background: rgba(15,23,42,.75); border-radius: 12px; color: #fff; outline: none; padding: 14px 15px; transition: .18s; }
.contact-form textarea { min-height: 122px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37,99,235,.13); }
.form-btn { width: calc(100% - 44px); margin: 4px 22px 0; border: 0; }
.form-response { min-height: 21px; margin: 12px 22px 0; font: 600 13px/1.4 var(--mono); color: #34d399; }
.form-response.err { color: #fb7185; }

.chat-float { position: fixed; right: 26px; bottom: 26px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-label { position: relative; color: #dbeafe; background: rgba(15,23,42,.94); border: 1px solid rgba(59,130,246,.45); border-radius: 13px; padding: 10px 14px; font-weight: 650; font-size: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.chat-label::after { content: ""; position: absolute; right: 22px; bottom: -8px; border-width: 8px 8px 0 8px; border-style: solid; border-color: rgba(59,130,246,.45) transparent transparent transparent; }
.chat-icon { width: 64px; height: 64px; border-radius: 999px; background: linear-gradient(180deg, #3479ff, #2563eb); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; font-size: 26px; box-shadow: 0 18px 38px rgba(37,99,235,.35); }
.footer { border-top: 1px solid rgba(148,163,184,.12); background: #020617; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer strong { display: block; font-size: 17px; background: linear-gradient(90deg, var(--blue2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer span, .footer p { font-size: 13px; color: #94a3b8; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero { padding-top: 112px; }
  .hero-grid, .about-grid, .feature-layout, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .social-row { justify-content: center; }
  .hero-visual { min-height: 355px; order: -1; }
  .portrait-shell { width: 302px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading::after { width: 100%; flex: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-container { width: calc(100% - 36px); }
  .section-pad { padding: 74px 0; }
  .header-inner { width: calc(100% - 36px); }
  .brand { font-size: 20px; }
  .hero-title { font-size: 44px; min-height: 54px; }
  .hero-subtitle { font-size: 25px; }
  .hero-text { font-size: 17px; }
  .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .portrait-shell { width: 245px; }
  .scroll-down { display: none; }
  .section-heading h2 { font-size: 34px; }
  .tab-list { grid-template-columns: repeat(2, 1fr); }
  .tab-btn span { font-size: 13px; }
  .skill-grid { grid-template-columns: 1fr; }
  .preview-card { min-height: 360px; padding: 24px; }
  .preview-card h3 { font-size: 30px; }
  .timeline-item { padding-left: 34px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: 0; }
  .contact-links strong { font-size: 13px; }
  .chat-label { display: none; }
  .chat-icon { width: 56px; height: 56px; }
  .footer-inner { justify-content: center; text-align: center; }
}


/* Final publish polish: cleaner typography, no overlay on portrait, tree education */
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.brand { font-weight: 650; letter-spacing: -0.025em; }
.nav-link { font-weight: 500; }
.eyebrow { font-weight: 600; }
.hero-title { font-weight: 650; letter-spacing: -0.058em; }
.hero-subtitle { font-weight: 650; letter-spacing: -0.04em; }
.hero-text { color: #d8e2f0; font-weight: 400; }
.btn { font-weight: 600; }
.section-heading h2 { font-weight: 650; letter-spacing: -0.052em; }
.glass-card,
.skill-card,
.timeline-card,
.edu-tree-card,
.contact-links a,
.contact-form {
  box-shadow: 0 18px 56px rgba(0,0,0,.18);
}
.glass-card,
.skill-card,
.timeline-card,
.contact-links a,
.contact-form,
.terminal-card {
  border-color: rgba(148,163,184,.18);
}
.glass-card:hover,
.skill-card:hover,
.timeline-card:hover,
.contact-links a:hover,
.edu-tree-card:hover {
  border-color: rgba(96,165,250,.48);
  background: linear-gradient(180deg, rgba(30,41,59,.68), rgba(15,23,42,.58));
}
.hero-visual { gap: 22px; min-height: auto; }
.portrait-shell { width: 360px; max-width: min(100%, 360px); aspect-ratio: 1; }
.portrait-card { padding: 18px; }
.portrait-card img { object-position: center top; }
.hero-stats {
  width: 360px;
  max-width: min(100%, 360px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  min-height: 76px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: linear-gradient(180deg, rgba(30,41,59,.68), rgba(15,23,42,.58));
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.stat-card strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.stat-card span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-card.live {
  grid-column: 1 / -1;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  border-color: rgba(52,211,153,.3);
  background: rgba(6,78,59,.16);
}
.stat-card.live i {
  color: #34d399;
  font-size: 8px;
  filter: drop-shadow(0 0 8px rgba(52,211,153,.55));
}
.stat-card.live span { margin: 0; color: #d1fae5; }
.education-tree {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.education-tree::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #12d6c5, rgba(148,163,184,.16));
}
.edu-tree-item {
  position: relative;
  padding-left: 58px;
}
.edu-node {
  position: absolute;
  left: 8px;
  top: 26px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #2563eb;
  border: 4px solid #07111f;
  box-shadow: 0 0 0 6px rgba(37,99,235,.16);
}
.edu-node.active { background: #12d6c5; box-shadow: 0 0 0 6px rgba(18,214,197,.13); }
.edu-node.muted { background: #64748b; box-shadow: 0 0 0 6px rgba(100,116,139,.12); }
.edu-tree-card {
  padding: 24px 26px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: .18s ease;
}
.edu-tree-card.current::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #2563eb, #12d6c5);
}
.edu-tree-card:hover { transform: translateX(4px); }
.edu-date {
  color: #94a3b8;
  font: 600 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.edu-tree-card h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 7px;
}
.edu-tree-card p {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.62;
}
.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.edu-tags strong,
.edu-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
}
.edu-tags strong { color: #60a5fa; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22); }
.edu-tags span { color: #d1fae5; background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.22); }
.edu-grid,
.edu-card { display: none; }
@media (max-width: 1000px) {
  .hero-stats { width: 302px; }
  .portrait-shell { width: 302px; }
}
@media (max-width: 640px) {
  .hero-stats { width: 245px; grid-template-columns: 1fr; }
  .portrait-shell { width: 245px; }
  .education-tree::before { left: 9px; }
  .edu-tree-item { padding-left: 36px; }
  .edu-node { left: 0; width: 18px; height: 18px; }
  .edu-tree-card { padding: 20px; }
  .edu-tree-card h3 { font-size: 18px; }
}

/* Final mobile + typography adjustment: smaller, cleaner, publish-ready */
:root {
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
}
body {
  font-size: 15px;
  letter-spacing: -0.012em;
}
.section-pad { padding: 88px 0; }
.brand { font-size: 19px; font-weight: 650; }
.nav-link { min-height: 37px; padding: 0 17px; font-size: 13px; font-weight: 550; }
.eyebrow { font-size: 14px; margin-bottom: 18px; }
.hero-title {
  font-size: clamp(44px, 5.4vw, 68px);
  min-height: 74px;
  font-weight: 620;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 620;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.btn { height: 46px; padding: 0 20px; font-size: 14px; border-radius: 9px; }
.social-row a { width: 39px; height: 39px; font-size: 18px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 620; }
.section-kicker { font-size: 12px; }
.glass-card,
.skill-card,
.timeline-card,
.edu-tree-card,
.contact-links a,
.contact-form,
.terminal-card,
.tabs {
  border-radius: 16px;
}
.skill-card { padding: 21px 18px; }
.skill-card h3 { font-size: 16px; }
.skill-card p { font-size: 13px; }
.timeline-card { padding: 22px; }
.timeline-card h3 { font-size: 18px; }
.timeline-card p { font-size: 14px; }
.edu-tree-card { padding: 22px 24px; }
.edu-tree-card h3 { font-size: 19px; }
.edu-tree-card p { font-size: 14px; }
.tool-cloud span { font-size: 13px; padding: 10px 14px; }
.about-card p, .feature-copy p, .contact-copy p { font-size: 15px; }

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 56px;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-visual {
    order: -1;
    min-height: auto;
    gap: 14px;
  }
  .hero-copy {
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .section-container { width: calc(100% - 30px); }
  .header-inner { width: calc(100% - 30px); }
  .section-pad { padding: 62px 0; }
  .site-header { padding: 16px 0; }
  .site-header.scrolled { padding: 10px 0; }
  .brand { font-size: 17px; }
  .mobile-panel { inset: 68px 15px auto 15px; border-radius: 18px; }
  .hero {
    padding-top: 84px;
    padding-bottom: 44px;
  }
  .hero-grid { gap: 20px; }
  .hero-visual { gap: 12px; }
  .portrait-shell {
    width: 188px;
    max-width: 188px;
  }
  .portrait-glow {
    inset: -18px;
    filter: blur(30px);
    opacity: .8;
  }
  .portrait-card {
    padding: 11px;
    border-radius: 19px;
    box-shadow: 0 18px 54px rgba(0,0,0,.26);
  }
  .portrait-card img { border-radius: 13px; }
  .hero-stats {
    width: min(100%, 318px);
    max-width: 318px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    min-height: 55px;
    padding: 10px 8px;
    border-radius: 13px;
    text-align: center;
  }
  .stat-card strong { font-size: 17px; }
  .stat-card span {
    font-size: 9px;
    line-height: 1.25;
    margin-top: 6px;
    letter-spacing: .055em;
  }
  .stat-card.live {
    grid-column: auto;
    min-height: 55px;
    padding: 10px 8px;
    flex-direction: column;
    gap: 6px;
  }
  .stat-card.live span { font-size: 9px; line-height: 1.25; }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 11px;
  }
  .hero-title {
    font-size: 36px;
    line-height: 1.02;
    min-height: 38px;
    margin-bottom: 11px;
    letter-spacing: -0.046em;
  }
  .hero-subtitle {
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
  }
  .hero-text {
    font-size: 14px;
    line-height: 1.62;
    max-width: 33ch;
    margin-bottom: 18px;
  }
  .hero-actions {
    gap: 9px;
    margin-bottom: 16px;
  }
  .btn {
    width: auto;
    min-width: 132px;
    height: 41px;
    padding: 0 13px;
    font-size: 12.5px;
    border-radius: 9px;
  }
  .social-row { gap: 8px; }
  .social-row a {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }
  .section-heading { gap: 12px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 28px; letter-spacing: -0.04em; }
  .section-kicker { font-size: 10.5px; }
  .about-card { padding: 20px; }
  .about-card p { font-size: 14px; line-height: 1.68; }
  .info-list div { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px; }
  .info-list i { width: 36px; height: 36px; grid-row: 1 / 3; }
  .info-list span { font-size: 10px; }
  .info-list strong { font-size: 13px; }
  .terminal-card pre { font-size: 12px; line-height: 1.7; padding: 18px; }
  .tab-list { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .tab-btn { height: 42px; gap: 7px; }
  .tab-btn span { font-size: 12px; }
  .tab-panel { padding: 16px; }
  .skill-card { padding: 18px 15px; }
  .preview-card { min-height: 320px; padding: 22px; }
  .preview-card h3 { font-size: 26px; letter-spacing: -0.045em; }
  .window-body { padding: 18px; font-size: 12px; }
  .feature-head h3 { font-size: 23px; }
  .feature-copy p, .feature-copy li { font-size: 14px; }
  .timeline-card { padding: 18px; }
  .timeline-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .timeline-card h3 { font-size: 17px; }
  .timeline-card h4, .timeline-card p { font-size: 13px; }
  .education-tree { gap: 16px; }
  .edu-tree-card { padding: 18px; }
  .edu-tree-card h3 { font-size: 17px; }
  .edu-tree-card p { font-size: 13px; }
  .edu-tags strong, .edu-tags span { font-size: 11px; padding: 6px 9px; }
  .contact-copy p { font-size: 14px; }
  .contact-links a { grid-template-columns: 38px 1fr; padding: 12px; }
  .contact-links i { width: 38px; height: 38px; }
  .contact-links strong { font-size: 12.5px; }
  .contact-form label { padding-left: 18px; padding-right: 18px; }
  .form-btn { width: calc(100% - 36px); margin-left: 18px; margin-right: 18px; }
}

@media (max-width: 380px) {
  .portrait-shell { width: 168px; max-width: 168px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 17px; }
  .hero-text { font-size: 13.5px; }
  .btn { min-width: 124px; }
  .hero-stats { max-width: 290px; }
}


/* ======================================================================
   Final publish polish v3
   - no hero stats above/beside portrait
   - cleaner professional typography
   - refined cards and mobile hero
   ====================================================================== */
:root {
  --sans: "Manrope", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 17px;
  --card-bg: linear-gradient(180deg, rgba(20,31,52,.72), rgba(10,17,31,.66));
  --card-bg-soft: linear-gradient(180deg, rgba(22,33,55,.58), rgba(9,16,29,.56));
  --card-line: rgba(148, 163, 184, .15);
  --card-line-hover: rgba(96, 165, 250, .42);
}
body {
  font-size: 14.5px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.section-container { width: min(1140px, calc(100% - 48px)); }
.section-pad { padding: 84px 0; }
.site-header { padding: 19px 0; }
.header-inner { width: min(1370px, calc(100% - 58px)); }
.brand { font-size: 18px; font-weight: 680; letter-spacing: -0.025em; }
.desktop-nav { padding: 5px; gap: 3px; background: rgba(15, 23, 42, .38); }
.nav-link { min-height: 36px; padding: 0 15px; font-size: 12.8px; font-weight: 560; }

.hero { padding-top: 100px; padding-bottom: 70px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 72px; }
.eyebrow { font-size: 13.5px; font-weight: 650; margin-bottom: 16px; color: #60a5fa; }
.hero-title { font-size: clamp(42px, 5.2vw, 64px); min-height: 68px; font-weight: 640; letter-spacing: -0.052em; margin-bottom: 16px; }
.hero-subtitle { font-size: clamp(21px, 2.45vw, 29px); font-weight: 630; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero-text { max-width: 545px; font-size: 15.5px; line-height: 1.72; color: #d8e2ef; margin-bottom: 24px; }
.btn { height: 45px; padding: 0 19px; border-radius: 10px; font-size: 13.5px; font-weight: 650; }
.social-row a { width: 38px; height: 38px; font-size: 17px; }
.hero-visual { min-height: 390px; }
.portrait-shell { width: 342px; max-width: min(100%, 342px); }
.portrait-card { padding: 16px; border-radius: 23px; background: rgba(21, 31, 50, .58); border-color: rgba(148, 163, 184, .24); box-shadow: 0 26px 70px rgba(0,0,0,.30); }
.portrait-grid { opacity: .11; }
.portrait-card img { border-radius: 15px; }
.hero-stats { display: none !important; }
.scroll-down { width: 42px; height: 42px; bottom: 28px; }

.section-heading { margin-bottom: 34px; gap: 18px; }
.section-heading h2 { font-size: clamp(28px, 3.15vw, 39px); font-weight: 650; letter-spacing: -0.052em; }
.section-kicker { font-size: 11px; letter-spacing: .085em; font-weight: 650; }

.glass-card,
.terminal-card,
.tabs,
.contact-form,
.preview-card {
  border: 1px solid var(--card-line);
  background: var(--card-bg-soft);
  box-shadow: 0 18px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035);
}
.glass-card:hover,
.skill-card:hover,
.timeline-card:hover,
.edu-tree-card:hover,
.contact-links a:hover {
  border-color: var(--card-line-hover);
  box-shadow: 0 22px 62px rgba(0,0,0,.26), 0 0 0 1px rgba(96,165,250,.06) inset;
}
.about-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; }
.about-card { padding: 25px; }
.about-card p { font-size: 14.7px; line-height: 1.74; color: #d7e1ee; margin-bottom: 15px; }
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 22px;
}
.about-highlights div {
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg, rgba(15,23,42,.74), rgba(8,14,26,.54));
}
.about-highlights strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 680;
  letter-spacing: -0.04em;
}
.about-highlights span {
  display: block;
  margin-top: 8px;
  color: #9fb1c7;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .065em;
}
.info-list { gap: 10px; margin-top: 18px; }
.info-list div { padding: 13px; border-radius: 14px; background: rgba(7, 13, 25, .48); }
.info-list i { width: 39px; height: 39px; border-radius: 11px; }
.info-list span { font-size: 10.5px; }
.info-list strong { font-size: 13px; }
.terminal-top { height: 42px; }
.terminal-card pre { padding: 22px 24px 25px; font-size: 12.6px; line-height: 1.78; }

.tabs { padding: 7px; border-radius: 18px; }
.tab-list { padding: 6px; gap: 7px; border-radius: 13px; }
.tab-btn { height: 44px; border-radius: 10px; font-size: 13px; font-weight: 650; }
.tab-panel { padding: 21px; }
.skill-grid { gap: 13px; }
.skill-card {
  min-height: 170px;
  padding: 22px 17px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.skill-card i { font-size: 25px; margin-bottom: 15px; color: #60a5fa; }
.skill-card h3 { font-size: 15px; font-weight: 680; letter-spacing: -0.025em; margin-bottom: 8px; }
.skill-card p { font-size: 12.6px; line-height: 1.58; color: #aebdd0; }
.tool-cloud span { font-size: 12.6px; padding: 9px 13px; border-radius: 999px; background: rgba(15,23,42,.58); }

.feature-layout { gap: 24px; }
.preview-card { min-height: 440px; padding: 30px; border-radius: 22px; }
.preview-card h3 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.055em; }
.window-body { font-size: 13px; line-height: 1.75; }
.feature-copy { padding-top: 4px; }
.feature-head h3 { font-size: 27px; font-weight: 680; }
.feature-copy p, .feature-copy li { font-size: 14.5px; line-height: 1.72; color: #d3deec; }

.timeline { gap: 16px; }
.timeline-card { padding: 20px; border-radius: 16px; background: var(--card-bg-soft); }
.timeline-meta span { font-size: 11.5px; }
.timeline-card h3 { font-size: 17px; font-weight: 680; margin-bottom: 7px; }
.timeline-card h4 { font-size: 13.2px; color: #8fbaff; }
.timeline-card p { font-size: 13.4px; line-height: 1.65; color: #b9c7d9; }

.education-tree { max-width: 830px; gap: 17px; }
.edu-tree-card { padding: 20px 23px; border-radius: 16px; background: var(--card-bg-soft); }
.edu-tree-card:hover { transform: translateX(3px); }
.edu-date { font-size: 11px; margin-bottom: 10px; }
.edu-tree-card h3 { font-size: 18px; font-weight: 680; letter-spacing: -0.028em; }
.edu-tree-card p { font-size: 13.4px; line-height: 1.56; color: #c6d3e4; }
.edu-tags { margin-top: 13px; gap: 7px; }
.edu-tags strong, .edu-tags span { font-size: 10.8px; padding: 6px 9px; }

.contact-grid { gap: 24px; }
.contact-copy p { font-size: 14.8px; line-height: 1.72; }
.contact-links { gap: 10px; }
.contact-links a { padding: 13px; border-radius: 15px; background: var(--card-bg-soft); }
.contact-links i { width: 38px; height: 38px; border-radius: 11px; }
.contact-links span { font-size: 10.5px; }
.contact-links strong { font-size: 12.8px; }
.contact-form label { padding: 0 22px 16px; }
.contact-form label span { font-size: 11px; }
.contact-form input, .contact-form textarea { font-size: 13.5px; border-radius: 11px; }
.form-btn { margin: 2px 22px 0; width: calc(100% - 44px); }
.chat-float .chat-label { font-size: 12.4px; }
.footer-inner strong { font-size: 15px; }
.footer-inner span, .footer-inner p { font-size: 12px; }

@media (max-width: 1000px) {
  .section-container { width: min(760px, calc(100% - 36px)); }
  .hero { padding-top: 92px; padding-bottom: 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-visual { order: -1; min-height: auto; }
  .portrait-shell { width: 270px; max-width: 270px; }
  .hero-copy { max-width: 620px; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .social-row { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .section-container { width: calc(100% - 28px); }
  .header-inner { width: calc(100% - 28px); }
  .section-pad { padding: 58px 0; }
  .site-header { padding: 14px 0; }
  .brand { font-size: 16.5px; }
  .hero { padding-top: 78px; padding-bottom: 42px; }
  .hero-grid { gap: 18px; }
  .portrait-shell { width: 178px; max-width: 178px; }
  .portrait-card { padding: 10px; border-radius: 18px; }
  .portrait-card img { border-radius: 12px; }
  .portrait-glow { inset: -16px; filter: blur(28px); opacity: .78; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  .hero-title { font-size: 34px; min-height: 36px; line-height: 1.03; margin-bottom: 10px; }
  .hero-subtitle { font-size: 18px; margin-bottom: 13px; }
  .hero-text { max-width: 35ch; font-size: 13.6px; line-height: 1.62; margin-bottom: 16px; }
  .hero-actions { gap: 8px; margin-bottom: 15px; }
  .btn { height: 40px; min-width: 128px; padding: 0 12px; font-size: 12.2px; }
  .social-row { gap: 7px; }
  .social-row a { width: 34px; height: 34px; font-size: 14px; }
  .scroll-down { display: none; }
  .section-heading { margin-bottom: 24px; gap: 11px; }
  .section-heading::after { display: none; }
  .section-heading h2 { font-size: 25px; }
  .section-kicker { font-size: 10px; }
  .about-card, .terminal-card, .tabs, .contact-form { border-radius: 15px; }
  .about-card { padding: 18px; }
  .about-card p { font-size: 13.5px; line-height: 1.66; }
  .about-highlights { grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin: 17px 0; }
  .about-highlights div { min-height: 60px; padding: 11px 8px; border-radius: 13px; text-align: center; }
  .about-highlights strong { font-size: 16px; }
  .about-highlights span { font-size: 8.8px; margin-top: 6px; }
  .terminal-card pre { font-size: 11.2px; line-height: 1.62; padding: 16px; overflow-x: auto; white-space: pre; }
  .tab-list { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .tab-btn { height: 39px; font-size: 12px; gap: 7px; }
  .tab-panel { padding: 14px; }
  .skill-grid { gap: 10px; }
  .skill-card { min-height: 145px; padding: 17px 13px; }
  .skill-card i { font-size: 21px; margin-bottom: 12px; }
  .skill-card h3 { font-size: 13.5px; }
  .skill-card p { font-size: 11.7px; }
  .preview-card { min-height: 300px; padding: 20px; border-radius: 18px; }
  .preview-card h3 { font-size: 24px; }
  .window-body { padding: 16px; font-size: 11.5px; }
  .feature-head h3 { font-size: 21px; }
  .feature-copy p, .feature-copy li { font-size: 13.2px; }
  .timeline-item { padding-left: 32px; }
  .timeline::before { left: 9px; }
  .timeline-dot { width: 18px; height: 18px; }
  .timeline-card { padding: 16px; }
  .timeline-card h3 { font-size: 15.5px; }
  .timeline-card h4, .timeline-card p { font-size: 12.5px; }
  .education-tree { gap: 14px; }
  .education-tree::before { left: 8px; }
  .edu-tree-item { padding-left: 34px; }
  .edu-node { left: 0; width: 17px; height: 17px; border-width: 4px; }
  .edu-tree-card { padding: 16px; }
  .edu-date { font-size: 10px; }
  .edu-tree-card h3 { font-size: 15.5px; }
  .edu-tree-card p { font-size: 12.4px; }
  .contact-copy p { font-size: 13.4px; }
  .contact-links a { grid-template-columns: 36px 1fr; padding: 11px; }
  .contact-links i { width: 36px; height: 36px; }
  .contact-links strong { font-size: 12px; }
  .contact-form label { padding-left: 16px; padding-right: 16px; }
  .form-btn { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
}

@media (max-width: 380px) {
  .portrait-shell { width: 160px; max-width: 160px; }
  .hero-title { font-size: 31px; }
  .hero-subtitle { font-size: 16.5px; }
  .hero-text { font-size: 13px; }
  .btn { min-width: 120px; }
  .about-highlights { grid-template-columns: 1fr; }
}

/* ======================================================================
   Final hero content card + WhatsApp floating CTA
   ====================================================================== */
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 34px 36px 32px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, .18);
  background:
    radial-gradient(circle at 18% 8%, rgba(59, 130, 246, .16), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, .64), rgba(3, 7, 18, .46));
  box-shadow: 0 24px 82px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  opacity: .72;
}
.hero-copy > * {
  position: relative;
  z-index: 1;
}
.hero-copy:hover {
  border-color: rgba(96, 165, 250, .36);
  box-shadow: 0 28px 92px rgba(0, 0, 0, .26);
}
.chat-float {
  text-decoration: none;
}
.chat-label {
  border-color: rgba(37, 211, 102, .42);
  color: #dcfce7;
  background: rgba(6, 78, 59, .82);
}
.chat-label::after {
  border-color: rgba(37, 211, 102, .42) transparent transparent transparent;
}
.chat-icon {
  background: linear-gradient(180deg, #25D366, #128C7E) !important;
  box-shadow: 0 18px 42px rgba(37, 211, 102, .30) !important;
  font-size: 31px !important;
}
.chat-icon i {
  transform: translateY(1px);
}
.chat-float:hover .chat-icon {
  transform: translateY(-3px) scale(1.03);
}

@media (max-width: 1000px) {
  .hero-copy {
    width: min(100%, 620px);
    padding: 30px 28px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    width: 100%;
    padding: 22px 18px 20px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 20% 6%, rgba(59, 130, 246, .18), transparent 46%),
      linear-gradient(180deg, rgba(15, 23, 42, .70), rgba(3, 7, 18, .52));
  }
  .hero-title {
    min-height: 35px;
  }
  .chat-icon {
    width: 56px;
    height: 56px;
    font-size: 28px !important;
  }
}

@media (max-width: 380px) {
  .hero-copy {
    padding: 20px 15px 18px;
  }
}

/* ======================================================================
   Final correction: one solid hero card only
   ====================================================================== */
.hero-grid {
  position: relative;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: #0f172a;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .30);
  overflow: hidden;
}
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.035);
}
.hero-copy {
  width: auto !important;
  max-width: 620px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}
.hero-copy::before {
  display: none !important;
}
.hero-copy:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}
.hero-visual {
  min-height: 350px;
}
.portrait-card {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.portrait-grid {
  display: none !important;
}
.portrait-card img {
  border: 1px solid rgba(148, 163, 184, .20);
  box-shadow: 0 20px 56px rgba(0,0,0,.26);
}
.chat-icon {
  background: #25D366 !important;
  box-shadow: 0 18px 42px rgba(37, 211, 102, .28) !important;
}

@media (max-width: 1000px) {
  .hero-grid {
    padding: 34px 28px 38px;
    gap: 26px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 84px;
  }
  .hero-grid {
    width: calc(100% - 24px);
    padding: 24px 16px 26px;
    border-radius: 22px;
    gap: 18px;
  }
  .hero-copy {
    width: 100% !important;
  }
  .hero-text {
    max-width: 36ch;
  }
}

@media (max-width: 380px) {
  .hero-grid {
    padding: 22px 14px 24px;
    border-radius: 20px;
  }
}

/* ======================================================================
   Final visual comfort fix: single SOLID hero card, no gradient/glow layer
   ====================================================================== */
.hero-grid {
  background: #101827 !important;
  background-image: none !important;
  background-color: #101827 !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  box-shadow: 0 22px 62px rgba(0, 0, 0, .24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hero-grid::before,
.hero-grid::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
}
.hero-copy,
.hero-copy::before,
.hero-copy::after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
.portrait-card {
  background: transparent !important;
  background-image: none !important;
}
.portrait-glow {
  opacity: .20 !important;
}
@media (max-width: 640px) {
  .hero-grid {
    background: #101827 !important;
    background-image: none !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .22) !important;
  }
}
