/* ===== Custom Properties ===== */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --accent: #bf369b;
  --accent-glow: rgba(191, 54, 155, 0.3);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/mic.jpg') center/cover no-repeat;
  filter: brightness(0.35);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.3) 0%,
    rgba(10, 10, 11, 0.6) 60%,
    var(--bg-primary) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  animation: fadeUp 1.2s ease-out both;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeUp 1.2s ease-out 0.6s both;
}

.hero__scroll a {
  display: block;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(244, 244, 245, 0.3);
  border-radius: 14px;
  position: relative;
}

.hero__scroll a::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

/* ===== Sounds Section ===== */
.sounds {
  padding: 6rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

.track {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.track.visible {
  opacity: 1;
  transform: translateY(0);
}

.track:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.track iframe {
  display: block;
  border-radius: 6px;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDot {
  0%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

/* ===== Mobile layout ===== */
@media (max-width: 600px) {
  .sounds {
    padding: 4rem 0;
  }

  .section-title,
  .section-divider {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .track {
    border-radius: 0;
    padding: 0.75rem;
    margin-bottom: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .track:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .track iframe {
    border-radius: 0;
    height: 100px;
  }

  .track:hover {
    box-shadow: none;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__bg {
    transition: none;
  }

  .hero__content,
  .hero__scroll {
    animation: none;
    opacity: 1;
  }

  .track {
    opacity: 1;
    transform: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .hero__scroll a::before {
    animation: none;
  }
}
