/* =======================================
   SABA DETERGENT INDUSTRIES — ANIMATIONS
   ======================================= */

/* HERO BACKGROUND ZOOM */
.hero-bg-zoom {
  animation: bgZoom 18s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes bgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* FLOATING BUBBLES */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.bubble {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(3, 37, 76, 0.08);
  animation: rise 8s linear infinite;
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-120vh) scale(1.1);
    opacity: 0;
  }
}

/* SPARKLES */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue), var(--yellow));
  box-shadow: 0 0 18px rgba(11, 116, 209, 0.5),
              0 0 26px rgba(255, 210, 77, 0.4);
  opacity: 0;
  animation: sparkleFade 4s ease-in-out forwards;
}
@keyframes sparkleFade {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(6px);
  }
  30% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-8px);
  }
}

/* PULSE (for Make in India logo) */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* SCROLL-IN ANIMATIONS */
.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.product,
.card,
.contact-info,
.contact-form {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* RIPPLE EFFECT */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(255, 255, 255, 0.6);
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* FOOTER LIGHT SWEEP
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.05)
  );
  animation: footerGlow 6s linear infinite;
  pointer-events: none;
}
@keyframes footerGlow {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(20%); }
} */

/* BUTTON HOVER */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255, 210, 77, 0.4);
}

/* product CARD HOVER */
/* Make sure the img is transformable and animate smoothly */
.product {
  position: relative;
  overflow: hidden; /* keeps image from spilling when scaled */
}

/* Ensure image is a block-level, smoothly animatable element */
.product img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), filter 0.35s ease;
  transform-origin: 50% 50%;
  backface-visibility: hidden; /* avoids flicker on some devices */
  -webkit-backface-visibility: hidden;
  will-change: transform, filter;
}

/* Hover state on the product container transforms the image */
.product:hover img {
  transform: scale(1.05) rotateZ(1deg);
  filter: brightness(1.08);
}
