/* ============================================
   Jiajian Website - Enhanced Animation Styles (Optimized)
   ============================================ */

/* ---------- Button Ripple ---------- */
@keyframes jj-ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- Image Zoom on Card Hover ---------- */
.product-card-image,
.star-card-image {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Industry Card Bottom Accent Bar ---------- */
.industry-card {
  position: relative;
  overflow: hidden;
}
.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, #e8862a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.industry-card:hover::after {
  transform: scaleX(1);
}

/* ---------- Feature Card Subtle Glow ---------- */
.feature-card {
  position: relative;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,134,42,0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.feature-card:hover::after {
  opacity: 1;
}

/* ---------- Star Badge Pulse ---------- */
.star-badge {
  animation: jj-badge-pulse 3s ease-in-out infinite;
}
@keyframes jj-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,134,42,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(232,134,42,0); }
}

/* ---------- Product Badge Glow on Card Hover ---------- */
.product-badge {
  transition: box-shadow 0.3s ease;
}
.product-card:hover .product-badge {
  box-shadow: 0 0 10px rgba(232,134,42,0.35);
}

/* ---------- Hero Badge Dot Pulse ---------- */
.hero-badge .dot {
  animation: jj-dot-pulse 2.5s ease-in-out infinite;
}
@keyframes jj-dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(76,175,80,0); }
}

/* ---------- Back to Top Lift ---------- */
.back-to-top:hover {
  transform: translateY(-3px) !important;
}

/* ---------- Focus Accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent, #e8862a);
  outline-offset: 3px;
  border-radius: 4px;
}

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