/* ========================================
   Scroll to Top Button
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 110px; /* Above sticky footer (70px height + 40px margin) */
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9998; /* Below sticky footer (9999) */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* When sticky footer is hidden, move button down */
.scroll-to-top.footer-hidden {
    bottom: 30px;
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 24px rgba(48, 2, 178, 0.2);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top i {
    color: #3002b2;
    font-size: 20px;
    animation: bounceUp 2s ease-in-out infinite;
}

.scroll-to-top:hover i {
    color: #5833c0;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Hide on mobile/tablet */
@media (max-width: 959px) {
    .scroll-to-top {
        display: none !important;
    }
}
