:root {
    --bg-color: #0a0c0f;
    --panel-bg: rgba(15, 18, 23, 0.8);
    --accent-color: #00ff96; /* Neon Green/Cyan */
    --text-color: #e0e6ed;
    --border-color: #1e252e;
    --terminal-color: #00ff96;
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 10;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Flicker Effect */
@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.98; }
    20% { opacity: 0.92; }
    25% { opacity: 0.99; }
    100% { opacity: 1; }
}

main {
    flex: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: flicker 0.15s infinite;
}

header {
    padding: 20px 40px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.corporate-logo {
    height: 80px; /* Adjusted for better visibility of the new logo */
    width: auto;
    border: 1px solid var(--accent-color);
    padding: 2px;
    filter: grayscale(1) brightness(1.2);
    transition: filter 0.3s ease;
}

.corporate-logo:hover {
    filter: grayscale(0) brightness(1);
}

.contact-info {
    margin-top: 30px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

.contact-info h3 {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.contact-item label {
    color: #55606e;
    font-size: 0.8rem;
    width: 50px;
}

.tech-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.tech-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding-left: 5px;
}

h1 {
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.version {
    font-size: 0.7rem;
    color: #55606e;
    letter-spacing: 1px;
}

.system-time {
    font-size: 1rem;
    color: var(--accent-color);
}

.status-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

h2 {
    font-size: 1rem;
    letter-spacing: 2px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar-wrapper {
    height: 10px;
    background: #1e252e;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 64%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 0.8rem;
    color: #8892b0;
}

.terminal {
    background: #000;
    padding: 15px;
    height: 150px;
    font-size: 0.85rem;
    overflow-y: hidden;
    color: var(--terminal-color);
    border: 1px solid #111;
}

.line {
    margin-bottom: 5px;
    opacity: 0.8;
}

.blueprint-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schematic-container {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.view-header {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.6rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    z-index: 2;
}

.live-feed-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    padding: 5px;
    z-index: 5;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.feed-header {
    font-size: 0.5rem;
    color: #55606e;
    margin-bottom: 5px;
    text-align: right;
}

.tech-image {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(1) hue-rotate(90deg) brightness(0.8) contrast(1.2);
    border: 1px solid rgba(0, 255, 150, 0.2);
}

.corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-color);
    pointer-events: none;
}

.corner.tr {
    top: -2px;
    right: -2px;
    border-bottom: none;
    border-left: none;
}

.corner.bl {
    bottom: -2px;
    left: -2px;
    border-top: none;
    border-right: none;
}

.schematic {
    width: 100%;
    height: 100%;
    color: var(--accent-color);
}

.data-readout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.data-item {
    background: var(--panel-bg);
    border-left: 3px solid var(--accent-color);
    padding: 15px;
}

.data-item label {
    display: block;
    font-size: 0.7rem;
    color: #8892b0;
    margin-bottom: 5px;
}

.data-item span {
    font-size: 1.1rem;
    font-weight: bold;
}

.radar-container {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.radar-header {
    font-size: 0.6rem;
    color: #55606e;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.radar {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: 
        repeating-radial-gradient(circle, transparent 0, transparent 15px, rgba(0, 255, 150, 0.1) 16px);
}

.sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 255, 150, 0.5) 0deg, transparent 90deg);
    border-radius: 50%;
    animation: rotate-sweep 4s linear infinite;
}

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

.target {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-color);
    animation: target-pulse 2s infinite;
}

.t1 { top: 30%; left: 60%; }
.t2 { top: 70%; left: 40%; }

@keyframes target-pulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

footer {
    padding: 15px 40px;
    border-top: 1px solid var(--border-color);
    background: var(--panel-bg);
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #55606e;
}

@media (max-width: 1024px) {
    main {
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    body {
        overflow-y: auto;
    }
    main {
        grid-template-columns: 1fr;
        padding: 20px;
        height: auto;
        overflow: visible;
    }
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    .corporate-logo {
        height: 60px;
    }
    h1 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    .system-time {
        font-size: 0.9rem;
    }
    .live-feed-panel {
        width: 120px;
        bottom: 10px;
        right: 10px;
    }
    .data-readout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 15px 10px;
    }
    .status-panel {
        padding: 20px 15px;
    }
    .terminal {
        height: 120px;
        font-size: 0.75rem;
    }
    .radar-container {
        display: none;
    }
    .schematic-container {
        min-height: 250px;
    }
}
