/* Futuristic HUD / Sci-Fi Theme */
:root {
    --neon-blue: #00f3ff;
    --neon-cyan: #0effff;
    --alert-red: #ff2a2a;
    --hud-bg: rgba(10, 15, 20, 0.65);
    --glass-border: rgba(0, 243, 255, 0.4);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: var(--font-body);
    color: white;
}

#ar-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Bar */
.hud-top-bar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

.status-light {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Central Reticle */
.reticle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.reticle-container.hidden {
    opacity: 0;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    top: 10%;
    animation: scan 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes scan {
    0% {
        top: 5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 95%;
        opacity: 0;
    }
}

.reticle-text {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -30px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    animation: pulse 2s infinite;
}

/* Bottom Info Panel */
.info-panel {
    margin: 20px;
    background: var(--hud-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    /* Sci-Fi clip path corners */
    clip-path: polygon(10px 0, 100% 0,
            100% calc(100% - 10px), calc(100% - 10px) 100%,
            0 100%, 0 10px);
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
    pointer-events: auto;
}

.info-panel.hidden {
    transform: translateY(120%);
    opacity: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 10px;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.panel-title {
    font-weight: 700;
}

#location-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    color: white;
}

.panel-metrics {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.metric .value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--neon-blue);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--neon-cyan);
    }
}

/* Navigation Instruction (Added missing styles) */
.nav-instruction {
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--neon-blue);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}