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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* Enter overlay */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-text {
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: lowercase;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Music toggle */
.music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(12, 12, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.music-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 12, 0.95);
}

.music-toggle svg {
  width: 18px;
  height: 18px;
  color: #6a6a6a;
  transition: color 0.3s ease;
}

.music-toggle:hover svg {
  color: #ffffff;
}

.music-toggle.muted .icon-music {
  display: none;
}

.music-toggle.muted .icon-muted {
  display: block;
}

.music-toggle:not(.muted) .icon-muted {
  display: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Background */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.1);
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 30%, rgba(40, 30, 60, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(30, 40, 50, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(20, 20, 30, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #020202 0%, #0a0a0a 100%);
}

.bg-blur {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.4"/></svg>');
  opacity: 0.04;
  animation: noise 0.5s steps(10) infinite;
}

@keyframes noise {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(5%, 5%); }
  30% { transform: translate(-5%, 5%); }
  40% { transform: translate(5%, -5%); }
  50% { transform: translate(-5%, 0); }
  60% { transform: translate(5%, 0); }
  70% { transform: translate(0, 5%); }
  80% { transform: translate(0, -5%); }
  90% { transform: translate(5%, 5%); }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: float-particle 25s infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@keyframes float-particle {
  0%, 100% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* Container */
.container {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

/* Language Selector */
.lang-selector {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.lang-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #6a6a6a;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: none;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Profile Card */
.profile-card {
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 0 100px rgba(255, 255, 255, 0.06),
    0 25px 80px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 0 120px rgba(255, 255, 255, 0.08),
    0 35px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* View Count */
.view-count {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.view-count svg {
  width: 14px;
  height: 14px;
  color: #4a4a4a;
}

.view-count span {
  font-size: 0.75rem;
  color: #4a4a4a;
  font-weight: 600;
}

/* Avatar */
.avatar-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.avatar-container {
  position: relative;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 3;
}

.profile-card:hover .avatar {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.06);
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  transition: all 0.3s ease;
}

.status-indicator.online {
  background: #23a559;
  box-shadow: 0 0 15px rgba(35, 165, 89, 0.6);
}
.status-indicator.idle {
  background: #f0b232;
  box-shadow: 0 0 15px rgba(240, 178, 50, 0.6);
}
.status-indicator.dnd {
  background: #f23f43;
  box-shadow: 0 0 15px rgba(242, 63, 67, 0.6);
}
.status-indicator.offline {
  background: #3a3a3a;
}

/* Profile Content */
.profile-content {
  padding: 14px 20px 20px;
  text-align: center;
}

.username-section {
  margin-bottom: 12px;
}

.username {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Badges */
.badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  min-height: 18px;
}

.badge {
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.2s ease;
  filter: grayscale(0.2);
}

.badge:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.1);
  filter: grayscale(0);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.social-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  color: #6a6a6a;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.social-btn:hover svg {
  color: #ffffff;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 14px 0;
}

/* Discord Section */
.discord-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.discord-section:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.discord-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.discord-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.discord-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.discord-desc {
  font-size: 0.65rem;
  color: #4a4a4a;
}

.add-discord-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-discord-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.add-discord-btn svg {
  width: 14px;
  height: 14px;
}

/* Activity */
.activity-section {
  text-align: left;
}

.section-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3a3a3a;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.activity-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.3s ease;
}

.activity-content:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.no-activity {
  color: #3a3a3a;
  font-size: 0.72rem;
  font-style: italic;
}

.activity-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-name {
  font-weight: 600;
  color: #8a8a8a;
  font-size: 0.78rem;
}

.activity-state {
  color: #4a4a4a;
  font-size: 0.68rem;
}

.activity-timestamp {
  color: #3a3a3a;
  font-size: 0.62rem;
  margin-top: 2px;
}

/* Server Card */
.server-card {
  display: block;
  margin-top: 14px;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 25px 80px rgba(0, 0, 0, 0.7);
}

.server-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 35px 100px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.server-banner {
  height: 50px;
  background:
    radial-gradient(ellipse at center, rgba(255, 200, 100, 0.25) 0%, transparent 70%),
    linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.server-banner.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.server-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.08), transparent);
  animation: shimmer 5s infinite;
}

.server-content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.server-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.server-invite {
  font-size: 0.65rem;
  color: #4a4a4a;
  font-weight: 500;
}

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

.profile-card {
  animation: fadeIn 0.7s ease-out;
}

.server-card {
  animation: fadeIn 0.7s ease-out 0.1s both;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #222;
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
