@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%; min-height: 100%;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  background: #0a0a0a;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
}

.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%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px 40px;
}

.main-card {
  position: relative;
  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);
  background: rgba(255, 255, 255, 0.05);
}

.shimmer-loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.05) 25%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer-animation 1.5s infinite linear;
}

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

.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: #fff;
  
  /* Gradual Color Transition System */
  --c1: #ffffff;
  --c2: #a855f7;
  --c3: #3b82f6;
  --glow: rgba(168, 85, 247, 0.4);
  
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  transition: transform 0.3s ease, filter 0.5s ease, --c1 0.5s, --c2 0.5s, --c3 0.5s;
  filter: drop-shadow(0 6px 15px var(--glow));
  
  position: relative;
  z-index: 1;
  user-select: none;
}
/* Smooth Transition Variables */
@property --c1 { syntax: '<color>'; initial-value: #ffffff; inherits: false; }
@property --c2 { syntax: '<color>'; initial-value: #a855f7; inherits: false; }
@property --c3 { syntax: '<color>'; initial-value: #3b82f6; inherits: false; }
@property --glow { syntax: '<color>'; initial-value: rgba(168, 85, 247, 0.4); inherits: false; }

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}








/* 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;
  text-decoration: none;
  color: inherit;
}
.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; }

.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: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--secondary-text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s ease;
  user-select: none;
}

.view-counter:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.view-counter svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  color: inherit;
}


.sound-toggle, .fullscreen-toggle {
  position: relative; z-index: 230;
  background: rgba(255,255,255,0.05); border: 1.6px solid var(--glass-border);
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.sound-toggle svg, .fullscreen-toggle svg { width: 16px; height: 16px; }
.sound-toggle:hover, .fullscreen-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; flex-direction: column; align-items: flex-start; gap: 10px; }
.vol-row { display: flex; align-items: center; gap: 10px; }
.volume-panel {
  display: flex; align-items: center; gap: 12px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateX(-10px); pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vol-row:hover .volume-panel, 
.vol-row:focus-within .volume-panel,
.vol-row.open .volume-panel {
  opacity: 1; transform: translateX(0); pointer-events: auto;
}
.vol-icon { width: 14px; height: 14px; color: #fff; opacity: 0.7; }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 120px; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 999px; outline: none; cursor: pointer;
  position: relative;
}
.volume-slider::-webkit-slider-runnable-track { background: transparent; border-radius: 999px; }
.volume-slider::-moz-range-track { background: transparent; border-radius: 999px; }
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; 
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  border: 1.5px solid #ffffff;
  margin-top: -4px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.volume-slider:active::-webkit-slider-thumb { transform: scale(1.2); }
.volume-slider::-moz-range-thumb { 
  width: 12px; height: 12px; border-radius: 50%; background: #fff; 
  border: 1.5px solid #ffffff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.volume-slider:active::-moz-range-thumb { transform: scale(1.2); }

@media (max-width: 680px) {
  .volumer { right: 16px; top: 18px; left: auto; align-items: flex-end; }
  .volume-slider { width: 100px; }
  .volume-panel { right: 0; transform: translateY(-6px) translateX(0); }
}

@media (max-width: 680px) {
  .container { padding: 90px 16px 60px; }
  .main-card { padding: 40px 24px; gap: 32px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85); }
  .profile-header { flex-direction: column; text-align: center; gap: 20px; }
  .profile-avatar { width: 120px; height: 120px; border: 4px solid rgba(255, 255, 255, 0.05); }
  .name-row { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .profile-name { font-size: 2.4rem; letter-spacing: -0.01em; }
  .profile-bio { font-size: 1.15rem; line-height: 1.6; max-width: 320px; margin: 0 auto; }
  .sub-cards-row { grid-template-columns: 1fr; gap: 20px; }
  .sub-card { padding: 24px; background: rgba(255, 255, 255, 0.08); border-radius: 20px; }
  .server-icon, .ds-avatar { width: 64px; height: 64px; border-radius: 16px; }
  .server-name, .ds-name { font-size: 1.1rem; }
  .server-description, .ds-status-text { font-size: 0.9rem; line-height: 1.5; margin-top: 6px; }
  .socials-row { gap: 40px; margin-top: 10px; }
  .soc-link svg { width: 36px; height: 36px; }
  .view-counter { position: relative; bottom: auto; left: auto; justify-content: center; margin-top: 20px; background: rgba(255,255,255,0.05); width: fit-content; margin-left: auto; margin-right: auto; padding: 8px 16px; border-radius: 24px; border: 1px solid var(--glass-border); }
}

.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;
  }
}
/* ─── Dexter Animation Styles (Text Focused) ────────────────── */
.dexter-text-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
}

.dexter-text-wrapper.active {
  opacity: 1;
}

.dexter-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

#splatCanvas, #trail-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dexter-text-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lw { position: relative; display: flex; flex-direction: column; align-items: center; }

.letter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; /* Matches .profile-name (approx 2.8rem) */
  color: #bf1010;
  -webkit-text-stroke: 1px #700000;
  text-shadow:
    0 0 10px rgba(210,0,0,0.85),
    0 0 20px rgba(160,0,0,0.55),
    0 4px 4px rgba(0,0,0,0.5); /* Added depth shadow */
  line-height: 1.1; /* Matches .profile-name line-height */
  opacity: 0;
  clip-path: polygon(0 50%,100% 50%,100% 50%,0 50%);
  display: block;
  user-select: none;
  will-change: clip-path, filter, transform;
}

.drip-trail {
  position: absolute;
  background: #bf1010;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}

.drips {
  position: absolute; top: 100%; left: 0;
  width: 100%; height: 100px;
  overflow: visible; pointer-events: none;
}

#knife {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}
#knife svg {
  width: 140px; /* Scaled down knife for better fit */
  height: auto;
}

