/* ═══════════════════════════════════════════
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
  /* Accent palette */
  --accent-1:       #c084fc;   /* purple-400  */
  --accent-2:       #f472b6;   /* pink-400    */
  --accent-3:       #818cf8;   /* indigo-400  */
  --accent-glow:    rgba(192, 132, 252, 0.35);
  --accent-glow-2:  rgba(244, 114, 182, 0.25);

  /* Glass system */
  --glass-bg:       rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border:   rgba(255, 255, 255, 0.11);
  --glass-blur:     blur(28px) saturate(180%);

  /* Text */
  --text-primary:   #f4f4f5;
  --text-secondary: rgba(255, 255, 255, 0.52);
  --text-muted:     rgba(255, 255, 255, 0.3);

  /* Layout */
  --card-radius:    28px;
  --btn-radius:     14px;

  /* Transitions */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:         0.18s;
  --t-med:          0.32s;
  --t-slow:         0.55s;

  /* Social brand colours */
  --fb-color:       #1877f2;
  --tt-color:       #ff0050;
  --ig-color-a:     #fd5949;
  --ig-color-b:     #d6249f;
  --ig-color-c:     #285AEB;
  --dc-color:       #5865f2;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: #0a0a0f;
  color: var(--text-primary);
  min-height: 100dvh;
  overflow: hidden;
  user-select: none;
}

/* ═══════════════════════════════════
   BACKGROUND VIDEO
   ═══════════════════════════════════ */
.bg-video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05) translateZ(0);
  filter: brightness(0.75) saturate(1.2);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(129, 50, 200, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%,  rgba(236, 72, 153, 0.15) 0%, transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.65) 100%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.65) 100%);
}

/* ═══════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════
   PROFILE WRAPPER & CARD
   ═══════════════════════════════════ */
.profile-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.profile-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  /* Entrance animation */
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);

  /* Subtle inner shine */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 32px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(192, 132, 252, 0.08);
}

.profile-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Top glow bar */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), var(--accent-1), transparent);
  border-radius: 100%;
  opacity: 0.6;
}

/* ═══════════════════════════════════
   AVATAR SECTION
   ═══════════════════════════════════ */
.avatar-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  margin-bottom: 4px;
}

.avatar-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-3),
    var(--accent-1)
  );
  animation: spin-ring 4s linear infinite;
  filter: blur(2px);
  opacity: 0.75;
}

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

.avatar-frame {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.6);
}

.avatar-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.avatar-img.active {
  opacity: 1;
}

.avatar-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid rgba(10, 10, 15, 0.9);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-status 2.5s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
  50%       { box-shadow: 0 0 16px rgba(34, 197, 94, 0.9), 0 0 24px rgba(34, 197, 94, 0.3); }
}

/* ═══════════════════════════════════
   PROFILE INFO
   ═══════════════════════════════════ */
.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.profile-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent-1) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.profile-handle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.profile-bio {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
  margin-top: 2px;
}

/* ═══════════════════════════════════
   DIVIDER
   ═══════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ═══════════════════════════════════
   MUSIC PLAYER
   ═══════════════════════════════════ */
.music-player {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}

.music-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,132,252,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.music-player:hover {
  background: rgba(0,0,0,0.3);
  border-color: rgba(192,132,252,0.25);
}

/* Disc */
.music-disc-wrapper {
  flex-shrink: 0;
}

.music-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #1a1a2e, #2d1b69, #1a1a2e, #0f0f1a, #2d1b69, #1a1a2e
  );
  position: relative;
  box-shadow: 0 0 12px rgba(129,50,200,0.3), inset 0 0 8px rgba(0,0,0,0.5);
  transition: transform 0.1s linear;
}

.music-disc.spinning {
  animation: disc-spin 3s linear infinite;
}

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

.disc-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.04),
    0 0 0 8px rgba(255,255,255,0.03);
}

.disc-label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, #c084fc, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
}

/* Music meta */
.music-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.music-title-scroll {
  overflow: hidden;
  white-space: nowrap;
}

.music-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
}

.music-title.scrolling {
  animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(-100%); }
  41%  { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

.music-artist {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.music-progress-track {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  margin-top: 4px;
  overflow: hidden;
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 100px;
  transition: width 0.5s linear;
}

/* Controls */
.music-controls {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.music-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-med) var(--ease);
  box-shadow: 0 4px 16px var(--accent-glow);
  position: relative;
}

.music-play-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}

.music-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.music-play-btn:active {
  transform: scale(0.95);
}

/* Visualizer bars */
.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.music-visualizer.active {
  opacity: 1;
}

.music-visualizer span {
  display: block;
  width: 3px;
  border-radius: 100px;
  background: linear-gradient(to top, var(--accent-1), var(--accent-2));
  animation: viz-bar 0.8s ease-in-out infinite alternate;
  min-height: 3px;
}

.music-visualizer span:nth-child(1) { animation-delay: 0.0s; animation-duration: 0.6s; }
.music-visualizer span:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.9s; }
.music-visualizer span:nth-child(3) { animation-delay: 0.05s; animation-duration: 0.7s; }
.music-visualizer span:nth-child(4) { animation-delay: 0.15s; animation-duration: 1.0s; }
.music-visualizer span:nth-child(5) { animation-delay: 0.08s; animation-duration: 0.75s; }

@keyframes viz-bar {
  from { height: 3px; }
  to   { height: 14px; }
}

/* ═══════════════════════════════════
   SOCIAL LINKS
   ═══════════════════════════════════ */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--btn-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    transform var(--t-fast) var(--spring),
    background var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.social-btn:active {
  transform: translateY(0) scale(0.98);
}

.social-btn i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--spring);
}

.social-btn:hover i {
  transform: scale(1.2) rotate(-5deg);
}

/* Facebook */
.social-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2);
  color: #60a5fa;
}
.social-btn.facebook:hover i { color: #1877f2; }

/* TikTok */
.social-btn.tiktok:hover {
  background: rgba(255, 0, 80, 0.12);
  border-color: rgba(255, 0, 80, 0.35);
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.18);
  color: #fca5a5;
}
.social-btn.tiktok:hover i { color: #ff0050; }

/* Instagram */
.social-btn.instagram:hover {
  background: rgba(214, 36, 159, 0.12);
  border-color: rgba(214, 36, 159, 0.35);
  box-shadow: 0 8px 24px rgba(214, 36, 159, 0.18);
  color: #f9a8d4;
}
.social-btn.instagram:hover i {
  background: linear-gradient(135deg, #fd5949, #d6249f, #285AEB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Discord */
.social-btn.discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2);
  color: #a5b4fc;
}
.social-btn.discord:hover i { color: #5865f2; }

/* ═══════════════════════════════════
   SLIDE DOTS
   ═══════════════════════════════════ */
.slide-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: -6px;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 100px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--t-med) var(--ease);
}

.slide-dot.active {
  width: 20px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 8px var(--accent-glow);
}

.slide-dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════
   UNLOCK OVERLAY
   ═══════════════════════════════════ */
.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: opacity 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
}

.unlock-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
}

.unlock-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: float-up 0.6s var(--spring);
}

@keyframes float-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.unlock-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 0 40px var(--accent-glow);
  animation: unlock-pulse 2s ease-in-out infinite;
}

@keyframes unlock-pulse {
  0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
  50%       { box-shadow: 0 0 70px var(--accent-glow), 0 0 100px var(--accent-glow-2); }
}

.unlock-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}

.unlock-pulse {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-1);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 480px) {
  .profile-card {
    padding: 28px 20px 22px;
    gap: 16px;
    border-radius: 20px;
  }

  .profile-name { font-size: 1.3rem; }

  .social-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .social-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .social-links {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 100px; }

/* ═══════════════════════════════════
   SELECTION
   ═══════════════════════════════════ */
::selection {
  background: rgba(192, 132, 252, 0.3);
  color: #fff;
}
