/* Product Page Background Animations
   Subtle, non-distracting background effects for product pages */

.products-section {
    position: relative;
    overflow: hidden;
}

.product-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

/* Animated Grid Pattern */
.product-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(194, 14, 14, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 14, 14, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Floating Particles */
.product-bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-bg-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 15s infinite ease-in-out;
}

.product-bg-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.product-bg-particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.product-bg-particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.product-bg-particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.product-bg-particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.product-bg-particle:nth-child(6) {
    left: 20%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.product-bg-particle:nth-child(7) {
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 23s;
}

.product-bg-particle:nth-child(8) {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 16s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100px) translateX(30px);
        opacity: 0;
    }
}

/* Subtle Gradient Orbs */
.product-bg-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: orbFloat 25s infinite ease-in-out;
}

.product-bg-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 10%;
    left: 10%;
    animation-duration: 30s;
}

.product-bg-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    top: 60%;
    right: 15%;
    animation-duration: 35s;
    animation-delay: 5s;
}

.product-bg-orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    bottom: 20%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Scan Line Effect */
.product-bg-scanline {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(194, 14, 14, 0.3),
        transparent
    );
    top: 0;
    left: 0;
    animation: scanlineMove 8s linear infinite;
    opacity: 0.2;
}

@keyframes scanlineMove {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Ensure content stays above background */
.products-section > .container,
.product-video-container,
.product-card,
.crypto-payment {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-background-animation {
        opacity: 0.1;
    }
    
    .product-bg-grid {
        background-size: 30px 30px;
    }
    
    .product-bg-orb {
        filter: blur(40px);
    }
}

