/* ============================================================
   JieDimension — Indie Game Developer Portfolio
   Design: Neo-arcade dark theme with cyan + magenta neon
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color palette */
  --bg-0: #06080f;
  --bg-1: #0b0f1d;
  --bg-2: #121829;
  --bg-3: #1a2238;
  --surface: rgba(20, 27, 48, 0.72);
  --surface-hi: rgba(32, 42, 70, 0.85);
  --border: rgba(120, 140, 200, 0.16);
  --border-hi: rgba(0, 245, 255, 0.35);

  --text-0: #f5f7ff;
  --text-1: #c8d0e8;
  --text-2: #8b95b3;
  --text-3: #5b6585;

  --accent-cyan: #00f5ff;
  --accent-magenta: #ff2db4;
  --accent-lime: #b6ff3c;
  --accent-amber: #ffb627;
  --accent-violet: #8b5cff;

  --grad-primary: linear-gradient(135deg, #00f5ff 0%, #ff2db4 100%);
  --grad-card: linear-gradient(160deg, rgba(0, 245, 255, 0.06), rgba(255, 45, 180, 0.04));
  --grad-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 245, 255, 0.18), transparent 60%),
               radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 45, 180, 0.15), transparent 60%);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Orbitron", var(--font-sans);

  /* Sizing */
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--accent-cyan); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

/* ---------- Background atmosphere ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle 600px at 10% 10%, rgba(0, 245, 255, 0.05), transparent),
    radial-gradient(circle 600px at 90% 80%, rgba(255, 45, 180, 0.05), transparent),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 140, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 200, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 70%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(6, 8, 15, 0.7);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease-out);
}
.site-header.scrolled { border-color: var(--border-hi); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text-0);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--grad-primary);
  position: relative;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.4);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 5px;
  background: var(--bg-0);
  z-index: 0;
}
.brand-mark span { position: relative; z-index: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-1);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--text-0); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  transition: all 0.2s var(--ease-out);
  letter-spacing: 0.04em;
}
.lang-toggle:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.lang-toggle .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  transition: all 0.2s var(--ease-out);
}
.icon-btn:hover { color: var(--text-0); border-color: var(--border-hi); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  background: rgba(0, 245, 255, 0.05);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 20px;
}
.hero-title .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-primary);
  color: #000;
  box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.5), 0 6px 24px rgba(0, 245, 255, 0.18);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.15), 0 10px 32px rgba(0, 245, 255, 0.28);
  color: #000;
}
.btn--ghost {
  border-color: var(--border-hi);
  color: var(--text-0);
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--surface-hi);
}
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero stats ---------- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- Section header ---------- */
.section-head { margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-subtitle {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1rem;
  max-width: 560px;
}

/* ---------- Game cards (featured) ---------- */
.games-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  transition: all 0.4s var(--ease-out);
}
.featured-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.12);
}
.featured-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.featured-media img,
.featured-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.featured-card:hover .featured-media img,
.featured-card:hover .featured-media video { transform: scale(1.04); }
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 15, 0.85));
  pointer-events: none;
}
.featured-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}
.featured-badge.live { color: var(--accent-lime); border-color: rgba(182, 255, 60, 0.4); }
.featured-badge.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lime); box-shadow: 0 0 6px var(--accent-lime); animation: pulse 1.8s infinite; }

.featured-body {
  position: relative;
  padding: 22px 24px 24px;
  margin-top: -60px;
  z-index: 1;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
}
.featured-title .en { color: var(--text-2); font-size: 0.9rem; font-weight: 400; margin-left: 8px; }
.featured-desc {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.featured-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.featured-actions .btn { padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Game grid (prototypes / dev) ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.game-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 15, 0.4);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.game-card:hover .play-overlay { opacity: 1; }
.play-overlay svg { width: 48px; height: 48px; color: var(--accent-cyan); filter: drop-shadow(0 0 12px var(--accent-cyan)); }

.game-status {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-lime);
}
.game-status.dev { color: var(--accent-amber); }
.game-status.jam { color: var(--accent-violet); }

.game-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 4px;
}
.game-card-desc {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.game-tags .tag { font-size: 0.68rem; padding: 2px 8px; }
.game-links { display: flex; gap: 8px; flex-wrap: wrap; }
.game-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  transition: all 0.2s var(--ease-out);
}
.game-links a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); background: rgba(0, 245, 255, 0.05); }
.game-links a.primary { background: var(--grad-primary); color: #000; border-color: transparent; }
.game-links a.primary:hover { color: #000; transform: translateY(-1px); }
.game-links svg { width: 13px; height: 13px; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-1);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.blog-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 10px; font-size: 0.74rem; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.04em; }
.blog-meta .cat { color: var(--accent-magenta); font-weight: 700; }
.blog-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-0); margin-bottom: 8px; line-height: 1.3; }
.blog-excerpt { color: var(--text-2); font-size: 0.86rem; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-tags .tag { font-size: 0.68rem; padding: 2px 8px; }

/* ---------- Blog modal ---------- */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: 32px 16px;
  overflow-y: auto;
}
.blog-modal.open { display: block; }
.blog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 15, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.blog-modal-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalIn 0.4s var(--ease-spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.blog-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-0);
  font-size: 1.2rem;
  transition: all 0.2s var(--ease-out);
}
.blog-modal-close:hover { background: var(--accent-magenta); color: #000; transform: rotate(90deg); }
.blog-modal-hero { aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-2); }
.blog-modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-modal-body { padding: 32px 36px 40px; }
.blog-modal-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.04em; }
.blog-modal-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-0); margin-bottom: 20px; line-height: 1.2; }
.blog-modal-content md { display: block; }

/* Markdown rendered content */
.markdown-body { color: var(--text-1); font-size: 0.96rem; line-height: 1.75; }
.markdown-body h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-0); margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.markdown-body h3 { font-size: 1.1rem; color: var(--text-0); margin: 24px 0 10px; }
.markdown-body p { margin: 12px 0; }
.markdown-body a { color: var(--accent-cyan); border-bottom: 1px solid rgba(0, 245, 255, 0.3); }
.markdown-body a:hover { border-bottom-color: var(--accent-cyan); }
.markdown-body ul, .markdown-body ol { margin: 12px 0; padding-left: 22px; }
.markdown-body li { margin: 6px 0; }
.markdown-body code { font-family: var(--font-mono); background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; color: var(--accent-cyan); }
.markdown-body pre { background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin: 16px 0; }
.markdown-body pre code { background: none; padding: 0; color: var(--text-1); }
.markdown-body blockquote { border-left: 3px solid var(--accent-cyan); padding: 8px 16px; margin: 16px 0; color: var(--text-2); background: rgba(0, 245, 255, 0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.markdown-body th, .markdown-body td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.markdown-body th { background: var(--bg-2); color: var(--text-0); font-weight: 700; }
.markdown-body img { border-radius: var(--radius-sm); margin: 14px 0; }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.markdown-body strong { color: var(--text-0); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-avatar {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 245, 255, 0.18));
  pointer-events: none;
}
.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-0);
  margin-bottom: 12px;
}
.about-bio { color: var(--text-1); font-size: 1rem; line-height: 1.75; margin-bottom: 20px; }
.about-bio p { margin-bottom: 12px; }
.skills { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.skill { display: flex; align-items: center; gap: 14px; }
.skill-label { font-size: 0.85rem; color: var(--text-1); font-weight: 600; min-width: 130px; }
.skill-bar { flex: 1; height: 6px; background: var(--bg-2); border-radius: var(--radius-full); overflow: hidden; }
.skill-fill { height: 100%; background: var(--grad-primary); border-radius: var(--radius-full); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.skill-bar.visible .skill-fill { transform: scaleX(1); }

.about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-1);
  transition: all 0.2s var(--ease-out);
}
.about-links a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); background: rgba(0, 245, 255, 0.05); }
.about-links svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-1);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-3); }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-links svg { width: 18px; height: 18px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 245, 255, 0.3); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .games-featured { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-avatar { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 56px; }
  .nav-links { display: none; }
  .menu-btn {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  .menu-btn svg { width: 18px; height: 18px; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 4px;
  }
  .nav-links.mobile-open a { width: 100%; }
  .hero-stats { gap: 32px; }
  .blog-modal-body { padding: 24px 22px 32px; }
  .blog-modal-title { font-size: 1.4rem; }
}

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

/* ---------- Utility ---------- */
.hidden { display: none !important; }
[data-i18n] { transition: opacity 0.2s; }
.lang-switching [data-i18n] { opacity: 0; }
