/* =======================
   Body with Animated Gradient
======================= */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #fbc2eb, #a1c4fd, #c2e9fb, #d4fc79, #96e6a1);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Button Container */
.button-group {
  display: flex;
  gap: 15px; /* space between buttons */
  justify-content: center;
  margin-top: 20px;
}

/* Buttons (keep same styles) */
button {
  font-size: 1.2rem;
  padding: 14px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: #111;
  color: white;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s ease;
}


/* Floating Glow Circles (instead of bubbles) */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  animation: float 20s infinite linear;
}

body::before {
  width: 250px;
  height: 250px;
  bottom: -120px;
  left: 8%;
}

body::after {
  width: 350px;
  height: 350px;
  bottom: -180px;
  right: 10%;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-120vh); }
}

/* =======================
   Heading with shifting glow
======================= */
h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 20px;
  animation: glowShift 4s ease-in-out infinite alternate;
}

@keyframes glowShift {
  0%   { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
  50%  { text-shadow: 0 0 20px #00f0ff, 0 0 40px #00f0ff; }
  100% { text-shadow: 0 0 20px #00ff99, 0 0 40px #00ff99; }
}

/* =======================
   Counter Display
======================= */
#count {
  font-size: 5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 25px 60px;
  border-radius: 25px;
  margin: 20px 0;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease-in-out;
}

/* Bounce animation on update */
#count.update {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* =======================
   Buttons with rainbow border
======================= */
button {
  font-size: 1.2rem;
  padding: 14px 30px;
  margin: 8px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: #111;
  color: white;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s ease;
}

button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(270deg, #ff00ff, #00f0ff, #00ff99, #ff9a9e);
  background-size: 600% 600%;
  border-radius: inherit;
  z-index: -1;
  animation: rainbowBorder 8s linear infinite;
}

@keyframes rainbowBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

button:active {
  transform: scale(0.95);
}
