/* ============================================
   MODERN UI ENHANCEMENTS
   Floating Backdrops & 3D Elements
   ============================================ */

:root {
    --decoration-blur: 80px;
    --blob-opacity: 0.15;
}

/* Floating Background Blobs */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--decoration-blur));
    opacity: var(--blob-opacity);
    animation: floatBlob 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Floating Items */
.floating-element {
    animation: floatingItem 6s ease-in-out infinite;
}

@keyframes floatingItem {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Glass Enhancement */
.glass-deep {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Grid Overlay */
.modern-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: 0;
}

/* Section Decorators */
.section {
    position: relative;
    overflow: hidden;
}

/* 3D Image Perspective */
.perspective-3d {
    perspective: 1000px;
}

.perspective-3d img {
    transition: transform 0.5s ease;
    transform: rotateY(-10deg) rotateX(5deg);
}

.perspective-3d:hover img {
    transform: rotateY(0) rotateX(0) scale(1.05);
}

/* Product Section Specialized Background */
.product-modern-bg {
    background: radial-gradient(circle at 70% 30%, rgba(0, 217, 255, 0.08) 0%, var(--bg-secondary) 70%) !important;
}

.product-modern-bg .section-header {
    margin-bottom: 5rem;
}

/* === ADVANCED WHATSAPP WIDGET === */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.wa-message-bubble {
    background: white;
    padding: 12px 20px;
    border-radius: 18px 18px 2px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    max-width: 220px;
    opacity: 0;
    transform: translateY(20px);
    animation: wa-bubble-intro 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 2s;
}

.wa-message-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.wa-online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #25d366;
    font-size: 0.75rem;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25d366;
    animation: wa-status-pulse 1.5s infinite;
}

.wa-button-float {
    width: 65px;
    height: 65px;
    background: #25d366;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.wa-button-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.wa-button-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes wa-bubble-intro {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wa-status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wa-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.wa-button-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: wa-ring 2s infinite;
}