﻿/* ===== Floating Contact Icons ===== */
.floating-icons {
    position: fixed;
    right: 25px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
}

/* Icon Base */
.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    animation: floatUpDown 3s ease-in-out infinite;
}

    /* Hover Glow */
    .icon:hover {
        transform: scale(1.2) rotate(10deg);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        animation-play-state: paused;
    }

    /* Specific Colors */
    .icon.call {
        background: linear-gradient(45deg, #007bff, #0056b3);
    }

    .icon.whatsapp {
        background: linear-gradient(45deg, #25D366, #128C7E);
    }

    .icon.facebook {
        background: linear-gradient(45deg, #1877f2, #0a59c4);
    }

    .icon.instagram {
        background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 50%, #d6249f 75%, #285AEB 100%);
    }

    /* Icon Inner Glow */
    .icon::after {
        content: "";
        position: absolute;
        width: 75px;
        height: 75px;
        border-radius: 50%;
        top: -8px;
        left: -8px;
        z-index: -1;
        background: rgba(255, 255, 255, 0.15);
        opacity: 0;
        transition: 0.4s ease;
    }

    .icon:hover::after {
        opacity: 1;
        transform: scale(1.3);
    }

/* Floating Animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Tooltip Effect */
.icon[title]:hover::before {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    animation: tooltipFade 0.4s forwards;
}

@keyframes tooltipFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .floating-icons {
        right: 15px;
        bottom: 20px;
        gap: 12px;
    }
}
