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

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.6;
}

.topbar {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.site-notice {
  max-width: 720px;
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid #3a3520;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.08);
  color: #d6b54a;
  font-size: 0.85rem;
}

.site-notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d6b54a;
  box-shadow: 0 0 8px rgba(214, 181, 74, 0.45);
}

.initials {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  user-select: none;
}

.music-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #666;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.music-btn:hover { border-color: #555; color: #f0f0f0; }
.music-btn.playing { border-color: #f0f0f0; color: #f0f0f0; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bar { width: 2px; background: #666; border-radius: 1px; transition: background 0.2s; }
.music-btn.playing .bar { background: #f0f0f0; animation: bounce 0.8s infinite; }
.music-btn.playing .bar:nth-child(2) { animation-delay: 0.15s; }
.music-btn.playing .bar:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 100% { height: 4px; } 50% { height: 12px; } }

.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.hero { padding: 3.5rem 0 2.5rem; }

.hero-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  margin-bottom: 2rem;
  background: #1e1e1e;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-greeting { font-size: 1rem; color: #888; margin-bottom: 0.4rem; }

.hero-name {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-name span { color: #555; }

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { font-size: 1.05rem; color: #888; margin-top: 1.25rem; max-width: 480px; }

.socials { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.socials a {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s;
}
.socials a:hover { color: #f0f0f0; border-color: #666; }

.divider { border: none; border-top: 1px solid #1a1a1a; margin: 3rem 0; }

.section-label {
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #0e0e0e;
  transition: background 0.15s;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-row:hover { background: #141414; }
.project-info { display: flex; flex-direction: column; gap: 4px; }
.project-name { font-size: 0.95rem; font-weight: 500; color: #e0e0e0; }
.project-desc { font-size: 0.8rem; color: #555; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #222;
  color: #666;
}

/* Project status tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.status-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-tag.in-dev {
  border: 1px solid #3a3520;
  color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
}
.status-tag.in-dev .status-dot-indicator {
  background: #c9a227;
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.5);
}
.status-tag.unpublished {
  border: 1px solid #1e3a2e;
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}
.status-tag.unpublished .status-dot-indicator {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.spacer { margin-top: 2.5rem; }

.toggle-row { display: flex; gap: 8px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.toggle-btn {
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn.active {
  background: #f0f0f0;
  color: #0a0a0a;
  border-color: #f0f0f0;
  font-weight: 600;
}

.exp-list { display: flex; flex-direction: column; gap: 1.25rem; }
.exp-item { display: flex; gap: 1rem; align-items: flex-start; }
.exp-dot { width: 7px; height: 7px; border-radius: 50%; background: #333; margin-top: 5px; flex-shrink: 0; }
.exp-company { font-size: 0.95rem; font-weight: 500; color: #e0e0e0; }
.exp-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s;
}
.exp-link:hover { color: #f0f0f0; }
.exp-role { font-size: 0.8rem; color: #555; margin-top: 3px; }

.toolkit { display: flex; flex-wrap: wrap; gap: 8px; }

/* Now playing */
.now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.25rem;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  transition: background 0.15s;
}
.now-playing:hover { background: #141414; }

.status-dot-wrap {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.status-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  position: absolute;
  top: 1px;
  left: 1px;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.now-playing-track { font-size: 0.95rem; font-weight: 500; color: #e0e0e0; }
.now-playing-artist { font-size: 0.75rem; color: #555; margin-top: 2px; }
.now-playing-link {
  margin-left: auto;
  font-size: 0.75rem;
  color: #22c55e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.now-playing-link:hover { color: #4ade80; }

.section-hint { font-size: 0.8rem; color: #444; margin-bottom: 1rem; }
.spotify-embeds { display: flex; flex-direction: column; gap: 12px; }

.book-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}
.book-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.9rem 1.25rem;
  background: #0e0e0e;
  transition: background 0.15s;
}
.book-row:hover { background: #141414; }
.book-spine { width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.book-title { font-size: 0.9rem; font-weight: 500; color: #e0e0e0; }
.book-author { font-size: 0.75rem; color: #555; margin-top: 2px; }
.book-status {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #222;
  color: #555;
  margin-left: auto;
  white-space: nowrap;
}
.book-status.reading { border-color: #2a3a2a; color: #4a7a4a; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.game-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 14px;
  transition: background 0.15s;
}
.game-card:hover { background: #141414; }
.game-title { font-size: 0.85rem; font-weight: 500; color: #e0e0e0; }
.game-platform { font-size: 0.72rem; color: #555; margin-top: 3px; }

.footer {
  padding: 5rem 0 3rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.footer-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 1rem;
}
.footer-body {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.footer-contact-label {
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.footer-icons a {
  color: #666;
  transition: color 0.2s;
}
.footer-icons a:hover {
  color: #f0f0f0;
}
.footer-icons svg {
  display: block;
}
.footer-copy { font-size: 0.75rem; color: #333; margin-top: 2rem; }

.hidden { display: none; }

/* Floating bottom nav */
.floating-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #1e1e1e;
  border-radius: 999px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nav-pill {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: color 0.25s ease;
  z-index: 2;
  white-space: nowrap;
}

.nav-pill:hover {
  color: #aaa;
}

.nav-pill.active {
  color: #0a0a0a;
}

.nav-slider {
  position: absolute;
  height: calc(100% - 10px);
  top: 5px;
  border-radius: 999px;
  background: #f0f0f0;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@media (max-width: 480px) {
  .project-row { flex-direction: column; align-items: flex-start; }
  .floating-nav {
    bottom: 1rem;
    gap: 2px;
    padding: 4px;
  }
  .nav-pill {
    font-size: 0.75rem;
    padding: 7px 14px;
  }
}