/**
 * 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, #FF6B35 0%, #F7931E 50%, #FF6B35 100%);
    background-size: 200% 200%;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 0;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.3), 0 3px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-cta 2.5s ease-in-out infinite, gradient-shift 3s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* position: relative; */
    overflow: hidden;
}

.sticky-footer-cta span {
    display: none;
}

.sticky-footer-cta:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
    background-position: 100% 50%;
}

.sticky-footer-cta:active {
    transform: translateY(-1px) scale(1.05);
    transition: all 0.1s ease;
}

/* Shimmer effect */
.sticky-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

/* Phone Icon Animation */
.sticky-footer-cta .phone-icon {
    font-size: 24px;
    animation: ring-phone 1.5s ease-in-out infinite, bounce-icon 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin: 0;
}

/* Pulse Animation */
@keyframes pulse-cta {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(255, 107, 53, 0.3), 0 3px 8px rgba(0, 0, 0, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: scale(1.1);
    }
}

/* Gradient Shift Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    20%, 80% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

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

/* Bounce Icon Animation */
@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-footer-cta {
        bottom: 15px;
        display: none;
        left: 15px;
        width: 52px;
        height: 52px;
    }
    
    .sticky-footer-cta .phone-icon {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .sticky-footer-cta {
        bottom: 12px;
        right: 18px;
        width: 48px;
        height: 48px;
    }
    
    .sticky-footer-cta .phone-icon {
        font-size: 20px;
    }
    
    .sticky-footer-cta span {
        display: none;
    }
}

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

/* WhatsApp Float Button (Updated) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    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: 20px;
    }
}

/* 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;
    }
}
