﻿/*==========================================================
    FLOATING ACTIONS
==========================================================*/

.floating-actions {
    position: fixed;
    right: 28px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

/*==========================================================
    BUTTONS
==========================================================*/

.float-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 16px 35px rgba(15,23,42,.18);
    transition: all .3s ease;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.08);
    color: #fff;
}

/*==========================================================
    WHATSAPP
==========================================================*/

.float-btn.whatsapp {

    background: #25D366;

    width: 66px;
    height: 66px;

    font-size: 30px;

    box-shadow:
        0 18px 40px rgba(37,211,102,.35);
}

/* Pulsating Ring */

.float-btn.whatsapp::before {

    content: "";

    position: absolute;

    inset: -6px;

    border-radius: 22px;

    border: 3px solid rgba(37,211,102,.45);

    animation: whatsappPulse 2.2s infinite;
}

/* Soft Glow */

.float-btn.whatsapp::after {

    content: "";

    position: absolute;

    inset: -1px;

    border-radius: 18px;

    background: rgba(37,211,102,.22);

    z-index: -1;

    filter: blur(14px);
}

/*==========================================================
    PHONE
==========================================================*/

.float-btn.phone {

    background: linear-gradient(135deg,#2F6BFF,#5C95FF);
}

/*==========================================================
    EMAIL
==========================================================*/

.float-btn.email {

    background: #fff;

    color: #2F6BFF;

    border: 1px solid #E6ECF5;
}

.float-btn.email:hover {

    color: #2F6BFF;
}

/*==========================================================
    TOOLTIP
==========================================================*/

.float-btn span {

    position: absolute;

    right: 78px;

    background: #0F172A;

    color: #fff;

    padding: 9px 14px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    transform: translateX(12px);

    transition: .25s;
}

.float-btn:hover span {

    opacity: 1;

    transform: translateX(0);
}

/*==========================================================
    ANIMATION
==========================================================*/

@keyframes whatsappPulse {

    0% {

        transform: scale(.9);

        opacity: .8;
    }

    70% {

        transform: scale(1.35);

        opacity: 0;
    }

    100% {

        transform: scale(1.35);

        opacity: 0;
    }

}

/*==========================================================
    MOBILE
==========================================================*/

@media(max-width:768px){

    .floating-actions{

        right:18px;
        bottom:18px;
        gap:12px;
    }

    .float-btn{

        width:56px;
        height:56px;

        font-size:22px;
    }

    .float-btn.whatsapp{

        width:62px;
        height:62px;

        font-size:28px;
    }

    .float-btn span{

        display:none;
    }

}