:root {
  --color-bg: #050505;
  --color-primary: #ff1a1a;
  --color-primary-dark: #cc0000;
  --color-primary-glow: rgba(255, 26, 26, 0.5);
  --color-surface: rgba(20, 20, 20, 0.4);
  --color-surface-hover: rgba(40, 40, 40, 0.6);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.1);
  --backdrop-blur: 16px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at center, #1a0505 0%, var(--color-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.8s ease;
}

.enter-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.enter-content {
  text-align: center;
  animation: enterPulse 2s ease-in-out infinite;
}

@keyframes enterPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.enter-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.enter-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--color-primary-dark);
}

.enter-glow {
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: var(--color-primary-glow);
  filter: blur(20px);
  z-index: -1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.enter-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.enter-subtext {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.enter-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-primary);
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  width: 280px;
}

.loader {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  position: relative;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
  inset: 6px;
  animation-delay: 0.15s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  inset: 12px;
  animation-delay: 0.3s;
}

.loader.pulse .loader-ring {
  animation: loaderPulse 1.5s ease-in-out infinite;
  border: 3px solid var(--color-primary);
  opacity: 0.3;
}

.loader.pulse .loader-ring:nth-child(2) {
  animation-delay: 0.3s;
}

.loader.pulse .loader-ring:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

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

.loading-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.loading-subtext {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

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

.loading-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s ease;
}

.background-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 26, 26, 0.15), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, #0f0000 50%, var(--color-bg) 100%);
  background-size: cover;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, var(--color-primary-glow) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.audio-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 100;
}

.audio-toggle:hover {
  background: var(--color-surface-hover);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.links-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-back:hover {
  background: var(--color-surface-hover);
  box-shadow: 0 0 20px var(--color-primary-glow);
  color: var(--color-primary);
}

.links-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 100vh;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.profile-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 8px;
  animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--color-bg);
  padding: 3px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow), transparent 70%);
  opacity: 0.6;
  z-index: -1;
  filter: blur(20px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.profile-badges {
  display: flex;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  margin-top: 4px;
}

.badge {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge:hover {
  color: white;
  transform: scale(1.1);
}

.badge:hover {
  transform: scale(1.2);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.profile-stats .stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-stats .stat i {
  color: var(--color-primary);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 8px;
  letter-spacing: -0.5px;
}

.profile-bio {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: white;
  transform: scale(1.15);
}

.discord-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
}

.discord-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}

.status-dot.online {
  background: #3ba55c;
}

.status-dot.idle {
  background: #faa61a;
}

.status-dot.dnd {
  background: #ed4245;
}

.status-dot.offline {
  background: #747f8d;
}

.discord-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-name i {
  color: #5865f2;
}

.verified-badge {
  color: var(--color-primary);
  font-size: 12px;
}

.discord-activity {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

.discord-activity .activity-type {
  color: var(--color-primary);
}

.discord-activity .activity-details {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.music-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
}

.music-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.music-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.music-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.music-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.music-controls {
  display: flex;
  gap: 4px;
}

.control-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.control-btn:hover {
  transform: scale(1.1);
}

.play-btn {
  font-size: 16px;
}

.links-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.link-card:hover::before {
  transform: translateX(100%);
}

.link-card:hover {
  background: var(--color-surface-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.link-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--link-color, white);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.link-card:hover .link-icon {
  transform: scale(1.1);
}

.link-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.link-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.link-card:hover .link-arrow {
  color: rgba(255, 255, 255, 0.6);
  transform: translateX(2px);
}

.create-cta {
  width: 100%;
}

.create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.create-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.02);
}

.links-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}

.links-footer p {
  font-size: 11px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

@media (max-width: 480px) {
  .links-container {
    padding: 40px 16px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 20px;
  }

  .music-player {
    flex-wrap: wrap;
    justify-content: center;
  }

  .music-info {
    width: 100%;
    order: 2;
    text-align: center;
  }

  .music-controls {
    order: 3;
  }

  .nav-back span {
    display: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.profile-section {
  animation: fadeIn 0.6s ease forwards;
}

.discord-status {
  animation: fadeIn 0.6s ease 0.1s forwards;
  opacity: 0;
}

.music-player {
  animation: fadeIn 0.6s ease 0.2s forwards;
  opacity: 0;
}

.link-card:nth-child(1) {
  animation: fadeIn 0.6s ease 0.3s forwards;
  opacity: 0;
}

.link-card:nth-child(2) {
  animation: fadeIn 0.6s ease 0.35s forwards;
  opacity: 0;
}

.link-card:nth-child(3) {
  animation: fadeIn 0.6s ease 0.4s forwards;
  opacity: 0;
}

.link-card:nth-child(4) {
  animation: fadeIn 0.6s ease 0.45s forwards;
  opacity: 0;
}

.link-card:nth-child(5) {
  animation: fadeIn 0.6s ease 0.5s forwards;
  opacity: 0;
}

.link-card:nth-child(6) {
  animation: fadeIn 0.6s ease 0.55s forwards;
  opacity: 0;
}

.links-container {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.links-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.links-nav {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s ease;
}

.links-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.audio-toggle {
  opacity: 0;
  transition: all 0.3s ease, opacity 0.6s ease;
}

.audio-toggle.visible {
  opacity: 1;
}

.music-cover {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-artist {
  font-size: 11px;
  color: var(--color-text-muted);
}

.gallery-section {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 24px;
}

.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 11px;
  color: white;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

.lightbox-title {
  text-align: center;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.spotify-embed {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.spotify-embed iframe {
  border-radius: 12px;
}

/* Layout Style: Icons Only */
.style-icons-only .links-section {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.style-icons-only .link-card {
  width: 60px;
  height: 60px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.style-icons-only .link-icon {
  font-size: 26px;
  width: auto;
  background: none;
}

.style-icons-only .link-text,
.style-icons-only .link-arrow {
  display: none;
}

/* Layout Style: Minimal */
.style-minimal .link-card {
  background: transparent;
  border: none;
  padding: 10px 16px;
}

.style-minimal .link-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.style-minimal .link-icon {
  width: 30px;
  font-size: 18px;
  background: none;
}

/* Layout Style: Cards */
.style-cards .links-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.style-cards .link-card {
  flex-direction: column;
  padding: 20px;
  text-align: center;
  gap: 8px;
}

.style-cards .link-icon {
  width: auto;
  font-size: 28px;
  margin-bottom: 4px;
  background: none;
}

.style-cards .link-arrow {
  display: none;
}

/* Layout Style: Glass */
.style-glass .link-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.style-glass .link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Layout Style: Neon */
.style-neon .link-card {
  background: transparent;
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.style-neon .link-card:hover {
  box-shadow: 0 0 20px var(--color-primary-glow), 0 0 40px var(--color-primary-glow);
}

.style-neon .link-icon {
  color: var(--color-primary);
  background: none;
}