/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050510;
  --card-bg: rgba(10,10,28,0.82);
  --border: rgba(123,47,255,0.25);
  --g: #00ff41;
  --c: #00d4ff;
  --p: #7b2fff;
  --p2: #a855f7;
  --text: #e8e8f0;
  --muted: #888;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== MATRIX BG ===== */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== CURSOR GLOW ===== */
#cursorGlow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 1;
  transition: left .08s ease, top .08s ease;
}

/* ===== PAGE LAYOUT ===== */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 32px;
}

/* ===== CARD ===== */
.card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 0 60px rgba(123,47,255,0.12), 0 0 120px rgba(0,212,255,0.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,47,255,0.04) 0%, transparent 60%, rgba(0,212,255,0.03) 100%);
  pointer-events: none;
}

/* ===== AVATAR ===== */
.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.r1 {
  border-color: rgba(123,47,255,0.5);
  animation: spin 8s linear infinite;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.r2 {
  inset: -8px;
  border-color: rgba(0,212,255,0.35);
  animation: spin 14s linear infinite reverse;
  border-left-color: transparent;
  border-right-color: transparent;
}

.r3 {
  inset: -18px;
  border-color: rgba(0,255,65,0.15);
  animation: spin 22s linear infinite;
  border-top-color: rgba(0,255,65,0.3);
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(123,47,255,0.5);
  box-shadow: 0 0 20px rgba(123,47,255,0.3), 0 0 40px rgba(0,212,255,0.1);
  position: relative;
  z-index: 1;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== NAME & ROLE ===== */
.name {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}

.name-accent {
  color: var(--p2);
}

.role {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--c);
  letter-spacing: 0.04em;
  min-height: 1.4em;
  text-align: center;
  margin-bottom: 16px;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--p2);
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== BADGES ===== */
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.25);
  color: var(--g);
  text-transform: uppercase;
}

.badge--sec {
  background: rgba(255,0,64,0.08);
  border-color: rgba(255,0,64,0.25);
  color: #ff4466;
}

.badge--ai {
  background: rgba(123,47,255,0.1);
  border-color: rgba(168,85,247,0.3);
  color: var(--p2);
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,47,255,0.4), transparent);
}

.divider__text {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ===== SOCIAL LINKS ===== */
.socials {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.slink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.slink::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.slink:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  transform: translateX(4px);
}

.slink:hover::before { opacity: 1; }

/* brand accents */
.slink--gh::before { background: #ffffff; }
.slink--gh:hover { box-shadow: -3px 0 12px rgba(255,255,255,0.1); }
.slink--gh .slink__icon { color: #ffffff; }

.slink--tg::before { background: #0088cc; }
.slink--tg:hover { box-shadow: -3px 0 12px rgba(0,136,204,0.2); }
.slink--tg .slink__icon { color: #0088cc; }

.slink--ig::before { background: linear-gradient(180deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.slink--ig:hover { box-shadow: -3px 0 12px rgba(225,48,108,0.2); }
.slink--ig .slink__icon { color: #e1306c; }

.slink--x::before { background: #1da1f2; }
.slink--x:hover { box-shadow: -3px 0 12px rgba(29,161,242,0.2); }
.slink--x .slink__icon { color: #d0d0d0; }

.slink--fb::before { background: #1877f2; }
.slink--fb:hover { box-shadow: -3px 0 12px rgba(24,119,242,0.2); }
.slink--fb .slink__icon { color: #1877f2; }

.slink--web::before { background: var(--p2); }
.slink--web:hover { box-shadow: -3px 0 12px rgba(168,85,247,0.2); }
.slink--web .slink__icon { color: var(--p2); }

.slink__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.25s;
}

.slink:hover .slink__icon {
  background: rgba(255,255,255,0.09);
}

.slink__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slink__name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.slink__handle {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1;
}

.slink__arrow {
  font-size: 1.2rem;
  color: var(--muted);
  opacity: 0.5;
  transition: all 0.25s;
}

.slink:hover .slink__arrow {
  opacity: 1;
  color: var(--text);
  transform: translateX(2px);
}

/* scroll reveal */
.slink.reveal { opacity: 0; transform: translateY(16px) translateX(0); }
.slink.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.4s ease; }

/* ===== PLAYER ===== */
.player-wrap {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(123,47,255,0.2);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.player-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--p), var(--c), var(--p), transparent);
  opacity: 0.4;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.player-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--p2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.4)} }

.player-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--p2);
}

.player-meta {
  text-align: center;
  margin-bottom: 10px;
}

.player-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}

.player-viz {
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.player-viz canvas {
  display: block;
  width: 100%;
  height: 60px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.pbtn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.pbtn:hover {
  background: rgba(123,47,255,0.2);
  border-color: var(--p2);
  box-shadow: 0 0 12px rgba(123,47,255,0.3);
}

.pbtn--play {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(123,47,255,0.4);
}

.pbtn--play:hover {
  background: linear-gradient(135deg, var(--p2), var(--c));
  box-shadow: 0 0 28px rgba(0,212,255,0.4);
  border-color: transparent;
}

.player-hint {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  min-height: 1.2em;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.footer-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

.footer-sep {
  color: rgba(123,47,255,0.4);
  font-size: 0.65rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .card { padding: 32px 18px 28px; }
  .name { font-size: 1.5rem; }
}
