/* Contact Section Animations */

/* Initial state for contact cards */
.contact-card-animate {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fallback: Make cards visible on mobile even without JavaScript */
@media (max-width: 768px) {
  .contact-card-animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* Animated state for contact cards */
.contact-card-animate.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animation delays */
.contact-card-animate[data-delay="0"] { transition-delay: 0s; }
.contact-card-animate[data-delay="100"] { transition-delay: 0.1s; }
.contact-card-animate[data-delay="200"] { transition-delay: 0.2s; }
.contact-card-animate[data-delay="300"] { transition-delay: 0.3s; }
.contact-card-animate[data-delay="400"] { transition-delay: 0.4s; }
.contact-card-animate[data-delay="500"] { transition-delay: 0.5s; }

/* Enhanced hover effects for contact cards */
.contact-card-animate:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Icon animation on hover */
.contact-card-animate .bg-white {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-card-animate:hover .bg-white {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Button animation on hover */
.contact-card-animate .btn-primary {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.contact-card-animate .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.contact-card-animate .btn-primary:hover::before {
  left: 100%;
}

.contact-card-animate .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
}

/* Floating animation for contact cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

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

/* Stagger the floating animation */
.contact-card-animate[data-delay="0"].animate-in { animation-delay: 0s; }
.contact-card-animate[data-delay="100"].animate-in { animation-delay: 0.5s; }
.contact-card-animate[data-delay="200"].animate-in { animation-delay: 1s; }
.contact-card-animate[data-delay="300"].animate-in { animation-delay: 1.5s; }
.contact-card-animate[data-delay="400"].animate-in { animation-delay: 2s; }
.contact-card-animate[data-delay="500"].animate-in { animation-delay: 2.5s; }

/* Pulse animation for availability info */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.contact-section .bg-white.rounded-\[var\(--border-radius-xl\)\] {
  animation: pulse 3s ease-in-out infinite;
}

/* Bounce animation for status icons */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.contact-section .flex.items-center.gap-2 .w-4.h-4 {
  animation: bounce 2s ease-in-out infinite;
}

.contact-section .flex.items-center.gap-2:nth-child(1) .w-4.h-4 { animation-delay: 0s; }
.contact-section .flex.items-center.gap-2:nth-child(2) .w-4.h-4 { animation-delay: 0.5s; }
.contact-section .flex.items-center.gap-2:nth-child(3) .w-4.h-4 { animation-delay: 1s; }

/* Slide in animation for section title */
.contact-section h2 {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out 0.3s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in animation for section subtitle */
.contact-section p {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.6s forwards;
}

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

/* Scale animation for the gradient line */
.contact-section .w-16.h-1 {
  transform: scaleX(0);
  animation: scaleIn 0.8s ease-out 0.9s forwards;
}

@keyframes scaleIn {
  to {
    transform: scaleX(1);
  }
}

/* Responsive animations */
@media (max-width: 768px) {
  .contact-card-animate {
    transform: translateY(30px) scale(0.95);
  }
  
  .contact-card-animate.animate-in {
    transform: translateY(0) scale(1);
  }
  
  .contact-card-animate:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .contact-card-animate {
    transform: translateY(20px) scale(0.98);
  }
  
  .contact-card-animate.animate-in {
    transform: translateY(0) scale(1);
  }
  
  .contact-card-animate:hover {
    transform: translateY(-3px) scale(1.005);
  }
} 