.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 6rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), var(--tech-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: var(--tech-border);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 109, 245, 0.4), var(--tech-glow-hover);
    background: var(--primary-dark);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 5rem;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}