/* Floating Action Buttons Container */
.floating-buttons-container {
    position: fixed;
    right: 20px;
    bottom: 150px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Individual Floating Button */
.floating-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 55px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    animation: bounce 2s infinite;
    overflow: hidden;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.floating-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    animation: none;
}

/* Button Icon Container */
.floating-btn-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.floating-btn-icon i {
    font-size: 28px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.floating-action-btn:hover .floating-btn-icon i {
    transform: scale(1.15);
}

/* Button Text */
.floating-btn-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.5px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #008dbd;
    width: 55px;
    gap: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-btn:hover {
    background: #00698d;
    width: auto;
    gap: 12px;
    padding: 0 15px;
}

.whatsapp-btn:hover .floating-btn-text {
    max-width: 200px;
    opacity: 1;
    padding: 0 0 0 5px;
}

/* Call Button */
.call-btn {
    background: #008dbd;
    width: 55px;
    gap: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.call-btn:hover {
    background: #00698d;
    width: auto;
    gap: 12px;
    padding: 0 15px;
}

.call-btn:hover .floating-btn-text {
    max-width: 200px;
    opacity: 1;
    padding: 0 0 0 5px;
}

/* Enquire Button */
.enquire-btn {
    background: #008dbd;
    width: 55px;
    gap: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.enquire-btn:hover {
    background: #00698d;
    width: auto;
    gap: 12px;
    padding: 0 15px;
}

.enquire-btn:hover .floating-btn-text {
    max-width: 200px;
    opacity: 1;
    padding: 0 0 0 5px;
}

/* Active State */
.floating-action-btn:active {
    transform: scale(0.95);
}

/* Ripple Effect */
.floating-action-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    pointer-events: none;
}

.floating-action-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-buttons-container {
        right: 15px;
        bottom: 70px;
        gap: 12px;
    }

    .floating-action-btn {
        height: 50px;
    }

    .floating-btn-icon {
        width: 50px;
        height: 50px;
    }

    .floating-btn-icon i {
        font-size: 24px;
    }

    .floating-btn-text {
        font-size: 16px;
        padding: 0 15px;
    }

    .call-btn,
    .enquire-btn,
    .whatsapp-btn {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .floating-buttons-container {
        right: 10px;
        bottom: 60px;
        gap: 10px;
    }
    .floating-action-btn{justify-content:flex-end}

    .floating-action-btn {
        height: 45px;
    }

    .floating-btn-icon {
        width: 45px;
        height: 45px;
    }

    .floating-btn-icon i {
        font-size: 22px;
    }

    .floating-btn-text {
        font-size: 14px;
        padding: 0 12px;
    }

    .call-btn,
    .enquire-btn,
    .whatsapp-btn {
        width: 45px;
    }
}

/* Smooth scroll for enquire button */
html {
    scroll-behavior: smooth;
}