/* ============================================================
   JP ROBOTIC — BACK-TO-TOP (v2 / streamlined)

   Changed from the original: this is now the ONLY place
   #back-to-top is styled — a near-duplicate block (55px vs 56px,
   slightly different transition list) used to live in
   "A footer.css" too. Also added a prefers-reduced-motion guard
   on the page-wide smooth scroll.
   ============================================================ */

html { scroll-behavior: smooth !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

html body #back-to-top {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background-color: rgba(0, 162, 237, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
}
html body #back-to-top.show { opacity: 1; visibility: visible; }

html body #back-to-top img {
  width: 100%;
  height: 100%;
  transform: scale(1.45);
  filter: brightness(1.2);
  pointer-events: none;
  transition: transform 0.3s ease;
}

html body #back-to-top:hover {
  background-color: rgb(0, 162, 237);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 162, 237, 0.6);
}
html body #back-to-top:hover img { transform: scale(1.55); }
