/* ============================================
   AETHER · Premium Music Portfolio
   Mobile-First Design System
   ============================================ */

:root {
  /* Core Colors */
  --bg-deep: #050505;
  --bg-surface: #0a0a0a;
  --accent: #8B5CF6;
  --accent-glow: #A78BFA;
  --accent-dim: #6D28D9;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* Glass Effect */
  --glass-bg: rgba(10, 10, 10, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height: 60px;
  --player-height: 72px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   BASE RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Focus Styles for Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.3s var(--ease-smooth);
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   START OVERLAY
   ============================================ */
.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.start-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-overlay__text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.start-overlay__btn {
  padding: var(--space-md) var(--space-2xl);
  border: 1px solid var(--accent);
  background: transparent;
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  min-width: 200px;
  min-height: 56px;
}

.start-overlay__btn:hover,
.start-overlay__btn:focus {
  background: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.02);
}

/* ============================================
   NAVIGATION WITH INTEGRATED WAVE
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.nav__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.nav__logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: white;
  text-decoration: none;
}

.nav__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s var(--ease-smooth);
}

.nav__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__links {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  list-style: none;
}

.nav__links.active {
  display: flex;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.nav__links a:hover,
.nav__links a:focus {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav__links a.active {
  color: var(--accent);
}

/* Desktop Nav */
@media (min-width: 768px) {
  .nav__menu-btn {
    display: none;
  }

  .nav__links {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    gap: var(--space-xl);
  }

  .nav__links a {
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
  }

  .nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.3s var(--ease-smooth);
  }

  .nav__links a:hover::after,
  .nav__links a.active::after {
    width: 100%;
  }
}



/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  position: relative;
  z-index: 10;
}

section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  padding-top: calc(var(--nav-height) + var(--space-2xl));
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: clamp(3rem, 15vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(180deg, #fff 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.5rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero__meta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }
}

.hero__cta {
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-2xl);
  background: transparent;
  border: 1px solid var(--accent);
  color: white;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  min-height: 48px;
}

.hero__cta:hover,
.hero__cta:focus {
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* ============================================
   MUSIC SECTION
   ============================================ */
.music {
  padding-bottom: calc(var(--player-height) + var(--space-3xl));
}

.music__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.music__title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.music__subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Carousel Container with Arrow Buttons */
.music__carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.music__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
}

.music__nav:hover,
.music__nav:focus {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.music__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.music__nav:disabled:hover {
  background: var(--bg-surface);
  border-color: var(--glass-border);
  box-shadow: none;
}

/* Hide arrows on very small screens, show swipe hint */
@media (max-width: 480px) {
  .music__nav {
    display: none;
  }
}

@media (min-width: 768px) {
  .music__nav {
    width: 48px;
    height: 48px;
  }
}

/* Horizontal Scroll Track List */
.music__tracks {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-lg);
  margin: 0 calc(-1 * var(--space-lg));
  scrollbar-width: none;
}

.music__tracks::-webkit-scrollbar {
  display: none;
}

.track-card {
  flex: 0 0 260px;
  scroll-snap-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
}

.track-card:hover,
.track-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.track-card__art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s var(--ease-smooth);
}

.track-card:hover .track-card__art {
  filter: grayscale(0%);
}

.track-card__info {
  padding: var(--space-lg);
}

.track-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.track-card__duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.track-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: var(--space-md);
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
}

.track-card__play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (min-width: 768px) {
  .track-card {
    flex: 0 0 300px;
  }
}

/* Upload Track Button */
.music__upload {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.music__upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.music__upload-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: 2px dashed var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  min-height: 56px;
}

.music__upload-btn span:first-child {
  font-size: 1.5rem;
  font-weight: 300;
}

.music__upload-btn:hover,
.music__upload-input:focus+.music__upload-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.music__upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   TOUR SECTION
   ============================================ */
.tour {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03));
}

.tour__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.tour__title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.tour__list {
  width: 100%;
  max-width: 700px;
}

.tour-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-smooth);
}

.tour-item:hover {
  padding-left: var(--space-md);
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
}

.tour-item__date {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.tour-item__venue {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.tour-item__location {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tour-item__btn {
  justify-self: start;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.3s var(--ease-smooth);
}

.tour-item__btn:hover {
  background: var(--accent-glow);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.tour-item__btn--sold {
  background: var(--text-muted);
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .tour-item {
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: var(--space-xl);
  }

  .tour-item__btn {
    justify-self: end;
  }
}

/* ============================================
   PLAYER BAR
   ============================================ */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  z-index: 500;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-smooth);
}

.player.active {
  transform: translateY(0);
}

.player__info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.player__art {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.player__details {
  min-width: 0;
}

.player__title {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__status {
  font-size: 0.75rem;
  color: var(--accent);
}

.player__progress {
  display: none;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.player__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s var(--ease-smooth);
}

.player__btn:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .player {
    padding: 0 var(--space-2xl);
  }

  .player__progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .player__progress-bar {
    flex: 1;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
    min-width: 200px;
  }

  .player__progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
  }

  .player__time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-3xl) var(--space-lg);
  padding-bottom: calc(var(--player-height) + var(--space-2xl));
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: all 0.3s var(--ease-smooth);
}

.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s var(--ease-smooth) forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}