/* HERO CTA – force readable text */
.hero-sections .premium-button,
.hero-sections .premium-button span,
.hero-sections .premium-button a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

/* Keep text white on hover */
.hero-sections .premium-button:hover,
.hero-sections .premium-button:hover span {
  color: #ffffff !important;
}

/* HERO SHINY TEXT – PREMIUM */
.hero-shiny {
  color: #ffffff;
  position: relative;

  background-image: linear-gradient(
    110deg,
    rgba(255,255,255,0.25) 20%,
    rgba(255,255,255,1) 35%,
    rgba(255,255,255,0.25) 50%
  );

  background-size: 250% 100%;
  background-position: 250% 50%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #ffffff8c;

  will-change: background-position;
}



/* ============================================
   GLOBAL GSAP SAFETY & PERFORMANCE
============================================ */

/* Prevent flicker before GSAP runs */
.hero-sections,
.dtb-animate {
  will-change: transform, opacity;
}

/* Disable animations inside Elementor editor */
.elementor-editor-active * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* ============================================
   COMMON BUTTONS – BASE OPTIMIZATION
============================================ */

.premium-button {
  position: relative;
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* ============================================
   HERO CTA SHIMMER EFFECT
============================================ */

.hero-sections .premium-button,
.hero-sections .elementor-button {
  overflow: hidden;
}

/* Shimmer layer */
.cta-shimmer::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -120%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
}

/* Trigger shimmer on hover */
.cta-shimmer:hover::before {
  animation: ctaShimmer 1.2s ease;
}

@keyframes ctaShimmer {
  0% {
    left: -120%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

/* ============================================
   CLIENT LOGO SECTION
============================================ */

.dtb-logos-animate img {
  transition: transform 0.3s ease;
  transform-origin: center;
}

.dtb-logos-animate img:hover {
  transform: scale(1.08);
}

/* ============================================
   SECTION FADE SUPPORT
============================================ */

.dtb-animate {
  overflow: hidden; /* prevents shadow clipping */
}

/* ============================================
   MOBILE OPTIMIZATION
============================================ */

@media (max-width: 767px) {

  .premium-button {
    transition: box-shadow 0.2s ease;
  }

  .cta-shimmer::before {
    display: none; /* shimmer off on mobile */
  }

}

/* ============================================
   ACCESSIBILITY – REDUCED MOTION
============================================ */

@media (prefers-reduced-motion: reduce) {

  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

}
