@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --glass: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(255, 255, 255, 0.04);
  --blur: none;
  --radius: 20px;
  --secondary-text: rgba(255, 255, 255, 0.65);
  --sub-card-bg: rgba(255, 255, 255, 0.05);
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  background: #0a0a0a;
}

.bg-layer { position: fixed; inset: 0; z-index: 0; }
#bg-video  { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.65); }
.bg-overlay { 
  position: absolute; inset: 0; 
  background: radial-gradient(circle, transparent 20%, rgba(0, 5, 20, 0.5) 100%); 
}
#particles  { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.container {
  position: relative; z-index: 10;
  width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.main-card {
  width: 100%;
  max-width: 850px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1.6px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex; flex-direction: column; gap: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(30px);
  animation: entryAnimation 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes entryAnimation {
  to { opacity: 1; transform: translateY(0); }
}

.profile-header {
  display: flex; align-items: center; gap: 24px;
}

.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.profile-meta { display: flex; flex-direction: column; gap: 4px; }

.name-row { display: flex; align-items: center; gap: 10px; }
.name-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.profile-name {
  font-size: 2.8rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #a78bfa 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Reusable animated gradient text */
.animated-text {
  color: transparent;
  /* Clean multi-color gradient: soft, modern hues */
  background: linear-gradient(90deg,
    #ffffff 0%,    /* bright */
    #e6f6ff 15%,   /* very light sky */
    #cfe9ff 30%,   /* light blue */
    #a5d8ff 45%,   /* soft blue */
    #7dd3fc 60%,   /* aqua */
    #93c5fd 72%,   /* sky */
    #c7b3ff 85%,   /* soft lavender */
    #f3f0ff 100%   /* near-white */
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: colorShift 8s ease-in-out infinite alternate;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Typing caret for animated header name */
.profile-name.typing {
  display: inline-block;
}
.profile-name.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: middle;
  background: currentColor;
  animation: blink 1s steps(1, start) infinite;
}

/* Shimmer animation across the gradient text */
.profile-name.shimmer {
  background-size: 200% 100%;
  animation: shimmer 2.6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.star-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.star-icon {
  width: 24px;
  height: 24px;
  color: #fbbf24;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  user-select: none;
}

.star-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.star-icon:active {
  transform: scale(0.95);
}

.pro-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid rgba(251, 191, 36, 0.3);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

.profile-bio {
  font-size: 1.1rem; font-weight: 500;
  color: #fff;
}

.profile-joined {
  font-size: 0.85rem; font-weight: 400;
  color: var(--secondary-text);
}

.sub-cards-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.sub-card {
  background: var(--sub-card-bg);
  border: 1.6px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.sub-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }

.discord-status-card { display: flex; align-items: center; gap: 12px; }
.ds-avatar-wrap { position: relative; }
.ds-avatar { width: 48px; height: 48px; border-radius: 50%; }

.ds-info { display: flex; flex-direction: column; }
.ds-name-row { display: flex; align-items: center; gap: 6px; }
.ds-name { font-weight: 700; font-size: 0.95rem; }
.ds-badge { width: 14px; height: 14px; opacity: 0.8; }
.ds-status-text { font-size: 0.8rem; color: var(--secondary-text); }

.server-card { display: flex; align-items: center; gap: 12px; }
.server-icon { width: 48px; height: 48px; border-radius: 12px; }
.server-info { flex: 1; display: flex; flex-direction: column; }
.server-name { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 5px; }
.server-description {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--secondary-text);
}
.server-subtitle { font-size: 0.75rem; color: var(--secondary-text); display: flex; align-items: center; gap: 8px; }
.online-count::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 4px; }
.join-btn {
  background: #22c55e; color: #fff; border: none;
  padding: 4px 12px; border-radius: 6px;
  font-weight: 600; font-size: 0.75rem;
  cursor: pointer; transition: opacity 0.2s;
  width: fit-content; margin-top: 4px;
}
.join-btn:hover { opacity: 0.9; }
.discord-top-icon { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; opacity: 0.3; }

.socials-row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.soc-link {
  color: #fff; opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.soc-link svg { width: 32px; height: 32px; }
.soc-link:hover { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(255,255,255,0.4)); }

.view-counter {
  position: absolute; bottom: 20px; left: 30px;
  display: flex; align-items: center; gap: 8px;
  color: var(--secondary-text); font-size: 0.85rem; font-weight: 500;
}
.view-counter svg { width: 16px; height: 16px; opacity: 0.8; }


.sound-toggle {
  position: relative; z-index: 230;
  background: rgba(255,255,255,0.05); border: 1.6px solid var(--glass-border);
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.sound-toggle:hover { transform: scale(1.05); background: rgba(255,255,255,0.1); }

/* Volumer: container for toggle + expanded slider */
.volumer { position: fixed; top: 24px; left: 24px; right: auto; z-index: 220; display: flex; align-items: center; gap: 8px; }
.volume-panel {
  display: flex; align-items: center; gap: 10px;
  background: #000000; /* solid black behind the control */
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.volumer:hover .volume-panel,
.volumer:focus-within .volume-panel,
.volumer.open .volume-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.vol-icon { width: 18px; height: 18px; color: #fff; opacity: 0.9; }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 6px; background: #9ca3af; /* grey right side default */
  border-radius: 999px; outline: none; cursor: pointer;
}
.volume-slider::-webkit-slider-runnable-track { background: #9ca3af; border-radius: 999px; }
.volume-slider::-moz-range-track { background: #9ca3af; border-radius: 999px; }
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  border: 1px solid rgba(0,0,0,0.18);
}
.volume-slider::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.18); }

@media (max-width: 680px) {
  .volumer { right: 16px; top: 18px; }
  .volume-slider { width: 100px; }
}

@media (max-width: 680px) {
  .main-card { padding: 30px 20px; }
  .profile-header { flex-direction: column; text-align: center; }
  .name-row { justify-content: center; }
  .sub-cards-row { grid-template-columns: 1fr; }
  .profile-avatar { width: 100px; height: 100px; }
}

.ds-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.01em;
}

.ds-server-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.clan-badge-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.ds-status-dot-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.ds-status-dot-inline svg {
  width: 14px;
  height: 14px;
}

.ds-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.ds-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  display: block;
}

.ds-status-dot-avatar {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(15, 15, 15, 0.9);
  background: #6b7280;
  overflow: visible;
  transition: background 0.3s;
}

.ds-status-dot-avatar::after {
  content: none;
  position: absolute;
}

.ds-status-dot-avatar.online {
  background: #23a55a;
}

.ds-status-dot-avatar.idle {
  background: #f0b232;
  overflow: hidden;
}

.ds-status-dot-avatar.idle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -3px;
  left: -3px;
  background: rgba(15, 15, 15, 0.9);
}

.ds-status-dot-avatar.dnd {
  background: #f23f43;
}

.ds-status-dot-avatar.dnd::after {
  content: "";
  width: 8px;
  height: 2.5px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.9);
}

.ds-status-dot-avatar.offline {
  background: transparent;
  border: 3px solid #80848e;
}

.ds-status-dot-avatar.offline::after {
  content: none;
}

.ds-status-dot-inline { display: none; }

.activity-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.activity-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 12px;
}

.activity-content {
  display: flex;
  gap: 12px;
  width: 100%;
}

.activity-image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.activity-large-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.activity-small-image {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.9);
  object-fit: cover;
}

.activity-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

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

.activity-detail-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--secondary-text);
  margin-top: 2px;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: introFadeIn 1s ease-out;
}

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

.intro-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.intro-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  margin: 0;
}

.click-indicator {
  margin-top: 32px;
  animation: bounce 2s infinite;
}

.click-indicator svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.7);
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
