/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero {
  text-align: center;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.9rem;
  margin-bottom: 30px;
  color: #d1d5db;
}

.upload-area {
  background: rgba(255, 255, 255, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.upload-area:hover {
  background: rgba(255, 255, 255, 0.3);
}

.upload-label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
}

input[type="file"] {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

.record-section {
  margin: 20px 0;
}

.record-btn,
.stop-btn {
  font-size: 1rem;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
  font-weight: 500;
}

.record-btn {
  background: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.record-btn.recording {
  animation: pulse 1s infinite;
  background: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.stop-btn {
  background: #ef4444;
  margin-left: 10px;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  }
}

.audio-player {
  width: 100%;
  margin: 15px 0;
  border-radius: 10px;
}

.analyze-btn {
  padding: 12px 25px;
  border: none;
  background: #6366f1;
  border-radius: 25px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  transition: all 0.3s ease-in-out;
}

.analyze-btn:hover {
  transform: scale(1.05);
  background: #4f46e5;
}

.result-box {
  margin-top: 25px;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #e0e0e0;
}

footer p {
  margin: 0;
}

@media (max-width: 500px) {
  .hero {
    padding: 25px 15px;
  }
} */


/* body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
} */


body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Bubble animation styles */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 2%, transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 2%, transparent 20%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 2%, transparent 20%);
  animation: floatBubbles 15s infinite linear;
}

body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    radial-gradient(circle at 60% 90%, rgba(255,255,255,0.08) 3%, transparent 25%),
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.08) 3%, transparent 25%),
    radial-gradient(circle at 90% 60%, rgba(255,255,255,0.08) 3%, transparent 25%);
  animation: floatBubbles 20s infinite linear reverse;
}

@keyframes floatBubbles {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-40px) translateX(0);
  }
  75% {
    transform: translateY(-20px) translateX(-10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Floating bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 8s infinite ease-in-out;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bubble:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.bubble:active {
  transform: scale(0.9);
}

.bubble.popped {
  animation: pop 0.5s ease-out forwards;
}

.bubble.clicked {
  animation: burst 0.6s ease-out forwards;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.1);
  }
  50% {
    transform: translateY(-60px) translateX(-10px) scale(0.9);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-30px) translateX(-15px) scale(1.05);
  }
}

@keyframes burst {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes flyAway {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.2);
    opacity: 0;
  }
}

/* Individual bubble styles */
.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.bubble:nth-child(2) { width: 25px; height: 25px; left: 20%; animation-delay: 1s; animation-duration: 10s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 35%; animation-delay: 3s; animation-duration: 15s; }
.bubble:nth-child(4) { width: 30px; height: 30px; left: 50%; animation-delay: 2s; animation-duration: 8s; }
.bubble:nth-child(5) { width: 45px; height: 45px; left: 65%; animation-delay: 4s; animation-duration: 11s; }
.bubble:nth-child(6) { width: 35px; height: 35px; left: 80%; animation-delay: 1.5s; animation-duration: 9s; }
.bubble:nth-child(7) { width: 50px; height: 50px; left: 90%; animation-delay: 2.5s; animation-duration: 13s; }



.hero {
  text-align: center;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 20px;
}

.header-with-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.logo-container {
  margin-bottom: 15px;
}

.logo {
  width: 300px;
  height: 90px;
}

.title-container {
  text-align: center;
}

.title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 15px 0;
  color: #e0e7ff;
}

.description {
  font-size: 0.9rem;
  margin-bottom: 30px;
  color: #d1d5db;
}

.upload-area {
  background: rgba(255, 255, 255, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.upload-area:hover {
  background: rgba(255, 255, 255, 0.3);
}

.upload-label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
}

input[type="file"] {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

.record-section {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.record-btn,
.stop-btn {
  font-size: 1rem;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
  font-weight: 500;
}

.record-btn {
  background: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.record-btn.recording {
  animation: pulse 1s infinite;
  background: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.stop-btn {
  background: #6b7280;
  box-shadow: 0 0 15px rgba(107, 114, 128, 0.4);
}

.stop-btn:not(:disabled) {
  background: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  }
}

.audio-player {
  width: 100%;
  margin: 15px 0;
  border-radius: 10px;
}

.analyze-btn {
  padding: 12px 25px;
  border: none;
  background: #6366f1;
  border-radius: 25px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin-top: 10px;
}

.analyze-btn:hover {
  transform: scale(1.02);
  background: #4f46e5;
}

.result-box {
  margin-top: 25px;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  min-height: 20px;
}

@media (max-width: 500px) {
  .hero {
    padding: 25px 15px;
    margin: 15px;
  }

  .logo {
    width: 200px;
    height: 100px;
  }

  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .record-section {
    flex-direction: column;
    align-items: center;
  }

  .stop-btn {
    margin-left: 0;
    margin-top: 10px;
  }
}