/* ============================================
   DECOR SEZER - Animations
   ============================================ */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.reveal--left.visible {
  transform: translateX(0);
}

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

.reveal--right.visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.visible {
  transform: scale(1);
}

/* Stagger delays */
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }
.reveal--delay-6 { transition-delay: 600ms; }

/* --- Hero Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}

.hero__badge {
  animation: fadeInUp 0.6s ease-out both;
}

.hero__title {
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.hero__subtitle {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero__actions {
  animation: fadeInUp 0.6s ease-out 0.45s both;
}

.hero__stats {
  animation: fadeIn 0.8s ease-out 0.7s both;
}

.hero__shape--1 {
  animation: float 8s ease-in-out infinite, pulse 6s ease-in-out infinite;
}

.hero__shape--2 {
  animation: float 10s ease-in-out 1s infinite, pulse 7s ease-in-out 0.5s infinite;
}

.hero__shape--3 {
  animation: float 7s ease-in-out 2s infinite, pulse 5s ease-in-out 1s infinite;
}

/* --- Page Hero Animations --- */
.page-hero__breadcrumb {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.page-hero h1 {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.page-hero p {
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* --- Counter Animation --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Card hover lift --- */
@keyframes cardLift {
  from { box-shadow: var(--shadow-sm); }
  to { box-shadow: var(--shadow-xl); }
}

/* --- Nav link underline --- */
@keyframes slideUnderline {
  from { width: 0; }
  to { width: 100%; }
}

/* --- Spinner for loading states --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* --- 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 {
    opacity: 1;
    transform: none;
  }
}
