/**
 * HOPS Design System — Entrance Animations & Effects
 * High-performance CSS3 GPU-accelerated keyframe animations
 */

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

@keyframes hopsFadeUp {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hopsFadeDown {
  from { opacity: 0; transform: translate3d(0, -36px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hopsSlideLeft {
  from { opacity: 0; transform: translate3d(50px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hopsSlideRight {
  from { opacity: 0; transform: translate3d(-50px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hopsZoomIn {
  from { opacity: 0; transform: scale3d(0.88, 0.88, 1); }
  to   { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes hopsPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Base styling for elements waiting to animate on live site */
[data-anim] {
  will-change: opacity, transform;
}

/* Ensure inline elements like <span> or <a> can transform properly */
span[data-anim], a[data-anim], strong[data-anim], em[data-anim], b[data-anim], small[data-anim] {
  display: inline-block;
}

/* When observer triggers */
[data-anim="fade-in"].hops-animated   { animation: hopsFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-anim="fade-up"].hops-animated   { animation: hopsFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-anim="fade-down"].hops-animated { animation: hopsFadeDown 0.75s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-anim="slide-left"].hops-animated{ animation: hopsSlideLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-anim="slide-right"].hops-animated{ animation: hopsSlideRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-anim="zoom-in"].hops-animated   { animation: hopsZoomIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-anim="pulse"].hops-animated     { animation: hopsPulse 0.9s ease-in-out both !important; }
[data-anim="counter"] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
[data-anim="counter"].hops-animated   { animation: hopsFadeIn 0.4s ease-out both !important; }

/* ══════════════════════════════════════════════════════════════════
   INFINITE PARTNER LOGO MARQUEE CAROUSEL
   ══════════════════════════════════════════════════════════════════ */
@keyframes hopsMarqueeLeft {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes hopsMarqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.hops-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hops-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  will-change: transform;
}

.hops-marquee-track-left {
  animation: hopsMarqueeLeft 35s linear infinite;
}

.hops-marquee-track-right {
  animation: hopsMarqueeRight 40s linear infinite;
}

.hops-marquee-container:hover .hops-marquee-track {
  animation-play-state: paused;
}

.hops-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hops-logo-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.12);
}

.hops-logo-item img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: all 0.2s ease;
}

.hops-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR NO-WRAP & CLEANLINESS SYSTEM (ACROSS ALL PAGES)
   ══════════════════════════════════════════════════════════════════ */
header, #main-header {
  overflow: visible;
}

header nav,
#main-header nav,
header nav a,
#main-header nav a,
header nav span,
#main-header nav span,
header nav div,
#main-header nav div,
header .hidden.lg\:flex,
#main-header .hidden.lg\:flex,
header .hidden.lg\:flex a,
#main-header .hidden.lg\:flex a,
header .hidden.lg\:flex button,
#main-header .hidden.lg\:flex button {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

header nav, #main-header nav {
  gap: 1.15rem !important;
  font-size: 15px !important;
}

header nav a, #main-header nav a {
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
}

/* Medium-large screens & laptops (1024px to 1340px) */
@media (min-width: 1024px) and (max-width: 1340px) {
  header nav, #main-header nav {
    gap: 0.65rem !important;
    font-size: 13.5px !important;
  }
  header nav a, #main-header nav a {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    font-size: 13.5px !important;
  }
  header .hidden.lg\:flex.space-x-3,
  #main-header .hidden.lg\:flex.space-x-3,
  header .hidden.lg\:flex.space-x-4,
  #main-header .hidden.lg\:flex.space-x-4,
  header .hidden.lg\:flex.space-x-5,
  #main-header .hidden.lg\:flex.space-x-5 {
    gap: 0.45rem !important;
    margin-left: 0.4rem !important;
  }
  header .hidden.lg\:flex a[href*="contact-us"],
  #main-header .hidden.lg\:flex a[href*="contact-us"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    font-size: 13px !important;
  }
}


