@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-15px);
  }
  70% {
    transform: translateY(-7px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(228, 195, 122, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(228, 195, 122, 0.4), 0 0 30px rgba(228, 195, 122, 0.3);
  }
  100% {
    box-shadow: 0 0 5px rgba(228, 195, 122, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.anim-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.anim-fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.anim-slide-in-up {
  animation: slideInUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-slide-in-down {
  animation: slideInDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-slide-in-left {
  animation: slideInLeft 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-slide-in-right {
  animation: slideInRight 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-slide-out-up {
  animation: slideOutUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-slide-out-down {
  animation: slideOutDown 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-scale-out {
  animation: scaleOut 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-spin {
  animation: spin 1s linear infinite;
}

.anim-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.anim-bounce {
  animation: bounce 1s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.anim-glow {
  animation: glow 2s ease-in-out infinite;
}

.anim-shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-exit {
  opacity: 1;
  transform: translateY(0);
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(228, 195, 122, 0.1) 25%,
    rgba(228, 195, 122, 0.2) 50%,
    rgba(228, 195, 122, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.hover-lift {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(228, 195, 122, 0.3);
}

.hover-scale {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

@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;
  }

  .anim-spin {
    animation: none;
  }

  .anim-bounce {
    animation: none;
  }

  .anim-pulse {
    animation: none;
  }

  .shimmer {
    animation: none;
    background: rgba(228, 195, 122, 0.1);
  }
}

:root {
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-cubic: cubic-bezier(0.32, 0, 0.67, 0);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}
