/* Floating Social Widgets — WhatsApp & Instagram */
.wa, .ig {
    position: fixed;
    z-index: 999;
    text-decoration: none;
    left: max(28px, var(--safe-left, 28px));
}

/* Position alignment & Staggered Animations */
.wa {
    bottom: max(28px, var(--safe-bottom, 28px));
    animation: 
        social-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards,
        social-float-wa 3.6s ease-in-out 1s infinite;
}

.ig {
    /* Stacked above WhatsApp: WhatsApp bottom (28) + WhatsApp Height (80) + Gap (16) = 124px */
    bottom: calc(max(28px, var(--safe-bottom, 28px)) + 80px + 16px);
    animation: 
        social-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards,
        social-float-ig 4.2s ease-in-out 0.6s infinite;
}

.wa__body, .ig__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.wa__icon, .ig__icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

/* WhatsApp Icon (Official Green) */
.wa__icon {
    background: linear-gradient(135deg, #34D364 0%, #25D366 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Instagram Icon (Classic Gradient) */
.ig__icon {
    background: linear-gradient(135deg, #FDF497 0%, #FD5949 30%, #D6249F 70%, #285AEB 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Hover Actions */
@media (hover: hover) {
    .wa:hover .wa__icon {
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
        transform: translateY(-5px) scale(1.05);
    }

    .ig:hover .ig__icon {
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
        transform: translateY(-5px) scale(1.05);
    }
}

/* SVG icons scaling */
.wa__icon svg, .ig__icon svg {
    width: 44px;
    height: 44px;
}

@keyframes social-enter {
    0% { opacity: 0; transform: translateY(24px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes social-float-wa {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); }
}

@keyframes social-float-ig {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); }
}

.wa__copy, .ig__copy {
    display: none !important;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .wa, .ig {
        left: max(16px, var(--safe-left, 16px));
    }
    
    .wa {
        bottom: max(16px, var(--safe-bottom, 16px));
    }
    
    .ig {
        /* Mobile Stacked: WA bottom (16) + WA Height (56) + Gap (12) = 84px */
        bottom: calc(max(16px, var(--safe-bottom, 16px)) + 56px + 12px);
    }

    .wa__icon, .ig__icon {
        width: 56px;
        height: 56px;
    }

    .wa__icon svg, .ig__icon svg {
        width: 32px;
        height: 32px;
    }
}
