/* ── PARC Foundation Musical Note Preloader CSS ── */
#parc-music-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1a1a24 0%, #0d0d12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

#parc-music-preloader.hide-preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Staff Lines Background */
.preloader-staff-lines {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0.08;
  pointer-events: none;
}

.staff-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #f99f1b 20%, #f7581e 50%, #f99f1b 80%, transparent 100%);
  animation: staffWave 4s ease-in-out infinite alternate;
}

@keyframes staffWave {
  0% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.5) translateY(-3px); }
  100% { transform: scaleY(1) translateY(3px); }
}

/* Floating Notes */
.floating-notes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-note {
  position: absolute;
  bottom: -60px;
  color: rgba(249, 159, 27, 0.85);
  filter: drop-shadow(0 0 10px rgba(249, 159, 27, 0.7));
  animation: floatUpNote 4.5s ease-in-out infinite;
}

.floating-note svg {
  width: 32px;
  height: 32px;
}

.note-1 { left: 10%; animation-delay: 0s; animation-duration: 4.2s; color: #f7581e; }
.note-2 { left: 28%; animation-delay: 1.1s; animation-duration: 4.8s; color: #f99f1b; }
.note-3 { left: 50%; animation-delay: 2.2s; animation-duration: 3.9s; color: #ffc107; }
.note-4 { left: 68%; animation-delay: 0.6s; animation-duration: 4.5s; color: #f78f1e; }
.note-5 { left: 85%; animation-delay: 1.8s; animation-duration: 5.0s; color: #f7581e; }
.note-6 { left: 40%; animation-delay: 3.0s; animation-duration: 4.3s; color: #f99f1b; }

@keyframes floatUpNote {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Center Content */
.preloader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo & Soundwave Rings */
.preloader-logo-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.preloader-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(249, 159, 27, 0.4);
  position: relative;
  z-index: 2;
  animation: logoPulse 2s ease-in-out infinite;
}

.music-wave-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(249, 159, 27, 0.5);
  animation: waveExpand 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 0.8s; }
.ring-3 { animation-delay: 1.6s; }

@keyframes waveExpand {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
    border-color: rgba(247, 88, 30, 0.85);
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
    border-color: rgba(249, 159, 27, 0);
  }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(247, 88, 30, 0.6)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(249, 159, 27, 0.9)); }
}

/* Equalizer Bars */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 38px;
  margin-bottom: 24px;
}

.eq-bar {
  width: 6px;
  height: 100%;
  background: linear-gradient(to top, #f7581e, #f99f1b);
  border-radius: 4px;
  animation: eqBounce 1.1s ease-in-out infinite alternate;
}

.bar-1 { animation-delay: 0.1s; height: 35%; }
.bar-2 { animation-delay: 0.3s; height: 85%; }
.bar-3 { animation-delay: 0.5s; height: 50%; }
.bar-4 { animation-delay: 0.2s; height: 100%; }
.bar-5 { animation-delay: 0.6s; height: 60%; }
.bar-6 { animation-delay: 0.4s; height: 90%; }
.bar-7 { animation-delay: 0.7s; height: 40%; }

@keyframes eqBounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Progress Bar */
.preloader-progress-wrap {
  width: 240px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f7581e, #f99f1b, #ffc107);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(249, 159, 27, 0.9);
  transition: width 0.2s ease-out;
}

/* Status Text */
.preloader-text {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e2e2e8;
  display: flex;
  align-items: center;
  gap: 9px;
}

.music-icon-spin {
  color: #f99f1b;
  display: inline-block;
  animation: noteRotate 2s linear infinite;
  font-size: 1.15rem;
}

@keyframes noteRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(18deg) scale(1.25); }
  100% { transform: rotate(0deg) scale(1); }
}
