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

:root {
  --bg: #0e0e0f;
  --bg2: #161618;
  --bg3: #1e1e21;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0ede6;
  --muted: #888880;
  --dim: #555550;
  --accent: #c8f060;
  --accent2: #7df0c8;
  --accent3: #f0a060;
  --red: #f06060;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-serif: 'Instrument Serif', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200,240,96,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.35s ease, width 0.2s, height 0.2s, opacity 0.2s;
  transform: translate(-50%, -50%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 2px; }

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  border-color: var(--border);
  background: rgba(14,14,15,0.8);
}
.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

/* Two-column hero inner */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,240,96,0.08);
  border: 1px solid rgba(200,240,96,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  width: fit-content;
  animation: fadeUp 0.8s ease both;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 4px;
  animation: fadeUp 0.8s 0.05s ease both;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.1s ease both;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wave {
  font-size: clamp(36px, 5vw, 64px);
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 80%;
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(20deg); }
  40% { transform: rotate(-8deg); }
  60% { transform: rotate(16deg); }
  80% { transform: rotate(-4deg); }
}

.hero h1 .line-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}
.hero h1 .line-accent { color: var(--accent); }

.hero-title-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  width: fit-content;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-title-pill::before {
  content: '▹';
  color: var(--accent);
  margin-right: 10px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0e0e0f;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.hero-sub {
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.tech-pill {
  display: inline-block;
  background: rgba(200,240,96,0.1);
  border: 1px solid rgba(200,240,96,0.25);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 13px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
  margin-bottom: 28px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.social-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.social-link:hover { color: var(--accent); }
.social-dot { color: var(--dim); font-size: 10px; }

/* Profile photo */
.hero-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.8s 0.2s ease both;
  flex-shrink: 0;
}
.hero-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(200,240,96,0.25);
  animation: spinRing 20s linear infinite;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(200,240,96,0.3);
  background: var(--bg2);
  box-shadow: 0 0 60px rgba(200,240,96,0.08);
  position: relative;
  z-index: 1;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.5s ease both;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--dim);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { width: 40px; }
  50% { width: 16px; }
}
.hero-num {
  position: absolute;
  bottom: 40px; right: 80px;
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 300;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  animation: fadeUp 0.8s 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intro Section */

.intro-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-section .hero-badge {
  margin-bottom: 32px;
}

.intro-section h2 {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.intro-section .line-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.intro-section .line-accent {
  color: var(--accent);
}

.intro-sub {
  max-width: 500px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.intro-section .hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.intro-section .hero-scroll {
  left: 50%;
  transform: translateX(-50%);
}

.intro-section .hero-num {
  right: 48px;
}

/* Sections */
section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

/* Tech section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}
.tech-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.tech-card:hover { background: var(--bg2); }
.tech-card:hover::before { transform: scaleX(1); }
.tech-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 22px;
}
.tech-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tech-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.tag-green { background: rgba(125,240,200,0.1); color: var(--accent2); border: 1px solid rgba(125,240,200,0.2); }
.tag-yellow { background: rgba(200,240,96,0.1); color: var(--accent); border: 1px solid rgba(200,240,96,0.2); }
.tag-orange { background: rgba(240,160,96,0.1); color: var(--accent3); border: 1px solid rgba(240,160,96,0.2); }
.tag-red { background: rgba(240,96,96,0.1); color: var(--red); border: 1px solid rgba(240,96,96,0.2); }

/* Music section */
.music-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 60px;
  align-items: start;
}
.now-playing {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.now-playing::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,240,200,0.06) 0%, transparent 70%);
}
.np-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.np-bars span {
  width: 3px;
  background: var(--accent2);
  border-radius: 2px;
  animation: bar 0.9s ease-in-out infinite;
}
.np-bars span:nth-child(2) { animation-delay: 0.15s; }
.np-bars span:nth-child(3) { animation-delay: 0.3s; }
.np-bars span:nth-child(4) { animation-delay: 0.1s; }
@keyframes bar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}
.np-album {
  width: 80px; height: 80px;
  background: var(--bg3);
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.np-track { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.np-artist { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.np-bar {
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}

.np-progress {
  height: 100%;
  background: var(--accent2);
  border-radius: 2px;
  animation: progress 241s linear infinite;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}
.np-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 8px;
}

.track-list { display: flex; flex-direction: column; gap: 2px; }
.track-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  transition: background 0.2s;
  position: relative;
}
.track-item:hover { background: var(--bg2); }
.track-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}
.track-emoji {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.track-info { flex: 1; }
.track-title { font-size: 14px; font-weight: 600; }
.track-artist { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.track-genre {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  text-align: right;
  flex-shrink: 0;
}

/* Games section */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.game-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  background: var(--bg2);
  cursor: none;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.game-hero {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
  overflow: hidden;
}
.game-body { padding: 20px 22px; }
.game-platform {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.game-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.game-desc { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.game-hours {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hours-val { color: var(--accent); font-size: 15px; font-weight: 600; }
.rating { display: flex; gap: 2px; }
.star { color: var(--accent3); font-size: 12px; }
.star.empty { color: var(--dim); }

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-name {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.about-handle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 32px;
}
.about-fact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.fact-label { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.fact-val { font-size: 14px; font-weight: 600; }
.about-bio {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.about-bio p + p { margin-top: 16px; }
.about-bio strong { color: var(--text); font-weight: 400; }
.about-connect {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.connect-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.connect-link:hover { color: var(--text); border-color: var(--muted); }

/* Footer */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
footer a { color: var(--dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .hero { padding: 100px 40px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; align-self: center; }
  .hero-photo { width: 160px; height: 160px; }
  .hero-scroll, .hero-num { display: none; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 90px 24px 60px; }
  section { padding-left: 24px; padding-right: 24px; }
  .music-layout { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .hero-photo { width: 130px; height: 130px; }
}
