/* ===========================
   Pixel Font Import
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ===========================
   CSS Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #080d18;
  --bg-alt:    #0d1525;
  --surface:   #111827;
  --surface-2: #1a2540;
  --primary:   #00d4ff;
  --primary-d: rgba(0, 212, 255, 0.10);
  --accent:    #f97316;
  --text:      #dde4f0;
  --muted:     #6b7c93;
  --border:    rgba(0, 212, 255, 0.12);
  --border-s:  rgba(0, 212, 255, 0.4);
  --glow:      0 0 22px rgba(0, 212, 255, 0.18);
  --shadow:    0 8px 40px rgba(0, 0, 0, 0.65);
  --radius:    3px;
  --nav-h:     62px;
  --max-w:     1100px;
  --t:         0.25s ease;
  --pixel-font: 'Press Start 2P', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Scanlines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 3px
  );
  pointer-events: none;
  z-index: 9990;
}

/* ===========================
   Page Transition Overlay
   =========================== */
.page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.page-transition.fade-active {
  opacity: 1;
  pointer-events: all;
}

a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: #fff; }
ul { list-style: none; }

/* ===========================
   Layout utilities
   =========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 3rem; }

.section-num {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.75;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
}

.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--primary);
  margin-top: 0.65rem;
  box-shadow: var(--glow);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* ===========================
   Navbar (hamburger-only)
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: rgba(8, 13, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-s);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all var(--t);
}
.lang-toggle:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* Hamburger button */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Menu Overlay
   =========================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
}
.menu-overlay.open { visibility: visible; }

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 24, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.menu-overlay.open .menu-backdrop { opacity: 1; }

.menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border-s);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.menu-overlay.open .menu-panel { transform: translateX(0); }

.menu-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-left: auto;
  margin-bottom: 2rem;
  transition: all var(--t);
  flex-shrink: 0;
}
.menu-close:hover { border-color: var(--primary); color: var(--primary); }

.menu-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.menu-logo span { color: var(--primary); }

.menu-tagline {
  font-family: var(--pixel-font);
  font-size: 0.52rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}
.menu-nav a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all var(--t);
}
.menu-nav a:hover { color: var(--primary); padding-left: 0.4rem; }

.menu-num {
  font-family: var(--pixel-font);
  font-size: 0.48rem;
  color: var(--primary);
  opacity: 0.65;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.menu-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.menu-bottom-label {
  font-family: var(--pixel-font);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.9;
}
.menu-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.menu-contacts a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--t);
  word-break: break-all;
}
.menu-contacts a:hover { color: var(--primary); }

.menu-lang-row {
  display: flex;
  gap: 0.5rem;
}

/* ===========================
   Hero
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Pixel grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 72%);
  pointer-events: none;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--pixel-font);
  font-size: 0.58rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-name .accent { color: var(--primary); }

/* Blinking cursor after hero name */
.hero-name::after {
  content: '_';
  color: var(--primary);
  animation: blink-cursor 1s step-end infinite;
  font-size: 0.55em;
  vertical-align: bottom;
  margin-left: 0.06em;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-desc {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta-item {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: blink 2.2s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ===========================
   Featured Projects
   =========================== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.7), var(--glow);
  border-color: var(--border-s);
}

/* Corner bracket decorations */
.project-card::before,
.project-card::after {
  content: '';
  position: absolute;
  width: 13px; height: 13px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0;
  transition: opacity var(--t);
  z-index: 2;
}
.project-card::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.project-card::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.project-card:hover::before,
.project-card:hover::after { opacity: 1; }

/* Thumbnail */
.project-thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.project-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 1;
}
.project-thumb-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}
.thumb-icon { font-size: 2.75rem; }
.thumb-label {
  font-family: var(--pixel-font);
  font-size: 0.46rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* Real screenshot image inside thumb */
.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay for image-backed thumbnails */
.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.65rem 1rem;
  background: linear-gradient(transparent 25%, rgba(0,0,0,0.80));
  z-index: 2;
}

.thumb-gc     { background: linear-gradient(135deg, #1a0a2e 0%, #2b1565 55%, #0d0a1a 100%); }
.thumb-wrom   { background: linear-gradient(135deg, #0a1a0d 0%, #14532d 55%, #0a0a14 100%); }
.thumb-lum    { background: linear-gradient(135deg, #001a2e 0%, #0c3d5a 55%, #001018 100%); }
.thumb-web    { background: linear-gradient(135deg, #16163a 0%, #3b2878 55%, #0a0a1a 100%); }
.thumb-chroma { background: linear-gradient(135deg, #0d0a1a 0%, #6b21a8 35%, #be185d 65%, #0891b2 100%); }

/* Project body */
.project-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-type {
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  line-height: 1.8;
}
.project-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.project-role-date {
  font-size: 0.8rem;
  color: var(--muted);
}
.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tag {
  background: var(--primary-d);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  border: 1px solid rgba(0,212,255,0.22);
  letter-spacing: 0.04em;
  display: inline-block;
}
.tag-accent {
  background: rgba(249,115,22,0.1);
  color: var(--accent);
  border-color: rgba(249,115,22,0.25);
}
.project-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.project-link-ext {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--t);
}
.project-link-ext:hover { color: #fff; }

/* Non-clickable project card — subtle hover only */
.card-no-link {
  cursor: default;
}
.card-no-link:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0, 212, 255, 0.22);
}
.card-no-link:hover::before,
.card-no-link:hover::after { opacity: 0; }

/* ===========================
   About (index card + standalone)
   =========================== */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--bg);
  border: 3px solid rgba(0,212,255,0.3);
  box-shadow: 0 0 30px rgba(0,212,255,0.12);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.about-text p:last-of-type { margin-bottom: 1.25rem; }

/* ===========================
   Skills
   =========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--t);
}
.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.22);
}
.skill-card-title {
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1.2rem;
  line-height: 1.9;
}
.skill-list { display: flex; flex-direction: column; gap: 0.4rem; }
.skill-list li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-list li::before {
  content: '▸';
  color: var(--primary);
  font-size: 0.65rem;
}
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ===========================
   Contact
   =========================== */
.contact-intro {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t), color var(--t);
  text-decoration: none;
}
.contact-item:hover {
  border-color: var(--border-s);
  box-shadow: var(--glow);
  color: var(--primary);
}
.contact-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-d);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-label {
  font-family: var(--pixel-font);
  font-size: 0.44rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
  line-height: 1.9;
}
.contact-value {
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
}

/* ===========================
   Experience & Education (about page)
   =========================== */
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
}
.experience-card:last-child { margin-bottom: 0; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.exp-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.exp-location { color: var(--muted); font-size: 0.85rem; margin-top: 0.1rem; }
.exp-dates {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.exp-role {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1rem;
}
.exp-bullets { display: flex; flex-direction: column; gap: 0.5rem; }
.exp-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.65rem;
}
.exp-bullets li::before {
  content: '▸';
  color: var(--primary);
  flex-shrink: 0;
}

.education-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.edu-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.edu-location  { color: var(--muted); font-size: 0.85rem; }
.edu-dates     { font-family: 'Courier New', monospace; font-size: 0.8rem; color: var(--muted); }
.edu-degree    { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.9rem; }
.edu-details   { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.edu-badge {
  background: var(--primary-d);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 2px;
  border: 1px solid rgba(0,212,255,0.22);
}
.edu-coursework-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.edu-coursework-list { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

/* ===========================
   Page Hero (sub-pages)
   =========================== */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-s), transparent);
}
.page-eyebrow {
  font-family: var(--pixel-font);
  font-size: 0.52rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  line-height: 1.9;
}
.page-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-name  { font-weight: 800; color: var(--primary); margin-bottom: 0.4rem; font-size: 1rem; }
.footer-copy  { font-size: 0.8rem; color: var(--muted); }
.footer-contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.footer-contacts a { font-size: 0.8rem; color: var(--muted); transition: color var(--t); }
.footer-contacts a:hover { color: var(--primary); }

/* ===========================
   Scroll-reveal animation
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 640px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar { margin: 0 auto; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .section-title::after { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-meta { gap: 1rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===========================
   Pixel-style Details button
   =========================== */
.btn-pixel {
  font-family: var(--pixel-font);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.6rem 1.1rem;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
/* btn-pixel:hover defined later with pixel-flicker animation */

/* ===========================
   Game Detail Page
   =========================== */
.game-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.game-overview-thumb {
  height: 340px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-s);
}
/* Old grid ::before removed — real images now fill the thumbnail */
.game-overview-thumb .project-thumb-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  z-index: 2;
}
.game-overview-thumb .thumb-icon { font-size: 4rem; }

.game-info h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.game-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.game-info .game-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.game-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.game-section h2 {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  line-height: 2;
}
.game-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}
.game-section ul li {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.65rem;
  line-height: 1.7;
}
.game-section ul li::before {
  content: '▸';
  color: var(--primary);
  flex-shrink: 0;
}

.game-back {
  margin-bottom: 2rem;
}
.game-back a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.game-back a:hover { color: var(--primary); }

@media (max-width: 700px) {
  .game-overview {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Screenshot Gallery
   =========================== */
.screenshot-gallery {
  position: relative;
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.gallery-slides {
  display: flex;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  min-width: 100%;
  position: relative;
  line-height: 0;
}

.gallery-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.65rem;
  pointer-events: none;
}

.gallery-btn {
  font-family: var(--pixel-font);
  font-size: 0.46rem;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  pointer-events: all;
  transition: background var(--t), color var(--t);
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.gallery-btn:hover {
  background: var(--primary);
  color: var(--bg);
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.gallery-dots {
  display: flex;
  gap: 0.5rem;
}

.gallery-dot {
  width: 6px; height: 6px;
  background: var(--border-s);
  cursor: pointer;
  transition: background var(--t);
  border-radius: 1px;
}
.gallery-dot.active { background: var(--primary); }

.gallery-caption {
  font-family: var(--pixel-font);
  font-size: 0.44rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  line-height: 1.8;
}

/* ===========================
   Typewriter cursor
   =========================== */
.typewriter-active::after {
  content: '|';
  color: var(--primary);
  animation: tw-blink 0.65s step-end infinite;
  margin-left: 1px;
}
@keyframes tw-blink {
  50% { opacity: 0; }
}

/* ===========================
   Pixel flicker on btn-pixel hover
   =========================== */
.btn-pixel:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--glow);
  animation: px-flicker 0.12s step-end 2;
}
@keyframes px-flicker {
  50% { opacity: 0.88; }
}

@media (max-width: 600px) {
  .game-overview-thumb { height: 300px; }
  .gallery-slide img { height: 350px; }
}

