 
/* progress circle */

.progress-circle-container {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: bottom 0.6s linear; /* smooth replace animation */
  
}

.progress-circle {
  width: 70px;
  height: 70px;
  overflow: visible;
}

/* old .progress-circle-bar 
.progress-circle-bar {
  fill: none;
  stroke: rgb(173, 255, 47, 1);
  stroke-width: 13;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transform-origin: center;
  transition: stroke-dashoffset 0.3s ease; 
}
*/
/* new .progress-circle-bar */
.progress-circle-bar {
  fill: none;
  
  /* Apply the gradient */
  stroke: url(#gradient);
  
  stroke-width: 13;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transform-origin: center;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-background {
  fill: transparent;
  stroke: rgba(74, 74, 74, 0.522);
  stroke-width: 12;
  stroke-dasharray: none;
  
}


.scroll-to-top {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--primary-light);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.scroll-to-top svg {
  display: block;
  width: 50px;
  height: 50px;
  stroke: black;
  transition: all 0.1s ease;
}



/* Responsive sizing */
@media (max-width: 1024px) {
  .progress-circle-container {
    bottom: 32px;
    right: 16px;
  }

  .progress-circle {
    width: 60px;
    height: 60px;
  }

  .progress-circle-bar {
    stroke-width: 11;
  }

  .progress-background {
    stroke-width: 10;
  }

  .scroll-to-top svg {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  .progress-circle-container {
    bottom: 24px;
    right: 12px;
  }

  .progress-circle {
    width: 52px;
    height: 52px;
  }

  .progress-circle-bar {
    stroke-width: 9;
  }

  .progress-background {
    stroke-width: 8;
  }

  .scroll-to-top svg {
    width: 36px;
    height: 36px;
  }
}
