/* Live Wallpaper Style Background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Main animated background */
.live-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

/* Floating particles layer */
.particles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { width: 100px; height: 100px; left: 35%; animation-delay: 2s; }
.particle:nth-child(4) { width: 40px; height: 40px; left: 50%; animation-delay: 3s; }
.particle:nth-child(5) { width: 70px; height: 70px; left: 65%; animation-delay: 4s; }
.particle:nth-child(6) { width: 90px; height: 90px; left: 80%; animation-delay: 5s; }
.particle:nth-child(7) { width: 50px; height: 50px; left: 90%; animation-delay: 6s; }

/* Geometric shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid rgba(255, 255, 255, 0.1);
}

.shape-square {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: rotate(45deg);
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Aurora effect */
.aurora-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 119, 198, 0.3), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(119, 198, 255, 0.3), transparent 50%);
    animation: gradientShift 20s ease infinite;
    z-index: -1;
}

/* Interactive glow effect */
.glow-effect {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: all 0.3s ease;
    mix-blend-mode: screen;
}

/* Glassmorphism overlay for content */
.glass-overlay {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Live text shimmer effect */
.live-text {
    background: linear-gradient(90deg, #fff, #f0f0f0, #fff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .particle:nth-child(1) { width: 40px; height: 40px; }
    .particle:nth-child(2) { width: 30px; height: 30px; }
    .particle:nth-child(3) { width: 50px; height: 50px; }
    .particle:nth-child(4) { width: 20px; height: 20px; }
    .particle:nth-child(5) { width: 35px; height: 35px; }
    .particle:nth-child(6) { width: 45px; height: 45px; }
    .particle:nth-child(7) { width: 25px; height: 25px; }
}
