@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: #000814;
    color: #00d9ff;
    overflow: hidden;
    height: 100vh;
    position: relative;
    perspective: 1000px;
}

/* Canvas Backgrounds */
#gridCanvas,
#holoParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#holoParticles {
    z-index: 2;
}

/* Light Beams */
.light-beam {
    position: fixed;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #00d9ff, transparent);
    opacity: 0.3;
    animation: beamMove 4s ease-in-out infinite;
}

.beam-1 {
    left: 20%;
    animation-delay: 0s;
}

.beam-2 {
    left: 50%;
    animation-delay: 1.3s;
}

.beam-3 {
    left: 80%;
    animation-delay: 2.6s;
}

@keyframes beamMove {
    0%, 100% {
        transform: translateY(-50%);
        opacity: 0.1;
    }
    50% {
        transform: translateY(50%);
        opacity: 0.5;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Holographic Projection */
.holo-projection {
    position: relative;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

/* Loading Circles */
.loading-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.8s ease;
}

.loading-circles.hidden {
    opacity: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #00d9ff;
    border-radius: 50%;
    box-shadow: 0 0 30px #00d9ff, inset 0 0 30px #00d9ff;
}

.circle-1 {
    width: 80px;
    height: 80px;
    animation: circleExpand 2s ease-out infinite;
}

.circle-2 {
    width: 120px;
    height: 120px;
    animation: circleExpand 2s ease-out infinite 0.3s;
}

.circle-3 {
    width: 160px;
    height: 160px;
    animation: circleExpand 2s ease-out infinite 0.6s;
}

@keyframes circleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.loading-status {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: 4px;
    color: #00d9ff;
    text-shadow: 0 0 20px #00d9ff;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Main Interface */
.main-interface {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.main-interface.show {
    opacity: 1;
    transform: translateY(0);
}

/* Wireframe Cube */
.wireframe-container {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    perspective: 1000px;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #00d9ff;
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 20px #00d9ff, inset 0 0 20px #00d9ff;
}

.front  { transform: translateZ(75px); }
.back   { transform: translateZ(-75px) rotateY(180deg); }
.left   { transform: translateX(-75px) rotateY(-90deg); }
.right  { transform: translateX(75px) rotateY(90deg); }
.top    { transform: translateY(-75px) rotateX(90deg); }
.bottom { transform: translateY(75px) rotateX(-90deg); }

/* Title Wrapper */
.title-wrapper {
    position: relative;
    margin: 80px 0 40px;
}

.holo-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.holo-lines .line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #00d9ff, transparent);
    animation: lineShift 3s ease-in-out infinite;
}

.holo-lines .line:nth-child(2) { animation-delay: 0.2s; }
.holo-lines .line:nth-child(3) { animation-delay: 0.4s; }
.holo-lines .line:nth-child(4) { animation-delay: 0.6s; }
.holo-lines .line:nth-child(5) { animation-delay: 0.8s; }

@keyframes lineShift {
    0%, 100% {
        transform: scaleY(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

/* Main Title */
.main-title {
    font-size: clamp(70px, 12vw, 140px);
    font-weight: 900;
    letter-spacing: 20px;
    position: relative;
    display: inline-block;
    margin: 0;
}

.title-3d {
    position: relative;
    color: #00d9ff;
    text-shadow:
        0 0 10px #00d9ff,
        0 0 20px #00d9ff,
        0 0 40px #00d9ff,
        0 0 80px #00d9ff,
        0 1px 0 #006a7a,
        0 2px 0 #005a6a,
        0 3px 0 #004a5a,
        0 4px 0 #003a4a,
        0 5px 0 #002a3a,
        0 6px 10px rgba(0, 0, 0, 0.5);
    animation: titleFloat 4s ease-in-out infinite, holoGlitch 5s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
}

@keyframes holoGlitch {
    0%, 90%, 100% {
        text-shadow:
            0 0 10px #00d9ff,
            0 0 20px #00d9ff,
            0 0 40px #00d9ff,
            0 0 80px #00d9ff,
            0 1px 0 #006a7a,
            0 2px 0 #005a6a,
            0 3px 0 #004a5a,
            0 4px 0 #003a4a,
            0 5px 0 #002a3a,
            0 6px 10px rgba(0, 0, 0, 0.5);
    }
    92% {
        text-shadow:
            0 0 10px #ff00ff,
            0 0 20px #ff00ff,
            2px 2px 0 #ff00ff,
            -2px -2px 0 #00ffff;
    }
    94% {
        text-shadow:
            0 0 10px #00d9ff,
            0 0 20px #00d9ff,
            -2px 2px 0 #00ffff,
            2px -2px 0 #ff00ff;
    }
}

/* Subtitle */
.subtitle-container {
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 6px;
    color: #00d9ff;
}

.bracket {
    font-size: 20px;
    color: #00d9ff;
    text-shadow: 0 0 10px #00d9ff;
    animation: bracketBlink 2s ease-in-out infinite;
}

@keyframes bracketBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.subtitle {
    margin: 0 15px;
    text-shadow: 0 0 10px #00d9ff;
}

/* HUD Elements */
.hud-elements {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hud-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #00d9ff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00d9ff, inset 0 0 20px rgba(0, 217, 255, 0.2);
    animation: hudRotate 10s linear infinite;
}

.hud-left {
    left: 10%;
}

.hud-right {
    right: 10%;
    animation-direction: reverse;
}

@keyframes hudRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hud-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hud-line {
    width: 40px;
    height: 2px;
    background: #00d9ff;
    margin: 8px auto;
    box-shadow: 0 0 10px #00d9ff;
}

.hud-text {
    font-size: 12px;
    text-align: center;
    color: #00d9ff;
    text-shadow: 0 0 10px #00d9ff;
}

/* Waveform */
.waveform {
    width: 100%;
    max-width: 600px;
    height: 60px;
    margin: 30px auto;
    opacity: 0.6;
}

/* Holographic Button */
.holo-btn {
    position: relative;
    background: transparent;
    border: 3px solid #00d9ff;
    color: #00d9ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 60px;
    cursor: pointer;
    letter-spacing: 6px;
    margin: 30px 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5), inset 0 0 30px rgba(0, 217, 255, 0.1);
}

.btn-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-1 {
    position: relative;
    z-index: 3;
}

.layer-2 {
    z-index: 2;
    color: #00d9ff;
    transform: translateY(-2px);
    opacity: 0.5;
}

.layer-3 {
    z-index: 1;
    color: #00d9ff;
    transform: translateY(2px);
    opacity: 0.3;
}

.holo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.8), inset 0 0 50px rgba(0, 217, 255, 0.3);
    background: rgba(0, 217, 255, 0.1);
}

.holo-btn:hover .layer-2 {
    animation: layerShift 0.3s ease;
}

@keyframes layerShift {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(-4px); }
}

/* System Stats */
.system-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    font-size: 12px;
}

.stat-item {
    display: flex;
    gap: 10px;
}

.stat-label {
    color: #00d9ff;
    opacity: 0.7;
}

.stat-value {
    color: #00d9ff;
    text-shadow: 0 0 10px #00d9ff;
    font-weight: 700;
}

/* Orbiting Elements */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 300px;
    height: 300px;
    animation: orbitRotate 15s linear infinite;
}

.orbit-2 {
    width: 400px;
    height: 400px;
    animation: orbitRotate 20s linear infinite reverse;
}

.orbit-3 {
    width: 500px;
    height: 500px;
    animation: orbitRotate 25s linear infinite;
}

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00d9ff;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #00d9ff;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        letter-spacing: 10px;
    }

    .hud-circle {
        width: 70px;
        height: 70px;
    }

    .orbit-container {
        width: 300px;
        height: 300px;
    }

    .orbit-1 { width: 200px; height: 200px; }
    .orbit-2 { width: 250px; height: 250px; }
    .orbit-3 { width: 300px; height: 300px; }

    .system-stats {
        flex-direction: column;
        gap: 15px;
    }

    .holo-btn {
        font-size: 14px;
        padding: 15px 40px;
    }
}

/* Chromatic aberration effect */
@keyframes chromatic {
    0%, 100% {
        text-shadow:
            0 0 10px #00d9ff,
            2px 0 0 #ff00ff,
            -2px 0 0 #00ffff;
    }
    50% {
        text-shadow:
            0 0 10px #00d9ff,
            -2px 0 0 #ff00ff,
            2px 0 0 #00ffff;
    }
}
