/* ============================================================
   JaatCloud v74.47 — jc-upgrade.css  (UI renovation layer)
   100% additive: kuch bhi override nahi karta, sirf polish.
   Respect: prefers-reduced-motion.
   ============================================================ */

/* ---------- 1) Smooth scroll (motion-safe only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* ---------- 2) Page load fade-in (first paint se hi safe) ---------- */
  body { animation: jcUpFade 0.5s ease both; }
}
@keyframes jcUpFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 3) Keyboard focus ring (accessibility) ---------- */
:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 4) Scroll progress bar ---------- */
#jcUpProgress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  z-index: 999000;
  pointer-events: none;
  background: linear-gradient(90deg, #0891b2 0%, #3b82f6 50%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(8,145,178, 0.55);
  border-radius: 0 3px 3px 0;
  transition: width 0.08s linear;
}

/* ---------- 5) Back-to-top button ---------- */
#jcUpTop {
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  z-index: 998000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6,182,212, 0.45);
  border-radius: 50%;
  background: rgba(17, 17, 27, 0.82);
  -webkit-backdrop-filter: blur(10px);backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #a5f3fc;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
              box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 0;
  line-height: 1;
}
#jcUpTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#jcUpTop:hover {
  color: #ffffff;
  border-color: #06b6d4;
  box-shadow: 0 10px 30px rgba(8,145,178, 0.45);
  transform: translateY(-3px);
}
#jcUpTop:active { transform: translateY(-1px) scale(0.96); }
@media (max-width: 640px) {
  #jcUpTop { right: 14px; bottom: 96px; width: 40px; height: 40px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #jcUpTop { transition: opacity 0.3s ease, visibility 0.3s; transform: none; }
}

/* ---------- 6) Card cursor-spotlight (koi transform conflict nahi) ---------- */
.jc-spot { position: relative; overflow: hidden; }
.jc-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    380px circle at var(--jc-mx, 50%) var(--jc-my, 50%),
    rgba(6,182,212, 0.16),
    rgba(59, 130, 246, 0.07) 45%,
    transparent 70%
  );
  z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
  .jc-spot:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .jc-spot::before { display: none; }
}
/* spotlight card ke content ko upar rakhe taaki glow piche dikhe */
.jc-spot > * { position: relative; z-index: 1; }

/* ---------- 7) Product/plan image hover zoom (img-only transform) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .product-card img,
  .plan-card img,
  .pricing-card img,
  .gta-card img,
  .store-item img,
  .gtm-card img {
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }
  .product-card:hover img,
  .plan-card:hover img,
  .pricing-card:hover img,
  .gta-card:hover img,
  .store-item:hover img,
  .gtm-card:hover img {
    transform: scale(1.06);
  }
}

/* ---------- 8) Button ripple span ---------- */
.jc-ripple-span {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 60%, transparent 70%);
  transform: scale(0);
  animation: jcRippleAnim 0.65s ease-out forwards;
}
@keyframes jcRippleAnim { to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jc-ripple-span { display: none; } }
