/* 
  Global Auto Experts - Clean Custom CSS Animations & Transitions
  Ensures professional micro-interactions, card reveals, and button effects.
*/

/* 1. Standard Fade In */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 2. Slide Up and Fade */
.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 3. Ripple Buttons hover effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.ripple-btn:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
  transition: 0s;
}

/* 4. Zoom-in reveal */
.animate-zoom-in {
  animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 5. Shimmer loading animation for skeletons */
.shimmer {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 6. Hover effects */
.card-hover-expand {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.image-zoom-hover {
  overflow: hidden;
}

.image-zoom-hover img {
  transition: transform var(--transition-slow);
}

.image-zoom-hover:hover img {
  transform: scale(1.08);
}

/* 7. Accordion Slide Animation helper class */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}
