/* Scroll to Top Button Styles */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.scroll-to-top-btn:active {
    transform: scale(1.05);
}

.scroll-to-top-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .scroll-to-top-btn i {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .scroll-to-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .scroll-to-top-btn i {
        font-size: 1rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top-btn {
        transition: opacity 0.3s ease;
    }
    
    .scroll-to-top-btn:hover {
        transform: scale(1);
    }
    
    .scroll-to-top-btn i {
        transition: none;
    }
}