.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 10 !important;
    display: flex;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2), 0 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

.scroll-to-top-btn:active {
    transform: translateY(-1px) scale(0.95);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        display: flex;
        width: 45px;
        height: 45px;
        bottom: 120px;
        right: 20px;
    }

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

@media (max-width: 480px) {
    .scroll-to-top-btn {
        bottom: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top-btn {
        transition: opacity 0.3s;
        transform: none !important;
    }

    .scroll-to-top-btn:hover svg {
        transform: none;
    }
}

.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #c1a362, #d4b876);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.scroll-to-top-btn:hover::before {
    opacity: 0.3;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

