/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

/* Position variations */
.back-to-top.bottom-right {
    bottom: 30px;
    right: 30px;
}

.back-to-top.bottom-left {
    bottom: 30px;
    left: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
    }
    
    .back-to-top.bottom-right {
        right: 20px;
    }
    
    .back-to-top.bottom-left {
        left: 20px;
    }
    
    .back-to-top span {
        font-size: 18px;
    }
}

/* Animation for showing/hiding */
.back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.back-to-top.hide {
    animation: fadeOutDown 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}