/* Sağ alt sabit iletişim butonları */

.float-contact {
    position: fixed;
    right: 18px;
    /* Tawk.to widget'ının üstünde kalsın */
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    z-index: 1035;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.float-contact-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(20, 16, 30, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.float-contact-btn:hover {
    transform: translateY(-3px) scale(1.04);
    color: #fff;
    filter: brightness(1.05);
}

.float-contact-btn:focus-visible {
    outline: 2px solid #dd2a7b;
    outline-offset: 3px;
}

.float-contact-btn--wa {
    background: #25d366;
    animation: float-contact-bob 2.8s ease-in-out infinite;
}

.float-contact-btn--mail {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
    animation: float-contact-bob 2.8s ease-in-out 0.4s infinite;
}

.float-contact-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: float-contact-pulse 2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

.float-contact-btn--wa .float-contact-pulse {
    background: rgba(37, 211, 102, 0.45);
}

.float-contact-btn--mail .float-contact-pulse {
    background: rgba(221, 42, 123, 0.4);
    animation-delay: 0.4s;
}

.float-contact-btn svg {
    display: block;
}

@keyframes float-contact-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@keyframes float-contact-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 575.98px) {
    .float-contact {
        right: 14px;
        bottom: calc(128px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .float-contact-btn {
        width: 50px;
        height: 50px;
    }

    .float-contact-btn--wa svg {
        width: 24px;
        height: 24px;
    }

    .float-contact-btn--mail svg {
        width: 22px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-contact-btn--wa,
    .float-contact-btn--mail,
    .float-contact-pulse {
        animation: none;
    }
}
