:root {
  --bg-dark: #050505;
  --text-white: #ffffff;
  --text-gray: #aaaaaa;
  --accent: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Backgrounds */
.stars-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 100px 50px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent);
  background-size: 300px 300px;
  opacity: 0.4;
  z-index: -2;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

/* --- SECTIONS --- */
section {
  min-height: 60vh;
  /* Reduced height for closer spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}

/* 1. Hero Section */
.hero-section {
  flex-direction: column;
  text-align: center;
  gap: 30px;
}

.img-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
  transition: all 0.4s ease;
  cursor: pointer;
}

.img-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* NO FILTERS */
}

/* Hero Controls Group - Removed, elements are now stacked */

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: 10px 0 20px 0;
  /* Space below name */
}

/* Music Deck (Container) */
.music-deck-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px auto;
}

.music-row {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Updated Music Pill (Inside Deck) */
.music-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  /* Margin handled by deck */
  width: fit-content;
}

.music-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.music-pill .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
}

.music-pill .status-text {
  font-size: 0.7rem;
  color: var(--text-gray);
}

/* Track Button */
.track-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.track-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

/* Wave Bars */
.wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.wave-bars span {
  display: block;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: height 0.2s;
}

/* Active State for Pill (Individual) */
.music-pill.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.music-pill.active .status-text {
  color: #00ff88;
}

/* Animate waves only when parent pill is active */
.music-pill.active .wave-bars span {
  animation: wave 1s infinite ease-in-out;
}

.music-pill.active .wave-bars span:nth-child(1) {
  animation-delay: 0.0s;
}

.music-pill.active .wave-bars span:nth-child(2) {
  animation-delay: 0.1s;
}

.music-pill.active .wave-bars span:nth-child(3) {
  animation-delay: 0.2s;
}

.music-pill.active .wave-bars span:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes wave {

  0%,
  100% {
    height: 3px;
  }

  50% {
    height: 16px;
  }
}

.greeting {
  letter-spacing: 4px;
  font-size: 1rem;
  color: var(--text-gray);
}

.motto {
  font-family: 'El Messiri', serif;
  font-size: 1.5rem;
  color: #ccc;
  margin-top: 10px;
}

/* 2. Wisdom Section */
.wisdom-section {
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.8), transparent);
}

.wisdom-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  width: 100%;
}

.wisdom-content {
  flex: 1;
  text-align: right;
}

.big-quote {
  font-size: 3rem;
  color: #333;
  margin-bottom: 20px;
}

.wisdom-quote {
  font-family: 'El Messiri', serif;
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.wisdom-author {
  font-family: 'El Messiri', serif;
  font-size: 1rem;
  color: var(--text-gray);
  display: block;
}

.wisdom-image {
  flex: 1;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.wisdom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.wisdom-section:hover .wisdom-image img {
  transform: scale(1.05);
  /* Zoom effect */
}


/* 3. Connect Section */
.connect-section {
  text-align: center;
}

.connect-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 40px;
}

.big-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  color: #000;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.big-btn:hover {
  transform: scale(1.1);
}

.minimal-footer {
  margin-top: 100px;
  color: #444;
  font-size: 0.9rem;
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 1s ease-out;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-200 {
  transition-delay: 0.2s;
}

/* Equalizer */
.equalizer {
  display: none;
  gap: 2px;
  height: 12px;
  align-items: flex-end;
}

.equalizer span {
  width: 3px;
  background: currentColor;
  height: 3px;
}

.sound-toggle:hover .equalizer {
  display: flex;
}

.sound-toggle:hover i {
  display: none;
}

body.sound-active .equalizer {
  display: flex;
}



body.sound-active .equalizer span {
  animation: bounce 0.4s infinite alternate;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.1s;
}

.equalizer span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  to {
    height: 12px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-logo {
    font-size: 2.5rem;
  }

  .wisdom-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .wisdom-content {
    text-align: center;
  }

  .wisdom-image {
    width: 100%;
    height: 300px;
  }

  .img-wrapper {
    width: 220px;
    height: 220px;
  }

  .hero-controls {
    flex-direction: column;
    gap: 10px;
  }
}