@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #050508;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.22);
  --text-main: #ffffff;
  --text-sub: #a1a1aa;
  
  /* Neon Accents */
  --neon-purple: #c084fc;
  --neon-purple-glow: rgba(192, 132, 252, 0.25);
  --neon-cyan: #22d3ee;
  --neon-cyan-glow: rgba(34, 211, 238, 0.25);
  --neon-gold: #fbbf24;
  --neon-gold-glow: rgba(251, 191, 36, 0.2);
  
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Reset & Scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none; /* Hide default cursor for custom crosshair */
}

html {
  background-color: var(--bg-dark);
}

body {
  background-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Page Background Setup */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
  width: 32px;
  height: 32px;
  background-image: url('cursor.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  /* Needle is bottom-left, align the tip with coordinate */
  transform: translate(-4px, -28px);
  filter: invert(1) drop-shadow(0 0 5px var(--neon-cyan));
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s;
}

.custom-cursor.clicking {
  transform: translate(-4px, -28px) scale(0.85) rotate(-15deg);
  filter: invert(1) drop-shadow(0 0 6px var(--neon-purple));
}

.custom-cursor-follower {
  width: 16px;
  height: 16px;
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s, width 0.15s, height 0.15s;
}

.custom-cursor-follower.clicking {
  border-color: var(--neon-purple);
  width: 24px;
  height: 24px;
}

/* Container Centering */
.guns-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1rem;
}

/* Glassmorphic Bio Card */
.bio-card {
  width: 100%;
  max-width: 580px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 
              0 0 40px rgba(34, 211, 238, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 55%
  );
  transform: rotate(45deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

/* Avatar Frame & Glow */
.avatar-container {
  position: relative;
  width: 135px;
  height: 135px;
  margin-bottom: 1.5rem;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
}

.avatar-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  z-index: 1;
  filter: blur(8px);
  opacity: 0.6;
  animation: spinGlow 4s linear infinite;
}

.avatar-container:hover .avatar-image {
  transform: scale(1.05) rotate(3deg);
}

/* Profile Info Header */
.username-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.username {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #e4e4e7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.verified-icon {
  width: 18px;
  height: 18px;
  color: var(--neon-cyan);
  fill: var(--neon-cyan);
  filter: drop-shadow(0 0 6px var(--neon-cyan-glow));
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
  min-height: 20px;
}

/* Badges Row */
.badge-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.custom-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-dev {
  background: rgba(192, 132, 252, 0.1);
  color: var(--neon-purple);
  border-color: rgba(192, 132, 252, 0.2);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.05);
}

.badge-premium {
  background: rgba(34, 211, 238, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.05);
}

.badge-vip {
  background: rgba(251, 191, 36, 0.1);
  color: var(--neon-gold);
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.05);
}

/* Social Buttons Links */
.socials-container {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 2rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  transform: translateY(-2px);
}

/* Click to copy popup alert */
.tooltip-copy {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #000;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid var(--neon-cyan);
}

.tooltip-copy.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tab Navigation inside Card */
.card-nav {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-sub);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--text-main);
  border-color: var(--neon-cyan);
}

/* Accordion/Tab Panels content */
.tab-content {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  animation: tabFadeIn 0.3s ease;
}

.tab-content.active {
  display: flex;
}

/* Items details inside tabs */
.item-row {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-main);
  text-align: left;
}

.item-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.item-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.item-badge-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(34, 211, 238, 0.2);
}

.item-badge-purple {
  background: rgba(192, 132, 252, 0.1);
  color: var(--neon-purple);
  border-color: rgba(192, 132, 252, 0.2);
}

.item-badge-crimson {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.2);
}

.item-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.4;
}

/* Custom Music Player Widget */
.music-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 280px;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 1000;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .music-player {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

.music-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-image: url('avatar.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.music-cover-spin {
  animation: musicCoverSpin 6s linear infinite;
}

.music-info {
  flex-grow: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.music-track {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.music-artist {
  font-size: 0.7rem;
  color: var(--text-sub);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.play-pause-btn {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.play-pause-btn:hover {
  background-color: var(--neon-cyan);
  color: #000;
  transform: scale(1.1);
}

.play-pause-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Audio visualizer bar group */
.visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.v-bar {
  width: 2px;
  background-color: var(--neon-cyan);
  border-radius: 1px;
  height: 4px;
}

.v-bar.animate {
  animation: visualizerAnim 1.2s ease-in-out infinite alternate;
}

.v-bar:nth-child(1) { animation-delay: 0.1s; }
.v-bar:nth-child(2) { animation-delay: 0.4s; }
.v-bar:nth-child(3) { animation-delay: 0.2s; }
.v-bar:nth-child(4) { animation-delay: 0.5s; }

/* Diagnostic / Opsec footer block */
.card-footer {
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-sub);
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
}

.view-counter {
  color: var(--neon-cyan);
}

/* Animations declarations */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes spinGlow {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shine {
  100% {
    left: 125%;
    top: 125%;
  }
}

@keyframes musicCoverSpin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes visualizerAnim {
  0% {
    height: 4px;
  }
  100% {
    height: 16px;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .bio-card {
    padding: 1.5rem;
  }
  .socials-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Enter Screen Overlay (Autoplay Bypass) */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 8, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.enter-content {
  text-align: center;
}

.enter-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  animation: pulseTitle 2s infinite alternate;
}

.enter-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

@keyframes pulseTitle {
  from { filter: drop-shadow(0 0 2px rgba(255,255,255,0.1)); }
  to { filter: drop-shadow(0 0 16px rgba(34,211,238,0.5)); }
}

/* Volume Slider Styles */
.volume-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-sub);
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--card-border);
}

.vol-slider {
  -webkit-appearance: none;
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: width 0.2s ease;
}

.vol-slider:hover {
  width: 70px;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: none;
}

.vol-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: none;
  cursor: none;
}
