/* Floating Action Btn CSS :: Begins */
.floating-contact {
    position: fixed;
    bottom: 4rem;
    left: 30px;
    z-index: 1000;
}

.contact-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.contact-container:hover .contact-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--portal-light-color);
}

.whatsapp-btn {
    background-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.call-btn {
    background-color: #007bff;
}

.call-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.main-contact-btn {
    width: 60px;
    height: 60px;
    background-color: var(--portal-primary-color);
    color: #FFF;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    transition: all 0.5 ease-in-out;
}

.main-contact-btn:hover {
    background-color: var(--portal-secondary-color);
}

.main-contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.main-contact-btn:hover::before {
    width: 100%;
    height: 100%;
}

.btn-icon {
    position: relative;
    z-index: 2;
}

/* Bootstrap Icons styling */
.bi {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    color: #FFF;
}

.main-contact-btn .bi {
    font-size: 1.5rem;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--dark-color);
}

.contact-btn:hover .tooltip {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {

    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .main-contact-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Floating Action Btn CSS :: Ends */