/* ==========================================================================
   DEVI BEAUTY CARE - ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCROLL REVEAL ANIMATIONS (IntersectionObserver Classes)
   -------------------------------------------------------------------------- */
.reveal-element {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up {
  transform: translateY(40px);
}

.reveal-fade-down {
  transform: translateY(-40px);
}

.reveal-fade-left {
  transform: translateX(-50px);
}

.reveal-fade-right {
  transform: translateX(50px);
}

.reveal-zoom-in {
  transform: scale(0.9);
}

.reveal-element.active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* --------------------------------------------------------------------------
   2. SHIMMER & GLOW EFFECTS
   -------------------------------------------------------------------------- */
@keyframes goldShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, #D4AF37 0%, #FFF 50%, #D4AF37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
}

.gold-pulse-box {
  animation: goldPulse 3s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   3. CARD & BUTTON HOVER MICRO-ANIMATIONS
   -------------------------------------------------------------------------- */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

/* Gold Border Glow Animation */
.gradient-border-box {
  position: relative;
  background: #161616;
  border-radius: var(--radius-md);
  z-index: 1;
}

.gradient-border-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #D4AF37, transparent, #AA7C11, #F5E6AA);
  background-size: 400% 400%;
  border-radius: calc(var(--radius-md) + 2px);
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  animation: borderRotate 8s linear infinite;
}

.gradient-border-box:hover::before {
  opacity: 1;
}

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

/* Floating Blob Backgrounds */
.floating-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: floatBlob 12s infinite alternate ease-in-out;
}

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

/* Button Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
