.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #f94735;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.scroll-to-top.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #e63946;
    transform: translateY(-5px) scale(1.1);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top i {
    color: white;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.scroll-to-top.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.scroll-percentage {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: #f94735;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

.scroll-percentage.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .scroll-to-top i {
        font-size: 16px;
    }

    .scroll-percentage {
        bottom: 80px;
        left: 20px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }

    .scroll-to-top i {
        font-size: 14px;
    }

    .scroll-percentage {
        bottom: 70px;
        left: 15px;
        font-size: 11px;
        padding: 5px 8px;
    }
}