/**
 * One Elementor - One Floating Contact Widget
 * Beautiful floating contact buttons with animations
 */

/* ========================================
   Floating Contact Container
======================================== */
.oe-floating-contact {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    bottom: 100px;
}

.oe-floating-contact.position-left {
    left: 20px;
    align-items: flex-start;
}

.oe-floating-contact.position-right {
    right: 20px;
    align-items: flex-end;
}

/* ========================================
   Contact Item
======================================== */
.oe-floating-contact-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 20px 0 15px;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    min-width: 60px;
    opacity: 0;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Background color will be set via inline style */

/* Stagger animation for each item */
.oe-floating-contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.oe-floating-contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

.oe-floating-contact-item:nth-child(3) {
    animation-delay: 0.3s;
}

.oe-floating-contact-item:nth-child(4) {
    animation-delay: 0.4s;
}

.oe-floating-contact-item:nth-child(5) {
    animation-delay: 0.5s;
}

.oe-floating-contact-item:last-child {
    margin-bottom: 0;
}

/* Slide in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.oe-floating-contact.position-right .oe-floating-contact-item {
    animation-name: slideInRight;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects */
.oe-floating-contact-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.oe-floating-contact-item:active {
    transform: translateY(-3px) scale(1.02);
}

/* ========================================
   Icon
======================================== */
.oe-floating-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 28px;
    color: #FFFFFF;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.oe-floating-contact-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.oe-floating-contact-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.oe-floating-contact-item:hover .oe-floating-contact-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(15deg) scale(1.1);
}

/* ========================================
   Label
======================================== */
.oe-floating-contact-label {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.3s ease;
}

.oe-floating-contact-item:hover .oe-floating-contact-label {
    transform: translateX(3px);
}

/* ========================================
   Glow Effect
======================================== */
.oe-floating-contact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.oe-floating-contact-item:hover .oe-floating-contact-glow {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}

/* ========================================
   Pulse Animation (Optional)
======================================== */
.oe-floating-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    opacity: 0;
    animation: pulse 2s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.oe-floating-contact-item:hover::before {
    animation: none;
}

/* ========================================
   Shimmer Effect on Hover
======================================== */
.oe-floating-contact-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.oe-floating-contact-item:hover::after {
    left: 200%;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .oe-floating-contact {
        bottom: 80px;
    }

    .oe-floating-contact.position-left {
        left: 15px;
    }

    .oe-floating-contact.position-right {
        right: 15px;
    }

    .oe-floating-contact-item {
        height: 55px;
        padding: 0 18px 0 12px;
    }

    .oe-floating-contact-icon {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .oe-floating-contact-icon svg,
    .oe-floating-contact-icon img {
        width: 24px;
        height: 24px;
    }

    .oe-floating-contact-label {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .oe-floating-contact {
        bottom: 60px;
    }

    .oe-floating-contact.position-left {
        left: 10px;
    }

    .oe-floating-contact.position-right {
        right: 10px;
    }

    .oe-floating-contact-item {
        height: 50px;
        width: 50px;
        padding: 0;
        gap: 0;
        margin-bottom: 12px;
        justify-content: center;
        border-radius: 50%;
    }

    /* Hide label on mobile */
    .oe-floating-contact-label {
        display: none;
    }

    .oe-floating-contact-icon {
        width: 32px;
        height: 32px;
        font-size: 22px;
        background-color: transparent;
    }

    .oe-floating-contact-icon svg,
    .oe-floating-contact-icon img {
        width: 22px;
        height: 22px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oe-floating-contact {
        bottom: 50px;
    }

    .oe-floating-contact.position-left,
    .oe-floating-contact.position-right {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        align-items: center;
    }

    .oe-floating-contact-item {
        height: 48px;
        width: 48px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    /* Hide label on small mobile */
    .oe-floating-contact-label {
        display: none;
    }

    .oe-floating-contact-icon {
        width: 30px;
        height: 30px;
        font-size: 20px;
        background-color: transparent;
    }

    .oe-floating-contact-icon svg,
    .oe-floating-contact-icon img {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   Accessibility
======================================== */
.oe-floating-contact-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ========================================
   Dark Mode Support (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
    .oe-floating-contact-item {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .oe-floating-contact-item:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
}