/* Animation Styles - Premium Micro-interactions */

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for lists */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }
.fade-in:nth-child(7) { transition-delay: 0.48s; }
.fade-in:nth-child(8) { transition-delay: 0.56s; }

/* Scale In Animation */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Slide In from Left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In from Right */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Parallax Effect */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-image-wrapper {
  animation: heroFloat 6s ease-in-out infinite;
}

/* Pulse Animation for Badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.qualification-badge {
  animation: pulse 3s ease-in-out infinite;
}

.qualification-badge:nth-child(2) {
  animation-delay: 0.5s;
}

.qualification-badge:nth-child(3) {
  animation-delay: 1s;
}

.qualification-badge:nth-child(4) {
  animation-delay: 1.5s;
}

/* Shimmer Effect for Loading States */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--color-border-light) 0%,
    var(--color-surface) 50%,
    var(--color-border-light) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Button Hover Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Card Hover Lift Effect */
.card-hover-lift {
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Underline Animation for Links */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-base);
  border-radius: 1px;
}

.link-underline:hover::after {
  width: 100%;
}

/* Icon Rotation on Hover */
.icon-rotate-hover {
  transition: transform var(--transition-base);
}

.icon-rotate-hover:hover {
  transform: rotate(15deg);
}

/* Progress Bar Animation */
@keyframes progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.progress-animate {
  animation: progress 1.5s ease-out forwards;
}

/* Floating Animation for Decorative Elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  75% {
    transform: translateY(10px) rotate(-1deg);
  }
}

.floating {
  animation: float 8s ease-in-out infinite;
}

/* Gradient Shift Animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .hero-image-wrapper {
    animation: none;
  }

  .qualification-badge {
    animation: none;
  }
}
