/* ===============================
   Floating Support Button
================================ */
.floating-support {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    animation: supportFadeIn 0.6s ease-out forwards;
}

/* Image styling */
.floating-support img {
    width: 125px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: supportPulse 3.5s infinite;
}

/* Hover effect */
.floating-support img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    animation-play-state: paused; /* pause pulse on hover */
}

/* Entrance animation */
@keyframes supportFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse animation */
@keyframes supportPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Tooltip styling */
.floating-support::after {
    content: "Need Help?";
    position: absolute;
    right: 75px;
    bottom: 50%;
    transform: translateY(50%);
    background: #016b60;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Show tooltip on hover */
.floating-support:hover::after {
    opacity: 1;
    transform: translateY(50%) translateX(-4px);
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .floating-support {
        right: 14px;
        bottom: 14px;
    }

    .floating-support img {
        width: 52px;
    }

    .floating-support::after {
        display: none; /* hide tooltip on mobile */
    }
}
