﻿/* =========================================
   Floating Social Buttons - Saaras Agro Theme
=========================================== */
.social-floating {
    position: fixed;
    right: 25px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    animation: floatIn 1s ease-in-out;
}

/* Floating button base */
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: bounce 3s infinite;
}

    /* Color-specific styles */
    .social-btn.phone {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
    }

    .social-btn.whatsapp {
        background: linear-gradient(135deg, #25D366, #1ba94c);
    }

    .social-btn.facebook {
        background: linear-gradient(135deg, #1877f2, #145db2);
    }

    .social-btn.instagram {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    }

    .social-btn.linkedin {
        background: linear-gradient(135deg, #0077B5, #004182);
    }

    /* Hover effects */
    .social-btn:hover {
        transform: scale(1.15) rotate(10deg);
        box-shadow: 0 6px 14px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }

    /* Subtle glowing hover animation */
    .social-btn.phone:hover {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
    }

    .social-btn.whatsapp:hover {
        box-shadow: 0 0 15px rgba(37, 211, 102, 0.8);
    }

    .social-btn.facebook:hover {
        box-shadow: 0 0 15px rgba(24, 119, 242, 0.8);
    }

    .social-btn.instagram:hover {
        box-shadow: 0 0 15px rgba(253, 89, 73, 0.8);
    }

    .social-btn.linkedin:hover {
        box-shadow: 0 0 15px rgba(0, 119, 181, 0.8);
    }

/* Floating entry animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gentle bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .social-floating {
        right: 15px;
        bottom: 80px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
