/* 
 * Amarved Recovery System - Animations Stylesheet 
 */

/* Background Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-primary {
  background: var(--primary);
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.blob-secondary {
  background: var(--secondary);
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 50px) scale(1.1); }
  100% { transform: translate(30px, -50px) scale(0.9); }
}

/* Gradient Mesh Background */
.gradient-mesh {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 40% 20%, hsla(217,100%,52%,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(167,67%,46%,0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(217,100%,52%,0.1) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: meshGradient 15s ease infinite;
}

@keyframes meshGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typing Animation Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Shine effect on hover */
.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.5s;
  z-index: 1;
}

.hover-shine:hover::before {
  left: 125%;
}
