/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:           #0D1117;
  --bg2:          #161B22;
  --bg3:          #1C2333;
  --violet:       #7C3AED;
  --violet-light: #A78BFA;
  --coral:        #FF6B6B;
  --mint:         #00D4AA;
  --yellow:       #FFD93D;
  --text:         #E6EDF3;
  --text-muted:   #8B949E;
  --border:       rgba(255,255,255,0.08);
  --radius:       16px;
  --radius-sm:    10px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── UTILS ───────────────────────────────────────────────── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}
.btn-primary:hover { background: #6D28D9; transform: translateY(-2px); box-shadow: 0 0 30px rgba(124,58,237,0.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--violet-light); color: var(--violet-light); transform: translateY(-2px); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.logo-bracket { color: var(--violet-light); }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--violet);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav-cta:hover { background: #6D28D9 !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 3rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hero-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.glow-violet { width: 500px; height: 500px; background: var(--violet); top: -100px; left: -150px; }
.glow-coral  { width: 400px; height: 400px; background: var(--coral); top: 200px; right: -100px; }
.glow-mint   { width: 350px; height: 350px; background: var(--mint); bottom: -50px; left: 30%; }

/* Terminal card */
.terminal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
  position: relative;
  z-index: 1;
}
.terminal-bar {
  background: var(--bg3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.terminal-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  line-height: 2;
}
.terminal-line { display: flex; align-items: center; gap: 0.5rem; }
.t-prompt { color: var(--mint); }
.t-cmd { color: var(--violet-light); }
.terminal-output { padding-left: 1.2rem; color: var(--text-muted); }
.t-key   { color: var(--coral); }
.t-val   { color: var(--yellow); }
.t-string { color: var(--mint); }
.cursor { color: var(--violet-light); animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }

/* Hero text */
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── WORLDS ──────────────────────────────────────────────── */
.worlds {
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.worlds-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.world-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.world-tab:hover { border-color: var(--violet-light); color: var(--text); }
.world-tab.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}
.worlds-content { min-height: 280px; }
.world-panel { display: none; animation: fadeIn 0.3s ease; }
.world-panel.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }

.world-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.world-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.world-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(124,58,237,0.15);
  color: var(--violet-light);
  border: 1px solid rgba(124,58,237,0.2);
}
.pill-coral { background: rgba(255,107,107,0.12); color: var(--coral); border-color: rgba(255,107,107,0.2); }
.pill-mint  { background: rgba(0,212,170,0.12);   color: var(--mint);  border-color: rgba(0,212,170,0.2); }

/* World visuals */
.world-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.code-snippet {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-muted);
  width: 100%;
}
.cs-kw  { color: var(--violet-light); }
.cs-fn  { color: var(--mint); }
.cs-str { color: var(--yellow); }
.cs-num { color: var(--coral); }
.cs-comment { color: #4A5568; }

.yt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
}
.yt-thumb {
  background: linear-gradient(135deg, #1a0533 0%, #2d1057 100%);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.play-btn {
  width: 44px; height: 44px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  padding-left: 3px;
}
.yt-info { padding: 0.8rem 1rem; }
.yt-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600; }
.yt-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.travel-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}
.travel-pins { position: absolute; inset: 0; }
.pin { position: absolute; font-size: 1.4rem; animation: pinFloat 3s ease-in-out infinite; }
.pin:nth-child(2) { animation-delay: 0.5s; }
.pin:nth-child(3) { animation-delay: 1s; }
.pin:nth-child(4) { animation-delay: 1.5s; }
.pin:nth-child(5) { animation-delay: 2s; }
@keyframes pinFloat { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-6px) } }
.travel-count {
  position: absolute;
  bottom: 10px; right: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 1rem;
}
.bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--violet), var(--mint));
  animation: barDance 1.2s ease-in-out infinite alternate;
}
.bar:nth-child(1) { height: 40%; animation-delay: 0.0s; }
.bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 65%; animation-delay: 0.4s; }
.bar:nth-child(6) { height: 45%; animation-delay: 0.5s; }
.bar:nth-child(7) { height: 80%; animation-delay: 0.6s; }
@keyframes barDance { from { transform: scaleY(1) } to { transform: scaleY(0.3) } }
.music-note { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }

/* ── ABOUT ───────────────────────────────────────────────── */
.about { padding: 6rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text { color: var(--text-muted); line-height: 1.9; font-size: 1.05rem; margin-bottom: 2rem; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.4s;
}
.stat-item.visible { opacity: 1; transform: none; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--violet-light);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: -4px; }

/* Avatar */
.avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}
.avatar-bg {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--mint) 100%);
  opacity: 0.15;
  position: absolute;
}
.profile-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  z-index: 1;
}
.avatar-emoji {
  font-size: 5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(0,212,170,0.14));
  border: 1px solid rgba(255,255,255,0.12);
}
.float-badge {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  animation: floatBadge 3s ease-in-out infinite;
  z-index: 2;
}
.badge-1 { top: 10%;  left: 0;    animation-delay: 0s; }
.badge-2 { top: 15%;  right: 0;   animation-delay: 0.8s; }
.badge-3 { bottom: 15%; left: 0;  animation-delay: 1.6s; }
.badge-4 { bottom: 10%; right: 0; animation-delay: 0.4s; }
@keyframes floatBadge { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-8px) } }

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects { padding: 6rem 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s;
  opacity: 0;
  transform: translateY(20px);
  animation-delay: var(--card-delay);
}
.project-card.visible { opacity: 1; transform: none; transition: opacity 0.4s var(--card-delay), transform 0.4s var(--card-delay), border-color 0.25s, box-shadow 0.25s; }
.project-card:hover { border-color: var(--violet); box-shadow: 0 0 30px rgba(124,58,237,0.15); transform: translateY(-4px); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-icon { font-size: 2rem; }
.project-links { display: flex; gap: 0.75rem; }
.project-links a { color: var(--text-muted); font-size: 1.2rem; transition: color 0.2s; }
.project-links a:hover { color: var(--violet-light); }
.project-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ptag {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Mono', monospace;
  background: rgba(124,58,237,0.1);
  color: var(--violet-light);
  border: 1px solid rgba(124,58,237,0.15);
}

/* ── YOUTUBE ──────────────────────────────────────────────── */
.youtube-section { padding: 6rem 0; }
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.yt-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: block;
  opacity: 0;
  transform: translateY(20px);
}
.yt-item.visible { opacity: 1; transform: none; }
.yt-item:hover { border-color: var(--coral); transform: translateY(-4px); box-shadow: 0 0 30px rgba(255,107,107,0.1); }
.yt-item-thumb {
  background: linear-gradient(135deg, #1a0533 0%, #350d6e 100%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.yt-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-item-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
}
.yt-item-play {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  padding-left: 3px;
  transition: all 0.2s;
}
.yt-item:hover .yt-item-play { background: var(--coral); border-color: var(--coral); }
.yt-item-info { padding: 1.25rem; }
.yt-item-info h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.yt-item-info p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.yt-cta { text-align: center; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact {
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.contact-inner {
  text-align: center;
  position: relative;
  max-width: 600px;
}
.contact-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: var(--violet);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.7; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--violet-light); color: var(--text); transform: translateY(-2px); }
.social-icon { font-size: 1.1rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 2rem; }
  .hero-text { order: -1; }
  .world-panel-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-right { display: none; }
  .nav-links li:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
