/* Ultra Premium Effects & Enhancements */

/* Advanced Particle System */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0.7;
}

.particle:nth-child(2n) {
    background: var(--neon-cyan);
    animation-duration: 12s;
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: var(--neon-pink);
    animation-duration: 10s;
    animation-delay: -4s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Holographic Text Effects */
.holographic-text {
    background: linear-gradient(45deg, 
        var(--neon-purple), 
        var(--neon-cyan), 
        var(--neon-pink), 
        var(--neon-gold));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hologram 3s ease-in-out infinite;
    position: relative;
}

.holographic-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        var(--neon-cyan), 
        var(--neon-pink), 
        var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    z-index: -1;
    animation: glitchEffect 2s ease-in-out infinite;
}

/* Neon Border Effects */
.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--primary-bg), var(--primary-bg)) padding-box,
                var(--gradient-primary) border-box;
    border-radius: var(--radius-lg);
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    background-size: 400% 400%;
    border-radius: var(--radius-lg);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: morphingGradient 6s ease infinite;
}

/* Ultra Glow Effects */
.ultra-glow {
    filter: drop-shadow(0 0 10px currentColor) 
            drop-shadow(0 0 20px currentColor) 
            drop-shadow(0 0 30px currentColor);
    animation: neonPulse 3s ease-in-out infinite;
}

/* Cyberpunk Grid */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Liquid Morphing Backgrounds */
.liquid-bg {
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    background-size: 400% 400%;
    animation: liquidMorph 15s ease-in-out infinite;
}

@keyframes liquidMorph {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Advanced Glass Morphism */
.glass-premium {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(50px) saturate(200%) contrast(120%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* Magnetic Hover Effects */
.magnetic-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.magnetic-hover:hover {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

/* Quantum Shimmer */
.quantum-shimmer {
    position: relative;
    overflow: hidden;
}

.quantum-shimmer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(139, 92, 246, 0.1) 90deg,
        transparent 180deg,
        rgba(6, 182, 212, 0.1) 270deg,
        transparent 360deg
    );
    animation: quantumSpin 8s linear infinite;
    pointer-events: none;
}

@keyframes quantumSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Premium Effects */
@media (max-width: 768px) {
    .particle {
        width: 1px;
        height: 1px;
    }
    
    .ultra-glow {
        filter: drop-shadow(0 0 5px currentColor) 
                drop-shadow(0 0 10px currentColor);
    }
    
    .cyber-grid {
        background-size: 30px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .holographic-text,
    .neon-border::before,
    .cyber-grid,
    .liquid-bg,
    .quantum-shimmer::before {
        animation: none;
    }
    
    .magnetic-hover:hover {
        transform: none;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform, opacity, filter;
}

.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.02);
        --glass-border: rgba(255, 255, 255, 0.05);
    }
}