@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&family=Rubik+Glitch&family=Share+Tech+Mono&display=swap');

:root {
  --bg-color: #050505;
  --card-bg: rgba(10, 10, 10, 0.7);
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --font-title: 'Rubik Glitch', cursive;
  --font-mono: 'Share Tech Mono', monospace;
  --font-sans: 'Montserrat', sans-serif;
  --glow-shadow: 0 0 15px var(--accent-glow);
}

/* Base Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: none; /* Hide default cursor */
}

/* Custom Custom Cursor */
.custom-cursor {
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Crosshair center dot */
.custom-cursor::after {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: absolute;
}

/* Follower dot */
.cursor-follower {
  width: 8px;
  height: 8px;
  background-color: var(--accent-glow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s linear;
}

/* Hover state for cursor */
.custom-cursor.hover {
  width: 32px;
  height: 32px;
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.custom-cursor.hover::after {
  background-color: #ffffff;
}

/* CRT Scanline Overlay */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.85;
}

/* CRT Vignette */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  z-index: 998;
}

/* Dynamic Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Overlay Screen ("Click to Enter") */
.overlay-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
  opacity: 1;
  visibility: visible;
}

.overlay-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.overlay-content {
  text-align: center;
  cursor: pointer;
  padding: 40px;
}

.gang-logo {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  animation: logoPulse 2.5s infinite alternate;
}

.enter-title {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  letter-spacing: 5px;
  color: #fff;
  position: relative;
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 580px;
  width: 90%;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-container.hidden {
  display: none;
  opacity: 0;
}

/* Card Styling with Glassmorphism */
.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 60px 45px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
              0 0 30px rgba(255, 255, 255, 0.03),
              inset 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
              0 0 40px rgba(255, 255, 255, 0.08),
              inset 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Avatar glowing profile */
.avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  z-index: 2;
  position: relative;
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(12px);
  opacity: 0.25;
  z-index: 1;
  animation: avatarPulse 3s infinite alternate;
}

/* Profile Header (Username & Badges) */
.profile-header {
  margin-bottom: 5px;
}

.username {
  font-family: var(--font-title);
  font-size: 2.6rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 15px var(--accent-glow);
  margin-bottom: 8px;
}

.badge-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Tagline & Bio */
.tagline {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-color);
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: var(--glow-shadow);
}

.bio-text {
  font-size: 1.0rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 25px;
  font-weight: 500;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0));
  margin: 20px 0;
}

/* Social Buttons Container */
.socials-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-button {
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.social-left i {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-username {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.social-button:hover .social-left i {
  color: var(--accent-color);
  text-shadow: var(--glow-shadow);
}

.social-button:hover .social-username {
  color: var(--text-primary);
}

/* Floating Music Player Container (Top-Left) */
.player-container {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 100;
  width: 350px;
  padding: 20px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 
              0 0 20px rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.player-container.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* CD Disc Art Custom Design */
.song-art {
  width: 56px;
  height: 56px;
  background-image: url('band4band.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* Center hole of the CD */
.song-art::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #0a0a0a;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: absolute;
}

.song-art i {
  display: none; /* Hide default icon since gradient represents CD */
}

/* Spin CD disk when playing */
.player-container.playing .song-art {
  animation: spin 4s linear infinite;
}

.song-details {
  flex-grow: 1;
  text-align: left;
  overflow: hidden;
}

.song-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.song-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Music Visualizer Animation */
.visualizer {
  display: flex;
  align-items: flex-end;
  height: 22px;
  gap: 2px;
  width: 32px;
}

.visualizer .bar {
  width: 2px;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 1px;
  transition: height 0.15s ease;
}

.player-container.playing .visualizer .bar {
  animation: bounce 1s ease-in-out infinite alternate;
}

.player-container.playing .visualizer .bar:nth-child(1) { animation-delay: 0.1s; }
.player-container.playing .visualizer .bar:nth-child(2) { animation-delay: 0.3s; }
.player-container.playing .visualizer .bar:nth-child(3) { animation-delay: 0.5s; }
.player-container.playing .visualizer .bar:nth-child(4) { animation-delay: 0.2s; }
.player-container.playing .visualizer .bar:nth-child(5) { animation-delay: 0.4s; }
.player-container.playing .visualizer .bar:nth-child(6) { animation-delay: 0.6s; }
.player-container.playing .visualizer .bar:nth-child(7) { animation-delay: 0.15s; }

/* Progress bar slider */
.player-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 5px var(--accent-color);
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Audio Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-btn {
  background: var(--accent-color);
  color: #000;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--glow-shadow);
  cursor: pointer;
}

.player-btn:hover {
  transform: scale(1.08);
  background-color: #f0f0f0;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-container i {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Footer Stats */
.card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item i {
  color: var(--accent-color);
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  from { height: 2px; }
  to { height: 16px; }
}

@keyframes logoPulse {
  0% {
    transform: scale(1) rotate(0deg);
    text-shadow: 0 0 10px var(--accent-glow);
  }
  100% {
    transform: scale(1.08) rotate(5deg);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 5px #fff;
  }
}

@keyframes avatarPulse {
  0% {
    filter: blur(10px);
    opacity: 0.2;
  }
  100% {
    filter: blur(15px);
    opacity: 0.4;
    transform: scale(1.02);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 0.99;
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
  }
}

/* Glitch Effect Styles */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 #999;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 #fff, 0 1px #888;
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  5% { clip: rect(112px, 9999px, 76px, 0); }
  10% { clip: rect(85px, 9999px, 5px, 0); }
  15% { clip: rect(27px, 9999px, 115px, 0); }
  20% { clip: rect(73px, 9999px, 29px, 0); }
  25% { clip: rect(129px, 9999px, 88px, 0); }
  30% { clip: rect(45px, 9999px, 137px, 0); }
  35% { clip: rect(98px, 9999px, 64px, 0); }
  40% { clip: rect(14px, 9999px, 120px, 0); }
  45% { clip: rect(88px, 9999px, 46px, 0); }
  50% { clip: rect(5px, 9999px, 99px, 0); }
  55% { clip: rect(119px, 9999px, 15px, 0); }
  60% { clip: rect(33px, 9999px, 102px, 0); }
  65% { clip: rect(95px, 9999px, 71px, 0); }
  70% { clip: rect(54px, 9999px, 128px, 0); }
  75% { clip: rect(138px, 9999px, 3px, 0); }
  80% { clip: rect(18px, 9999px, 86px, 0); }
  85% { clip: rect(104px, 9999px, 52px, 0); }
  90% { clip: rect(61px, 9999px, 110px, 0); }
  95% { clip: rect(122px, 9999px, 39px, 0); }
  100% { clip: rect(42px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(76px, 9999px, 116px, 0); }
  11% { clip: rect(3px, 9999px, 88px, 0); }
  22% { clip: rect(91px, 9999px, 14px, 0); }
  33% { clip: rect(122px, 9999px, 60px, 0); }
  44% { clip: rect(25px, 9999px, 111px, 0); }
  55% { clip: rect(105px, 9999px, 45px, 0); }
  66% { clip: rect(50px, 9999px, 137px, 0); }
  77% { clip: rect(131px, 9999px, 9px, 0); }
  88% { clip: rect(12px, 9999px, 78px, 0); }
  100% { clip: rect(98px, 9999px, 53px, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    cursor: default; /* Use standard cursor on mobile */
    height: auto;
    min-height: 100vh;
    padding: 100px 0 40px;
    flex-direction: column;
    justify-content: flex-start;
  }
  .custom-cursor, .cursor-follower {
    display: none;
  }
  .main-container {
    margin-top: 20px;
  }
  .profile-card {
    padding: 30px 20px;
    border-radius: 16px;
  }
  .username {
    font-size: 1.8rem;
  }
  .enter-title {
    font-size: 1.8rem;
  }
  .social-button {
    padding: 12px 16px;
  }
  
  /* Reposition floating player on mobile so it sits naturally at the top */
  .player-container {
    position: relative;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 480px;
    margin: 0 auto;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

/* Discord Copy Button Styling */
.discord-copy-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 10px;
}

.discord-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.discord-copy-btn i {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.discord-copy-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.discord-copy-btn:hover i {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Tooltip styling */
.discord-copy-btn .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.discord-copy-btn .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.discord-copy-btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.discord-copy-btn.copied .tooltip {
  background-color: #ffffff;
  color: #000;
}
