/* CSS */
:root {
    --primary-color: #1a5f7a;
    --primary-color-dark: #134658;
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    /* Adjusted to not overlap with WhatsApp button */
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    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 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top::before {
    content: '↑';
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.back-to-top:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top::before {
        font-size: 20px;
    }
}