/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    color: #00d9ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle, rgba(77, 59, 156, 0.171), rgba(0, 0, 0, 1)), 
        linear-gradient(45deg, transparent 24%, rgba(4, 228, 41, 0.774) 24%, rgba(55, 255, 5, 0.966) 26%, transparent 26%),
        linear-gradient(-45deg, transparent 24%, rgba(226, 178, 18, 0.3) 24%, rgba(0, 234, 255, 0.3) 26%, transparent 26%);
    background-size: 20px 20px;
    animation: starfield 110s linear infinite;
    z-index: -3;
}

@keyframes starfield {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* HUD Container */
.hud {
    position: relative;
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Central Core */
.central-core {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,234,255,0.2), transparent 60%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

/* AEGIS Image */
.aegis-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #00eaff;
    box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.aegis-image.listening {
    animation: pulse-listening 1s ease-in-out infinite;
}

@keyframes pulse-listening {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Inner and Outer Rings */
.inner-rings, .outer-rings {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(0, 234, 255, 0.5);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-rings {
    width: 250px;
    height: 250px;
    animation: rotate-reverse 20s linear infinite, pulse 2s ease-in-out infinite;
}

.outer-rings {
    width: 350px;
    height: 350px;
    animation: rotate 15s linear infinite, pulse 3s ease-in-out infinite;
}

/* Moving Dots */
.moving-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff0000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
    z-index: 5000;
}

/* Inner Dot */
.inner-dot {
    animation: move-dot-inner 15s linear infinite;
}

/* Outer Dot */
.outer-dot {
    animation: move-dot-outer 15s linear infinite;
}

/* Data Panels */
.data-panels {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    z-index: 2;
}

.panel {
    background-color: rgba(0, 234, 255, 0.1);
    border: 1px solid #00eaff;
    padding: 10px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
    animation: flicker 2s infinite alternate;
    cursor: pointer;
}

/* Panel Positions */
.left-panel {
    position: absolute;
    left: 10%;
}

.right-panel {
    position: absolute;
    right: 10%;
}

.bottom-panel {
    font-weight: bold;
    background-color: rgba(24, 24, 24, 0.363);
    position: absolute;
    bottom: 8%;
}

/* Digital Clock */
.digital-clock {
    position: absolute;
    top: 28%;
    right: 10%;
    font-size: 1em;
    background: rgba(50, 54, 54, 0.034);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.7);
    z-index: 2;
    cursor: pointer;
}

/* Futuristic Shapes */
.futuristic-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 234, 255, 0.3);
    z-index: 1;
}

.shape1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

.shape2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
    animation: float 8s ease-in-out infinite;
}

.shape3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes move-dot-inner {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes move-dot-outer {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Dialog Box Styles */
.dialog-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.dialog-content {
    position: relative;
    width: 80%;
    max-width: 500px;
    max-height: 80%;
    background: rgba(0, 234, 255, 0.1);
    border: 3px solid #00eaff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff;
    animation: show-dialog 0.5s ease-in-out;
    overflow-y: auto;
}

.dialog-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.dialog-content li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 234, 255, 0.3);
}

.dialog-content button {
    background: #00eaff;
    border: none;
    padding: 8px 16px;
    color: #0d0d0d;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.dialog-content button:hover {
    background: #009fbb;
}

@keyframes show-dialog {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #00eaff;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff0000;
}

/* Custom Scrollbar Styles */
.dialog-content::-webkit-scrollbar {
    width: 8px;
}

.dialog-content::-webkit-scrollbar-track {
    background: rgba(0, 234, 255, 0.1);
    border-radius: 5px;
}

.dialog-content::-webkit-scrollbar-thumb {
    background-color: #00eaff;
    border-radius: 5px;
    box-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
}

.dialog-content::-webkit-scrollbar-thumb:hover {
    background-color: #009fbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .central-core {
        width: 200px;
        height: 200px;
    }

    .aegis-image {
        width: 100px;
        height: 100px;
    }

    .inner-rings {
        width: 180px;
        height: 180px;
    }

    .outer-rings {
        width: 250px;
        height: 250px;
    }

    .panel {
        font-size: 0.8em;
        padding: 8px;
    }

    .left-panel, .right-panel {
        left: 5%;
        right: 5%;
    }

    .digital-clock {
        top: 20%;
        right: 5%;
        font-size: 0.8em;
    }

    .dialog-content {
        width: 90%;
        padding: 15px;
    }
}