/* ═══════════════════════════════════════════════════════════════════
   WORLD MAP PORTFOLIO — Futuristic Dark + Constellation Theme
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-deep:    #0a0e1a;
  --bg-primary: #0d1120;
  --bg-region:  #0f1428;
  --bg-card:    rgba(15, 20, 42, 0.78);
  --bg-card-hover: rgba(20, 28, 55, 0.92);
  --neon-cyan:  #00e5ff;
  --neon-pink:  #ff4da6;
  --neon-gold:  #ffc400;
  --neon-green: #00ff88;
  --neon-purple: #b388ff;
  --hud-line:   rgba(0, 229, 255, 0.12);
  --hud-dim:    rgba(0, 229, 255, 0.05);
  --text-primary:   #e8ecf8;
  --text-secondary: #8a95b8;
  --glass-border: rgba(0, 229, 255, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hud:  'Space Grotesk', 'Inter', var(--font-body);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow-cyan: 0 0 24px rgba(0, 229, 255, 0.18);
  --shadow-glow-pink: 0 0 24px rgba(255, 77, 166, 0.18);
  --shadow-glow-purple: 0 0 24px rgba(179, 136, 255, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.8s ease;
}

/* ── Starfield Canvas ── */
#starfield {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   CINEMATIC OVERLAYS
   ═══════════════════════════════════════════════════════════════════ */

/* Mouse glow follower */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.07) 0%,
    rgba(179, 136, 255, 0.04) 30%,
    rgba(255, 77, 166, 0.02) 50%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
.mouse-glow.active {
  opacity: 1;
}

/* Film grain */
.grain-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.06;
  filter: url(#grain);
  width: 100%;
  height: 100%;
  animation: grain-shift 0.5s steps(4) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-2%, 3%); }
  50%      { transform: translate(3%, -1%); }
  75%      { transform: translate(-1%, -2%); }
}

/* Light leak — warm ambient glow */
.light-leak {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,229,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(179,136,255,0.035) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 90%, rgba(255,77,166,0.025) 0%, transparent 45%);
  animation: leak-drift 14s ease-in-out infinite alternate;
}

@keyframes leak-drift {
  0%   { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50%  { opacity: 0.9; transform: translate(2vw, 1vh) scale(1.05); }
  100% { opacity: 0.4; transform: translate(-1.5vw, -1vh) scale(1.02); }
}

/* Vignette — camera lens feel */
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ── Scanlines ── */
.scanlines {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.012) 2px,
    rgba(0, 229, 255, 0.012) 4px
  );
}

/* ═══════════════════════════════════════════════════════════════════
   HUD COMPONENTS
   ═══════════════════════════════════════════════════════════════════ */

.hud-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hud-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.7;
}

.hud-tag {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 4px 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.06);
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.hud-tag:hover {
  transform: scale(1.12) rotate(-2deg);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border: 2px solid var(--neon-cyan);
  border-radius: var(--radius-full);
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.06);
  font-family: var(--font-hud);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-glow-cyan);
}
.btn-neon:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.3);
  transform: translateY(-4px) scale(1.05);
}
.btn-neon:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* ═══════════════════════════════════════════════════════════════════
   PROGRESS RAIL — Bigger, bolder, cinematic
   ═══════════════════════════════════════════════════════════════════ */
.progress-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 16px 8px;
  background: rgba(10, 14, 26, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rail-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 8px 6px;
}
.rail-node:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 6px; border-radius: 50%; }

.rail-node:not(:last-child)::after {
  content: '';
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(0,229,255,0.2), rgba(179,136,255,0.15));
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.rail-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 229, 255, 0.25);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
}

.rail-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.4s ease;
}

.rail-node.active .rail-dot {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0,229,255,0.45), 0 0 40px rgba(0,229,255,0.15);
  transform: scale(1.15);
}

.rail-node.active .rail-dot::after {
  border-color: rgba(0,229,255,0.2);
}

.rail-node:hover .rail-dot {
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 12px rgba(0,229,255,0.2);
  transform: scale(1.08);
}

.rail-label {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-top: 6px;
  transition: all 0.4s ease;
  text-align: center;
  opacity: 0.5;
}

.rail-node.active .rail-label {
  color: var(--neon-cyan);
  opacity: 1;
  text-shadow: 0 0 10px rgba(0,229,255,0.3);
}

.rail-node:hover .rail-label {
  opacity: 0.8;
}
.rail-node.active .rail-label { color: var(--neon-cyan); }

/* ═══════════════════════════════════════════════════════════════════
   WARP BUTTON
   ═══════════════════════════════════════════════════════════════════ */
.warp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--bg-card);
  border: 2px solid var(--neon-pink);
  border-radius: var(--radius-full);
  color: var(--neon-pink);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-glow-pink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.warp-btn:hover {
  background: rgba(232, 67, 147, 0.08);
  box-shadow: 0 0 32px rgba(232, 67, 147, 0.25);
  transform: translateY(-3px);
}
.warp-icon { display: flex; align-items: center; }

/* ═══════════════════════════════════════════════════════════════════
   MINIMAP OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
.minimap-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(6, 8, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.minimap-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.minimap-panel {
  padding: 32px 36px;
  max-width: 380px;
  width: 90%;
}

.minimap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.minimap-close {
  background: none;
  border: 1.5px solid var(--neon-pink);
  color: var(--neon-pink);
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.minimap-close:hover { background: rgba(232, 67, 147, 0.08); }

.minimap-svg { width: 100%; height: auto; }
.map-path {
  stroke: rgba(0, 194, 209, 0.15);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}
.node-ring {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2;
  opacity: 0.3;
  transition: all 0.3s ease;
}
.node-core {
  fill: rgba(0, 194, 209, 0.15);
  transition: all 0.3s ease;
}
.node-label {
  fill: var(--text-secondary);
  font-family: var(--font-hud);
  font-size: 10px;
  text-anchor: middle;
  dominant-baseline: central;
  font-weight: 700;
}
.map-name {
  fill: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 11px;
  text-anchor: middle;
}
.map-node.active .node-ring {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.map-node.active .node-core { fill: var(--neon-cyan); }
.map-node.active .node-label { fill: var(--neon-cyan); }
.map-node { cursor: pointer; }
.map-node:hover .node-ring { opacity: 0.7; }
.map-node:hover .node-core { fill: rgba(0, 194, 209, 0.3); }

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PANEL (kept for backwards compat, hidden)
   ═══════════════════════════════════════════════════════════════════ */
.detail-panel {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   REGIONS
   ═══════════════════════════════════════════════════════════════════ */
.region {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px;
  overflow: hidden;
}

.region-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute; inset: -20%;
  will-change: transform;
}

/* Terrain patterns — dark, atmospheric */
.spawn-zone .parallax-layer[data-depth="0.05"] {
  background:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(0,229,255,0.2), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(179,136,255,0.15), transparent),
    radial-gradient(1.5px 1.5px at 55% 35%, rgba(0,229,255,0.18), transparent),
    radial-gradient(1px 1px at 75% 75%, rgba(255,77,166,0.12), transparent),
    radial-gradient(1px 1px at 90% 25%, rgba(0,229,255,0.14), transparent);
  background-size: 220px 220px;
}
.spawn-zone .parallax-layer[data-depth="0.15"] {
  background:
    radial-gradient(2px 2px at 20% 45%, rgba(179,136,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(0,229,255,0.14), transparent),
    radial-gradient(2px 2px at 85% 20%, rgba(255,77,166,0.16), transparent);
  background-size: 320px 320px;
}

.about-zone {
  background: rgba(0, 229, 255, 0.02);
}
.about-zone .parallax-layer {
  background:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.experience-zone .parallax-layer {
  background:
    radial-gradient(circle at 50% 50%, rgba(179,136,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.skills-zone {
  background: rgba(0, 255, 136, 0.015);
}
.skills-zone .parallax-layer {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

.education-zone .parallax-layer {
  background:
    linear-gradient(0deg, transparent 49.5%, rgba(179,136,255,0.025) 49.5%, rgba(179,136,255,0.025) 50.5%, transparent 50.5%);
  background-size: 100px 60px;
}

.contact-zone {
  background: rgba(255, 77, 166, 0.02);
}
.contact-zone .parallax-layer {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,77,166,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Portal ring */
.portal-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  opacity: 0.15;
}
.ring-outer {
  fill: none;
  stroke: var(--neon-pink);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
  animation: spinRing 30s linear infinite;
}
.ring-inner {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 1;
  stroke-dasharray: 4 8;
  animation: spinRing 20s linear infinite reverse;
}
.ring-core {
  fill: none;
  stroke: var(--neon-purple);
  stroke-width: 0.5;
  stroke-dasharray: 2 12;
  animation: spinRing 15s linear infinite;
}
@keyframes spinRing {
  to { transform-origin: center; transform: rotate(360deg); }
}

.region-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
}

.region-header { margin-bottom: 52px; }

.region-title {
  font-family: var(--font-hud);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero-layout {
  display: flex;
  align-items: center;
  gap: 64px;
  justify-content: center;
}

/* Avatar */
.avatar-container {
  flex-shrink: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.avatar-container.hidden {
  opacity: 0;
  transform: scale(0.85);
}

.avatar-frame {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  padding: 4px;
  position: relative;
  animation: pulseFrame 3s ease-in-out infinite;
}

@keyframes pulseFrame {
  0%, 100% { box-shadow: 0 0 18px rgba(0,229,255,0.2); }
  50% { box-shadow: 0 0 40px rgba(0,229,255,0.35), 0 0 70px rgba(179,136,255,0.15); }
}

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

.avatar-placeholder {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #0a0e1a;
  border-radius: 50%;
}

.hero-text { text-align: left; }

.hero-name {
  font-family: var(--font-hud);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 14px 0;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(0,229,255,0.2));
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 1.12rem;
  margin: 18px 0 28px;
  max-width: 460px;
  line-height: 1.8;
}

.hero-coords {
  font-family: var(--font-hud);
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  opacity: 0.7;
}

/* Glitch hover */
.glitch-text { position: relative; }
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.glitch-text:hover::before {
  opacity: 0.8;
  color: var(--neon-cyan);
  animation: glitch1 0.3s ease;
}
.glitch-text:hover::after {
  opacity: 0.8;
  color: var(--neon-pink);
  animation: glitch2 0.3s ease;
}
@keyframes glitch1 {
  0% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(0); }
}
@keyframes glitch2 {
  0% { transform: translate(0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-panel { padding: 32px; }
.about-panel .panel-header { margin-bottom: 18px; }
.about-panel p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.85;
}
.about-panel strong { color: var(--text-primary); }

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-card {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-xl);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover {
  box-shadow: var(--shadow-glow-cyan), var(--shadow-hover);
  transform: translateY(-6px) scale(1.04);
}
.stat-card:hover .stat-number {
  animation: stat-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stat-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.stat-number {
  font-family: var(--font-hud);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(0,229,255,0.3);
}
.stat-suffix {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0,229,255,0.3);
}
.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin-top: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-hud);
}

/* ═══════════════════════════════════════════════════════════════════
   EXPERIENCE — Always visible, no popup
   ═══════════════════════════════════════════════════════════════════ */
.quest-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 40px;
}

.quest-path::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  border-radius: var(--radius-full);
}

/* Card spotlight — glow follows cursor inside the card */
.hud-panel,
.quest-card,
.skill-chest,
.edu-card,
.contact-card,
.stat-card {
  --mx: 50%;
  --my: 50%;
}

.hud-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    300px circle at var(--mx) var(--my),
    rgba(0, 229, 255, 0.06) 0%,
    transparent 60%
  );
  z-index: 1;
}

.hud-panel:hover::after {
  opacity: 1;
}

.quest-card {
  padding: 30px 32px;
  border-radius: var(--radius-xl);
  cursor: default;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.quest-card:hover {
  box-shadow: var(--shadow-glow-cyan), var(--shadow-hover);
  transform: translateY(-5px) scale(1.015) rotate(-0.5deg);
}
.quest-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}

/* POI dot — now a circle */
.quest-poi {
  position: absolute;
  left: -40px;
  top: 34px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poi-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 10px rgba(0, 194, 209, 0.35);
  animation: pulseDot 2.5s ease-in-out infinite;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quest-card:hover .poi-dot {
  box-shadow: 0 0 22px var(--neon-gold), 0 0 44px rgba(255, 196, 0, 0.2);
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-pink));
  transform: scale(1.4);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.quest-header h3 {
  font-family: var(--font-hud);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.quest-company {
  color: var(--neon-gold);
  font-weight: 600;
  font-size: 0.95rem;
}
.quest-date {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 0.74rem;
  color: var(--text-secondary);
  padding: 3px 14px;
  border: 1px solid rgba(0, 194, 209, 0.15);
  border-radius: var(--radius-full);
  margin-top: 8px;
  background: rgba(0, 194, 209, 0.04);
}

/* Always visible details */
.quest-expand {
  max-height: none;
  overflow: visible;
}

.quest-hint {
  display: none;
}

.quest-details {
  list-style: none;
  margin-top: 18px;
}
.quest-details li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.75;
}
.quest-details li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--neon-green);
  font-size: 0.55rem;
  top: 6px;
}

.quest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quest-tags span {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  padding: 4px 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius-full);
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.06);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════
   SKILLS ARENA
   ═══════════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.skill-chest {
  padding: 28px;
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skill-chest:hover {
  box-shadow: var(--shadow-glow-purple), var(--shadow-hover);
  transform: translateY(-7px) scale(1.03);
}
.skill-chest:hover .chest-icon {
  animation: icon-wiggle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes icon-wiggle {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(-12deg) scale(1.2); }
  50%  { transform: rotate(10deg) scale(1.15); }
  75%  { transform: rotate(-5deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

.chest-icon {
  margin-bottom: 14px;
  display: block;
  color: var(--neon-cyan);
}
.skill-chest h3 {
  font-family: var(--font-hud);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--neon-purple);
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(179,136,255,0.2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-hud);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.05);
  cursor: default;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}
.chip:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
  transform: translateY(-5px) scale(1.1);
}
.chip:active {
  transform: translateY(-1px) scale(0.95);
  transition-duration: 0.1s;
}

/* ═══════════════════════════════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.edu-card {
  padding: 30px 30px 30px 40px;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}
.edu-card:hover {
  box-shadow: var(--shadow-glow-cyan), var(--shadow-hover);
  transform: translateY(-4px);
}

.edu-accent {
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
}

.edu-card h3 {
  font-family: var(--font-hud);
  font-size: 1.12rem;
  letter-spacing: 0.5px;
  margin: 12px 0 8px;
  color: var(--text-primary);
}
.edu-school {
  color: var(--neon-gold);
  font-weight: 600;
  font-size: 0.95rem;
}
.edu-date {
  font-family: var(--font-hud);
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 40px;
  font-family: var(--font-hud);
  letter-spacing: 1.5px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  color: var(--neon-cyan);
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.copy-btn {
  font-family: var(--font-hud);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border: 1.5px solid var(--neon-pink);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--neon-pink);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.copy-btn:hover {
  background: rgba(232, 67, 147, 0.08);
  box-shadow: 0 0 12px rgba(232, 67, 147, 0.15);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: var(--font-hud);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: var(--neon-green);
  background: rgba(0, 184, 148, 0.1);
  border: 1.5px solid var(--neon-green);
  border-radius: var(--radius-md);
  padding: 12px 28px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL REVEAL — Cinematic scene transitions
   ═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Cinematic scene-enter flash */
.region.scene-enter::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 100;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.12) 0%, transparent 70%);
  animation: scene-flash 1.2s ease-out forwards;
}

@keyframes scene-flash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .hero-text { text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stat-card { min-width: 150px; flex: 1; }
}

@media (max-width: 768px) {
  .region { padding: 80px 22px; }
  .progress-rail { left: 12px; padding: 12px 4px; }
  .rail-dot { width: 16px; height: 16px; }
  .rail-label { font-size: 0.48rem; }
  .avatar-frame { width: 170px; height: 170px; }
  .contact-grid { flex-direction: column; align-items: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-name { font-size: 1.6rem; }
  .stat-row { flex-direction: column; }
  .avatar-frame { width: 150px; height: 150px; }
  .quest-path { padding-left: 32px; }
  .quest-path::before { left: 10px; }
  .quest-poi { left: -32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .avatar-container { transition: none; }
  .poi-dot { animation: none; }
  .grain-overlay, .light-leak, .vignette { display: none; }
}
