/*
 * ═══════════════════════════════════════════════════════════════
 * RIEL FAV MUSIC - PREMIUM 3D SPOTIFY PLAYLIST WEBSITE
 * Modern, Professional, Super Responsive Design
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   ROOT VARIABLES & DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Color Palette */
  --primary: #ff6b6b;
  --primary-glow: rgba(255, 107, 107, 0.5);
  --secondary: #4facfe;
  --secondary-glow: rgba(79, 172, 254, 0.5);
  --accent: #00f2fe;
  --accent-glow: rgba(0, 242, 254, 0.5);
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.5);
  --neon-pink: #ec4899;
  --neon-green: #1db954;
  --neon-green-glow: rgba(29, 185, 84, 0.5);
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.4);

  /* Dark Theme */
  --dark-bg: #0a0a0f;
  --dark-surface: #121218;
  --dark-card: rgba(20, 20, 30, 0.8);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.1);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
  --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-neon: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ff6b6b 100%);
  --gradient-spotify: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);

  /* Typography */
  --font-primary: 'Outfit', 'Poppins', sans-serif;
  --font-display: 'Space Grotesk', 'Poppins', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-width: min(90%, 1400px);

  /* 3D Effects */
  --perspective: 1000px;
  --rotate-intensity: 15deg;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Variables */
.light-mode {
  --dark-bg: #f0f2f5;
  --dark-surface: #ffffff;
  --dark-card: rgba(255, 255, 255, 0.9);
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-strong: rgba(0, 0, 0, 0.05);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.7);
  --text-muted: rgba(26, 26, 46, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   GOOGLE FONTS IMPORT
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s ease, color 0.5s ease;
}

body.no-scroll {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND IMAGE LAYER
   ═══════════════════════════════════════════════════════════════ */
.bg-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.5) saturate(1.3);
  z-index: -2;
  transform: scale(1.05);
  transition: filter 1s ease, transform 1s ease;
}

.light-mode .bg-photo {
  filter: blur(6px) brightness(0.7) saturate(1.2);
}

/* Overlay gradient - lighter to show photo */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.6) 100%);
  z-index: -1;
  pointer-events: none;
}

.light-mode .bg-overlay {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
}

/* ═══════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   PRELOADER (REDESIGNED)
   ═══════════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background Effect */
.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('image/rieli.jpg') center/cover no-repeat;
  filter: blur(30px) brightness(0.4);
  opacity: 0.6;
  z-index: -1;
  animation: pulseBG 4s ease-in-out infinite alternate;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  perspective: var(--perspective);
}

.preloader-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: url('image/rieli.jpg') center/cover no-repeat;
  box-shadow: 0 0 40px var(--primary-glow), 0 0 80px var(--neon-purple-glow);
  animation: pulseAvatar 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-purple-glow);
  animation: fadeText 2s ease-in-out infinite alternate;
}

.preloader-bars {
  display: flex;
  gap: 8px;
}

.preloader-bar {
  width: 6px;
  height: 20px;
  background: #fff;
  border-radius: 10px;
  animation: soundWave 1s ease-in-out infinite;
  box-shadow: 0 0 10px #fff;
}

.preloader-bar:nth-child(1) {
  animation-delay: 0.0s;
}

.preloader-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.preloader-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.preloader-bar:nth-child(4) {
  animation-delay: 0.3s;
}

.preloader-bar:nth-child(5) {
  animation-delay: 0.4s;
}

/* Animations */
@keyframes pulseAvatar {
  0% {
    transform: scale(1);
    box-shadow: 0 0 40px var(--primary-glow);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--neon-purple-glow), 0 0 100px var(--accent-glow);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 40px var(--primary-glow);
  }
}

@keyframes pulseBG {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes soundWave {

  0%,
  100% {
    height: 20px;
    opacity: 0.5;
  }

  50% {
    height: 50px;
    opacity: 1;
  }
}

@keyframes fadeText {
  0% {
    opacity: 0.6;
    letter-spacing: 4px;
  }

  100% {
    opacity: 1;
    letter-spacing: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 15, 0.95);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-container {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-icon {
  width: 45px;
  height: 45px;
  background: url('image/rieli.jpg') center/cover no-repeat;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px var(--primary-glow);
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-icon {
  transform: rotate(10deg) scale(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background: var(--glass-strong);
  transform: rotate(180deg);
}

.mobile-menu-btn {
  display: none;
  width: 45px;
  height: 45px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.mobile-menu.active .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .nav-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .nav-link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.active .nav-link:nth-child(5) {
  transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 20px 60px;
  perspective: var(--perspective);
  overflow: hidden;
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleDrift 15s linear infinite;
}

.particle:nth-child(odd) {
  background: var(--neon-purple);
}

.particle:nth-child(3n) {
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
  animation: heroReveal 1.2s ease-out forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 30px;
  animation: float 4s ease-in-out infinite;
}

.hero-badge i {
  color: var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}

.hero-title-line {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitchText 5s ease-in-out infinite;
}

.hero-title-line.accent {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-spring);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-neon);
  color: white;
  box-shadow: 0 10px 40px var(--neon-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px var(--neon-purple-glow);
}

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-strong);
  transform: translateY(-5px);
  border-color: var(--accent);
}

.btn-spotify {
  background: var(--gradient-spotify);
  color: white;
  box-shadow: 0 10px 40px var(--neon-green-glow);
}

.btn-spotify:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px var(--neon-green-glow);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 48%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;

}

.scroll-indicator i {
  font-size: 1.5rem;
  color: var(--accent);
  animation: scrollBounce 2s ease-in-out infinite;
  left: 48%;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS COMMON STYLES
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--section-padding) 20px;
  position: relative;
}

.section-container {
  width: var(--container-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.about {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  perspective: var(--perspective);
}

.vinyl-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1a2e 0%, #1a1a2e 15%, transparent 15%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.3) 36%, transparent 37%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.3) 56%, transparent 57%),
    radial-gradient(circle at 50% 50%, transparent 75%, rgba(0, 0, 0, 0.3) 76%, transparent 77%),
    conic-gradient(from 0deg, #2a2a3e, #1a1a2e, #2a2a3e, #1a1a2e, #2a2a3e);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.05),
    0 0 60px rgba(168, 85, 247, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  animation: vinylSpin 8s linear infinite;
  animation-play-state: paused;
}

.vinyl.playing {
  animation-play-state: running;
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 0 30px var(--neon-purple-glow);
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.about-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED TRACKS SECTION
   ═══════════════════════════════════════════════════════════════ */
.featured-tracks {
  background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.03) 50%, transparent 100%);
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  perspective: var(--perspective);
}

.track-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: var(--transition-spring);
}

.track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  /* Fix: Prevent overlay from blocking clicks */
}

.track-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--neon-purple-glow);
  border-color: transparent;
}

.track-card:hover::before {
  opacity: 0.05;
}

.track-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-secondary);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 5px 20px var(--secondary-glow);
}

.track-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 20px;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.track-card:hover .track-icon {
  background: var(--gradient-neon);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.track-artist {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.track-progress {
  height: 4px;
  background: var(--glass);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 15px;
}

.track-progress-bar {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 2px;
  animation: progressPulse 2s ease-in-out infinite;
}

.track-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.track-play {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
  /* Fix: Ensure button is above overlay */
  z-index: 5;
  /* Fix: Bring to front */
}

.track-play:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 30px var(--primary-glow);
}

/* ═══════════════════════════════════════════════════════════════
   MOOD SECTION
   ═══════════════════════════════════════════════════════════════ */
.mood-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 107, 0.03) 50%, transparent 100%);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.mood-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-spring);
}

.mood-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--mood-color), transparent);
  animation: rotateBg 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mood-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--dark-card);
  border-radius: 22px;
  z-index: 0;
}

.mood-card:hover::before {
  opacity: 1;
}

.mood-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.mood-card.active {
  border-color: var(--mood-color);
  box-shadow: 0 0 40px var(--mood-color-glow);
}

.mood-icon {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  transition: var(--transition-spring);
}

.mood-card:hover .mood-icon {
  transform: scale(1.2);
}

.mood-label {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Mood Colors */
.mood-card[data-mood="energetic"] {
  --mood-color: #ff6b6b;
  --mood-color-glow: rgba(255, 107, 107, 0.3);
}

.mood-card[data-mood="chill"] {
  --mood-color: #4facfe;
  --mood-color-glow: rgba(79, 172, 254, 0.3);
}

.mood-card[data-mood="romantic"] {
  --mood-color: #ec4899;
  --mood-color-glow: rgba(236, 72, 153, 0.3);
}

.mood-card[data-mood="focus"] {
  --mood-color: #a855f7;
  --mood-color-glow: rgba(168, 85, 247, 0.3);
}

.mood-card[data-mood="happy"] {
  --mood-color: #fbbf24;
  --mood-color-glow: rgba(251, 191, 36, 0.3);
}

.mood-card[data-mood="sad"] {
  --mood-color: #6366f1;
  --mood-color-glow: rgba(99, 102, 241, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   SPOTIFY PLAYLIST SECTION
   ═══════════════════════════════════════════════════════════════ */
.playlist-section {
  perspective: var(--perspective);
}

.playlist-container {
  max-width: 900px;
  margin: 0 auto;
}

.playlist-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.playlist-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--neon-green), transparent, var(--accent), transparent);
  animation: rotateBg 6s linear infinite;
  opacity: 0.1;
}

.playlist-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--dark-card);
  border-radius: 30px;
  z-index: 0;
}

.playlist-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.playlist-spotify-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-spotify);
  border-radius: 16px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 40px var(--neon-green-glow);
  animation: float 3s ease-in-out infinite;
}

.playlist-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.playlist-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.playlist-embed {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.playlist-embed iframe {
  display: block;
  border-radius: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 242, 254, 0.03) 50%, transparent 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stats-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-spring);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-neon);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stats-card:hover::before {
  transform: scaleX(1);
}

.stats-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stats-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 20px;
  font-size: 2rem;
  margin: 0 auto 25px;
  transition: var(--transition-smooth);
}

.stats-card:nth-child(1) .stats-icon {
  color: var(--primary);
}

.stats-card:nth-child(2) .stats-icon {
  color: var(--secondary);
}

.stats-card:nth-child(3) .stats-icon {
  color: var(--neon-purple);
}

.stats-card:nth-child(4) .stats-icon {
  color: var(--neon-green);
}

.stats-card:hover .stats-icon {
  background: var(--gradient-neon);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

.stats-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stats-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH SECTION
   ═══════════════════════════════════════════════════════════════ */
.search-section {
  padding: 60px 20px;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 20px 25px 20px 60px;
  background: var(--dark-card);
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 22px;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.search-input:focus~.search-icon,
.search-input:not(:placeholder-shown)~.search-icon {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   NOW PLAYING SECTION
   ═══════════════════════════════════════════════════════════════ */
.now-playing {
  padding: 40px 20px 80px;
}

.now-playing-container {
  max-width: 800px;
  margin: 0 auto;
}

.now-playing-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.now-playing-card::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: radial-gradient(circle at 50% 50%, var(--neon-purple-glow), transparent 50%);
  animation: pulseGlow 4s ease-in-out infinite;
  opacity: 0.3;
}

.now-playing-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.now-playing-header i {
  font-size: 1.5rem;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.now-playing-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.now-playing-info {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
}

.now-playing-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.now-playing-artist {
  font-size: 1rem;
  color: var(--text-secondary);
}

.now-playing-embed {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.visualizer-bar {
  width: 6px;
  background: var(--gradient-neon);
  border-radius: 3px;
  animation: visualizerWave 0.8s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) {
  height: 60%;
  animation-delay: 0s;
}

.visualizer-bar:nth-child(2) {
  height: 100%;
  animation-delay: 0.1s;
}

.visualizer-bar:nth-child(3) {
  height: 40%;
  animation-delay: 0.2s;
}

.visualizer-bar:nth-child(4) {
  height: 80%;
  animation-delay: 0.3s;
}

.visualizer-bar:nth-child(5) {
  height: 50%;
  animation-delay: 0.4s;
}

.visualizer-bar:nth-child(6) {
  height: 90%;
  animation-delay: 0.5s;
}

.visualizer-bar:nth-child(7) {
  height: 30%;
  animation-delay: 0.6s;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.footer-logo i {
  font-size: 1.8rem;
  -webkit-text-fill-color: initial;
  color: var(--accent);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition-spring);
}

.social-link:hover {
  background: var(--gradient-neon);
  border-color: transparent;
  color: white;
  transform: translateY(-5px);
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-copyright span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Floating Music Notes */
.floating-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-note {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.1;
  animation: floatNote 10s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes spin3d {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }

  25% {
    transform: rotateY(90deg) rotateX(10deg);
  }

  50% {
    transform: rotateY(180deg) rotateX(0deg);
  }

  75% {
    transform: rotateY(270deg) rotateX(-10deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(0deg);
  }
}

@keyframes preloaderWave {

  0%,
  100% {
    transform: scaleY(0.5);
  }

  50% {
    transform: scaleY(1.2);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitchText {

  0%,
  90%,
  100% {
    transform: translate(0);
  }

  92% {
    transform: translate(-3px, 1px);
  }

  94% {
    transform: translate(3px, -1px);
  }

  96% {
    transform: translate(-2px, -2px);
  }

  98% {
    transform: translate(2px, 2px);
  }
}

@keyframes particleDrift {
  0% {
    transform: translate(0, 100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translate(100px, -100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@keyframes vinylSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateBg {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes progressPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@keyframes visualizerWave {

  0%,
  100% {
    transform: scaleY(0.5);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.1;
  }
}

@keyframes floatNote {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.1;
  }

  90% {
    opacity: 0.1;
  }

  100% {
    transform: translateY(-100%) rotate(360deg);
    opacity: 0;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Large Desktop */
@media (min-width: 1440px) {
  :root {
    --section-padding: 140px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .vinyl-container {
    max-width: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .scroll-indicator {
    left: 42%;
  }

  .scroll-indicator i {
    left: 42%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .tracks-grid {
    grid-template-columns: 1fr;
  }

  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .playlist-card {
    padding: 25px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-card {
    padding: 25px 20px;
  }

  .stats-number {
    font-size: 2.2rem;
  }

  .about-stats {
    justify-content: center;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 18px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .mood-card {
    border-radius: 18px;
  }

  .mood-icon {
    font-size: 2.2rem;
  }

  .mood-label {
    font-size: 0.75rem;
  }

  .playlist-header {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stats-card {
    padding: 20px 15px;
  }

  .stats-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .stats-number {
    font-size: 1.8rem;
  }

  .stats-label {
    font-size: 0.85rem;
  }

  .track-card {
    padding: 20px;
  }

  .track-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .vinyl-container {
    max-width: 250px;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  /* Mobile Optimizations for Now Playing */
  .now-playing {
    padding: 30px 15px 60px;
  }

  .now-playing-card {
    padding: 25px 20px;
  }

  .now-playing-title {
    font-size: 1.2rem;
  }

  /* Larger touch targets */
  .track-play {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* Extra Small */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 6px 15px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-secondary: rgba(255, 255, 255, 0.9);
  }
}