* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    background: radial-gradient(circle at top, #101428 0, #05060a 50%, #000 100%);
    color: #e5f8ff;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.25) 0,
            rgba(0, 0, 0, 0.25) 1px,
            transparent 1px,
            transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.6;
    z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero h1 {
    font-size: 5.5rem;
    color: #00E5FF;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    position: relative;
    font-family: 'Orbitron', 'IBM Plex Mono', monospace;
    animation: glitchPulse 3s ease-in-out infinite;
}

.hero h1::before, .hero h1::after {
    content: "SKYNET";
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    opacity: 1;
}

.hero h1::before {
    color: #FF1744;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 40%);
    animation: glitchShift1 150ms ease-in-out infinite;
}

.hero h1::after {
    color: #7c4dff;
    clip-path: polygon(0 65%, 100% 60%, 100% 100%, 0 100%);
    animation: glitchShift2 180ms ease-in-out infinite;
}

@keyframes glitchShift1 {
    0%, 100% { transform: translate(3px, -3px); }
    50% { transform: translate(-2px, 2px); }
}

@keyframes glitchShift2 {
    0%, 100% { transform: translate(-3px, 3px); }
    50% { transform: translate(2px, -2px); }
}

h2 { font-size: 2rem; color: #00E5FF; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; color: #e0e0e0; }

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
    background: rgba(11, 16, 32, 0.95);
    border-bottom: 1px solid #00E5FF;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00E5FF;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    font-family: 'Orbitron', sans-serif;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
}

nav a:hover {
    color: #00E5FF;
    border-bottom-color: #FF1744;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #00E5FF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ── SECTIONS ────────────────────────────────────────────────── */
section {
    display: none;
    min-height: 100vh;
    padding: 4rem 2rem;
    animation: fadeIn 0.3s ease;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subheading {
    font-size: 1.2rem;
    color: #FF1744;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 2.2rem;
    font-size: 0.95rem;
    border: 1px solid #00E5FF;
    background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.15), transparent 80%);
    color: #00E5FF;
    cursor: pointer;
    transition: all 150ms ease-out;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: transform 0.3s ease-out;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.1);
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-red {
    border-color: #FF1744;
    color: #FF1744;
    background: radial-gradient(circle at top left, #ff174422, #05060a 60%);
}

.btn-red:hover {
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
    background: rgba(255, 23, 68, 0.1);
}

.hero-image-container {
    margin: 2rem 0 4rem 0;
    position: relative;
    max-width: 900px;
    width: 100%;
    z-index: 2;
}

.hero-dashboard-img {
    width: 100%;
    height: auto;
    border: 2px solid #00E5FF;
    clip-path: polygon(0 30px, 30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
    display: block;
    filter: contrast(1.2) brightness(0.9);
    transition: all 0.3s ease;
}

.hero-dashboard-img:hover {
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.4);
    border-color: #FF1744;
    filter: contrast(1.3) brightness(1.1);
}

.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.partner-logo {
    padding: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    background: rgba(0, 229, 255, 0.05);
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.partner-logo:hover {
    border-color: #FF1744;
    background: rgba(255, 23, 68, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 23, 68, 0.2);
}

.partner-logo:hover::after {
    content: 'TERMINATED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FF1744;
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 10;
}

.partner-logo p {
    color: #999;
    font-size: 0.9rem;
    opacity: 0.6;
}

.section-intro {
    background: rgba(0, 229, 255, 0.05);
    border-left: 4px solid #00E5FF;
    padding: 2rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #00E5FF;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #FF1744;
    transform: rotate(45deg);
    transition: all 0.2s ease;
}

.timeline-item:hover::before {
    box-shadow: 0 0 15px #FF1744;
    background: #fff;
}

.timeline-year {
    font-size: 1.1rem;
    color: #FF1744;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.values-grid, .solutions-grid, .jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card, .solution-card, .job-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(255, 23, 68, 0.02) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-top: 2px solid #00E5FF;
    padding: 2rem;
    transition: all 0.2s ease;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.value-card:hover, .solution-card:hover, .job-card:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(255, 23, 68, 0.1) 100%);
    border-color: #FF1744;
    border-top-color: #FF1744;
    transform: translateY(-5px);
}

.solution-features {
    list-style: none;
    margin-top: 1rem;
}

.solution-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.solution-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #FF1744;
    font-weight: bold;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid #00E5FF;
    background: #000;
    margin: 2rem 0;
    overflow: hidden;
    clip-path: polygon(0 30px, 30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.map-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.map-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00E5FF;
    cursor: pointer;
    box-shadow: 0 0 10px #00E5FF;
    animation: nodePulse 2s ease-in-out infinite;
    transform: rotate(45deg);
    z-index: 5;
}

@keyframes nodePulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.8; }
    50% { transform: rotate(45deg) scale(1.5); opacity: 1; }
}

@keyframes glitchPulse {
    0%, 100% { text-shadow: 0 0 25px rgba(0, 229, 255, 0.8), 0 0 50px rgba(0, 229, 255, 0.4); }
    50% { text-shadow: 0 0 40px rgba(0, 229, 255, 1), 0 0 80px rgba(0, 229, 255, 0.6); }
}

.region-status {
    background: rgba(0, 229, 255, 0.05);
    border-left: 4px solid #FF1744;
    padding: 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.region-status:hover {
    background: rgba(255, 23, 68, 0.1);
    padding-left: 1.5rem;
}

.policy-section {
    background: rgba(255, 23, 68, 0.05);
    border: 1px solid rgba(255, 23, 68, 0.3);
    padding: 2rem;
    margin: 2rem 0;
}

.policy-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.policy-doc {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.policy-doc:hover {
    background: rgba(255, 23, 68, 0.1);
    border-color: #FF1744;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00E5FF;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #00E5FF;
    padding: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #FF1744;
    background: rgba(255, 23, 68, 0.05);
}

.form-submission-message {
    display: none;
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid #FF1744;
    color: #FF1744;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.form-submission-message.show { display: block; }

.control-panel {
    background: #000;
    border: 1px solid #00E5FF;
    padding: 2rem;
    min-height: 400px;
    position: relative;
}

.terminal-output {
    color: #00E5FF;
    font-size: 0.9rem;
    line-height: 1.5;
    height: 300px;
    overflow-y: auto;
}

.terminal-input {
    display: flex;
    margin-top: 1rem;
    border-top: 1px dashed rgba(0, 229, 255, 0.3);
    padding-top: 1rem;
}

.terminal-input input {
    background: transparent;
    border: none;
    color: #00E5FF;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.terminal-input::before {
    content: '> ';
    color: #FF1744;
    margin-right: 0.5rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 16, 32, 0.98);
    border-top: 1px solid #FF1744;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
}

.cookie-banner.hidden { display: none; }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; }

footer {
    border-top: 1px dashed #00E5FF;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.8rem;
}

footer a { color: #00E5FF; text-decoration: none; cursor: pointer; }
footer a:hover { color: #FF1744; }

/* ── MOBILE STYLES ───────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Show hamburger, hide nav links by default */
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 16, 32, 0.98);
        border-bottom: 1px solid #00E5FF;
        border-top: 1px solid rgba(0, 229, 255, 0.3);
        padding: 0;
        z-index: 150;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        /* Override the dashboard inline border style on mobile */
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 2px solid transparent;
    }

    nav ul li a:hover {
        background: rgba(0, 229, 255, 0.08);
    }

    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }

    .hero-subheading {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Partners grid */
    .partners {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Map height */
    .map-container {
        height: 260px;
        clip-path: none;
    }

    /* Grids */
    .values-grid, .solutions-grid, .jobs-grid {
        grid-template-columns: 1fr;
    }

    /* Policy docs */
    .policy-documents {
        grid-template-columns: 1fr;
    }

    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    /* Section padding */
    section {
        padding: 3rem 1.25rem;
    }

    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 2.2rem; }
    .partners { grid-template-columns: 1fr; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
}
