/* ==========================================================================
   CHAUDHARY PERFUMES - 60 FPS GPU HARDWARE ACCELERATED ANIMATIONS
   ========================================================================= */

/* Hardware Accelerated Transforms & Compositing */
.reveal-on-scroll,
.product-card,
.product-img,
.btn,
.btn-icon,
.cart-drawer,
.search-modal,
.quick-view-modal,
.drawer-overlay,
.modal-overlay,
.toast {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
  }
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(3deg);
  }
}

@keyframes toastSlideIn {
  from {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* Utility Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: floatParticle 5s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 3s infinite;
}

/* Ultra Smooth Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Smooth Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.toast-icon {
  font-size: 1.2rem;
  color: var(--brand-gold);
}
