@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-15px) rotate(18deg); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
  animation-delay: -2s;
}

/* Modern scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states */
button:focus-visible {
  outline: 2px solid rgb(147 51 234);
  outline-offset: 2px;
}

/* Glassmorphism utilities */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom gradient animations */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

/* Action Buttons Shimmer Effects */
/* Constrain shimmer effects to their parent buttons */
#download-button {
  overflow: hidden;
}

#edit-button {
  overflow: hidden;
}

#process-button {
  overflow: hidden;
}

/* Initial shimmer position - start from left outside */
#download-shimmer {
  clip-path: inset(0);
  transform: translateX(-120%);
}

#edit-shimmer {
  clip-path: inset(0);
  transform: translateX(-120%);
}

#process-shimmer {
  clip-path: inset(0);
  transform: translateX(-120%);
}

/* Shimmer animation on hover - move to right outside */
#download-button:hover #download-shimmer {
  transform: translateX(200%);
}

#edit-button:hover #edit-shimmer {
  transform: translateX(200%);
}

#process-button:hover #process-shimmer {
  transform: translateX(200%);
}

/* Icon rotation for process button */
#process-button:hover #process-icon {
  transform: rotate(180deg);
}

/* Footer Custom Animations */
@keyframes sparkle {
  0% { transform: translateX(0); }
  100% { transform: translateX(200px); }
}

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

.group:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Custom scrollbar for modal */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8b5cf6, #ec4899);
  border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #7c3aed, #db2777);
}
