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

:root {
    --cp-bg: #030608;
    --cp-yellow: #fcee0a;
    --cp-cyan: #00f0ff;
    --cp-magenta: #ff003c;
    --cp-dark: #0d0d0d;
    --cp-text: #ffffff;
}

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

body {
    background-color: var(--cp-bg);
    color: var(--cp-text);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 80%),
        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));
    background-size: 100% 100%, 100% 3px, 3px 100%;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 2px;
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    border-bottom: 2px solid var(--cp-yellow);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 30px 0;
    margin-bottom: 60px;
    box-shadow: 0 0 20px rgba(252, 238, 10, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--cp-yellow);
    text-shadow: 3px 3px 0 var(--cp-magenta);
    letter-spacing: 5px;
    margin: 0;
}

.status-line {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.sys-info {
    text-align: right;
    font-size: 0.75rem;
    color: var(--cp-cyan);
    line-height: 1.5;
}

/* Intro Box */
.intro-box {
    margin-bottom: 50px;
    border-left: 5px solid var(--cp-cyan);
    padding-left: 25px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--cp-cyan);
    margin-bottom: 15px;
}

/* Module Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.module-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--cp-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.module-card:hover::before {
    width: 100%;
}

.active-module {
    border-color: var(--cp-yellow);
    background: rgba(252, 238, 10, 0.05);
}

.module-id {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
}

.module-status {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Footer */
.footer {
    border-top: 1px solid #222;
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .sys-info {
        text-align: left;
    }
}