:root {
  --bg: #070a14;
  --bg-alt: #0b1020;
  --card: rgba(20, 26, 46, 0.72);
  --card-solid: #141a2e;
  --border: rgba(94, 234, 212, 0.14);
  --border-soft: #1f2740;
  --text: #c8d0e0;
  --text-dim: #8590a8;
  --heading: #e8edf7;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-dim: rgba(94, 234, 212, 0.12);
  --radius: 14px;
  --maxw: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.05s linear;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; z-index: -1;
  border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(94,234,212,0.10), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; will-change: left, top;
}

/* ===== ANIMATED 3D BACKGROUND ===== */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, #0f766e, transparent 70%); top: -120px; left: -100px; animation: float1 18s ease-in-out infinite; }
.blob-2 { width: 480px; height: 480px; background: radial-gradient(circle, #4338ca, transparent 70%); top: 30%; right: -140px; animation: float2 22s ease-in-out infinite; }
.blob-3 { width: 420px; height: 420px; background: radial-gradient(circle, #0e7490, transparent 70%); bottom: -120px; left: 30%; animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,30px) scale(0.95); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.08); } }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { color: var(--accent); font-weight: 700; font-size: 18px; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 4px; background: var(--card-solid); padding: 4px; border-radius: 8px; border: 1px solid var(--border-soft); }
.lang-btn {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 6px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.lang-btn:hover { color: var(--heading); }
.lang-btn.active { background: var(--accent-dim); color: var(--accent); }

/* ===== HERO ===== */
.hero { padding: 120px 0 90px; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { color: var(--accent); font-weight: 500; font-size: 15px; margin-bottom: 16px; }
.hero-name {
  font-size: clamp(42px, 8vw, 80px); font-weight: 800; letter-spacing: -2px; line-height: 1.05;
  background: linear-gradient(120deg, var(--heading), var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-role { font-size: clamp(26px, 5vw, 46px); font-weight: 700; color: var(--text-dim); letter-spacing: -1.5px; line-height: 1.1; margin-top: 4px; }
.hero-tagline { max-width: 540px; margin-top: 22px; color: var(--text-dim); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent; font-family: inherit;
}
.btn-primary { background: linear-gradient(120deg, var(--accent), #34d399); color: #061915; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(94, 234, 212, 0.3); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-dim); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 84px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(11,16,32,0.6), transparent); }
.section-title { font-size: 28px; font-weight: 700; color: var(--heading); margin-bottom: 40px; letter-spacing: -0.5px; }
.section-title .num { color: var(--accent); font-size: 20px; font-weight: 600; margin-right: 6px; }
.section-title.centered { text-align: center; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin-bottom: 16px; color: var(--text-dim); font-size: 16px; }
.about-facts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-facts li {
  display: flex; justify-content: space-between; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.fact-label { color: var(--text-dim); font-size: 14px; }
.fact-value { color: var(--heading); font-weight: 600; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim), 0 0 16px var(--accent); }
.timeline-period { color: var(--accent); font-size: 13px; font-weight: 600; }
.timeline-content h3 { color: var(--heading); font-size: 19px; margin-top: 4px; }
.timeline-sub { color: var(--text-dim); font-size: 15px; }

/* ===== PROJECTS ===== */
.subgroup { color: var(--heading); font-size: 16px; font-weight: 600; margin: 8px 0 18px; opacity: 0.9; }
.subgroup:not(:first-of-type) { margin-top: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
  backdrop-filter: blur(8px); position: relative;
}
a.card:hover { border-color: var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-icon { color: var(--accent); font-size: 28px; line-height: 0; }
.card-link { color: var(--text-dim); font-size: 18px; line-height: 0; transition: color 0.2s; }

/* Inline SVG icons */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
a.card:hover .card-link { color: var(--accent); }
.card h4 { color: var(--heading); font-size: 17px; margin-bottom: 8px; word-break: break-word; }
.card p { color: var(--text-dim); font-size: 14px; flex: 1; }
.tag { display: inline-block; margin-top: 14px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-dim); padding: 4px 10px; border-radius: 20px; }

/* ===== SKILLS ===== */
.skills-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.skill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s; backdrop-filter: blur(8px);
}
.skill i { font-size: 24px; line-height: 1; }
.skill i.devicon-github-original,
.skill i.devicon-unity-original { color: var(--heading); }
.skill svg.ico { width: 23px; height: 23px; color: var(--accent); stroke-width: 1.8; }
.skill:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,0.4); }

/* ===== CONTACT ===== */
.contact-inner { text-align: center; max-width: 680px; }
.contact-text { color: var(--text-dim); font-size: 17px; margin-bottom: 30px; }

.contact-form {
  text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; }
.field-label { display: block; color: var(--text-dim); font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; background: rgba(7,10,20,0.6); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 11px 13px; color: var(--heading); font-size: 15px; font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--accent); }

/* Rich text editor */
.editor { border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; background: rgba(7,10,20,0.6); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border-soft); background: rgba(20,26,46,0.5); }
.tb {
  min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--text); font-size: 14px; cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center; font-family: inherit;
}
.tb:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--border); }
.tb:active { transform: scale(0.94); }
.tb .ico { width: 17px; height: 17px; }
.tb-sep { width: 1px; height: 20px; background: var(--border-soft); margin: 0 4px; }
.editor-area { min-height: 150px; padding: 14px 16px; color: var(--heading); font-size: 15px; outline: none; line-height: 1.7; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--text-dim); }
.editor-area a { color: var(--accent); text-decoration: underline; }
.editor-area ul, .editor-area ol { padding-left: 22px; }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.form-hint { font-size: 13px; color: var(--text-dim); }
.form-hint.ok { color: var(--accent); }
.form-hint.err { color: #f87171; }

.contact-methods { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ===== FOOTER ===== */
.footer { padding: 30px 0; border-top: 1px solid var(--border-soft); text-align: center; }
.footer p { color: var(--text-dim); font-size: 13px; }

/* ===== ROAMING PIXEL CHARACTERS ===== */
.walkers {
  position: fixed; left: 0; right: 0; bottom: 0; height: 84px;
  z-index: 40; pointer-events: none; overflow: visible;
}
.walker { position: absolute; bottom: 8px; left: 0; pointer-events: auto; cursor: pointer; will-change: transform; }
.walker::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 38px; height: 8px;
  transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45), transparent 70%);
}
.hopper { position: relative; }
.sprite {
  width: 32px; height: 32px; background-repeat: no-repeat; background-position: 0 0;
  image-rendering: pixelated; image-rendering: crisp-edges;
  transform: scale(2); transform-origin: bottom center;
  animation: walkcycle 0.7s steps(3) infinite;
}
.dir-down  { background-position-y: 0; }
.dir-left  { background-position-y: -32px; }
.dir-right { background-position-y: -64px; }
.dir-up    { background-position-y: -96px; }
.sprite.idle { animation: none; background-position-x: -32px; }
@keyframes walkcycle { from { background-position-x: 0; } to { background-position-x: -96px; } }

.hop { animation: hop 0.5s ease; }
@keyframes hop { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-18px); } 65% { transform: translateY(0); } }

.bubble {
  position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--card-solid); border: 1px solid var(--accent); color: var(--heading);
  padding: 6px 11px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.bubble.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bubble::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--accent);
}

/* ===== MANGA READER ===== */
.card-action { font: inherit; text-align: left; width: 100%; cursor: pointer; }
.card-action .card-link { font-size: 22px; font-weight: 700; }
.card-action:hover { border-color: var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.card-action:hover .card-link { color: var(--accent); }

.manga-reader { position: fixed; inset: 0; z-index: 200; background: rgba(3,5,12,0.97); display: flex; flex-direction: column; }
.manga-reader[hidden] { display: none; }
.mr-bar, .mr-foot {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(7,10,20,0.85); backdrop-filter: blur(8px);
}
.mr-bar { justify-content: space-between; border-bottom: 1px solid var(--border-soft); }
.mr-foot { border-top: 1px solid var(--border-soft); }
.mr-title { color: var(--heading); font-weight: 700; font-size: 15px; }
.mr-count { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mr-actions { display: flex; align-items: center; gap: 10px; }
.mr-close, .mr-music {
  background: var(--card-solid); border: 1px solid var(--border-soft); color: var(--text);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.mr-close:hover, .mr-music:hover { border-color: var(--accent); color: var(--accent); }
.mr-music .ico { width: 18px; height: 18px; }

.mr-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; touch-action: pan-y; }
.mr-page {
  max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6); transition: opacity 0.15s;
  user-select: none; -webkit-user-drag: none;
}
.mr-page.loading { opacity: 0.25; }
.mr-spinner {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border-soft); border-top-color: var(--accent);
  animation: mrspin 0.8s linear infinite; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.mr-stage.busy .mr-spinner { opacity: 1; }
@keyframes mrspin { to { transform: rotate(360deg); } }

.mr-nav {
  position: absolute; top: 0; bottom: 0; width: 28%; border: none; background: transparent;
  color: var(--heading); font-size: 46px; cursor: pointer; opacity: 0; transition: opacity 0.2s;
  display: flex; align-items: center;
}
.mr-prev { left: 0; justify-content: flex-start; padding-left: 16px; }
.mr-next { right: 0; justify-content: flex-end; padding-right: 16px; }
.mr-stage:hover .mr-nav { opacity: 0.35; }
.mr-nav:hover { opacity: 0.9; }
.mr-nav:disabled { opacity: 0 !important; cursor: default; }

.mr-slider { flex: 1; accent-color: var(--accent); cursor: pointer; }
.mr-hint { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) { .mr-hint { display: none; } .mr-nav { opacity: 0.3; } }

body.mr-open { overflow: hidden; }

/* ===== GAME / ADVENTURE MODE ===== */
.game-btn {
  background: var(--card-solid); border: 1px solid var(--border-soft); color: var(--accent);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; font-family: inherit;
}
.game-btn:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-dim); }
.game-btn.active { background: var(--accent-dim); color: var(--heading); }
.game-btn.pulse { border-color: var(--accent); color: var(--heading); animation: btnPulse 1.6s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,234,212,0.55); }
  50% { box-shadow: 0 0 0 9px rgba(94,234,212,0); }
}

.game-cta {
  position: fixed; z-index: 90; max-width: 210px; cursor: pointer;
  background: linear-gradient(120deg, var(--accent), #34d399); color: #061915;
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45); animation: ctaBob 2s ease-in-out infinite;
}
.game-cta::after {
  content: ""; position: absolute; top: -7px; right: 14px;
  border: 7px solid transparent; border-bottom-color: var(--accent);
}
@keyframes ctaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.game-on .walkers { display: none; }
.game-focus { animation: gameFocus 1.2s ease; }
@keyframes gameFocus { 0%,100% { box-shadow: none; } 30% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 40px var(--accent-dim); } }

#gameLayer { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 45; pointer-events: none; }
.game-char { position: absolute; bottom: 12px; left: 0; will-change: transform; }
.game-char::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 40px; height: 9px;
  transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 70%);
}
.npc .mark {
  position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%);
  color: var(--accent); font-weight: 800; font-size: 22px; text-shadow: 0 0 8px var(--accent);
  opacity: 0; transition: opacity 0.2s; animation: bob 0.9s ease-in-out infinite;
}
.npc.near .mark { opacity: 1; }
@keyframes bob { 0%,100% { margin-bottom: 0; } 50% { margin-bottom: 9px; } }

.talk-prompt {
  position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%);
  background: var(--card-solid); border: 1px solid var(--accent); color: var(--heading);
  padding: 6px 13px; border-radius: 20px; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity 0.2s; z-index: 60; pointer-events: none; white-space: nowrap;
}
.talk-prompt.show { opacity: 1; }

.dialog-box {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px);
  width: min(680px, 92vw); background: rgba(11,16,32,0.97); border: 2px solid var(--accent);
  border-radius: 14px; padding: 16px 18px; z-index: 65; display: flex; gap: 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.dialog-box.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dialog-portrait {
  width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--border);
  background-repeat: no-repeat; background-position: 0 0; background-size: 192px 256px;
  image-rendering: pixelated; flex: 0 0 auto; background-color: rgba(7,10,20,0.6);
}
.dialog-main { flex: 1; min-width: 0; }
.dialog-name { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.dialog-text { color: var(--text); font-size: 15px; min-height: 46px; line-height: 1.55; }
.dialog-next { text-align: right; color: var(--text-dim); font-size: 12px; margin-top: 6px; min-height: 16px; }
.dialog-choices { display: none; gap: 10px; margin-top: 12px; }
.choice-btn {
  padding: 9px 22px; border-radius: 8px; border: 1px solid var(--accent); background: transparent;
  color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.choice-btn:hover { background: var(--accent-dim); transform: translateY(-2px); }
.choice-btn.choice-yes { background: linear-gradient(120deg, var(--accent), #34d399); color: #061915; border-color: transparent; }

/* On-screen controls (touch) */
.dpad { position: fixed; z-index: 60; bottom: 18px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.dpad.left { left: 16px; }
.dpad.right { right: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.game-on .dpad.show { opacity: 0.92; pointer-events: auto; }
.dpad-row { display: flex; gap: 6px; }
.dbtn {
  width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--accent);
  background: rgba(11,16,32,0.85); color: var(--accent); font-size: 20px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; user-select: none; touch-action: none;
}
.dbtn.act { width: 64px; border-radius: 16px; }
.dbtn:active { background: var(--accent-dim); }

/* ===== 3D TILT ===== */
.tilt { transform-style: preserve-3d; transition: transform 0.15s ease-out; will-change: transform; }

/* ===== SCROLL REVEAL (3D) ===== */
.reveal { opacity: 0; transform: perspective(900px) rotateX(12deg) translateY(34px); transform-origin: center top; transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== SCROLL-DRIVEN DEPTH (gentle parallax; keeps text crisp) ===== */
.depth { will-change: transform; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .blob { opacity: 0.35; }
}
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .contact-form { padding: 18px; }
  .skill { padding: 10px 16px; font-size: 14px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .hero-name { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .depth { transform: none !important; opacity: 1 !important; }
  .cursor-glow { display: none; }
  .walkers { display: none; }
  html { scroll-behavior: auto; }
}
