
/* ===============================
   BACK TO TOP BUTTON
================================ */
.gcs-backtop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: transparent;
  color: #67c466;
  font-size: 22px;
  font-weight: 600;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* Effects */
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  /* Floating animation */
  animation: gcs-float 2.5s ease-in-out infinite;
}

/* Show button after scroll */
.gcs-backtop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hover */
.gcs-backtop:hover {
  background: transparent;
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

/* Floating animation */
@keyframes gcs-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ===============================
   RESPONSIVE MEDIA QUERIES
================================ */

/* Extra small phones */
@media (max-width: 359px) {
  .gcs-backtop {
    width: 25px;
    height: 25px;
    font-size: 16px;
    right: 12px;
    bottom: 12px;
  }
}

/* Small phones */
@media (min-width: 360px) and (max-width: 480px) {
  .gcs-backtop {
    width: 37px;
    height: 37px;
    font-size: 18px;
    right: 14px;
    bottom: 14px;
  }
}

/* Large phones */
@media (min-width: 481px) and (max-width: 767px) {
  .gcs-backtop {
    width: 36px;
    height: 36px;
    font-size: 20px;
    right: 16px;
    bottom: 16px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .gcs-backtop {
    width: 30px;
    height: 30px;
    font-size: 21px;
    right: 20px;
    bottom: 20px;
  }
}

/* Laptops */
@media (min-width: 1024px) and (max-width: 1365px) {
  .gcs-backtop {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

/* Large screens */
@media (min-width: 1366px) {
  .gcs-backtop {
    width: 36px;
    height: 36px;
    font-size: 24px;
    right: 32px;
    bottom: 12px;
  }
}