/* =========================================
   AGENTIC MINIMALIST (V2) THEME
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;500&display=swap');

:root {
    /* Absolute Dark */
    --bg-main: #050505;
    --bg-surface: #0a0a0c;
    --bg-panel: #111111;

    /* Neon Accents */
    --accent-primary: #ccff00;
    /* Neon Lime */
    --accent-secondary: #00ff9d;
    /* Cyan/Green */
    --border-dim: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(204, 255, 0, 0.5);

    /* Typography */
    --text-pure: #ffffff;
    --text-muted: #888888;
    --text-dim: #444444;

    --font-head: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background grid */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, var(--border-dim) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-dim) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

/* Command Palette Nav */
.cmd-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    display: flex;
    padding: 8px 16px;
    border-radius: 8px;
    gap: 20px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cmd-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.cmd-link:hover,
.cmd-link.active {
    color: var(--accent-primary);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-text .accent {
    color: var(--accent-primary);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 40px;
}

/* Terminal Window */
.terminal-window {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.term-header {
    background: #1a1a1a;
    border-bottom: 1px solid var(--border-dim);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-dots {
    display: flex;
    gap: 6px;
}

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

.term-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.term-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-pure);
    flex-grow: 1;
    overflow-y: auto;
}

.log-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

.log-prefix {
    color: var(--text-muted);
    margin-right: 8px;
}

.log-success {
    color: var(--accent-primary);
}

.log-warn {
    color: #f59e0b;
}

.log-info {
    color: #3b82f6;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-primary);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* =========================================
   METRICS STRIP
   ========================================= */
.metrics {
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: var(--bg-surface);
    padding: 40px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.metric-item {
    border-right: 1px solid var(--border-dim);
}

.metric-item:last-child {
    border-right: none;
}

.metric-val {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 10px;
}

/* =========================================
   PROJECT SHOWCASE
   ========================================= */
.showcase {
    padding: 80px 0;
}

.section-head {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-transform: uppercase;
}

.sys-tag {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.dso-frame {
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    padding: 2px;
}

.dso-inner {
    width: 100%;
    height: 700px;
    background: #000;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.dso-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.p-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.p-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    padding: 6px 12px;
    border: 1px solid var(--border-dim);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-pure);
}

.tech-pill.core {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* =========================================
   ENGINE ROOM (SERVICES)
   ========================================= */
.engines {
    padding: 80px 0;
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.engine-card {
    border: 1px solid var(--border-dim);
    background: var(--bg-surface);
    padding: 40px;
    transition: border-color 0.3s;
}

.engine-card:hover {
    border-color: var(--accent-primary);
}

.engine-icon {
    font-size: 2.5rem;
    color: var(--text-pure);
    margin-bottom: 24px;
}

.engine-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.engine-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.engine-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.engine-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.engine-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .engine-grid {
        grid-template-columns: 1fr;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .dso-inner {
        height: 500px;
    }
}

/* =========================================
   ROADMAP (V2 STYLED)
   ========================================= */
.roadmap-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 20px;
}

.roadmap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 0;
    padding: 80px 40px 60px;
    overflow: visible;
    min-width: max-content;
}

.roadmap-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 220px;
    max-width: 260px;
}

.roadmap-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    padding: 20px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--accent-primary);
}

.roadmap-card.active-card {
    border-color: var(--accent-primary);
    box-shadow: 4px 4px 0 rgba(204, 255, 0, 0.2);
}

.roadmap-card.card-above {
    margin-bottom: 0;
    order: 1;
}

.roadmap-card.card-below {
    order: 3;
    margin-top: 0;
}

.roadmap-year {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.roadmap-card h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--text-pure);
    margin-bottom: 8px;
    line-height: 1.3;
}

.roadmap-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.roadmap-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    padding: 14px 0;
}

.roadmap-dot {
    width: 52px;
    height: 52px;
    border-radius: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.roadmap-dot.promoted {
    border-color: var(--text-pure);
    color: var(--text-pure);
}

.roadmap-dot.active {
    border-color: var(--accent-primary);
    color: var(--bg-main);
    background: var(--accent-primary);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
    }
}

.roadmap-connector {
    width: 2px;
    height: 14px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.roadmap-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    order: 4;
    margin-top: 6px;
}

.roadmap-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    margin-top: -60px;
}

.roadmap-arrow {
    width: 80px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--border-dim), var(--border-dim) 4px, transparent 4px, transparent 8px);
    position: relative;
}

.roadmap-arrow::after {
    content: '>';
    position: absolute;
    right: -5px;
    top: -8px;
    color: var(--border-dim);
    font-family: var(--font-mono);
    font-size: 14px;
}

.path-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.skills-mini {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-dim);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-badge {
    background: var(--accent-primary);
    color: var(--bg-main);
    padding: 2px 6px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: bold;
}

@media (max-width: 768px) {
    .roadmap {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 16px;
    }

    .roadmap-node {
        flex-direction: row;
        max-width: 100%;
        width: 100%;
        gap: 16px;
    }

    .roadmap-card.card-above,
    .roadmap-card.card-below {
        order: 3;
    }

    .roadmap-milestone {
        order: 1;
        flex-direction: column;
        padding: 0;
    }

    .roadmap-connector {
        width: 1px;
        height: 20px;
        background: dashed 1px var(--border-dim);
    }

    .roadmap-label {
        order: 2;
    }

    .roadmap-path {
        flex-direction: row;
        margin-left: 25px;
        margin-top: 0;
        gap: 10px;
    }

    .roadmap-arrow {
        width: 1px;
        height: 30px;
        background: repeating-linear-gradient(180deg, var(--border-dim), var(--border-dim) 4px, transparent 4px, transparent 8px);
    }

    .roadmap-arrow::after {
        content: 'v';
        right: -4px;
        bottom: -12px;
        top: unset;
        border: none;
    }
}

/* =========================================
   DEVSECOPS STACK SECTION
   ========================================= */
.stack-section {
    padding: 80px 0;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stack-category {
    border: 1px solid var(--border-dim);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.stack-category:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.08);
}

.stack-cat-header {
    border-bottom: 1px dashed var(--border-dim);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.01);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stack-cat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-pure);
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}

.stack-tool:hover {
    transform: translateX(6px);
    color: var(--accent-primary);
}

.stack-tool i {
    font-size: 1.25rem;
    color: var(--accent-primary);
    opacity: 0.85;
}

.stack-tool span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}