/* Floating Action Buttons for ACT Engineering Consultancy */

/* Logo styling fix */
.main-menu-four__logo {
    padding: 0;
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.whatsapp-btn,
.call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white !important;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    line-height: 1;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: scale(1.15);
    color: white !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.call-btn {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    animation: pulse-red 2s infinite;
}

.call-btn:hover {
    background: linear-gradient(135deg, #CC0000, #FF4444);
    transform: scale(1.15);
    color: white !important;
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.4);
    text-decoration: none;
}

/* Icon styling */
.floating-buttons i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-size: 28px !important;
    color: white !important;
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
}

/* Ensure specific icons work */
.whatsapp-btn i.fa-commenting:before {
    content: "\f27a" !important;
}

.call-btn i.fa-phone:before {
    content: "\f095" !important;
}

/* FontAwesome fallback - if icons don't load, show emojis */
.whatsapp-btn i:not(.fa):not(.fa-commenting)::before,
.whatsapp-btn i:empty::before {
/*    content: "💬";*/
/*    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;*/
    font-size: 28px;
}

.call-btn i:not(.fa):not(.fa-phone)::before,
.call-btn i:empty::before {
/*    content: "📞";*/
/*    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;*/
    font-size: 28px;
}

/* Ensure FontAwesome icons work when loaded */
.fa.fa-commenting,
.fa.fa-phone {
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
}

/* Pulse animation for WhatsApp */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Pulse animation for Call button */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .whatsapp-btn,
    .call-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .floating-buttons i {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .whatsapp-btn,
    .call-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-buttons i {
        font-size: 20px !important;
    }
}

/* Ensure buttons are always visible */
.floating-buttons a {
    display: flex !important;
    visibility: visible !important;
    text-decoration: none !important;
}

.floating-buttons a:hover {
    text-decoration: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .whatsapp-btn {
        background: #25D366;
        border: 2px solid white;
    }
    
    .call-btn {
        background: #FF4444;
        border: 2px solid white;
    }
} 