/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 20px;
    border-radius: 10%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    opacity: 0.7; /* Slight transparency for a modern look */
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top:hover {
    background-color: #f04;
    opacity: 1; /* Fully opaque on hover */
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

.back-to-top i {
    font-size: 24px; /* Ensure the icon has a consistent size */
}

/* Smooth Scrolling for the Back to Top */
html {
    scroll-behavior: smooth;
}

/* Add Keyframe Animation for Entry (Optional) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}
