/* animations.css - Animation Definitions for Difference Consulting */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Slide In from Top */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in-top {
  animation: slideInFromTop 0.6s ease forwards;
}

/* Slide In from Bottom */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.6s ease forwards;
}

/* Slide In from Left */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-left {
  animation: slideInFromLeft 0.6s ease forwards;
}

/* Slide In from Right */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInFromRight 0.6s ease forwards;
}

/* Float Animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

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

/* Subtle Float Animation for Decorative Elements */
@keyframes subtleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-5px) translateX(5px);
  }
  50% {
    transform: translateY(0) translateX(10px);
  }
  75% {
    transform: translateY(5px) translateX(5px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.animate-subtle-float {
  animation: subtleFloat 12s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-pulse {
  animation: pulse 4s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-rotate {
  animation: rotate 8s linear infinite;
}

/* Scale Up Animation */
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-up {
  animation: scaleUp 0.5s ease forwards;
}

/* Scale Down Animation */
@keyframes scaleDown {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-down {
  animation: scaleDown 0.5s ease forwards;
}

/* Shimmer Animation for Highlights */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Fade Border Animation */
@keyframes fadeBorder {
  0% {
    border-color: rgba(0, 0, 0, 0.05);
  }
  50% {
    border-color: rgba(0, 0, 0, 0.2);
  }
  100% {
    border-color: rgba(0, 0, 0, 0.05);
  }
}

.animate-border {
  animation: fadeBorder 3s ease-in-out infinite;
}

/* Shadow Pulse Animation */
@keyframes shadowPulse {
  0% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
}

.animate-shadow {
  animation: shadowPulse 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-700 {
  animation-delay: 700ms;
}

.delay-1000 {
  animation-delay: 1000ms;
}

/* Animation Durations */
.duration-300 {
  animation-duration: 300ms;
}

.duration-500 {
  animation-duration: 500ms;
}

.duration-700 {
  animation-duration: 700ms;
}

.duration-1000 {
  animation-duration: 1000ms;
}

.duration-1500 {
  animation-duration: 1500ms;
}

.duration-2000 {
  animation-duration: 2000ms;
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}

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

/* Fade In and Up with Monochrome Gradient */
@keyframes fadeInUpGradient {
  0% {
    opacity: 0;
    transform: translateY(30px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.03));
  }
}

.animate-fade-in-up-gradient {
  animation: fadeInUpGradient 1.2s ease forwards;
}

/* Staggered Animation for Lists */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-active .stagger-item {
  animation: staggerFadeIn 0.5s ease forwards;
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply different delays to staggered items */
.stagger-active .stagger-item:nth-child(1) {
  animation-delay: 100ms;
}

.stagger-active .stagger-item:nth-child(2) {
  animation-delay: 200ms;
}

.stagger-active .stagger-item:nth-child(3) {
  animation-delay: 300ms;
}

.stagger-active .stagger-item:nth-child(4) {
  animation-delay: 400ms;
}

.stagger-active .stagger-item:nth-child(5) {
  animation-delay: 500ms;
}

.stagger-active .stagger-item:nth-child(6) {
  animation-delay: 600ms;
}

/* Subtle Background Shift */
@keyframes subtleBackgroundShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.animate-bg-shift {
  background-size: 200% 200%;
  animation: subtleBackgroundShift 20s ease infinite;
}

/* Text Fade In */
@keyframes textFadeIn {
  0% {
    opacity: 0;
    color: var(--color-gray-400);
  }
  100% {
    opacity: 1;
    color: var(--color-black);
  }
}

.animate-text-fade {
  animation: textFadeIn 0.8s ease forwards;
}