.audio-demo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000;
  color: #fff;
}

.audio-content-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.audio-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.audio-title h2 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 30px;
}

.audio-description {
  width: 100%;
  max-width: 800px;
}

.audio-description p {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ccc;
}

.audio-description > p > span > span {
  color: #fff;
}

.audio-visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
}

.audio-visual-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.audio-player-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

.audio-player-container {
  position: relative;
  width: 100%;
  background-color: #242424;
  border-radius: 50px;
  padding: 10px 20px;
  height: 60px;
}

.audio-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.play-button-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
}
.play-button-container button {
  background-color: transparent;
}

.pause-icon {
  display: none;
}

.audio-progress-container {
  flex: 1;
  padding: 0 30px;
}

#progressBar {
  width: 100%;
  height: 4px;
  background: #555;
  appearance: none;
  border-radius: 5px;
}

#progressBar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

#progressBar::-moz-range-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.audio-toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.audio-toggle-switch {
  position: relative;
  width: 100px;
  height: 40px;
}

.audio-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background-color: #ccc;
  cursor: pointer;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background-color: #00ff99;
  border-radius: 50px;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  color: white;
  height: 40px;
  width: 40px;
  left: 0;
  bottom: 0;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

input:checked + .toggle-slider::after {
  transform: translateX(150%);
}

input:checked + .toggle-slider::before {
  transform: translateX(0px);
}

@media (max-width: 768px) {
  .audio-demo-section {
    padding: 40px 10px;
  }

  .audio-title h2 {
    font-size: 3rem;
  }

  .audio-description p {
    font-size: 1.5rem;
  }

  .audio-player-container {
    padding: 10px;
    height: auto;
  }

  #progressBar {
    height: 3px;
  }

}

@media (max-width: 468px) {
  .audio-controls-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .audio-player-container {
    border-radius: 20px;
  }

  .play-pause-btn img {
    width: 20px;
  }

  .audio-toggle-switch {
    width: 40px;
    height: 20px;
  }

  .toggle-slider::after {
    height: 20px;
    width: 20px;
  }

  input:checked + .toggle-slider::after {
    transform: translateX(100%);
  }
}
