/* Extracted global styles from index.html */
/* Custom scroll-behavior */
html {
  scroll-behavior: smooth;
}
body {
  background-color: #f8fafc;
}

/* 
         HIỆU ỨNG WATERMARK CỐ ĐỊNH CHO RIÊNG SECTION 
      */
.section-watermark-fixed {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: white;
}

.section-watermark-fixed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Sử dụng ảnh local và fallback */
  background-image: url("/Logo.png");
  background-repeat: repeat;
  background-size: 180px auto;
  background-attachment: fixed;
  opacity: 0.05;
  z-index: 0;
  filter: grayscale(100%) brightness(1.2);
  pointer-events: none;
  transform: rotate(-15deg) scale(1.2);
  display: block;
  transition: opacity 0.5s ease-in;
}

/* Lớp phủ gradient để làm mờ viền watermark, giúp nó hòa tan vào section */
.section-watermark-fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, white 95%);
  z-index: -1;
  pointer-events: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
.animate-scale-up {
  animation: scaleUp 0.3s ease-out forwards;
}
/* Custom ping animation with smaller scale */
@keyframes custom-ping {
  75%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.animate-custom-ping {
  animation: custom-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
/* Advanced Marquee Animations */
@keyframes marquee-forward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-forward {
  display: flex;
  width: max-content;
  animation: marquee-forward 40s linear infinite;
}
.marquee-reverse {
  display: flex;
  width: max-content;
  animation: marquee-reverse 40s linear infinite;
}

.marquee-wrapper:hover .marquee-forward,
.marquee-wrapper:hover .marquee-reverse {
  animation-play-state: paused;
}

/* Floating Logo Styles (No Background) */
.client-card {
  background: transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  border: none;
}

.partner-logo {
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s ease;
  max-width: 120px;
  max-height: 55px;
  object-fit: contain;
}

.client-card:hover {
  transform: translateY(-10px) scale(1.1);
}

.client-card:hover .partner-logo {
  filter: grayscale(0%) opacity(1);
}

/* Mobile Active State */
.client-card:active .partner-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(0.9);
}
/* Toast animations */
@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.animate-toast-in {
  animation: toast-in 0.5s ease-out forwards;
}
/* Scroll Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.fade-in {
  transform: scale(0.95);
}
.animate-on-scroll.fade-in-up {
  transform: translateY(30px);
}
/* is-visible is the final state */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none; /* Reset transform to default */
}
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-container {
    animation: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
