/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Cyber Palette */
    --c-bg: #030305;
    --c-panel: rgba(10, 20, 30, 0.8);

    --c-cyan: #00f3ff;
    --c-cyan-dim: rgba(0, 243, 255, 0.2);

    --c-magenta: #ff003c;
    --c-magenta-dim: rgba(255, 0, 60, 0.2);

    --c-yellow: #fcee0a;
    --c-orange: #ff9d00;
    --c-purple: #b900ff;
    --c-green: #50fa7b;

    --c-text: #e0faff;
    --c-text-dim: #5c7080;

    /* Fonts */
    --f-head: 'Orbitron', sans-serif;
    --f-ui: 'Rajdhani', sans-serif;
    --f-mono: 'Space Mono', monospace;

    /* Effects */
    --glow-cyan: 0 0 10px var(--c-cyan), 0 0 20px var(--c-cyan-dim);
    --scanline: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 51%);
}

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

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--c-cyan);
    border-radius: 3px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-ui);
    overflow-x: hidden;
    height: 100vh;
}

/* =========================================
   BACKGROUND FX
   ========================================= */
#data-highway {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #101520 0%, #000 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.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% 2px, 3px 100%;
    z-index: 900;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAA GFBMVEUAAAA5OTkAAABMTExWVlZpaWlzc3N/f39y3y3SAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAdSURBVDjLY2AYBaNgFIyCUTAKRsEoGAWjYBSMAgAQyAAB6i1O1AAAAABJRU5ErkJggg==');
    opacity: 0.03;
    z-index: 899;
    pointer-events: none;
}

/* =========================================
   HUD LAYOUT
   ========================================= */
.hud-frame {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 50px 1fr;
    height: 100vh;
    padding: 10px;
    gap: 10px;
}

/* Top Status Bar */
.hud-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0 2rem;
    border-bottom: 1px solid var(--c-cyan-dim);
    font-family: var(--f-mono);
    font-size: 0.8rem;
    background: rgba(0, 20, 40, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 98% 100%, 0 100%);
}

.status-item .label {
    color: var(--c-text-dim);
}

.status-item .val {
    color: var(--c-magenta);
    font-weight: bold;
}

.status-item .val.success {
    color: var(--c-cyan);
}

.time-display {
    width: 100px;
    text-align: right;
}

/* Sidebar */
.hud-sidebar {
    border-right: 1px solid var(--c-cyan-dim);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.hud-logo {
    font-family: var(--f-head);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hud-logo .dot {
    color: var(--c-cyan);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-item {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--c-text-dim);
    text-decoration: none;
    padding-left: 10px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    color: var(--c-cyan);
    border-left-color: var(--c-cyan);
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1), transparent);
    text-shadow: 0 0 8px var(--c-cyan);
}

.nav-item::before {
    content: attr(data-text);
    position: absolute;
    left: 10px;
    top: 0;
    color: var(--c-cyan);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s;
}

.nav-item:hover::before {
    width: 100%;
}

.hud-version {
    margin-top: auto;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: #333;
}

/* Main Content */
.hud-main {
    overflow-y: auto;
    padding: 2rem 4rem;
    position: relative;
}

.hud-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    align-items: flex-start;
}

.terminal-window {
    width: 100%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1a1a20;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-dot.red {
    background: #ff5f56;
}

.term-dot.yellow {
    background: #ffbd2e;
}

.term-dot.green {
    background: #27c93f;
}

.term-title {
    margin-left: auto;
    color: #aaa;
    font-family: var(--f-mono);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 15px;
    font-family: var(--f-mono);
    font-size: 0.9rem;
    color: #0f0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.cursor-blink {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-glitch-title {
    font-family: var(--f-head);
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    letter-spacing: -2px;
    text-shadow: 3px 3px 0px var(--c-magenta), -3px -3px 0px var(--c-cyan);
}

.hero-subtitle {
    font-family: var(--f-mono);
    color: var(--c-text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    background: rgba(0, 243, 255, 0.05);
    padding: 5px 10px;
}

.cyber-btn {
    position: relative;
    display: inline-flex;
    padding: 15px 40px;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    background: var(--c-cyan);
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.2s;
    letter-spacing: 2px;
}

.cyber-btn.sm {
    font-size: 1rem;
    padding: 10px 25px;
    border: none;
    cursor: pointer;
}

.cyber-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--c-cyan);
    transform: translateY(-2px);
}

/* =========================================
   CARDS / MODULES
   ========================================= */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--f-head);
    font-size: 2rem;
    color: var(--c-cyan);
}

.decor-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--c-cyan), transparent);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.holo-card {
    background: rgba(5, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}

.holo-card:hover {
    background: rgba(5, 10, 15, 0.8);
    transform: scale(1.02);
    border-color: var(--c-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--c-cyan);
    transition: 0.3s;
}

.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;
}

.holo-card:hover .card-corner {
    width: 20px;
    height: 20px;
}

.holo-card.magenta:hover .card-corner {
    border-color: var(--c-magenta);
}

.holo-card.yellow:hover .card-corner {
    border-color: var(--c-yellow);
}

.holo-card.green:hover .card-corner {
    border-color: var(--c-green);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--c-text-dim);
    transition: 0.3s;
}

.holo-card:hover .card-icon {
    color: var(--c-cyan);
    text-shadow: 0 0 10px var(--c-cyan);
}

.holo-card.magenta:hover .card-icon {
    color: var(--c-magenta);
    text-shadow: 0 0 10px var(--c-magenta);
}

.holo-card.yellow:hover .card-icon {
    color: var(--c-yellow);
    text-shadow: 0 0 10px var(--c-yellow);
}

.holo-card.green:hover .card-icon {
    color: var(--c-green);
    text-shadow: 0 0 10px var(--c-green);
}

.holo-card h3 {
    font-family: var(--f-head);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.data-text {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--c-text-dim);
    line-height: 1.8;
}

/* =========================================
   DEEP OPERATIONS & READOUTS
   ========================================= */
.data-readout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.readout-block {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--c-magenta);
    padding: 2rem;
}

.readout-block h4 {
    font-family: var(--f-mono);
    color: var(--c-magenta);
    margin-bottom: 1rem;
}

.readout-block p {
    color: var(--c-text);
    margin-bottom: 1.5rem;
}

.terminal-list {
    list-style: none;
    font-family: var(--f-mono);
    font-size: 0.9rem;
    color: var(--c-text-dim);
}

.terminal-list li {
    margin-bottom: 5px;
}

.terminal-list i {
    color: var(--c-cyan);
    margin-right: 10px;
}

/* =========================================
   ACADEMY & COURSES
   ========================================= */
.academy-container {
    background: linear-gradient(to right, rgba(255, 157, 0, 0.05), transparent);
    padding: 2rem;
    border-top: 1px solid var(--c-orange);
}

.academy-intro {
    margin-bottom: 2rem;
}

.academy-intro h3 {
    color: var(--c-orange);
    font-family: var(--f-mono);
    margin-bottom: 0.5rem;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.course-chip {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--c-orange);
    padding: 10px 20px;
    color: var(--c-orange);
    font-family: var(--f-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.course-chip:hover {
    background: var(--c-orange);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 157, 0, 0.3);
}

.course-chip .chip-id {
    opacity: 0.7;
    margin-right: 10px;
    font-size: 0.7rem;
}

/* =========================================
   CULTURE & PROTOCOLS
   ========================================= */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.culture-card {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--c-purple);
    background: rgba(185, 0, 255, 0.02);
    transition: 0.3s;
}

.culture-card:hover {
    background: rgba(185, 0, 255, 0.1);
    transform: translateY(-5px);
}

.culture-card i {
    font-size: 2rem;
    color: var(--c-purple);
    margin-bottom: 1rem;
}

.culture-card h4 {
    color: #fff;
    font-family: var(--f-head);
    margin-bottom: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.protocol-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 2rem;
    text-align: center;
}

.protocol-card.featured {
    border: 1px solid var(--c-cyan);
    background: rgba(0, 243, 255, 0.05);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.protocol-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.protocol-header h3 {
    font-family: var(--f-head);
    font-size: 1.5rem;
    color: #fff;
}

.protocol-header span {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-cyan);
}

.protocol-body ul {
    list-style: none;
    margin: 2rem 0;
    font-family: var(--f-mono);
    font-size: 0.9rem;
    color: var(--c-text-dim);
    text-align: left;
}

.protocol-body li {
    margin-bottom: 10px;
}

/* =========================================
   TABLE & FORMS
   ========================================= */
.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-mono);
    font-size: 0.9rem;
}

.cyber-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--c-cyan);
    color: var(--c-cyan);
}

.cyber-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-text);
}

.blink {
    animation: blink 2s infinite;
}

.table-link {
    color: var(--c-yellow);
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
    background: var(--c-yellow);
    color: #000;
}

.uplink-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.uplink-form-box,
.uplink-info-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid #333;
}

.cyber-form .input-group {
    margin-bottom: 1.5rem;
}

.cyber-form label {
    display: block;
    font-family: var(--f-mono);
    color: var(--c-cyan);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.cyber-form input,
.cyber-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    font-family: var(--f-mono);
    outline: none;
}

.cyber-form input:focus,
.cyber-form textarea:focus {
    border-color: var(--c-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--f-mono);
    font-size: 0.9rem;
}

.info-row i {
    color: var(--c-magenta);
}

/* =========================================
   MOBILE
   ========================================= */
.mobile-toggle-btn {
    display: none;
}

@media (max-width: 900px) {
    .hud-frame {
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
        padding: 0;
    }

    .hud-sidebar {
        display: none;
    }

    .hud-top {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .hud-main {
        padding: 1rem 1.5rem;
    }

    .hero-glitch-title {
        font-size: 2.5rem;
    }

    .data-readout-grid,
    .culture-grid,
    .pricing-grid,
    .uplink-grid {
        grid-template-columns: 1fr;
    }

    .cyber-table {
        font-size: 0.7rem;
    }

    .courses-grid {
        justify-content: center;
    }
}