/**
 * Back to Top Button Styles
 */
.backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.backToTop.isVisible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    background: rgba(255, 255, 255, 0.2);
}

.progressRing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progressRingCircle {
    stroke: var(--primary-background);
    stroke-dasharray: 289.026;
    /* 2 * PI * r (46) */
    stroke-dashoffset: 289.026;
    transition: stroke-dashoffset 0.1s linear;
}

.backToTopIcon {
    position: relative;
    z-index: 1;
    color: var(--primary-background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.backToTopIcon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .backToTopIcon svg {
        width: 20px;
        height: 20px;
    }
}