/* Back to Top Button with Circular Progress */
.back-to-top {
    bottom: 40px;
    right: 40px;
  }
.back-to-top-container {
    position: relative;
    display: inline-block;
  }
  
  .progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
  }
  
  .progress-ring-circle {
    transition: stroke-dasharray 0.3s ease;
    stroke-dasharray: 0 163.36; /* 2 * π * 26 = 163.36 */
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
  }
  
  .gtf-back-to-top {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
  
  .gtf-back-to-top:hover {
    transform: translateY(-2px);
  }
  
  /* Hide back to top button initially */
  .back-to-top-container {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .back-to-top-container.show {
    opacity: 1;
    visibility: visible;
  }
  

  /* Mobile-optimized back-to-top button styles */
.back-to-top-container {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.gtf-back-to-top {
	transition: all 0.15s ease;
	-webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
}

.gtf-back-to-top.clicked {
	transform: scale(0.95);
	opacity: 0.8;
}

/* Improve touch target size on mobile */
@media (max-width: 768px) {
	.back-to-top-container {
		width: 48px;
		height: 48px;
	}
	
	.gtf-back-to-top {
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Ensure smooth scrolling on all devices */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	
	.gtf-back-to-top,
	.back-to-top-container {
		transition: none;
	}
}