/* ========================================
   CSS Variables - Color Palette
   ======================================== */
:root {
  --midnight: #020414;
  --storm-lavender: #6C5CE7;
  --teal-tide: #2ECCB8;
  --mist-gold: #FFC979;
  --moon-white: #F5F3FF;
  
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--midnight);
  color: var(--moon-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Container & Utilities
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 3rem;
  color: var(--storm-lavender);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--teal-tide);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-style: italic;
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(2, 4, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(108, 92, 231, 0.2);
  height: var(--header-height);
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--storm-lavender);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--moon-white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--teal-tide);
}

.nav-separator {
  color: var(--storm-lavender);
  opacity: 0.5;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--midnight) 0%, #1a0d3e 50%, #0d2d3d 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.storm-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 5rem;
  color: var(--storm-lavender);
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--teal-tide);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--moon-white);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--storm-lavender), var(--teal-tide));
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(108, 92, 231, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--moon-white);
  border: 2px solid var(--storm-lavender);
}

.btn-secondary:hover {
  background: rgba(108, 92, 231, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.album-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(108, 92, 231, 0.5);
}

.album-art::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--storm-lavender), var(--teal-tide), var(--mist-gold));
  border-radius: 20px;
  z-index: -1;
  animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.hero-img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* ========================================
   About Section
   ======================================== */
.about {
  background: linear-gradient(180deg, var(--midnight) 0%, #0a0520 100%);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: rgba(245, 243, 255, 0.9);
}

.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.tag {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(46, 204, 184, 0.3));
  border: 1px solid var(--storm-lavender);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--moon-white);
  transition: all 0.3s ease;
}

.tag:hover {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.5), rgba(46, 204, 184, 0.5));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* ========================================
   Songs Section
   ======================================== */
.songs {
  background: linear-gradient(180deg, #0a0520 0%, #050210 100%);
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.song-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(46, 204, 184, 0.05));
  border: 2px solid rgba(108, 92, 231, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--storm-lavender), var(--teal-tide));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.song-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
  border-color: var(--storm-lavender);
}

.song-card:hover::before {
  opacity: 1;
}

.song-card.playing {
  border-color: var(--teal-tide);
  box-shadow: 0 0 30px rgba(46, 204, 184, 0.5);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(46, 204, 184, 0.15));
}

.song-card.playing::before {
  opacity: 1;
  background: var(--teal-tide);
  animation: pulse 2s ease-in-out infinite;
}

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

.song-card.playing::after {
  content: 'NOW PLAYING';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-tide);
  letter-spacing: 1px;
}

.song-info {
  flex: 1;
}

.song-title {
  font-size: 1.3rem;
  color: var(--storm-lavender);
  margin-bottom: 0.5rem;
}

.song-description {
  font-size: 0.95rem;
  color: rgba(245, 243, 255, 0.8);
  line-height: 1.5;
}

.play-btn {
  background: linear-gradient(135deg, var(--storm-lavender), var(--teal-tide));
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.6);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.play-icon {
  display: block;
}

.pause-icon {
  display: none;
}

.song-card.playing .play-icon {
  display: none;
}

.song-card.playing .pause-icon {
  display: block;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
  background: linear-gradient(180deg, #050210 0%, var(--midnight) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(46, 204, 184, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.5);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ========================================
   Global Audio Player
   ======================================== */
.global-player {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(2, 4, 20, 0.98), rgba(10, 5, 32, 0.98));
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--storm-lavender);
  padding: 1rem 0;
  z-index: 999;
  box-shadow: 0 -5px 30px rgba(108, 92, 231, 0.3);
  transition: bottom 0.4s ease;
}

.global-player.active {
  bottom: 0;
}

.player-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-song-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--storm-lavender);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-song-artist {
  font-size: 0.9rem;
  color: var(--teal-tide);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  background: transparent;
  border: 2px solid var(--storm-lavender);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--moon-white);
}

.control-btn-large {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--storm-lavender), var(--teal-tide));
  border: none;
}

.control-btn:hover {
  transform: scale(1.1);
  background: rgba(108, 92, 231, 0.2);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.control-btn-large:hover {
  background: linear-gradient(135deg, var(--teal-tide), var(--storm-lavender));
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.6);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.control-btn-large svg {
  width: 24px;
  height: 24px;
}

.control-btn .play-icon {
  display: block;
}

.control-btn .pause-icon {
  display: none;
}

.control-btn.playing .play-icon {
  display: none;
}

.control-btn.playing .pause-icon {
  display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--midnight);
  border-top: 1px solid rgba(108, 92, 231, 0.2);
  padding: 2rem 0;
  padding-bottom: 6rem;
  text-align: center;
}

.footer p {
  color: rgba(245, 243, 255, 0.7);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.footer a {
  color: var(--teal-tide);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--storm-lavender);
  text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .nav {
    gap: 0.2rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .nav-separator {
    display: none;
  }
  
  .song-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .song-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .play-btn {
    align-self: center;
    margin-top: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .vibe-tags {
    gap: 0.7rem;
  }
  
  .tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .player-content {
    gap: 1rem;
  }
  
  .player-song-title {
    font-size: 1rem;
  }
  
  .player-song-artist {
    font-size: 0.8rem;
  }
  
  .control-btn {
    width: 45px;
    height: 45px;
  }
  
  .control-btn-large {
    width: 55px;
    height: 55px;
  }
}
