.scroll-to-top {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 2px solid #ff8c00;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #3c3c3c 0%, #2a2a2a 100%);
    border-color: #ff7700;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.scroll-to-top .arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #ff8c00;
    transition: border-bottom-color 0.3s ease;
}

.scroll-to-top:hover .arrow {
    border-bottom-color: #ff7700;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }
}

.scroll-to-top.pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }

    .scroll-to-top .arrow {
        border-left-width: 6px;
        border-right-width: 6px;
        border-bottom-width: 10px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .scroll-to-top .arrow {
        border-left-width: 5px;
        border-right-width: 5px;
        border-bottom-width: 8px;
    }
}

