/* Alchemy Scientific - shared styles */
:root { --font-en: 'Inter', sans-serif; }
body { font-family: var(--font-en); scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #f97316;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero search bar animated glow */
@keyframes searchGlow {
  0%, 100% { box-shadow: 0 20px 45px -12px rgba(249, 115, 22, 0.35), 0 0 0 0 rgba(249, 115, 22, 0.2); }
  50% { box-shadow: 0 25px 55px -12px rgba(249, 115, 22, 0.55), 0 0 0 6px rgba(249, 115, 22, 0.08); }
}
.hero-search {
  animation: searchGlow 3s ease-in-out infinite;
}

/* Hero underline accent */
.title-accent::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f97316, transparent);
  border-radius: 4px;
  margin: 18px auto 0;
}

/* Stats section - animated counter cards */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(23, 37, 84, 0.35);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Multi-line text truncation for product descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
