/* ===================================================================
   FLOATING CONTACT BUTTONS - Always Visible on All Pages
   Premium Design with Animations
   =================================================================== */

.floating-contact {
    position: fixed !important;
    /* Force fixed positioning */
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    /* Extremely high z-index to stay above everything */
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #333;
    /* Fallback */
}

/* Hover State - Scale up and lift higher */
.floating-btn:hover {
    transform: translate3d(0, -10px, 0) scale(1.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000000;
}

/* WhatsApp Button */
.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-btn.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* Phone Button */
.floating-btn.phone {
    background: linear-gradient(135deg, #0077FF 0%, #0055CC 100%);
}

.floating-btn.phone:hover {
    background: linear-gradient(135deg, #0055CC 0%, #003A99 100%);
    box-shadow: 0 12px 35px rgba(0, 119, 255, 0.5);
}

/* Email Button */
.floating-btn.email {
    background: linear-gradient(135deg, #FF6B35 0%, #E64525 100%);
}

.floating-btn.email:hover {
    background: linear-gradient(135deg, #E64525 0%, #CC3714 100%);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

/* Tooltip on Hover */
.floating-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Icon Animation */
.floating-btn i {
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Ripple Effect on Click */
.floating-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 15px;
        flex-direction: column !important; /* Vertical stack */
        gap: 10px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    /* Hide tooltip on mobile to save space */
    .floating-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        bottom: 15px;
        right: 12px;
        flex-direction: column !important; /* Vertical stack */
        gap: 8px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Accessibility - Focus States */
.floating-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* Print - Hide floating buttons when printing */
@media print {
    .floating-contact {
        display: none !important;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .floating-btn::after {
    background: rgba(255, 255, 255, 0.95);
    color: #0F1419;
}

/* Smooth entrance animation delay for each button */
.floating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.floating-btn {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(0);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}