/* Back to Top Button - Dark Theme Glassmorphism */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(105, 178, 84, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    background: rgba(105, 178, 84, 1);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(105, 178, 84, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1);
}

/* Arrow Icon */
.back-to-top::before {
    content: "↑";
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }

    .back-to-top::before {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .back-to-top::before {
        font-size: 22px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s, visibility 0.2s;
    }

    .back-to-top:hover {
        transform: none;
    }
}
