/* Floating WhatsApp button */
.float {
    position: fixed;
    bottom: 40px;
    left: 40px; /* bottom-left corner */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: bounce 2s infinite; /* Bounce animation */
    position: fixed;
}

/* WhatsApp icon inside the button */
.my-float {
    margin-top: 0; /* Center icon perfectly */
}

/* Bounce keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Tooltip / Label always visible */
.float::before {
    content: attr(title);
    position: absolute;
    left: 70px; /* distance from button */
    bottom: 50%;
    transform: translateY(50%);
    background: #25d366;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    opacity: 1;
    animation: slideIn 1s ease forwards;
}

/* Slide-in animation for label */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) translateY(50%);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(50%);
    }
}

/* Optional: Hover effect on button */
.float:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}


.chat-menu {
    position: fixed;
    bottom: 110px;
    left: 40px;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    padding: 15px;
    display: none; /* Hidden by default */
    z-index: 999;
}

.chat-menu input, .chat-menu textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.chat-menu button {
    width: 100%;
    background-color: #25d366;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.chat-menu button:hover {
    background-color: #1ebe5d;
}


.social-icons {
    position: fixed;   /* stays at top-right even on scroll */
    top: 10px;         /* distance from top */
    right: 20px;       /* distance from right */
    display: flex;
    gap: 10px;         /* spacing between icons */
    z-index: 1000;
}

/* Individual icon styles */
.social-icons a {
    color: #555;       /* default color */
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #25d366;    /* hover color */
    transform: scale(1.2);
}

