/**
 * ScrapTech India - Animated Footer CTA Button
 * Sticky call button with pulse animation
 */

/* Sticky Footer CTA Button */
.sticky-footer-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #2ECC40 0%, #27AE60 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(46, 204, 64, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse-cta 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sticky-footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(46, 204, 64, 0.6);
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
}

.sticky-footer-cta:active {
    transform: translateY(0);
}

/* Phone Icon Animation */
.sticky-footer-cta .phone-icon {
    font-size: 20px;
    animation: ring-phone 1.5s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-cta {
    0% {
        box-shadow: 0 4px 20px rgba(46, 204, 64, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(46, 204, 64, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(46, 204, 64, 0.4);
        transform: scale(1);
    }
}

/* Phone Ring Animation */
@keyframes ring-phone {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    70% {
        transform: rotate(5deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-footer-cta {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .sticky-footer-cta .phone-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sticky-footer-cta {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 13px;
        border-radius: 25px;
    }
    
    .sticky-footer-cta .phone-icon {
        font-size: 16px;
    }
}

/* Hide on desktop when not needed */
@media (min-width: 1024px) {
    .sticky-footer-cta {
        bottom: 30px;
        right: 30px;
    }
}

/* WhatsApp Float Button (Updated) */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9998;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile CTA (Bottom Navigation) */
.mobile-cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2ECC40 0%, #27AE60 100%);
    color: white;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    z-index: 9997;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .mobile-cta-sticky {
        display: block;
    }
    
    .sticky-footer-cta {
        bottom: 70px;
    }
    
    .whatsapp-float {
        bottom: 140px;
    }
}

/* Accessibility */
.sticky-footer-cta:focus,
.whatsapp-float:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sticky-footer-cta,
    .whatsapp-float,
    .mobile-cta-sticky {
        display: none !important;
    }
}
