/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 20px var(--green-glow);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--green-glow);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* WhatsApp icon (using Font Awesome or similar) */
.whatsapp-float i {
    font-size: 30px;
    line-height: 60px;
}

/* Animation pulse effect */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
        line-height: 50px;
    }
}

/* Tooltip on hover */
.whatsapp-float .tooltip {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    background-color: var(--secondary-dark);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid var(--border-gray);
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--secondary-dark);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float .tooltip {
        display: none;
    }
} 