/* Reset and Base Styles */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0d0d0f; /* deep black base */
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 0, 200, 0.08), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(150, 0, 255, 0.08), transparent 60%);
  animation: bgShift 50s linear infinite;
  z-index: -1;
}

@keyframes bgShift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-150px, -150px);
  }
}

/* ===== Top Navigation Bar ===== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #ff00cc, #aa00ff);
  box-shadow: 0 3px 20px rgba(255, 0, 255, 0.3);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.navbar h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.navbar nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.navbar nav a:hover {
  opacity: 0.8;
}

/* ===== Page Container ===== */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Title */
h1.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 40px 0 30px;
  background: linear-gradient(90deg, #ff00cc, #aa00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Grid Layout ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

/* Grid Items (Layered Cards) */
.grid-item {
  background: #1a1a1d;
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 0, 255, 0.25);
}

/* ===== Buttons ===== */
button,
.btn {
  background: linear-gradient(90deg, #ff00cc, #aa00ff);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1rem;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

button:hover,
.btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* ===== Cart Section ===== */
.cart {
  margin-top: 40px;
  padding: 30px;
  background: #141416;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.cart h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.6rem;
}

/* Form Inputs */
input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #1c1c20;
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* ===== Examples Section ===== */
.examples {
  margin-top: 60px;
  padding: 30px;
  background: #1a1a1d;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.examples h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #ff00cc, #aa00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Audio Player (Layered Look) */
.audio-player {
  background: #141416;
  border-radius: 15px;
  padding: 15px;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.audio-player button {
  background: linear-gradient(90deg, #ff00cc, #aa00ff);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.audio-player button:hover {
  transform: scale(1.1);
}

.audio-progress {
  flex-grow: 1;
  margin: 0 15px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.audio-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff00cc, #aa00ff);
  transition: width 0.2s linear;
}

.audio-time {
  font-size: 0.9rem;
  color: #ddd;
  min-width: 50px;
  text-align: right;
}
