/* =============================================
   VARIABLES & RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pixel:       'Press Start 2P', monospace;
  --body:        'Nunito', system-ui, sans-serif;

  --bg:          #080810;
  --bg2:         #0d0d1a;
  --bg3:         #101020;
  --card:        #12121f;
  --card2:       #16162a;
  --border:      #2a2a45;
  --border-glow: #5a4aff;

  --neon:        #c8b8ff;      /* soft purple — hero accent */
  --neon2:       #7fffb2;      /* mint green  — secondary  */
  --neon3:       #ffb347;      /* amber       — highlight  */
  --neon4:       #ff6b9d;      /* pink        — special    */
  --neon5:       #5de4ff;      /* cyan        — info       */

  --text:        #d8d8f0;
  --text-muted:  #7070a0;

  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 4px 30px rgba(0,0,0,0.6);
  --glow:        0 0 16px rgba(200,184,255,0.25);
  --t:           0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: var(--neon); text-decoration: none; transition: color var(--t); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── PIXEL TEXT ─────────────────────────────── */
.pixel-text { font-family: var(--pixel); }

/* ── SCANLINES ───────────────────────────────── */
.scanlines {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
}

/* ── PIXEL CANVAS ────────────────────────────── */
#pixel-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.35;
}

/* ── UTILITY ─────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.section   { padding: 100px 0; position: relative; }

.section-title {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(200,184,255,0.5);
}
.title-icon { margin-right: 0.6em; }

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.9rem;
}
.section-subtitle code {
  background: var(--card2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--neon2);
  font-size: 0.82rem;
}

.sub-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--neon);
  margin: 3rem 0 1.5rem;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  position: relative;
}
.btn-primary {
  background: var(--neon);
  color: #0a0010;
  border-color: var(--neon);
}
.btn-primary:hover {
  background: #fff;
  color: #0a0010;
  box-shadow: 0 0 20px rgba(200,184,255,0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--neon);
  border-color: var(--neon);
}
.btn-outline:hover {
  background: var(--neon);
  color: #0a0010;
  transform: translateY(-2px);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--pixel);
  font-size: 0.9rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(200,184,255,0.6);
}
.pixel-bracket { color: var(--neon2); }

.nav-links { list-style: none; display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: var(--pixel);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--t), text-shadow var(--t);
}
.nav-links a:hover { color: var(--neon); text-shadow: 0 0 10px rgba(200,184,255,0.5); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 2rem 60px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(108,90,255,0.12) 0%, transparent 65%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

/* grid lines background */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
}

.hero-pre {
  font-size: 0.6rem;
  color: var(--neon2);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  animation: blink 1.4s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-content { position: relative; z-index: 1; max-width: 640px; }

.avatar-wrapper {
  width: 140px; height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);          /* square — pixel character feel */
  overflow: hidden;
  border: 3px solid var(--neon);
  box-shadow: 0 0 0 6px rgba(200,184,255,0.1), var(--glow);
  image-rendering: pixelated;
}
.avatar { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-family: var(--pixel);
  font-size: 1.5rem;
  background: linear-gradient(135deg, #1a0d40, #0d1a40);
  color: var(--neon);
}

.hero-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 30px rgba(200,184,255,0.3);
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--neon);
  margin-bottom: 1rem;
}

.hero-langs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.lang-badge {
  font-family: var(--pixel);
  font-size: 0.55rem;
  padding: 0.3rem 0.7rem;
  background: var(--card2);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  color: var(--neon2);
  letter-spacing: 0.1em;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.9;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.5rem; color: var(--text-muted); letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* =============================================
   ABOUT / CHARACTER STATS
   ============================================= */
.about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-text strong { color: var(--text); }

/* Skill bars */
.skill-bars { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.skill-bar-item { display: flex; align-items: center; gap: 0.8rem; }
.skill-name { font-size: 0.82rem; color: var(--text-muted); width: 180px; flex-shrink: 0; }
.bar-track {
  flex: 1; height: 10px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 0 6px rgba(200,184,255,0.4);
}
.bar-val { font-family: var(--pixel); font-size: 0.5rem; color: var(--neon2); width: 32px; text-align: right; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.stat-card:hover { border-color: var(--neon); box-shadow: var(--glow); }
.stat-number {
  display: block;
  font-size: 0.9rem;
  color: var(--neon);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* Inventory */
.inventory-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
}
.inventory-title {
  font-size: 0.6rem;
  color: var(--neon3);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.inv-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: default;
  transition: all var(--t);
}
.inv-item:hover { border-color: var(--neon3); color: var(--text); }
.inv-icon { font-size: 1.2rem; margin-bottom: 0.3rem; }

/* =============================================
   LANGUAGES
   ============================================= */
.languages { background: var(--bg3); }

.lang-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.lang-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all var(--t);
}
.lang-card:hover { border-color: var(--neon); box-shadow: var(--glow); transform: translateY(-4px); }
.lang-card.featured { border-color: var(--neon); background: var(--card2); }

.lang-flag { font-size: 2.5rem; margin-bottom: 0.7rem; }
.lang-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; }

.lang-level {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 0.7rem;
}
.level-pip {
  width: 16px; height: 8px;
  border-radius: 2px;
  background: var(--card2);
  border: 1px solid var(--border);
}
.level-pip.active {
  background: var(--neon2);
  border-color: var(--neon2);
  box-shadow: 0 0 6px rgba(127,255,178,0.5);
}

.lang-tier {
  display: inline-block;
  font-size: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(200,184,255,0.1);
  border: 1px solid var(--neon);
  border-radius: 3px;
  color: var(--neon);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.lang-note { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   GAMES / COMPLETED QUESTS
   ============================================= */
.games { background: var(--bg2); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.game-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--shadow);
}

.game-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.game-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}
.game-cover-placeholder {
  font-size: 0.55rem;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-align: center;
  text-shadow: 0 0 12px rgba(200,184,255,0.4);
  position: relative; z-index: 1;
}

.game-info { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.game-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.genre-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--neon5);
}
.game-lang {
  font-size: 0.48rem;
  padding: 0.25rem 0.6rem;
  background: rgba(200,184,255,0.1);
  border: 1px solid var(--neon);
  border-radius: 3px;
  color: var(--neon);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.game-info h3 { font-size: 1rem; font-weight: 800; color: #fff; }
.game-studio { font-size: 0.78rem; color: var(--neon3); font-weight: 600; }
.game-desc { font-size: 0.83rem; color: var(--text-muted); flex: 1; }

.game-stats {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

/* =============================================
   LOCALIZATION SAMPLES
   ============================================= */
.samples { background: var(--bg3); }

.samples-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.sample-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.sample-card:hover { border-color: var(--neon2); }

.sample-header {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card2);
  padding: 0.7rem 1.4rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 0.5rem;
}
.sample-type { font-size: 0.52rem; color: var(--neon3); letter-spacing: 0.1em; }
.sample-pair { font-size: 0.5rem; color: var(--neon2); letter-spacing: 0.1em; }

.sample-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.sample-col { padding: 1.2rem 1.4rem; }
.sample-lang {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.sample-text {
  font-size: 0.88rem;
  line-height: 1.75;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
}
.sample-text.source em { color: var(--neon3); font-style: normal; font-weight: 700; }
.sample-text.target em { color: var(--neon2); font-style: normal; font-weight: 700; }

.sample-arrow {
  font-size: 1.2rem;
  color: var(--neon);
  padding: 0 0.5rem;
  text-shadow: var(--glow);
}

/* UI strings sample */
.ui-strings { display: flex; flex-direction: column; gap: 0.5rem; }
.ui-row code {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--neon3);
}
.target-ui code { color: var(--neon2); }

.sample-note {
  padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--card2);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--bg2); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all var(--t);
}
.testimonial-card:hover { border-color: var(--neon4); box-shadow: 0 0 20px rgba(255,107,157,0.1); transform: translateY(-3px); }

.stars { font-size: 0.6rem; color: var(--neon3); letter-spacing: 0.1em; margin-bottom: 1rem; }
.testimonial-card p { font-size: 0.88rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.2rem; line-height: 1.8; }
.testimonial-author { display: flex; flex-direction: column; }
.testimonial-author strong { font-size: 0.9rem; color: var(--text); }
.testimonial-author span { font-size: 0.78rem; color: var(--neon); }

/* =============================================
   RESUME
   ============================================= */
.resume-section { background: var(--bg3); }

.resume-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }

.resume-preview {
  position: relative; width: 100%; height: 580px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.resume-preview iframe { width: 100%; height: 100%; border: none; }
.resume-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  pointer-events: none;
  letter-spacing: 0.1em;
}

.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.edu-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  transition: border-color var(--t);
}
.edu-card:hover { border-color: var(--neon); }
.edu-year { font-size: 0.5rem; color: var(--neon2); font-family: var(--pixel); white-space: nowrap; padding-top: 0.2rem; }
.edu-info { display: flex; flex-direction: column; gap: 0.2rem; }
.edu-info strong { font-size: 0.9rem; color: var(--text); }
.edu-info span { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.contact-icon { font-size: 0.7rem; color: var(--neon); }
.contact-item a { color: var(--text-muted); font-size: 0.9rem; }
.contact-item a:hover { color: #fff; }

.availability-box {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--neon2);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin: 1.5rem 0 1rem;
}
.avail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--neon2);
  box-shadow: 0 0 8px var(--neon2);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.avail-text { font-size: 0.48rem; color: var(--neon2); letter-spacing: 0.08em; }

.rate-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.rate-label { font-size: 0.5rem; color: var(--neon3); margin-bottom: 0.4rem; letter-spacing: 0.1em; }
.rate-box p { font-size: 0.85rem; color: var(--text-muted); }
.rate-note { font-size: 0.78rem !important; margin-top: 0.3rem; }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.9rem;
  transition: border-color var(--t);
  resize: vertical;
}
.contact-form select { cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(200,184,255,0.1);
}
.contact-form option { background: var(--card2); }
.form-note { font-size: 0.5rem; color: var(--neon2); min-height: 1.2em; letter-spacing: 0.06em; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer p { font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.footer-sub { font-size: 0.82rem !important; font-family: var(--body) !important; letter-spacing: 0 !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg2);
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .inventory-grid { grid-template-columns: repeat(4, 1fr); }
  .sample-body { grid-template-columns: 1fr; }
  .sample-arrow { transform: rotate(90deg); text-align: center; padding: 0.5rem 0; }
}

@media (max-width: 540px) {
  .section { padding: 70px 0; }
  .games-grid { grid-template-columns: 1fr; }
  .inventory-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .section-title { font-size: 0.7rem; }
}
