:root {
    --primary: #00f2ff;
    --primary-dark: #0066ff;
    --bg-deep: #020617;
    --bg-card: #0f172a;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
    --accent: #3b82f6;
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Data Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar */
.top-bar {
    background: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-bar-item i {
    color: var(--primary);
}

.top-bar-item span.label {
    letter-spacing: 1px;
}

.top-bar-item span.value {
    color: white;
    font-weight: 600;
}

/* Serious Navigation */
.main-nav {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    top: 0;
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: white;
    text-decoration: none;
}

.logo span {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: white;
    color: black !important;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
}

/* Hero - Serious & Impactful */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.data-tag {
    font-family: monospace;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    display: block;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -4px;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero h1 .filled {
    color: white;
    -webkit-text-stroke: 0;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* Trusted Partners Section */
.clients-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.clients-intro h2 {
    font-size: 3rem;
    line-height: 1;
    margin-top: 1rem;
}

.clients-intro p {
    color: var(--text-dim);
    max-width: 500px;
    margin-top: 1.5rem;
}

.clients-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
}

.client-logo span {
    font-family: monospace;
    color: var(--text-dim);
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Bento Grid Services */
.services {
    padding: 10rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item i {
    color: var(--primary);
    margin-bottom: 2rem;
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-dim);
}

/* Deployment Pipeline */
.pipeline {
    padding: 10rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    position: relative;
}

.pipeline-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
    z-index: 0;
    opacity: 0.2;
}

.pipeline-step {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.pipeline-step:hover .step-number {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    transform: scale(1.1);
}

.pipeline-step h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pipeline-step p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Mission Reports - Horizontal Slider */
.portfolio {
    padding: 10rem 0;
    overflow: hidden;
}

.portfolio-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0 4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-item {
    flex: 0 0 450px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem 3rem;
    scroll-snap-align: start;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.portfolio-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 242, 255, 0.1);
}

/* Dossier Styles */
.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.dossier-id {
    font-family: monospace;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.dossier-status {
    font-family: monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 4px;
}

.dossier-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.meta-item .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: monospace;
}

.meta-item span:not(.label) {
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.dossier-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--primary);
    text-decoration: none;
    font-family: monospace;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.dossier-btn:hover {
    background: var(--primary);
    color: black;
}

.portfolio-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portfolio-item p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.slider-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

/* Technical Briefs */
.briefs {
    padding: 10rem 0;
}

.briefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.brief-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.brief-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.05);
}

.brief-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.brief-date {
    font-family: monospace;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.brief-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.brief-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.brief-link {
    color: var(--primary);
    text-decoration: none;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.brief-link:hover {
    gap: 1rem;
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    font-family: monospace;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

/* Contact - Minimalist & Serious */
.contact {
    padding: 10rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--primary);
}

.btn-submit {
    background: var(--primary);
    color: black;
    padding: 1.5rem 4rem;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateX(10px);
}

/* Comms Hub */
.comms-hub {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.comms-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.comms-item:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.03);
    transform: translateX(10px);
}

.comms-item i {
    color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.comms-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.comms-info .label {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.comms-info .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* System Status Footer */
.system-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4ade80;
}

.pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-clock,
.status-meta {
    display: flex;
    gap: 0.8rem;
}

.label {
    color: var(--text-dim);
}

#eat-clock {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .system-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .clients-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-item {
        flex: 0 0 85vw;
    }

    .briefs-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
    }

    .modal-content h2 {
        font-size: 2rem;
    }

    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .pipeline-grid::after {
        display: none;
    }
}

/* Terminal Styles */
.terminal-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    transition: var(--transition);
}

.terminal-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.terminal-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 500px;
    height: 400px;
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid var(--primary);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.terminal-window.active {
    display: flex;
    animation: terminal-pop 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes terminal-pop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.terminal-header {
    background: rgba(0, 242, 255, 0.1);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.terminal-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f56;
    cursor: pointer;
}

.control.min {
    background: #ffbd2e;
}

.control.max {
    background: #27c93f;
}

.terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #4ade80;
    line-height: 1.5;
    position: relative;
}

.terminal-body::before {
    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: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.2);
    border-radius: 3px;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: var(--primary);
    margin-right: 0.8rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #4ade80;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none;
}

.command-output {
    color: var(--text-dim);
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

@media (max-width: 600px) {
    .terminal-window {
        width: 90vw;
        right: 5vw;
        height: 60vh;
    }

    .top-bar .container {
        justify-content: center;
        gap: 1rem;
        font-size: 0.65rem;
    }

    .top-bar-item span.label {
        display: none;
    }
}