@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-color: #0f0b08;
  --card-bg: rgba(0, 0, 0, 0.28);
  --card-border: rgba(255, 255, 255, 0.18);
  --text-color: #ffffff;
  --font-main: 'Montserrat', sans-serif;
  --font-title: 'Space Grotesk', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background Video & Image */
#bg-video, #bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

#bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* High performance overlay darkening */
  z-index: 2;
  pointer-events: none;
}

/* Custom Cursor Trail */
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* Splash Click-to-Enter Screen */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.6s ease-in-out;
}

.splash-content {
  text-align: center;
  animation: pulse 2.2s infinite;
}

.splash-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  letter-spacing: 1px;
  color: #ffffff;
  font-weight: 700;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Portfolio Container */
.portfolio-container {
  z-index: 10;
  width: 92%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spacing between the two cards */
}

/* Glass Card styling */
.glass-card {
  background: rgba(12, 10, 10, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px; /* Prettier rounded/circular edges */
  padding: 24px;
  transition: opacity 0.8s ease-in-out, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: scale(0.97) translateY(10px);
  will-change: transform;
}

.glass-card:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.portfolio-container.visible .glass-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Top Profile Card Details */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

#avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.1);
  display: block;
}

#avatar-decoration {
  position: absolute;
  top: -8.5%;
  left: -8.5%;
  width: 117%;
  height: 117%;
  pointer-events: none;
  z-index: 2;
}

.hidden {
  display: none !important;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#username {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.85rem;
}

.badge-pill i {
  font-size: 0.8rem;
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

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

.stat-divider {
  color: rgba(255, 255, 255, 0.3);
}

/* Bottom Player Card Details */
.player-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
}

.player-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.player-info-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

#music-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.progress-container {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  cursor: pointer;
  position: relative;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 1px;
  transition: width 0.1s linear;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.control-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
}

.control-btn:hover {
  color: #ffffff;
}

.control-btn:active {
  transform: scale(0.95);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
  .portfolio-container {
    width: 94%;
  }
  .glass-card {
    padding: 16px;
  }
  .profile-main {
    gap: 12px;
  }
  .avatar-container {
    width: 60px;
    height: 60px;
  }
  #username {
    font-size: 1.5rem;
  }
  .badge-pill {
    padding: 3px 10px;
    font-size: 0.75rem;
  }
}

.verified-icon-wrapper {
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  margin: 0 2px;
}

