/* Back to Top Button Styles */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(118, 75, 162, 0.8);
    color: white;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: rgba(118, 75, 162, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
    color: white;
    text-decoration: none;
}

.back-to-top-btn:focus {
    outline: none;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top-btn i {
        font-size: 40px !important;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top-btn i {
        font-size: 35px !important;
    }
}