/* ==========================================================================
   HOMEDECOR RENOVASI — Premium Motion Design & Keyframes
   ========================================================================== */

/* Fade In Up with Spring Feel */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Floating Badges in Hero */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Subtle Golden Pulse for CTAs */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(244, 180, 26, 0.3);
  }
  50% {
    box-shadow: 0 8px 26px rgba(244, 180, 26, 0.55);
  }
}

/* Reveal Classes (Triggered by IntersectionObserver in main.js) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Micro-Interactions */
.hero-badge-float {
  animation: floatSlow 4.5s ease-in-out infinite;
}

.btn-pulse {
  animation: pulseGlow 2.8s infinite;
}

.card-hover-lift {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-lift:hover {
  transform: translateY(-6px);
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
