/* Professional Call Now Button with Blinking Animation */
.call-now-btn {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    text-decoration: none;
    animation: blinkPulse 2s infinite;
}

.call-now-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.6);
    transform: translateY(-3px);
    color: #ffffff;
    text-decoration: none;
}

.call-now-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(40, 167, 69, 0.5);
}

.call-now-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.call-now-btn i {
    animation: phoneRing 1.5s infinite;
}

/* Blinking pulse animation */
@keyframes blinkPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(40, 167, 69, 0.8), 0 0 0 10px rgba(40, 167, 69, 0.2);
    }
}

/* Phone ring animation */
@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Mobile responsive */
@media only screen and (max-width: 767px) {
    .call-now-btn {
        width: 45px;
        height: 45px;
        bottom: 150px; /* Above scroll-to-top button */
        right: 15px;
        font-size: 18px;
        z-index: 99998; /* Just below scroll-to-top */
    }
}

@media only screen and (max-width: 480px) {
    .call-now-btn {
        width: 40px;
        height: 40px;
        bottom: 145px; /* Above scroll-to-top button */
        right: 12px;
        font-size: 16px;
        z-index: 99998;
    }
}

/* Ensure button is visible when scrolled */
body.scrolled .call-now-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
