/* Custom CSS styles for Fix My Speaker */
:root {
  --primary-glow: rgba(14, 165, 233, 0.4);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --navy-dark: #070b14;
  --navy-card: #0d1527;
  --navy-border: #1e293b;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--navy-dark);
  color: #f1f5f9;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Custom glowing effects */
.glow-primary {
  box-shadow: 0 0 30px -5px rgba(14, 165, 233, 0.3);
}

.glow-primary-lg {
  box-shadow: 0 0 50px -10px rgba(14, 165, 233, 0.45), 0 0 80px -20px rgba(99, 102, 241, 0.25);
}

.glow-purple {
  box-shadow: 0 0 35px -5px rgba(168, 85, 247, 0.35);
}

.glow-active {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 30px 2px rgba(14, 165, 233, 0.4), 0 0 60px 10px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 60px 8px rgba(14, 165, 233, 0.7), 0 0 100px 20px rgba(99, 102, 241, 0.4);
  }
}

/* Water Ripple Animation for Cleaner Core */
.ripple-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(56, 189, 248, 0.6);
  opacity: 0;
}

.ripple-active .ripple-1 {
  animation: ripple-wave 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1);
}
.ripple-active .ripple-2 {
  animation: ripple-wave 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1) 0.55s;
}
.ripple-active .ripple-3 {
  animation: ripple-wave 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1) 1.1s;
}
.ripple-active .ripple-4 {
  animation: ripple-wave 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1) 1.65s;
}

@keyframes ripple-wave {
  0% {
    width: 140px;
    height: 140px;
    opacity: 0.9;
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 0;
    border-color: rgba(99, 102, 241, 0);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0);
  }
}

/* Mode-vibrate ripple styling */
.mode-vibrate .ripple-circle {
  border-color: rgba(168, 85, 247, 0.6);
}
.mode-vibrate .ripple-active .ripple-1,
.mode-vibrate .ripple-active .ripple-2,
.mode-vibrate .ripple-active .ripple-3,
.mode-vibrate .ripple-active .ripple-4 {
  animation-name: ripple-wave-vibrate;
}

@keyframes ripple-wave-vibrate {
  0% {
    width: 140px;
    height: 140px;
    opacity: 0.9;
    border-color: rgba(168, 85, 247, 0.9);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 0;
    border-color: rgba(236, 72, 153, 0);
  }
}

/* Frequency Bars Animation */
.bar-animating {
  animation: sound-bars 1s ease-in-out infinite alternate;
}

@keyframes sound-bars {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(13, 21, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(17, 28, 56, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Water drop float animation */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.animate-float {
  animation: float-slow 4s ease-in-out infinite;
}

/* Shimmer effect for progress bar */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.progress-shimmer {
  background-size: 200% 100%;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}
