/*
 * ==========================================================================
 * تصميم وبرمجة شركة دروب ايديا للتجارة الالكترونية والرقمية
 * https://dropidea.com
 * +962798402930
 * ==========================================================================
 */

/* ========================================
   ANIMATED BUBBLES
   ======================================== */

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float-up linear infinite;
}

/* Bubble Colors - Using Logo Colors */
.bubble-blue {
    background: radial-gradient(circle at 30% 30%, rgba(30, 58, 138, 0.4), rgba(30, 58, 138, 0.1));
    box-shadow: 0 0 30px rgba(30, 58, 138, 0.3);
}

.bubble-maroon {
    background: radial-gradient(circle at 30% 30%, rgba(139, 21, 56, 0.4), rgba(139, 21, 56, 0.1));
    box-shadow: 0 0 30px rgba(139, 21, 56, 0.3);
}

.bubble-mixed {
    background: radial-gradient(circle at 30% 30%, rgba(30, 58, 138, 0.3), rgba(139, 21, 56, 0.2));
    box-shadow: 0 0 40px rgba(85, 40, 97, 0.3);
}

/* Bubble Sizes */
.bubble-xs {
    width: 20px;
    height: 20px;
}

.bubble-sm {
    width: 40px;
    height: 40px;
}

.bubble-md {
    width: 60px;
    height: 60px;
}

.bubble-lg {
    width: 80px;
    height: 80px;
}

.bubble-xl {
    width: 120px;
    height: 120px;
}

.bubble-2xl {
    width: 160px;
    height: 160px;
}

.bubble-3xl {
    width: 200px;
    height: 200px;
}

/* Float Up Animation */
@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift, 0)) rotate(360deg);
        opacity: 0;
    }
}

/* Pulse Animation for Bubbles */
@keyframes bubble-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

.bubble-pulse {
    animation: bubble-pulse 4s ease-in-out infinite;
}

/* Floating Animation (Horizontal) */
@keyframes float-horizontal {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

.bubble-float {
    animation: float-horizontal 6s ease-in-out infinite;
}

/* Specific Bubble Positions and Animations */
.bubble:nth-child(1) {
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
    --drift: 50px;
}

.bubble:nth-child(2) {
    left: 20%;
    animation-duration: 20s;
    animation-delay: 2s;
    --drift: -30px;
}

.bubble:nth-child(3) {
    left: 30%;
    animation-duration: 18s;
    animation-delay: 4s;
    --drift: 70px;
}

.bubble:nth-child(4) {
    left: 40%;
    animation-duration: 22s;
    animation-delay: 1s;
    --drift: -50px;
}

.bubble:nth-child(5) {
    left: 50%;
    animation-duration: 25s;
    animation-delay: 3s;
    --drift: 40px;
}

.bubble:nth-child(6) {
    left: 60%;
    animation-duration: 19s;
    animation-delay: 5s;
    --drift: -60px;
}

.bubble:nth-child(7) {
    left: 70%;
    animation-duration: 21s;
    animation-delay: 2.5s;
    --drift: 80px;
}

.bubble:nth-child(8) {
    left: 80%;
    animation-duration: 17s;
    animation-delay: 4.5s;
    --drift: -40px;
}

.bubble:nth-child(9) {
    left: 90%;
    animation-duration: 23s;
    animation-delay: 1.5s;
    --drift: 60px;
}

.bubble:nth-child(10) {
    left: 15%;
    animation-duration: 20s;
    animation-delay: 3.5s;
    --drift: -70px;
}

.bubble:nth-child(11) {
    left: 25%;
    animation-duration: 24s;
    animation-delay: 0.5s;
    --drift: 50px;
}

.bubble:nth-child(12) {
    left: 35%;
    animation-duration: 18s;
    animation-delay: 2.8s;
    --drift: -45px;
}

.bubble:nth-child(13) {
    left: 45%;
    animation-duration: 22s;
    animation-delay: 4.2s;
    --drift: 65px;
}

.bubble:nth-child(14) {
    left: 55%;
    animation-duration: 19s;
    animation-delay: 1.8s;
    --drift: -55px;
}

.bubble:nth-child(15) {
    left: 65%;
    animation-duration: 21s;
    animation-delay: 3.2s;
    --drift: 75px;
}

.bubble:nth-child(16) {
    left: 75%;
    animation-duration: 16s;
    animation-delay: 5.5s;
    --drift: -35px;
}

.bubble:nth-child(17) {
    left: 85%;
    animation-duration: 20s;
    animation-delay: 0.8s;
    --drift: 55px;
}

.bubble:nth-child(18) {
    left: 95%;
    animation-duration: 23s;
    animation-delay: 2.2s;
    --drift: -65px;
}

.bubble:nth-child(19) {
    left: 5%;
    animation-duration: 25s;
    animation-delay: 4.8s;
    --drift: 45px;
}

.bubble:nth-child(20) {
    left: 50%;
    animation-duration: 17s;
    animation-delay: 1.2s;
    --drift: -75px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bubble-3xl {
        width: 120px;
        height: 120px;
    }
    
    .bubble-2xl {
        width: 100px;
        height: 100px;
    }
    
    .bubble-xl {
        width: 80px;
        height: 80px;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
        opacity: 0.05;
    }
}

/* Glow Effect for Some Bubbles */
.bubble-glow {
    animation: bubble-glow 3s ease-in-out infinite;
}

@keyframes bubble-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 21, 56, 0.5);
    }
}

/*
 * ==========================================================================
 * تصميم وبرمجة شركة دروب ايديا للتجارة الالكترونية والرقمية
 * https://dropidea.com
 * +962798402930
 * ==========================================================================
 */
