/* --- Global Variables & Colors (HSL Palette) --- */
:root {
  --bg-color: #0b0c10;
  --panel-bg: rgba(22, 26, 35, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  
  /* HSL tailored color palette */
  --text-primary: hsl(210, 15%, 95%);
  --text-secondary: hsl(210, 10%, 70%);
  --text-muted: hsl(210, 10%, 50%);
  
  --accent-cyan: hsl(180, 100%, 50%);
  --accent-purple: hsl(270, 80%, 60%);
  --accent-spotify: hsl(142, 70%, 50%);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --in-oklch: ;
}

@supports (linear-gradient(in oklch, white, black)) {
  :root {
    --in-oklch: in oklch;
  }
}

/* --- Base Styles & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Ambient Glow Background --- */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  top: 40%;
  left: -200px;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: hsl(300, 70%, 50%);
  bottom: -100px;
  right: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -60px) scale(0.9);
  }
}

/* --- Header Section --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  padding: 1.25rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg var(--in-oklch), var(--accent-cyan), var(--accent-purple));
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
}

.btn-spotify {
  background-color: var(--accent-spotify);
  color: #fff;
  font-weight: 700;
}

.btn-spotify:hover {
  background-color: hsl(142, 70%, 45%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
  padding: 6rem 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 50px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: 5rem;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg var(--in-oklch), #fff, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
}

.artist-name {
  font-weight: 700;
  background: linear-gradient(135deg var(--in-oklch), var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sonode-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.artwork-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(138, 43, 226, 0.15);
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.artwork-wrapper:hover .artwork-image {
  transform: scale(1.05);
}

.artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.artwork-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

.wave-icon {
  color: var(--accent-cyan);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- Video Card Section --- */
.video-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, transparent, rgba(11, 12, 16, 0.5));
}

.video-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 240, 255, 0.05);
  background-color: #000;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-controls-overlay {
  opacity: 1;
}

.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  color: var(--accent-cyan);
}

.progress-bar-container {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.progress-bar-container:hover {
  height: 8px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  border-radius: 3px;
}

.time-display {
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
}

/* --- Lyrics Section --- */
.lyrics-section {
  padding: 6rem 0;
}

.lyrics-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.lyrics-intro h2 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.lyrics-intro p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.language-selector {
  display: flex;
  gap: 1rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 0.4rem;
  border-radius: 50px;
  width: max-content;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
}

.lyrics-display-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar for Lyrics Display */
.lyrics-display-card::-webkit-scrollbar {
  width: 8px;
}

.lyrics-display-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.lyrics-display-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid transparent;
}

.lyrics-display-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.3);
}

.lyrics-section-block {
  margin-bottom: 2.5rem;
}

.lyrics-section-block:last-child {
  margin-bottom: 0;
}

.block-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.lyric-line {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: max-content;
  max-width: 100%;
}

.lyric-line:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.lyric-line.active {
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateX(10px);
}

.hidden {
  display: none !important;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(20, 25, 35, 0.9);
  border: 1px solid var(--accent-cyan);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .lyrics-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .lyrics-intro {
    text-align: center;
  }
  
  .language-selector {
    margin: 0 auto;
  }
  
  .lyric-line {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
