/* Nút liên hệ mới với hiệu ứng cực đẹp mắt */
.contact-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
}

/* Nút toggle chính */
.contact-float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5282, #3182ce);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Hiệu ứng đặc biệt cho nút chính */
.contact-float-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Menu nút liên hệ */
.contact-float-menu {
    position: absolute;
    bottom: 80px;
    right: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Khi menu mở */
.contact-float.active .contact-float-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Xoay nút toggle khi active */
.contact-float.active .contact-float-btn {
    transform: rotate(135deg);
    background: linear-gradient(135deg, #e53e3e, #ed8936);
}

/* Hiệu ứng hover cho nút chính */
.contact-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.contact-float-btn:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* Nút trong menu */
.float-btn {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: white;
}

.btn-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.contact-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hiệu ứng riêng cho từng nút */
.phone-btn {
    animation: bounce-in 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6) backwards;
    animation-delay: 0.1s;
}

.zalo-btn {
    animation: bounce-in 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6) backwards;
    animation-delay: 0.2s;
}

/* Tooltip hiển thị khi hover */
.btn-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    font-size: 14px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
}

/* Hiệu ứng hover */
.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.float-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.float-btn:hover .contact-icon {
    transform: scale(1.1);
}

/* Hiệu ứng click */
.float-btn:active {
    transform: scale(0.9);
}

/* Phone button glow effect */
.phone-btn {
    background: linear-gradient(145deg, #26d367, #1aac4b);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-btn:hover {
    background: linear-gradient(145deg, #2ce672, #1fc253);
}

.phone-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.8);
    animation: pulse-ring 2s infinite;
    box-sizing: border-box;
}

.phone-btn:hover::after {
    animation-duration: 1.5s;
    border-color: rgba(37, 211, 102, 1);
}

/* Zalo button hover effect và animation */
.zalo-btn {
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, #03a9f4 0%, #0288d1 100%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zalo-btn:hover {
    animation: wobble 1s ease;
    background: linear-gradient(135deg, #039be5 0%, #0277bd 100%);
    box-shadow: 0 8px 20px rgba(3, 169, 244, 0.4);
}

.zalo-btn img {
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.zalo-btn:hover img {
    transform: scale(1.15) rotate(5deg);
}

.zalo-btn i, .zalo-btn span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng nhịp đập liên tục cho nút Zalo */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(3, 169, 244, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(3, 169, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(3, 169, 244, 0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }
    70% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 0.8;
        transform: scale(0.8);
    }
    80% {
        opacity: 0;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes wobble {
    0%, 100% { 
        transform: translateY(-5px) translateX(0);
    }
    15% {
        transform: translateY(-5px) translateX(-10px) rotate(-5deg);
    }
    30% {
        transform: translateY(-5px) translateX(8px) rotate(3deg);
    }
    45% {
        transform: translateY(-5px) translateX(-6px) rotate(-3deg);
    }
    60% {
        transform: translateY(-5px) translateX(4px) rotate(2deg);
    }
    75% {
        transform: translateY(-5px) translateX(-2px) rotate(-1deg);
    }
}