/* ============================================
   PORTFOLIO - RENDER PIPELINE AESTHETIC
   Terminal + GPU + Infrastructure
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Dark Terminal Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;

    /* Accent Colors - GPU/Terminal inspired */
    --accent-primary: #00ff9d;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #ff6b6b;
    --accent-quaternary: #ffd93d;
    --accent-purple: #a855f7;

    /* Text Colors */
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #606070;

    /* Grid & Lines */
    --grid-color: rgba(0, 255, 157, 0.03);
    --line-color: rgba(0, 255, 157, 0.15);

    /* Fonts */
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 8vh, 120px);
    --content-max-width: 1400px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* WebGL Canvas */
#gl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    opacity: 0.4;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Pipeline Progress Bar */
.pipeline-progress {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pipeline-track {
    position: absolute;
    width: 2px;
    height: calc(100% - 40px);
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.pipeline-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transition: height 0.5s var(--ease-out-expo);
    box-shadow: 0 0 10px var(--accent-primary);
}

.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.stage-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
}

.stage-marker.active .stage-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.stage-marker.passed .stage-dot {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.stage-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.stage-marker.active .stage-label {
    color: var(--accent-primary);
}

.stage-marker:hover .stage-dot {
    transform: scale(1.3);
}

/* Terminal Header */
.terminal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: var(--radius-lg);
}

@supports (backdrop-filter: blur(10px)) {
    .terminal-bar {
        background: rgba(18, 18, 26, 0.85);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #febc2e; }
.btn-maximize { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    flex-shrink: 1;
    min-width: 0;
}

.terminal-title .blink {
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

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

.terminal-status {
    display: flex;
    gap: 20px;
}

.status-item {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-item .accent {
    color: var(--accent-primary);
}

/* Main Pipeline Container */
.pipeline-container {
    position: relative;
    z-index: 10;
}

/* Pipeline Sections */
.pipeline-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 30px;
    padding-right: 100px;
}

.section-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
}

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

.glitch-container {
    position: relative;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 160px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    position: relative;
}

.hero-title .title-line {
    display: block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 160px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    opacity: 0;
    pointer-events: none;
}

.hero-title::before {
    color: var(--accent-tertiary);
}

.hero-title::after {
    color: var(--accent-secondary);
}

/* Glitch only on hover for intentional effect */
.glitch-container:hover .hero-title::before {
    animation: glitch-1 0.3s ease-in-out;
}

.glitch-container:hover .hero-title::after {
    animation: glitch-2 0.3s ease-in-out;
}

@keyframes glitch-1 {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-3px, -2px); }
    40% { opacity: 0; transform: translate(0); }
    60% { opacity: 0.6; transform: translate(3px, 1px); }
    80% { opacity: 0; transform: translate(0); }
    100% { opacity: 0; transform: translate(0); }
}

@keyframes glitch-2 {
    0% { opacity: 0; transform: translate(0); }
    25% { opacity: 0.6; transform: translate(2px, 2px); }
    50% { opacity: 0; transform: translate(0); }
    75% { opacity: 0.4; transform: translate(-2px, 1px); }
    100% { opacity: 0; transform: translate(0); }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--text-secondary);
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40) forwards;
    animation-delay: 0.5s;
    max-width: 0;
    display: inline-block;
}

@keyframes typing {
    to { max-width: 100vw; }
}

.cursor {
    color: var(--accent-primary);
    animation: cursor-blink 0.8s step-end infinite;
    flex-shrink: 0;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.hero-description {
    margin-top: 30px;
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 2;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
}

.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--line-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Hero Visual - Code Preview */
.hero-visual {
    position: relative;
}

.code-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s var(--ease-out-expo);
}

.code-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    gap: 0;
    padding: 0;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--line-color);
}

.code-tab {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 10px 16px;
    color: var(--text-muted);
    border-right: 1px solid var(--line-color);
}

.code-tab.active {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.code-block {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    line-height: 1.7;
    overflow-x: auto;
    max-width: 100%;
}

.code-block code {
    display: block;
    word-break: break-word;
    white-space: pre-wrap;
}

.code-keyword { color: var(--accent-tertiary); }
.code-function { color: var(--accent-secondary); }
.code-type { color: var(--accent-quaternary); }
.code-number { color: var(--accent-purple); }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-property { color: var(--accent-secondary); }
.code-variable { color: var(--text-primary); }
.code-string { color: var(--accent-primary); }

/* Interactive Shader Editor */
.shader-editor {
    position: relative;
}

.shader-editor .code-header {
    justify-content: flex-start;
    align-items: center;
}

.shader-editor .code-tab {
    cursor: pointer;
    transition: all 0.2s ease;
}

.shader-editor .code-tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.editor-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-right: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-primary);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent-primary); }
    50% { opacity: 0.5; box-shadow: 0 0 8px var(--accent-primary); }
}

.code-content {
    padding: 16px 20px;
    min-height: 200px;
}

.code-content.hidden {
    display: none;
}

.shader-controls {
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    line-height: 2.2;
}

.control-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.control-line.indent {
    padding-left: 24px;
}

.shader-input {
    font-family: var(--font-mono);
    font-size: inherit;
    background: rgba(0, 255, 158, 0.08);
    border: 1px solid rgba(0, 255, 158, 0.2);
    border-radius: 3px;
    color: var(--accent-primary);
    padding: 2px 8px;
    margin: 0 2px;
    outline: none;
    transition: all 0.2s ease;
}

.shader-input:focus {
    background: rgba(0, 255, 158, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 158, 0.2);
}

.shader-input:hover:not(:focus) {
    border-color: rgba(0, 255, 158, 0.4);
}

.color-input {
    width: 80px;
    text-transform: uppercase;
}

.number-input {
    width: 55px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.editor-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--line-color);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.hint-icon {
    color: var(--accent-secondary);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 24px;
    color: var(--accent-primary);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.el-1 { top: -20px; left: -30px; animation-delay: 0s; }
.el-2 { top: 50%; right: -40px; animation-delay: 2s; }
.el-3 { bottom: -20px; left: 30%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Project Sections */
.project-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 157, 0.02) 50%, transparent 100%);
}

.project-header {
    margin-bottom: 50px;
}

.project-index {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.index-number {
    font-size: 14px;
    color: var(--accent-primary);
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-main {
    color: var(--text-primary);
}

.project-tagline {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 15px;
    letter-spacing: 1px;
}

.status-badge.in-dev {
    background: rgba(255, 217, 61, 0.15);
    color: var(--accent-quaternary);
    border: 1px solid rgba(255, 217, 61, 0.3);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

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

.project-grid.reverse .project-visual {
    order: -1;
}

/* Project Info */
.info-block {
    margin-bottom: 30px;
}

.info-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.info-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-stack.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--line-color);
    transform: translateX(5px);
}

.tech-icon {
    color: var(--accent-primary);
    font-size: 10px;
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.tech-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Highlight Block */
.info-block.highlight {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.05), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 20px;
}

.highlight-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.highlight-icon {
    color: var(--accent-quaternary);
    font-size: 20px;
}

.highlight-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* Feature Badges */
.feature-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 6px 12px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--line-color);
    border-radius: 20px;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

/* Project Link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

.link-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.project-link:hover .link-icon {
    transform: translate(3px, -3px);
}

/* Architecture Diagrams */
.architecture-diagram {
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sync-diagram {
    margin-bottom: 0;
}

.queue-diagram {
    margin-top: 25px;
}

.diagram-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

/* GPU Pipeline Diagram */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    min-width: 80px;
    opacity: 0;
    transform: translateY(20px);
    animation: node-appear 0.5s var(--ease-out-expo) forwards;
}

.pipeline-node[data-delay="0"] { animation-delay: 0.1s; }
.pipeline-node[data-delay="1"] { animation-delay: 0.2s; }
.pipeline-node[data-delay="2"] { animation-delay: 0.3s; }
.pipeline-node[data-delay="3"] { animation-delay: 0.4s; }
.pipeline-node[data-delay="4"] { animation-delay: 0.5s; }
.pipeline-node[data-delay="5"] { animation-delay: 0.6s; }

@keyframes node-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.node-icon {
    font-size: 20px;
    color: var(--accent-secondary);
}

.node-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

.pipeline-arrow {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 16px;
    opacity: 0.5;
}

.diagram-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line-color);
}

.footer-stat {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Interactive Diagram Enhancements */
.interactive-diagram {
    position: relative;
}

.pipeline-node.interactive {
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.pipeline-node.interactive:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.15);
}

.pipeline-node.programmable {
    border-color: var(--accent-secondary);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.pipeline-node .node-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-secondary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.pipeline-node .node-detail {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pipeline-node.interactive:hover .node-detail {
    opacity: 1;
}

.pipeline-arrow.animated {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pipeline-arrow .arrow-line {
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.4;
    position: relative;
    overflow: hidden;
}

.pipeline-arrow .arrow-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: arrow-flow 1.5s ease-in-out infinite;
}

@keyframes arrow-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pipeline-arrow .arrow-head {
    color: var(--accent-primary);
    font-size: 10px;
    opacity: 0.6;
}

.pipeline-tooltip {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 300px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.pipeline-tooltip.active {
    opacity: 1;
}

.diagram-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line-color);
}

.diagram-metrics .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.diagram-metrics .metric-value {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-primary);
}

.diagram-metrics .metric-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Infrastructure Flow Diagram */
.infra-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.infra-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.infra-stage .stage-header {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-primary);
    letter-spacing: 1px;
    opacity: 0.7;
}

.infra-stage.final .stage-header {
    color: var(--accent-primary);
    opacity: 1;
}

.infra-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    min-width: 120px;
    transition: all 0.3s var(--ease-out-expo);
}

.infra-node.interactive {
    cursor: pointer;
}

.infra-node.interactive:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
}

.infra-node.success {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(0, 255, 157, 0.1));
}

.infra-node.small {
    padding: 10px 15px;
    min-width: 80px;
}

.infra-node .node-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-primary);
}

.infra-node .node-cmd {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}

.infra-node .node-url {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-primary);
}

.infra-nodes-group {
    display: flex;
    gap: 15px;
}

.infra-connector-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
}

.infra-connector-line .connector-dot {
    width: 6px;
    height: 6px;
    background: var(--line-color);
    border-radius: 50%;
}

.infra-connector-line .connector-line {
    width: 2px;
    height: 20px;
    background: var(--line-color);
}

.infra-connector-line.success .connector-dot,
.infra-connector-line.success .connector-line {
    background: var(--accent-primary);
}

/* Shader Preview */
.shader-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
}

.shader-header {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    color: var(--accent-purple);
    border-bottom: 1px solid var(--line-color);
}

.shader-code {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.7;
    overflow-x: auto;
    max-width: 100%;
    word-break: break-word;
}

.sh-type { color: var(--accent-quaternary); }
.sh-func { color: var(--accent-secondary); }
.sh-num { color: var(--accent-purple); }

/* Terminal Demo */
.terminal-demo {
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.term-header {
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--line-color);
}

.term-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.term-body {
    padding: 20px;
    min-height: 280px;
}

.term-line {
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-10px);
    animation: term-line-appear 0.3s var(--ease-out-expo) forwards;
}

.term-line[data-delay="0"] { animation-delay: 0.5s; }
.term-line[data-delay="1"] { animation-delay: 1s; }
.term-line[data-delay="2"] { animation-delay: 1.5s; }
.term-line[data-delay="3"] { animation-delay: 2s; }
.term-line[data-delay="4"] { animation-delay: 2.5s; }
.term-line[data-delay="5"] { animation-delay: 3s; }
.term-line[data-delay="6"] { animation-delay: 3.5s; }
.term-line[data-delay="7"] { animation-delay: 4s; }
.term-line[data-delay="8"] { animation-delay: 4.5s; }
.term-line[data-delay="9"] { animation-delay: 5s; }

@keyframes term-line-appear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.term-prompt {
    color: var(--accent-primary);
    margin-right: 10px;
}

.term-cmd {
    color: var(--text-primary);
}

.term-line.output {
    padding-left: 20px;
}

.term-info { color: var(--text-muted); }
.term-success { color: var(--accent-primary); }
.term-accent { color: var(--accent-quaternary); }

.term-url {
    display: block;
    margin-top: 5px;
    color: var(--accent-secondary);
    text-decoration: underline;
}

.term-line.final {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--line-color);
}

/* Infrastructure Diagram */
.infra-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.infra-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
}

.infra-icon {
    font-size: 24px;
}

.infra-node span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.infra-connector {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 18px;
    opacity: 0.5;
}

/* Database Architecture Diagram */
.db-visual {
    position: relative;
}

.db-container {
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-secondary);
    border-radius: 12px;
    padding: 20px;
}

.db-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-color);
}

.db-icon {
    color: var(--accent-secondary);
    font-size: 24px;
}

.db-name {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-secondary);
    font-weight: 600;
}

.schema-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.schema {
    padding: 15px;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    animation: schema-appear 0.4s var(--ease-out-expo) forwards;
}

.schema[data-delay="0"] { animation-delay: 0.2s; }
.schema[data-delay="1"] { animation-delay: 0.4s; }
.schema[data-delay="2"] { animation-delay: 0.6s; }
.schema[data-delay="3"] { animation-delay: 0.8s; }

@keyframes schema-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.schema.shared {
    grid-column: span 2;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-primary);
}

.schema.module {
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
}

.schema-header {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.schema.shared .schema-header {
    color: var(--accent-primary);
}

.schema.module .schema-header {
    color: var(--accent-secondary);
}

.schema-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schema-tables span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    color: var(--text-muted);
}

.db-connections {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    pointer-events: none;
    display: none;
}

.connection-lines {
    width: 100%;
    height: 100%;
}

.conn-line {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 1;
    stroke-dasharray: 5 5;
    opacity: 0.3;
}

/* Module Cards */
.module-cards {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.module-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: card-appear 0.4s var(--ease-out-expo) forwards;
}

.module-card[data-delay="0"] { animation-delay: 0.3s; }
.module-card[data-delay="1"] { animation-delay: 0.5s; }
.module-card[data-delay="2"] { animation-delay: 0.7s; }

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.module-icon {
    font-size: 28px;
}

.module-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Dual App Diagram */
.apps-container {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.app-box {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-20px);
    animation: app-appear 0.5s var(--ease-out-expo) forwards;
}

.app-box[data-delay="0"] { animation-delay: 0.2s; }
.app-box[data-delay="1"] { animation-delay: 0.4s; transform: translateX(20px); }

@keyframes app-appear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-box.admin {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--accent-purple);
}

.app-box.client {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-secondary);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-color);
}

.app-icon {
    font-size: 18px;
}

.app-box.admin .app-icon,
.app-box.admin .app-label {
    color: var(--accent-purple);
}

.app-box.client .app-icon,
.app-box.client .app-label {
    color: var(--accent-secondary);
}

.app-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-features span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    padding-left: 15px;
    position: relative;
}

.app-features span::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.app-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 15px;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: var(--line-color);
}

.connector-db,
.connector-cache {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 6px;
}

.connector-db span,
.connector-cache span {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}

/* Queue Diagram */
.queue-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.queue-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 6px;
}

.queue-node.bullmq {
    border-color: var(--accent-tertiary);
    background: rgba(255, 107, 107, 0.1);
}

.q-icon {
    font-size: 16px;
    color: var(--accent-secondary);
}

.queue-node.bullmq .q-icon {
    color: var(--accent-tertiary);
}

.q-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.queue-arrow {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    opacity: 0.5;
}

/* Real-time Demo */
.realtime-demo {
    background: var(--bg-secondary);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--line-color);
}

.demo-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-tertiary);
}

.status-dot.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.stock-grid {
    padding: 12px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    margin-bottom: 8px;
    opacity: 0;
    animation: stock-appear 0.4s var(--ease-out-expo) forwards;
}

.stock-item[data-delay="0"] { animation-delay: 0.2s; }
.stock-item[data-delay="1"] { animation-delay: 0.4s; }
.stock-item[data-delay="2"] { animation-delay: 0.6s; }

@keyframes stock-appear {
    to { opacity: 1; }
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-code {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.item-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
}

.item-stock {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stock-change {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.stock-change.decrease {
    background: rgba(255, 107, 107, 0.2);
    color: var(--accent-tertiary);
}

.stock-change.increase {
    background: rgba(0, 255, 157, 0.2);
    color: var(--accent-primary);
}

.stock-change.neutral {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.websocket-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-top: 1px solid var(--line-color);
    background: var(--bg-tertiary);
}

.ws-icon {
    font-size: 18px;
    color: var(--accent-primary);
    animation: rotate 3s linear infinite;
    will-change: transform;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* Disable rotation animation on mobile for performance */
@media (max-width: 768px) {
    .ws-icon {
        animation: none;
    }
}

.ws-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.ws-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
}

.ws-ping {
    margin-left: auto;
}

.ping-value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-secondary);
}

/* Sync Diagram */
.sync-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sync-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--line-color);
    border-radius: 6px;
}

.sync-node.server {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.1);
}

.sync-node .node-icon {
    font-size: 20px;
}

.sync-node.server .node-icon {
    color: var(--accent-primary);
}

.sync-node.client .node-icon {
    color: var(--accent-secondary);
}

.sync-node .node-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
}

.sync-connections {
    display: flex;
    gap: 30px;
}

.sync-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.5;
    animation: sync-pulse 1.5s infinite;
}

.sync-line.line-1 { animation-delay: 0s; }
.sync-line.line-2 { animation-delay: 0.5s; }
.sync-line.line-3 { animation-delay: 1s; }

@keyframes sync-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.sync-clients {
    display: flex;
    gap: 20px;
}

/* Footer - Terminal Style */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 30px;
    border-top: 1px solid var(--line-color);
    background: var(--bg-secondary);
}

.footer-terminal {
    max-width: var(--content-max-width);
    margin: 0 auto;
    font-family: var(--font-mono);
}

.footer-prompt {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.prompt-user {
    color: var(--accent-primary);
}

.prompt-at {
    color: var(--text-muted);
}

.prompt-host {
    color: var(--accent-secondary);
}

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

.prompt-command {
    color: var(--text-primary);
    animation: blink-cursor 1s step-end infinite;
}

.prompt-command::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

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

.footer-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--line-color);
}

.output-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.output-label {
    color: var(--text-muted);
    min-width: 25px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    margin: -4px -8px;
}

.footer-link:hover {
    background: rgba(0, 255, 158, 0.1);
    color: var(--accent-primary);
}

.footer-link:hover .link-protocol {
    color: var(--accent-primary);
}

.link-protocol {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.link-text {
    color: inherit;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px solid var(--line-color);
}

.footer-status .status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.status-separator {
    color: var(--line-color);
}

.status-version {
    color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .pipeline-progress {
        right: 15px;
    }

    .pipeline-section {
        padding-right: 60px;
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .project-grid,
    .project-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-grid.reverse .project-visual {
        order: 0;
    }

    .pipeline-progress {
        display: none;
    }

    .pipeline-section {
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .terminal-bar {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .terminal-title {
        display: none;
    }

    .terminal-status {
        width: 100%;
        justify-content: flex-end;
    }

    .hero-title {
        font-size: clamp(50px, 15vw, 80px);
    }

    .project-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .apps-container {
        flex-direction: column;
    }

    .app-connector {
        flex-direction: row;
        padding: 15px 0;
    }

    .connector-line {
        width: 30px;
        height: 2px;
    }

    .sync-clients {
        flex-direction: column;
        gap: 15px;
    }

    .sync-connections {
        flex-direction: column;
        gap: 0;
    }

    .module-cards {
        flex-direction: column;
    }

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

    .schema.shared {
        grid-column: span 1;
    }

    .footer-prompt {
        font-size: 12px;
    }

    .footer-output {
        padding-left: 10px;
    }

    .footer-status {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pipeline-section {
        padding: 80px 15px 40px;
    }

    .terminal-header {
        padding: 8px 10px;
    }

    .terminal-bar {
        padding: 8px 10px;
    }

    .terminal-status {
        font-size: 10px;
        gap: 8px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .tech-stack.compact {
        grid-template-columns: 1fr;
    }

    .queue-flow {
        flex-wrap: wrap;
    }

    .infra-nodes {
        flex-wrap: wrap;
    }

    /* Shader editor mobile */
    .shader-controls {
        font-size: 11px;
        line-height: 2;
    }

    .control-line.indent {
        padding-left: 12px;
    }

    .shader-input {
        padding: 3px 6px;
    }

    .color-input {
        width: 70px;
    }

    .number-input {
        width: 50px;
    }

    .code-header {
        flex-wrap: wrap;
    }

    .editor-status {
        padding: 8px 12px;
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid var(--line-color);
    }

    .hero-description {
        font-size: 12px;
    }

    .mono-text {
        font-size: 11px;
    }

    .info-text {
        font-size: 13px;
    }
}

/* Animations on scroll - will be controlled by JS */
.pipeline-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.pipeline-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* First section visible by default */
.pipeline-section:first-child {
    opacity: 1;
    transform: translateY(0);
}
