.Scroll-Top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 100px;
    z-index: 999;
    transition-duration: 0.3s;
}

.Scroll-Top.visible {
    display: block;
}

.scrolltop-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(181, 160, 255, 1) 0%, rgba(20, 20, 20, 1) 100%);
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative; /* Necessary for the progress circle positioning */
    overflow: hidden;
    transition-duration: 0.3s;
}

.svgIcon {
    width: 24px;
    transition-duration: 0.3s;
}

.svgIcon path {
    fill: white;
}

.scrolltop-button:hover {
    background: linear-gradient(135deg, rgba(255, 181, 160, 1) 0%, rgba(20, 20, 20, 1) 100%);
}

/* Progress Circle */
.progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;  /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-top-color: transparent; /* Make top part transparent for animation */
    animation: spin 1s linear infinite; /* Spin animation */
    transform: translate(-50%, -50%); /* Center it */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s; /* Fade effect */
}

.button:hover .progress-circle {
    opacity: 1; /* Show on hover */
}

/* Animation for the progress circle */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
