/* Wiggle animation */
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.animate-wiggle {
  animation: wiggle 0.5s ease-in-out infinite;
}


/* Shimmer/Shine Animation for text */
.shimmer-text {
  /* Hide the original text color and show the gradient */
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text; /* For Safari support */

  /* Gradient: transparent -> semi-transparent white -> transparent */
  background-image: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.6) 60%,
    transparent 100%
  );

  /* Make the gradient larger than the text so it can move */
  background-size: 200% 100%;

  /* Apply the animation */
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    /* Start with the gradient off-screen to the left */
    background-position: -200% 0;
  }
  100% {
    /* Move the gradient off-screen to the right */
    background-position: 200% 0;
  }
}


/* Shimmer for Images */
.shimmer-image {
  /* The mask is a semi-transparent gradient that will create the "shine" */
  mask: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.6) 60%,
    transparent 100%
  );
  mask-size: 200% 100%; /* Make the gradient larger so it can move */
  mask-repeat: no-repeat;
  
  /* Apply the animation */
  animation: shimmer 1s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    mask-position: -200% 0; /* Start off-screen to the left */
  }
  100% {
    mask-position: 200% 0; /* Move off-screen to the right */
  }
}



/* Glassmorphism Styles */
.glass-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.glass-form {
  color: #fff;
  padding: 20px;
  background: rgba(225, 225, 225, 0.1);
  border-radius: 10px;
  border-top: 0px solid rgba(225, 225, 225, 0.4);
  border-left: 0px solid rgba(225, 225, 225, 0.2);
  border-right: 0px solid rgba(225, 225, 225, 0.3);
  border-bottom: 0px solid rgba(225, 225, 225, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 28px 48px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.glass-input {
  background: rgba(225, 225, 225, 0.1) !important;
  border: none !important;
  border-top: 0px solid rgba(225, 225, 225, 0.3) !important;
  box-shadow: 0px 10px 21px rgba(0, 0, 0, 0.1) !important;
  color: #fff !important;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.glass-input:focus {
  background: rgba(225, 225, 225, 0.2) !important;
  border-top: 0px solid rgba(225, 225, 225, 0.5) !important;
  box-shadow: 0px 10px 21px rgba(0, 0, 0, 0.2) !important;
}

.glass-button {
  background: rgba(225, 225, 225, 0.1) !important;
  border: none !important;
  border-top: 0px solid rgba(225, 225, 225, 0.3) !important;
  box-shadow: 0px 10px 21px rgba(0, 0, 0, 0.1) !important;
  color: #fff !important;
  transition: 0.3s ease !important;
  height: 45px;
}

.glass-button:hover {
  background: rgba(128, 0, 255, 0.6) !important;
  transition: 0.3s ease !important;
}




/* Bubble Animation */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none; /* Allow clicks to pass through */
}

.bubble {
  position: absolute;
  display: block;
  list-style: none;
  background: rgba(255, 255, 255, 0.15);
  bottom: -150px;
  animation: rise 25s linear infinite;
  border-radius: 50%;
  pointer-events: none;
}

/* Individual bubble styles */
.bubble-1 {
  width: 80px;
  height: 80px;
  left: 25%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 20px;
  height: 20px;
  left: 10%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bubble-3 {
  width: 20px;
  height: 20px;
  left: 70%;
  animation-delay: 4s;
}

.bubble-4 {
  width: 60px;
  height: 60px;
  left: 40%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bubble-5 {
  width: 20px;
  height: 20px;
  left: 65%;
  animation-delay: 0s;
}

.bubble-6 {
  width: 110px;
  height: 110px;
  left: 75%;
  animation-delay: 3s;
}

.bubble-7 {
  width: 150px;
  height: 150px;
  left: 35%;
  animation-delay: 7s;
}

.bubble-8 {
  width: 25px;
  height: 25px;
  left: 50%;
  animation-delay: 15s;
  animation-duration: 45s;
}

.bubble-9 {
  width: 15px;
  height: 15px;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 35s;
}

.bubble-10 {
  width: 150px;
  height: 150px;
  left: 85%;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes rise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}



/* Shimmer animation for Progress bars */
@keyframes shimmer-progress {
  0% {
    transform: translateX(-200%) skewX(-20deg);
  }
  100% {
    transform: translateX(300%) skewX(-20deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.animate-shimmer-progress {
  animation: shimmer-progress 2s infinite;
}

.animate-pulse-ring {
  animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}