/* Floating Contact Buttons - Modern Design */
.fcw-contact-buttons {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Position: Right Center (Default) */
.fcw-position-right-center {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* Position: Right Top */
.fcw-position-right-top {
    top: 80px;
    right: 20px;
}

/* Position: Right Bottom */
.fcw-position-right-bottom {
    bottom: 30px;
    right: 20px;
}

/* Position: Left Center */
.fcw-position-left-center {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

/* Position: Left Top */
.fcw-position-left-top {
    top: 80px;
    left: 20px;
}

/* Position: Left Bottom */
.fcw-position-left-bottom {
    bottom: 30px;
    left: 20px;
}

/* Animation direction based on position */
.fcw-position-right-center .fcw-btn,
.fcw-position-right-top .fcw-btn,
.fcw-position-right-bottom .fcw-btn {
    animation: slideInRight 0.8s ease-out;
    animation-fill-mode: both;
}

.fcw-position-left-center .fcw-btn,
.fcw-position-left-top .fcw-btn,
.fcw-position-left-bottom .fcw-btn {
    animation: slideInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

/* Button Base Styles */
.fcw-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* WhatsApp Button */
.fcw-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation-delay: 0.2s;
}

.fcw-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.fcw-whatsapp:hover::before {
    left: 100%;
}

/* Phone Button */
.fcw-phone {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    animation-delay: 0.4s;
}

.fcw-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.fcw-phone:hover::before {
    left: 100%;
}

/* Button Hover Effects - Right Side */
.fcw-position-right-center .fcw-btn:hover,
.fcw-position-right-top .fcw-btn:hover,
.fcw-position-right-bottom .fcw-btn:hover {
    transform: translateX(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Button Hover Effects - Left Side */
.fcw-position-left-center .fcw-btn:hover,
.fcw-position-left-top .fcw-btn:hover,
.fcw-position-left-bottom .fcw-btn:hover {
    transform: translateX(10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.fcw-whatsapp:hover {
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.fcw-phone:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5);
}

/* Icon Container */
.fcw-btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.fcw-btn:hover .fcw-btn-icon {
    transform: rotate(360deg) scale(1.2);
    background: rgba(255, 255, 255, 0.3);
}

.fcw-btn-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Text Animation */
.fcw-btn-text {
    position: relative;
    z-index: 1;
}

/* Slide In Animation from Right */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Animation from Left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fcw-whatsapp {
    animation: slideInRight 0.8s ease-out 0.2s both, floating 3s ease-in-out 1s infinite;
}

.fcw-phone {
    animation: slideInRight 0.8s ease-out 0.4s both, floating 3s ease-in-out 1.5s infinite;
}

/* Left side floating animation */
.fcw-position-left-center .fcw-whatsapp,
.fcw-position-left-top .fcw-whatsapp,
.fcw-position-left-bottom .fcw-whatsapp {
    animation: slideInLeft 0.8s ease-out 0.2s both, floating 3s ease-in-out 1s infinite;
}

.fcw-position-left-center .fcw-phone,
.fcw-position-left-top .fcw-phone,
.fcw-position-left-bottom .fcw-phone {
    animation: slideInLeft 0.8s ease-out 0.4s both, floating 3s ease-in-out 1.5s infinite;
}

/* Glow Effect */
.fcw-whatsapp {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3),
                0 0 20px rgba(37, 211, 102, 0.2);
}

.fcw-phone {
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3),
                0 0 20px rgba(74, 144, 226, 0.2);
}

/* Active State - Right */
.fcw-position-right-center .fcw-btn:active,
.fcw-position-right-top .fcw-btn:active,
.fcw-position-right-bottom .fcw-btn:active {
    transform: translateX(-10px) scale(0.95);
}

/* Active State - Left */
.fcw-position-left-center .fcw-btn:active,
.fcw-position-left-top .fcw-btn:active,
.fcw-position-left-bottom .fcw-btn:active {
    transform: translateX(10px) scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fcw-position-right-center,
    .fcw-position-right-top,
    .fcw-position-right-bottom {
        right: 15px;
    }

    .fcw-position-left-center,
    .fcw-position-left-top,
    .fcw-position-left-bottom {
        left: 15px;
    }

    .fcw-position-right-top,
    .fcw-position-left-top {
        top: 60px;
    }

    .fcw-position-right-bottom,
    .fcw-position-left-bottom {
        bottom: 20px;
    }

    .fcw-contact-buttons {
        gap: 15px;
    }

    .fcw-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .fcw-btn-icon {
        width: 28px;
        height: 28px;
    }

    .fcw-btn-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .fcw-position-right-center,
    .fcw-position-right-top,
    .fcw-position-right-bottom {
        right: 10px;
    }

    .fcw-position-left-center,
    .fcw-position-left-top,
    .fcw-position-left-bottom {
        left: 10px;
    }

    .fcw-contact-buttons {
        gap: 12px;
    }

    .fcw-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .fcw-btn-icon {
        width: 26px;
        height: 26px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .fcw-btn {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .fcw-btn:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
}

/* Accessibility */
.fcw-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fcw-btn,
    .fcw-btn-icon,
    .fcw-whatsapp,
    .fcw-phone {
        animation: none !important;
        transition: none !important;
    }
}
