/* 
* Back to Top Button Styles
* Author: Suraj Gardi
*/

.back-to-top {
  position: fixed;
  bottom: 25px;
  /* MODIFIED: Adjusted positioning to stay within viewport */
  right: 15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* MODIFIED: Ensure button stays within container */
  max-width: 100%;
  box-sizing: border-box;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(5, 99, 187, 0.3);
}