/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f0f0f0;
  --text-secondary: #8a8a8a;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Ambient Background Glow ── */
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ── Profile Section ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), #a855f7, #ec4899);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.avatar-ring:hover {
  transform: scale(1.05);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg);
}

.avatar-fallback {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-fallback::after {
  content: 'JS';
  font-size: 32px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

/* ── Social Icons ── */
.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.socials a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── Link Cards ── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  cursor: pointer;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.link-card:active {
  transform: translateY(0);
}

.link-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.link-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Coming Soon Badge ── */
.coming-soon {
  cursor: default;
  opacity: 0.55;
}

.coming-soon:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-card);
  border-color: var(--border);
}

.badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.25);
  min-width: 95px;
  text-align: center;
}

.badge-shipped {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.25);
}

.badge-progress {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}

/* ── In Progress Cards ── */
.in-progress {
  cursor: default;
  opacity: 0.75;
}

.in-progress:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-card);
  border-color: var(--border);
}

/* ── Shipped Cards ── */
.shipped {
  border-color: rgba(34, 197, 94, 0.2);
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding-top: 48px;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* ── Entrance Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile {
  animation: fadeUp 0.6s ease both;
}

.link-card:nth-child(1) { animation: fadeUp 0.5s ease 0.1s both; }
.link-card:nth-child(2) { animation: fadeUp 0.5s ease 0.15s both; }
.link-card:nth-child(3) { animation: fadeUp 0.5s ease 0.2s both; }
.link-card:nth-child(4) { animation: fadeUp 0.5s ease 0.25s both; }
.link-card:nth-child(5) { animation: fadeUp 0.5s ease 0.3s both; }
.link-card:nth-child(6) { animation: fadeUp 0.5s ease 0.35s both; }
.link-card:nth-child(7) { animation: fadeUp 0.5s ease 0.4s both; }
.link-card:nth-child(8) { animation: fadeUp 0.5s ease 0.45s both; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .container {
    padding: 60px 16px 40px;
  }

  .name {
    font-size: 1.5rem;
  }

  .link-card {
    padding: 14px 16px;
  }

  .link-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}
