/* Floating Contact Icons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.floating-contact a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-contact a:hover::before {
    opacity: 1;
}

.floating-contact a:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Icon */
.whatsapp-float {
    background: linear-gradient(135deg, #25D366, #20BA5F);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20BA5F, #128C7E);
}

/* Phone Icon */
.phone-float {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.phone-float:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

/* Tooltips */
.floating-contact a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-contact a::before {
    content: '';
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-contact a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

.floating-contact a:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }
    
    .floating-contact a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-contact a::after {
        font-size: 12px;
        padding: 6px 10px;
        right: 60px;
    }
    
    .floating-contact a::before {
        right: 55px;
        border-width: 5px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        bottom: 15px;
        right: 10px;
        gap: 10px;
    }
    
    .floating-contact a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .floating-contact a::after {
        font-size: 11px;
        padding: 5px 8px;
        right: 55px;
    }
    
    .floating-contact a::before {
        right: 50px;
        border-width: 4px;
    }
}

/* Animation for floating effect */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.floating-contact a {
    animation: float 3s ease-in-out infinite;
}

.floating-contact a:nth-child(2) {
    animation-delay: 0.5s;
}

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

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Hide animations on hover */
.floating-contact a:hover {
    animation: none;
}
