/* Ultra-Advanced Cyberpunk UI - Next Generation Gaming Interface */

/* Quantum Particle Background */
.quantum-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(255, 0, 255, 0.05) 25%, 
        rgba(0, 0, 0, 0.9) 100%);
    z-index: -10;
    animation: quantumShift 20s ease-in-out infinite;
}

@keyframes quantumShift {
    0%, 100% { 
        background: radial-gradient(ellipse at center, 
            rgba(0, 255, 255, 0.1) 0%, 
            rgba(255, 0, 255, 0.05) 25%, 
            rgba(0, 0, 0, 0.9) 100%);
    }
    25% { 
        background: radial-gradient(ellipse at top right, 
            rgba(255, 0, 128, 0.15) 0%, 
            rgba(0, 255, 0, 0.08) 30%, 
            rgba(0, 0, 0, 0.95) 100%);
    }
    50% { 
        background: radial-gradient(ellipse at bottom left, 
            rgba(255, 215, 0, 0.12) 0%, 
            rgba(0, 128, 255, 0.06) 35%, 
            rgba(0, 0, 0, 0.92) 100%);
    }
    75% { 
        background: radial-gradient(ellipse at center, 
            rgba(128, 0, 255, 0.18) 0%, 
            rgba(255, 140, 0, 0.09) 28%, 
            rgba(0, 0, 0, 0.88) 100%);
    }
}

/* Holographic Grid Overlay */
.holographic-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -9;
    animation: gridPulse 4s ease-in-out infinite;
    transform: perspective(1000px) rotateX(60deg);
    transform-origin: center top;
}

@keyframes gridPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: perspective(1000px) rotateX(60deg) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: perspective(1000px) rotateX(60deg) scale(1.05);
    }
}

/* Neural Network Visualization */
.neural-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
    animation: dataFlow 2s linear infinite;
    transform-origin: left center;
}

@keyframes neuralPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(2);
        opacity: 1;
    }
}

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

/* Cyberpunk HUD Elements */
.hud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hud-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 255, 255, 0.6);
    animation: hudGlow 2s ease-in-out infinite;
}

.hud-corner.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-corner.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.hud-corner.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

@keyframes hudGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 255, 255, 1);
        opacity: 1;
    }
}

/* Augmented Reality Overlays */
.ar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.ar-scanner {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.8), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { 
        top: 0;
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        top: 100%;
        opacity: 0;
    }
}

/* Quantum Buttons */
.quantum-button {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2), 
        rgba(255, 0, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 15px;
    color: #00ffff;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.quantum-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #00ffff, #ff00ff, #ffff00, #00ffff);
    border-radius: 15px;
    z-index: -1;
    animation: quantumBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quantum-button:hover::before {
    opacity: 1;
}

.quantum-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 20px rgba(0, 255, 255, 1);
}

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

/* Holographic Cards */
.holographic-card {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(255, 0, 255, 0.05),
        rgba(255, 215, 0, 0.08));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent, 
        rgba(255, 0, 255, 0.1), 
        transparent);
    animation: holographicSpin 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.holographic-card:hover::before {
    opacity: 1;
}

.holographic-card:hover {
    transform: translateY(-10px) rotateX(15deg) rotateY(15deg);
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.8);
}

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

/* Futuristic Loading Screen */
.futuristic-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(20px);
}

.quantum-loader {
    width: 120px;
    height: 120px;
    position: relative;
}

.quantum-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: quantumSpin 2s linear infinite;
}

.quantum-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #ff00ff;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.quantum-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ffff00;
    animation-duration: 1s;
}

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

/* Voice Control Indicator */
.voice-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 0, 0.2), 
        rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(0, 255, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ff00;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.voice-control.active {
    animation: voicePulse 1s ease-in-out infinite;
    border-color: rgba(255, 0, 0, 0.8);
    color: #ff0000;
}

@keyframes voicePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 0, 0, 1);
    }
}

/* Gesture Control Area */
.gesture-area {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 100px;
    height: 300px;
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.1), 
        rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(255, 0, 255, 0.4);
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
}

.gesture-indicator {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, 
        rgba(255, 0, 255, 0.8), 
        transparent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gesture-indicator.active {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 0, 255, 1);
}

/* AI-Powered Dynamic Theme */
.dynamic-theme {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, 
        rgba(128, 0, 255, 0.2), 
        rgba(0, 255, 128, 0.1));
    border: 1px solid rgba(128, 0, 255, 0.6);
    border-radius: 25px;
    padding: 10px 20px;
    color: #ff00ff;
    font-weight: bold;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: aiThinking 3s ease-in-out infinite;
}

@keyframes aiThinking {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hud-corner {
        width: 50px;
        height: 50px;
    }
    
    .quantum-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .holographic-card {
        padding: 20px;
    }
    
    .gesture-area {
        width: 60px;
        height: 200px;
        right: 10px;
    }
    
    .voice-control {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
}
