/* ========================================
   WHATSAPP FLOATING ICON WITH ANIMATED RINGS - CIRCULAR
   ======================================== */

.contact-float {
    display: block;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: transparent;
    cursor: pointer;
    z-index: 998;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility 0.5s;
    outline: none;
    border: none;
}

.whatsapp-ring {
    width: 110px;
    height: 110px;
    position: relative;
}

/* Outer border ring - Expanding pulse effect */
.whatsapp-ring-circle {
    width: 110px;
    height: 110px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    opacity: 0.1;
    animation: whatsapp-circle-anim 1.2s infinite ease-in-out;
    transition: all 0.5s;
}

/* Middle fill ring - Breathing effect */
.whatsapp-ring-circle-fill {
    width: 74px;
    height: 74px;
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: #25d366;
    border-radius: 50%;
    border: none;
    opacity: 0.15;
    animation: whatsapp-fill-anim 2.3s infinite ease-in-out;
    transition: all 0.5s;
}

/* Center icon circle - Main button - Perfectly Circular */
.whatsapp-ring-img-circle {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: none;
    outline: none;
    opacity: 1;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsapp-icon-anim 1.5s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.whatsapp-ring-img-circle a.whatsapp-btn-icon {
    color: #ffffff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    border-radius: 50%;
}

.whatsapp-ring-img-circle a.whatsapp-btn-icon:focus {
    outline: none;
    border: none;
}

.whatsapp-ring-img-circle a.whatsapp-btn-icon i {
    border: none;
    outline: none;
}

/* Animations */
@keyframes whatsapp-circle-anim {
    0% {
        transform: rotate(0deg) scale(0.5) skew(1deg);
        opacity: 0.1;
    }
    30% {
        transform: rotate(0deg) scale(0.7) skew(1deg);
        opacity: 0.5;
    }
    100% {
        transform: rotate(0deg) scale(1) skew(1deg);
        opacity: 0.1;
    }
}

@keyframes whatsapp-fill-anim {
    0% {
        transform: rotate(0deg) scale(0.7) skew(1deg);
        opacity: 0.2;
    }
    50% {
        transform: rotate(0deg) scale(1) skew(1deg);
        opacity: 0.2;
    }
    100% {
        transform: rotate(0deg) scale(0.7) skew(1deg);
        opacity: 0.2;
    }
}

@keyframes whatsapp-icon-anim {
    0% {
        transform: rotate(0deg) scale(1) skew(1deg);
    }
    10% {
        transform: rotate(-15deg) scale(1) skew(1deg);
    }
    20% {
        transform: rotate(15deg) scale(1) skew(1deg);
    }
    30% {
        transform: rotate(-15deg) scale(1) skew(1deg);
    }
    40% {
        transform: rotate(15deg) scale(1) skew(1deg);
    }
    50%,
    100% {
        transform: rotate(0deg) scale(1) skew(1deg);
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .contact-float {
        right: 20px;
        bottom: 20px;
    }
    
    .whatsapp-ring {
        width: 90px;
        height: 90px;
    }
    
    .whatsapp-ring-circle {
        width: 90px;
        height: 90px;
        border-radius: 50%;
    }
    
    .whatsapp-ring-circle-fill {
        width: 62px;
        height: 62px;
        top: 14px;
        left: 14px;
        border-radius: 50%;
    }
    
    .whatsapp-ring-img-circle {
        width: 50px;
        height: 50px;
        top: 20px;
        left: 20px;
        border-radius: 50%;
    }
    
    .whatsapp-ring-img-circle a.whatsapp-btn-icon {
        font-size: 26px;
        border-radius: 50%;
    }
}

@media screen and (max-width: 480px) {
    .contact-float {
        right: 15px;
        bottom: 15px;
    }
    
    .whatsapp-ring {
        width: 80px;
        height: 80px;
    }
    
    .whatsapp-ring-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }
    
    .whatsapp-ring-circle-fill {
        width: 54px;
        height: 54px;
        top: 13px;
        left: 13px;
        border-radius: 50%;
    }
    
    .whatsapp-ring-img-circle {
        width: 45px;
        height: 45px;
        top: 17.5px;
        left: 17.5px;
        border-radius: 50%;
    }
    
    .whatsapp-ring-img-circle a.whatsapp-btn-icon {
        font-size: 24px;
        border-radius: 50%;
    }
}

/* Print - Hide WhatsApp button */
@media print {
    .contact-float {
        display: none !important;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-ring-circle,
    .whatsapp-ring-circle-fill,
    .whatsapp-ring-img-circle {
        animation: none !important;
    }
}

/* Remove any default button/link styling */
a.whatsapp-btn-icon,
a.whatsapp-btn-icon:active,
a.whatsapp-btn-icon:visited,
a.whatsapp-btn-icon:focus {
    outline: none !important;
    border: none !important;
    text-decoration: none !important;
}