/* ==============================================
   ANIMATION UTILITIES
   ============================================== */

/* Animation Duration */
.animate-fast {
  animation-duration: 0.3s;
}

.animate-normal {
  animation-duration: 0.6s;
}

.animate-slow {
  animation-duration: 1s;
}

.animate-slower {
  animation-duration: 2s;
}

/* Transition Delays */
.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 200ms;
}

.delay-3 {
  transition-delay: 300ms;
}

.delay-4 {
  transition-delay: 400ms;
}

.delay-5 {
  transition-delay: 500ms;
}

.delay-6 {
  transition-delay: 600ms;
}

.delay-7 {
  transition-delay: 700ms;
}

.delay-8 {
  transition-delay: 800ms;
}

.delay-9 {
  transition-delay: 1000ms;
}

/* Animation Fill Modes */
.animate-forwards {
  animation-fill-mode: forwards;
}

.animate-backwards {
  animation-fill-mode: backwards;
}

.animate-both {
  animation-fill-mode: both;
}

/* Animation Timing Functions */
.ease-in {
  animation-timing-function: ease-in;
}

.ease-out {
  animation-timing-function: ease-out;
}

.ease-in-out {
  animation-timing-function: ease-in-out;
}

.linear {
  animation-timing-function: linear;
}

/* ==============================================
   FADE ANIMATIONS
   ============================================== */

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

.fade-out {
  animation: fadeOut 0.6s ease-out;
}

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

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

/* ==============================================
   SLIDE ANIMATIONS
   ============================================== */

.slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.slide-in-down {
  animation: slideInDown 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ==============================================
   ZOOM & SCALE ANIMATIONS
   ============================================== */

.zoom-in {
  animation: zoomIn 0.6s ease-out;
}

.zoom-out {
  animation: zoomOut 0.6s ease-out;
}

.scale-up {
  animation: scaleUp 0.3s ease-out;
}

.scale-down {
  animation: scaleDown 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes scaleDown {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

/* ==============================================
   ROTATION & FLIP ANIMATIONS
   ============================================== */

.rotate-in {
  animation: rotateIn 0.6s ease-out;
}

.rotate-360 {
  animation: rotate360 0.6s linear;
}

.flip-in-x {
  animation: flipInX 0.6s ease-out;
}

.flip-in-y {
  animation: flipInY 0.6s ease-out;
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

@keyframes flipInY {
  from {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateY(0);
  }
}

/* ==============================================
   BOUNCE ANIMATIONS
   ============================================== */

.bounce {
  animation: bounce 1s ease infinite;
}

.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

.bounce-in-down {
  animation: bounceInDown 0.8s ease-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    transform: translateY(30px);
  }
  80% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ==============================================
   ATTENTION SEEKERS
   ============================================== */

.shake {
  animation: shake 0.5s ease-in-out;
}

.wiggle {
  animation: wiggle 0.8s ease-in-out;
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ==============================================
   SPECIAL EFFECTS
   ============================================== */

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

.blur-in {
  animation: blurIn 0.6s ease-out;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ==============================================
   SCROLL-BASED ANIMATIONS (Intersection Observer)
   ============================================== */

/* Base Scroll Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional Scroll Animations */
.scroll-animate.from-left {
  transform: translateX(-80px);
}

.scroll-animate.from-right {
  transform: translateX(50px);
}

.scroll-animate.from-top {
  transform: translateY(-30px);
}

.scroll-animate.from-bottom {
  transform: translateY(30px);
}

.scroll-animate.from-left.visible,
.scroll-animate.from-right.visible {
  transform: translateX(0);
}

.scroll-animate.from-top.visible,
.scroll-animate.from-bottom.visible {
  transform: translateY(0);
}

/* Staggered Animation */
.stagger-animate {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero Animation */
.hero-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide Up Fade */
.slide-up-fade {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale Fade */
.scale-fade {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==============================================
   HOVER EFFECTS
   ============================================== */

/* Feature Card Hover */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Service Card Hover */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* CTA Card Hover */
.cta-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Social Icon Hover */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Footer Link Hover */
.footer-link {
  transition: all 0.3s ease;
}

.footer-link:hover {
  transform: translateX(5px);
}

/* ==============================================
   FLOATING & CONTINUOUS ANIMATIONS
   ============================================== */

/* Float Animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

/* Icon Float */
.icon-float {
  animation: iconFloat 3s ease-in-out infinite;
}

.icon-float-delay-1 {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.icon-float-delay-2 {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 1s;
}

.icon-float-delay-3 {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

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

/* Stat Card Float */
.stat-card {
  animation: statFloat 3s ease-in-out infinite;
}

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

/* Icon Glow */
.icon-glow {
  animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(82, 192, 184, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(228, 24, 112, 0.5);
  }
}

/* Icon Bounce */
.icon-bounce {
  animation: iconBounce 2s ease-in-out infinite;
}

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

/* ==============================================
   GRADIENT ANIMATIONS
   ============================================== */

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #52c0b8 0%, #e41870 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(135deg, #52c0b8 0%, #e41870 100%);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ==============================================
   PARALLAX EFFECT
   ============================================== */

.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ==============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================== */

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