:root {
  --bg: #0a0a0a;
  --bg-gradient: radial-gradient(ellipse at center, #1a0f0f 0%, #0a0a0a 60%, #050505 100%);
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8e8e8;
  --text-muted: #8a8a8a;
  --text-dim: #5a5a5a;
  --accent: #a78bfa;
  --green: #34d399;
  --nav-bg: rgba(30, 20, 20, 0.6);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Left Navigation */
.nav {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  z-index: 100;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px 40px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.page-header {
  width: 100%;
  margin-bottom: 28px;
}

.label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--text-dim);
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 480px;
}

/* Home specific */
.home-content {
  text-align: left;
  width: 100%;
  max-width: 520px;
}

.greeting {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.name {
  font-size: 2.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
}

.handle:hover {
  color: #fff;
}

.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
}

.bio-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bio-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.bio-card a:hover {
  text-decoration: underline;
}

.bio-card strong {
  color: #fff;
  font-weight: 500;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  height: 30px;
  font-size: 12px;
  color: #adadad;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn-webshare {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-color: rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
}

.btn-webshare:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  color: #fff;
}

/* Cards general */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Projects */
.project-hero {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #0d0d12;
  margin-bottom: 16px;
}

.project-hero img {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: cover;
}

.project-info {
  padding: 4px 4px 8px;
}

.project-title {
  font-size: 16px;
  font-weight: 560;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.project-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.project-links a:hover {
  color: #fff;
}

.section-label {
  font-size: 13px;
  color: var(--text-dim);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--text-dim);
}

/* Skills */
.skill-group {
  margin-bottom: 22px;
}

.skill-group h3 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #cfcfcf;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

/* Setup */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.setup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.setup-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.setup-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.setup-item .meta {
  flex: 1;
  min-width: 0;
}

.setup-item .title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.setup-item .sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Biolinks */
.biolink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.biolink:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.biolink-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.biolink .info {
  flex: 1;
}

.biolink .name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.biolink .url {
  font-size: 12px;
  color: var(--text-dim);
}

.biolink .arrow {
  color: var(--text-dim);
  font-size: 16px;
}

/* Contact */
.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.contact-card .handle {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.contact-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

/* Music */
.music-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.music-tabs button {
  padding: 6px 14px;
  font-size: 13px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.music-tabs button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.album {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--card-border);
  position: relative;
}

.album-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 8px;
  background: linear-gradient(135deg, #1f1f1f, #121212);
}

/* Views badge */
.views {
  position: fixed;
  bottom: 16px;
  right: 16px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Commission bar */
.commission-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 12px;
  margin-bottom: 28px;
  font-size: 13px;
}

.commission-bar .left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.commission-bar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.commission-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.commission-bar a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .nav {
    left: 50%;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .main {
    padding: 32px 20px 100px;
  }

  .setup-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}