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

:root {
  --bg: #08080e;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-hover: rgba(255,255,255,0.15);
  --gold: #f5a623;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --text: #e4e4ec;
  --text-dim: #6b6b80;
  --text-mid: #9999ad;
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  line-height: 1.6;
}

/* ===== Ambient blobs ===== */
.ambient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--gold);
  top: -10%; left: -5%;
  animation-duration: 18s;
}

.blob-2 {
  width: 450px; height: 450px;
  background: var(--purple);
  top: 30%; right: -10%;
  animation-delay: -5s;
  animation-duration: 22s;
}

.blob-3 {
  width: 350px; height: 350px;
  background: var(--cyan);
  bottom: -5%; left: 20%;
  animation-delay: -10s;
  animation-duration: 25s;
}

.blob-4 {
  width: 300px; height: 300px;
  background: var(--rose);
  top: 60%; left: 50%;
  animation-delay: -7s;
  animation-duration: 20s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.1); }
  66%  { transform: translate(-30px, 40px) scale(0.9); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

/* ===== Grid overlay ===== */
.grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 0%, transparent 100%);
}

/* ===== Grain ===== */
.grain {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Cursor glow ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease, top 0.3s ease;
  will-change: left, top;
}

/* ===== Page ===== */
.page {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Glass ===== */
.glass {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease;
  cursor: pointer;
}

.glass:hover {
  border-color: var(--glass-border-hover);
  background: var(--surface-hover);
}

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8,8,14,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 20px;
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -1px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-dot {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: lowercase;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  font-weight: 500;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,166,35,0.3);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  animation: fadeUp 0.8s ease-out;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.15);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

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

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(60px, 12vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #c0c0d0 40%, var(--gold) 70%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 15px;
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease,
              background 0.4s ease,
              border-color 0.4s ease,
              color 0.4s ease;
  cursor: pointer;
}

.tag:hover {
  transform: translateY(-2px) scale(1.03);
}

.tag-gold {
  color: var(--gold);
  border-color: rgba(245,166,35,0.25);
  background: rgba(245,166,35,0.08);
}

.tag-gold:hover {
  background: rgba(245,166,35,0.18);
  border-color: rgba(245,166,35,0.5);
  box-shadow: 0 4px 24px rgba(245,166,35,0.25), inset 0 0 20px rgba(245,166,35,0.05);
  color: #ffc55a;
}

.tag-purple {
  color: var(--purple);
  border-color: rgba(168,85,247,0.25);
  background: rgba(168,85,247,0.08);
}

.tag-purple:hover {
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 4px 24px rgba(168,85,247,0.25), inset 0 0 20px rgba(168,85,247,0.05);
  color: #c084fc;
}

.tag-cyan {
  color: var(--cyan);
  border-color: rgba(34,211,238,0.25);
  background: rgba(34,211,238,0.08);
}

.tag-cyan:hover {
  background: rgba(34,211,238,0.18);
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 4px 24px rgba(34,211,238,0.25), inset 0 0 20px rgba(34,211,238,0.05);
  color: #67e8f9;
}

/* ===== Section ===== */
.section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border-hover), transparent);
}

/* ===== About ===== */
.about-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  padding: 40px;
  position: relative;
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease;
  cursor: pointer;
}

.about-card:hover {
  border-color: rgba(245,166,35,0.2);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.about-quote {
  font-family: 'Syne', sans-serif;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease;
  cursor: pointer;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: rgba(245,166,35,0.25);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 30px rgba(245,166,35,0.08);
  transform: translateY(-3px);
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.stat-unit {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-desc {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== Games ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.game-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease,
              box-shadow 0.5s ease,
              transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease;
  cursor: pointer;
}

.game-main {
  grid-column: 1 / -1;
  padding: 36px;
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, var(--surface) 50%);
}

.game-main:hover {
  background: linear-gradient(135deg, rgba(245,166,35,0.12) 0%, rgba(168,85,247,0.06) 100%);
  border-color: rgba(245,166,35,0.3);
  box-shadow: 0 12px 40px rgba(245,166,35,0.12), inset 0 0 40px rgba(245,166,35,0.03);
}

.game-card:hover {
  border-color: rgba(245,166,35,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.game-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,166,35,0.12);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(245,166,35,0.2);
}

.game-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.game-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.game-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}

.game-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-hours {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ===== Music ===== */
.now-playing {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.4s ease,
              box-shadow 0.5s ease,
              transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease;
  cursor: pointer;
}

.now-playing:hover {
  border-color: rgba(251,113,133,0.3);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 30px rgba(251,113,133,0.1);
  transform: translateY(-2px);
}

.np-vinyl {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a2e, #2d2d44, #1a1a2e, #2d2d44, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 4s linear infinite;
  flex-shrink: 0;
}

.vinyl-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245,166,35,0.4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.np-info {
  flex: 1;
  min-width: 0;
}

.np-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--rose);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.np-track {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--purple));
  border-radius: 2px;
  width: 0%;
  animation: progressAnim 12s linear infinite;
}

@keyframes progressAnim {
  0% { width: 0%; }
  100% { width: 100%; }
}

.np-times {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.np-viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  flex-shrink: 0;
}

.viz-bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--purple), var(--cyan));
  animation: vizPulse 1s ease-in-out infinite;
}

.viz-bar:nth-child(1)  { height: 40%; animation-delay: 0.0s; }
.viz-bar:nth-child(2)  { height: 70%; animation-delay: 0.1s; }
.viz-bar:nth-child(3)  { height: 30%; animation-delay: 0.2s; }
.viz-bar:nth-child(4)  { height: 85%; animation-delay: 0.05s; }
.viz-bar:nth-child(5)  { height: 50%; animation-delay: 0.15s; }
.viz-bar:nth-child(6)  { height: 60%; animation-delay: 0.25s; }
.viz-bar:nth-child(7)  { height: 35%; animation-delay: 0.08s; }
.viz-bar:nth-child(8)  { height: 80%; animation-delay: 0.18s; }
.viz-bar:nth-child(9)  { height: 45%; animation-delay: 0.12s; }
.viz-bar:nth-child(10) { height: 55%; animation-delay: 0.22s; }

@keyframes vizPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%      { transform: scaleY(0.35); opacity: 1; }
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.genre-card {
  padding: 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              background 0.4s ease;
  cursor: pointer;
}

.genre-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(168,85,247,0.3);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(168,85,247,0.12);
}

.genre-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.genre-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.genre-card p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== Vibes ===== */
.vibes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-auto-rows: 100px;
}

.vibe-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              background 0.4s ease;
  cursor: pointer;
}

.vibe-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(251,113,133,0.3);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 30px rgba(251,113,133,0.1);
}

.vibe-wide {
  grid-column: span 2;
}

.vibe-tall {
  grid-row: span 2;
}

.vibe-emoji {
  font-size: 28px;
}

.vibe-text {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.3;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0 60px;
  text-align: center;
}

.footer-line {
  width: 40px;
  height: 1px;
  background: var(--glass-border-hover);
  margin: 0 auto 20px;
}

.footer-content {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-sep {
  color: var(--gold);
  opacity: 0.4;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .page { padding: 0 16px; }
  .hero { padding: 50px 0 40px; }
  .hero-name { letter-spacing: -1px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
  .games-grid { grid-template-columns: 1fr; }
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .vibes-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 80px; }
  .stats-row { grid-template-columns: 1fr; }
  .now-playing { flex-wrap: wrap; gap: 16px; }
  .np-viz { display: none; }
  .about-card { padding: 28px; }
  .stat-card { padding: 20px; }
  .stat-number { font-size: 32px; }
  .cursor-glow { display: none; }
}