:root {
    --document-width: 75%;
    --paper-color: #0f1419;
    --paper-light: #1a1f2e;
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --neon-green: #00FF41;
    --matrix-green: #00CC33;
    --blood-red: #FF0000;
    --accent-amber: #FFD700;
    --text-primary: #00FF41;
    --text-secondary: #00CC33;
    --text-muted: #004D1A;
    --border-light: #00CC33;
    --border-glow: #00FF41;
    --shadow-light: rgba(0, 255, 65, 0.2);
    --shadow-medium: rgba(0, 255, 65, 0.4);
    --shadow-neon: rgba(0, 255, 65, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keyframe animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes neonGlow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--shadow-light);
        text-shadow: 0 0 10px var(--neon-green);
    }
    50% { 
        box-shadow: 0 0 40px var(--shadow-neon);
        text-shadow: 0 0 20px var(--neon-green);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wave {
    0% { transform: scaleY(0.5); }
    25% { transform: scaleY(1); }
    50% { transform: scaleY(0.8); }
    75% { transform: scaleY(1.2); }
    100% { transform: scaleY(0.5); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes dataFlow {
    0% { transform: translateY(100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes matrixGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(4px, 4px); }
}

@keyframes matrixShimmer {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(180deg) translateX(20px); }
}

@keyframes terminalFloat {
    0%, 100% { 
        transform: translateY(0px);
        text-shadow: 0 0 15px currentColor;
    }
    50% { 
        transform: translateY(-10px);
        text-shadow: 0 0 25px currentColor;
    }
}

@keyframes redPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    }
}

@keyframes amberGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

body {
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 204, 51, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #001a0a 50%, #0a0a0a 100%);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    min-height: 100vh;
    padding-top: 50px;
    color: var(--text-primary);
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.02) 2px,
            rgba(0, 255, 65, 0.02) 4px
        );
    pointer-events: none;
    z-index: -1;
    animation: matrixGrid 20s linear infinite;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

.bookmarks {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: -20px;
    position: relative;
    z-index: 2;
}

.bookmark {
    padding: 16px 24px;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    transform-origin: bottom;
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    border: 2px solid var(--border-light);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 10px var(--shadow-light),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    animation: slideInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

.bookmark:nth-child(1) { --animation-order: 0; }
.bookmark:nth-child(2) { --animation-order: 1; }
.bookmark:nth-child(3) { --animation-order: 2; }
.bookmark:nth-child(4) { --animation-order: 3; }
.bookmark:nth-child(5) { --animation-order: 4; }

.bookmark:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 20px var(--shadow-neon),
        0 8px 25px var(--shadow-medium),
        inset 0 0 20px rgba(0, 255, 65, 0.2);
    text-shadow: 0 0 10px var(--neon-green);
}

.bookmark[data-page="virus-info"] {
    background: rgba(0, 255, 65, 0.1);
    color: var(--neon-green);
    border-color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.bookmark[data-page="determination"] {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-amber);
    border-color: var(--accent-amber);
    text-shadow: 0 0 10px var(--accent-amber);
}

.bookmark[data-page="experiments"] {
    background: rgba(255, 0, 0, 0.1);
    color: var(--blood-red);
    border-color: var(--blood-red);
    text-shadow: 0 0 10px var(--blood-red);
}

.bookmark[data-page="about"] {
    background: rgba(0, 204, 51, 0.1);
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    text-shadow: 0 0 10px var(--matrix-green);
}

.bookmark.active {
    background: var(--paper-color);
    color: var(--text-primary);
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 
        0 0 30px var(--shadow-neon),
        0 8px 16px var(--shadow-medium),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: neonGlow 2s ease-in-out infinite;
}

.bookmark.locked {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(102, 102, 255, 0.1);
    color: #6666ff;
    border-color: #6666ff;
    text-shadow: 0 0 10px #6666ff;
}

.bookmark.locked i {
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

.document {
    width: var(--document-width);
    margin: 0 auto;
    min-height: 800px;
    background: var(--paper-color);
    padding: 48px;
    position: relative;
    border-radius: 16px;
    box-shadow: 
        0 0 40px var(--shadow-neon),
        0 10px 15px var(--shadow-medium),
        inset 0 0 40px rgba(0, 255, 65, 0.05);
    z-index: 1;
    border: 2px solid var(--border-light);
    animation: slideInUp 0.8s ease-out 0.2s both;
    overflow: hidden;
}

.document::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 255, 65, 0.05) 50%,
        transparent 60%
    );
    animation: matrixShimmer 4s ease-in-out infinite;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.classified-stamp {
    content: 'CLASSIFIED';
    position: absolute;
    top: 48px;
    right: 48px;
    padding: 16px 20px;
    border: 3px solid var(--blood-red);
    color: var(--blood-red);
    font-size: 18px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    transform: rotate(12deg);
    pointer-events: none;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.05);
    z-index: 1000;
    letter-spacing: 0.1em;
    animation: terminalFloat 3s ease-in-out infinite;
    text-shadow: 0 0 15px var(--blood-red);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 0, 0, 0.1);
}

#experiments .classified-stamp,
#about .classified-stamp {
    display: none;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.6s ease-out;
}

h1, h2, h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    animation: slideInLeft 0.8s ease-out;
    text-shadow: 0 0 10px var(--neon-green);
}

h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--accent-amber));
    animation: typewriter 2s ease-out 0.5s forwards;
    box-shadow: 0 0 10px var(--neon-green);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--matrix-green);
    position: relative;
    text-shadow: 0 0 8px var(--matrix-green);
}

h3::before {
    content: '> ';
    margin-right: 8px;
    animation: blink 1s ease-in-out infinite;
    color: var(--neon-green);
}

p {
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    animation: slideInRight 0.8s ease-out 0.3s both;
    text-shadow: 0 0 5px var(--matrix-green);
}

.text-content {
    line-height: 1.7;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.image-container {
    background: transparent;
    border: none;
    padding: 0;
    margin: 40px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInUp 1s ease-out 0.5s both;
}

.virus-structure {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 25px var(--shadow-medium);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border: 2px solid var(--border-light);
}

.virus-structure:hover {
    transform: scale(1.05) rotate(2deg);
    animation: terminalFloat 2s ease-in-out infinite;
    box-shadow: 0 0 40px var(--shadow-neon);
}

.zoom-container {
    position: relative;
    cursor: crosshair;
}

.zoomed-view {
    display: none;
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 16px;
    background-color: var(--primary-dark);
    box-shadow: 0 0 40px var(--shadow-neon);
    pointer-events: none;
    z-index: 10000;
    background-size: 300%; /* Adjusted for better zoom */
    background-repeat: no-repeat;
    border: 2px solid var(--border-glow);
    animation: pulse 0.3s ease-out;
}

body.zooming .zoomed-view {
    display: block;
}

#model-container {
    height: 600px; /* Increased from 500px */
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border-light);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 30px var(--shadow-light);
    animation: slideInUp 1s ease-out 0.7s both;
}

#model-container iframe {
    width: 100%;
    height: 100%; /* Make iframe fill the container */
    border: none;
    display: block;
}

.model-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.model-controls button {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    color: var(--text-primary);
    animation: slideInUp 0.6s ease-out;
    animation-delay: calc(var(--btn-order, 0) * 0.1s);
    text-shadow: 0 0 5px var(--neon-green);
}

.model-controls button:nth-child(1) { --btn-order: 0; }
.model-controls button:nth-child(2) { --btn-order: 1; }
.model-controls button:nth-child(3) { --btn-order: 2; }
.model-controls button:nth-child(4) { --btn-order: 3; }

.model-controls button:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px var(--shadow-light);
    transform: translateY(-2px) scale(1.1);
    text-shadow: 0 0 15px var(--neon-green);
}

.model-controls button:active {
    animation: heartbeat 0.3s ease-out;
}

#monkey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    border: 2px solid var(--border-light);
    animation: slideInUp 0.8s ease-out 0.4s both;
    box-shadow: 
        0 0 30px var(--shadow-light),
        inset 0 0 30px rgba(0, 255, 65, 0.05);
}

.monkey-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    border: 2px solid var(--border-light);
    box-shadow: 
        0 0 10px var(--shadow-light),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    animation: slideInUp 0.6s ease-out;
    animation-delay: calc(var(--img-order, 0) * 0.05s);
    filter: hue-rotate(120deg) contrast(1.2);
}

.monkey-image:nth-child(1) { --img-order: 0; }
.monkey-image:nth-child(2) { --img-order: 1; }
.monkey-image:nth-child(3) { --img-order: 2; }
.monkey-image:nth-child(4) { --img-order: 3; }
.monkey-image:nth-child(5) { --img-order: 4; }
.monkey-image:nth-child(6) { --img-order: 5; }
.monkey-image:nth-child(7) { --img-order: 6; }
.monkey-image:nth-child(8) { --img-order: 7; }
.monkey-image:nth-child(9) { --img-order: 8; }
.monkey-image:nth-child(10) { --img-order: 9; }
.monkey-image:nth-child(11) { --img-order: 10; }
.monkey-image:nth-child(12) { --img-order: 11; }

.monkey-image:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 0 30px var(--shadow-neon),
        0 12px 30px var(--shadow-medium),
        inset 0 0 20px rgba(0, 255, 65, 0.2);
    animation: terminalFloat 1s ease-in-out infinite;
    filter: hue-rotate(120deg) contrast(1.4) brightness(1.2);
}

.monkey-image.selected {
    transform: scale(0.95);
    border-color: var(--accent-amber);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 0 4px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: amberGlow 1.5s ease-in-out infinite;
}

.monkey-image.infected {
    position: relative;
    opacity: 0.8;
    border-color: var(--blood-red);
    animation: redPulse 1s ease-in-out infinite;
    filter: hue-rotate(0deg) contrast(1.5) saturate(1.5);
}

.monkey-image.infected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--blood-red);
    text-shadow: 0 0 20px var(--blood-red);
    font-weight: bold;
    animation: heartbeat 0.6s ease-out infinite;
}

.submit-btn {
    background: linear-gradient(135deg, var(--matrix-green) 0%, var(--neon-green) 100%);
    color: var(--primary-dark);
    border: 2px solid var(--neon-green);
    padding: 16px 32px;
    margin: 24px auto;
    display: block;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    box-shadow: 
        0 0 20px var(--shadow-light),
        inset 0 0 20px rgba(0, 255, 65, 0.2);
    animation: slideInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--primary-dark);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 40px var(--shadow-neon),
        0 8px 25px var(--shadow-medium),
        inset 0 0 30px rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 15px var(--primary-dark);
    animation: neonGlow 1s ease-in-out infinite;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    animation: heartbeat 0.2s ease-out;
}

.hidden {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--paper-color);
    margin: 10% auto;
    padding: 40px;
    width: 80%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 40px var(--shadow-neon);
    border: 2px solid var(--border-light);
    animation: slideInUp 0.4s ease-out;
    transform-origin: center;
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.2);
    text-shadow: 0 0 10px var(--neon-green);
}

.observation-dashboard {
    position: relative;
    width: 85%;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px var(--shadow-medium);
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.live-feed-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-feed-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,255,0,0.1) 2px,
        rgba(0,255,0,0.1) 4px
    );
    animation: scanline 3s linear infinite;
}

.feed-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.pulse-indicator {
    width: 20px;
    height: 20px;
    background: var(--blood-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    position: relative;
}

.pulse-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--blood-red);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite 0.2s;
    opacity: 0.6;
}

.stream-container {
    position: relative;
    width: 85%;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px var(--shadow-medium);
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.stream-container iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
}

.stream-info {
    background: var(--primary-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
    position: relative;
    overflow: hidden;
}

.stream-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--accent-amber), var(--blood-red));
    animation: dataFlow 2s ease-in-out infinite;
}

.viewer-count, .stream-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInLeft 0.8s ease-out;
}

.viewer-count {
    animation-delay: 0.2s;
}

.stream-duration {
    animation-delay: 0.4s;
}

.viewer-count i {
    color: var(--blood-red);
    animation: blink 2s ease-in-out infinite;
}

.stream-duration i {
    color: var(--neon-green);
    animation: rotate 4s linear infinite;
}

.specimen-stats {
    background: var(--primary-dark);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.specimen-stats::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-green), var(--accent-amber), var(--blood-red));
    animation: dataFlow 1.5s ease-in-out infinite;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.stats-header h3 {
    color: white;
    margin: 0;
    font-size: 1.125rem;
    font-family: 'IBM Plex Mono', monospace;
    position: relative;
}

.stats-header h3::before {
    content: '> ';
    color: var(--neon-green);
    animation: blink 1.5s ease-in-out infinite;
}

.status-indicator {
    background: var(--secondary-dark);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.status-indicator.active {
    background: rgba(0, 255, 65, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    animation: neonGlow 2s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    animation-delay: calc(var(--card-order, 0) * 0.1s);
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { --card-order: 0; }
.stat-card:nth-child(2) { --card-order: 1; }
.stat-card:nth-child(3) { --card-order: 2; }
.stat-card:nth-child(4) { --card-order: 3; }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-green);
    animation: dataFlow 2s ease-in-out infinite;
    animation-delay: calc(var(--card-order, 0) * 0.2s);
}

.stat-title {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'IBM Plex Mono', monospace;
    animation: slideInLeft 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.stat-value:hover {
    transform: scale(1.1);
    color: var(--accent-amber);
    text-shadow: 0 0 15px var(--accent-amber);
}

.stat-graph {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    animation: slideInRight 0.8s ease-out 0.5s both;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    border-radius: 3px 3px 0 0;
}

.temperature-line {
    background: linear-gradient(180deg, var(--blood-red), transparent);
    animation: wave 2s ease-in-out infinite;
}

.viral-line {
    background: linear-gradient(180deg, var(--accent-amber), transparent);
    animation: wave 2.5s ease-in-out infinite 0.3s;
}

.heart-line {
    background: linear-gradient(180deg, var(--neon-green), transparent);
    animation: wave 1.5s ease-in-out infinite 0.6s;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 40px 0;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--matrix-green);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    box-shadow: 0 0 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    animation-delay: calc(var(--social-order, 0) * 0.1s);
    border: 2px solid var(--border-light);
    text-shadow: 0 0 8px var(--matrix-green);
}

.social-link:nth-child(1) { --social-order: 0; }
.social-link:nth-child(2) { --social-order: 1; }
.social-link:nth-child(3) { --social-order: 2; }

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px var(--shadow-neon);
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
    animation: neonGlow 1s ease-in-out infinite;
}

.social-link:hover::before {
    left: 100%;
}

.social-link i {
    animation: terminalFloat 2s ease-in-out infinite;
    animation-delay: calc(var(--social-order, 0) * 0.2s);
}

.team-image {
    width: 100%;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px var(--shadow-medium);
    animation: slideInUp 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
}

.team-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px var(--shadow-neon);
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    filter: hue-rotate(120deg) contrast(1.1);
}

.team-image:hover img {
    transform: scale(1.05);
    filter: hue-rotate(120deg) contrast(1.3) brightness(1.1);
}

.report-section {
    text-align: right;
    padding: 24px;
    border-top: 2px dashed var(--border-light);
    margin-top: 40px;
    animation: slideInRight 0.8s ease-out 0.8s both;
    position: relative;
}

.report-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blood-red), var(--accent-amber));
    animation: typewriter 2s ease-out 1s forwards;
}

.report-btn {
    background: linear-gradient(135deg, var(--blood-red), #b91c1c);
    color: white;
    border: 2px solid var(--blood-red);
    padding: 16px 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease-out 1s both;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px white;
}

.report-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.report-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
    animation: redPulse 1s ease-in-out infinite;
    text-shadow: 0 0 15px white;
}

.report-btn:hover::before {
    left: 100%;
}

.report-btn i {
    animation: rotate 2s linear infinite;
}

.locked-message, .report-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.locked-message i, .report-message i {
    font-size: 48px;
    color: var(--blood-red);
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px var(--blood-red);
}

.locked-message p, .report-message p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    animation: fadeIn 0.8s ease-out 0.3s both;
    color: var(--text-secondary);
    text-shadow: 0 0 5px var(--matrix-green);
}

.progress-bar {
    display: block;
    width: 33%;
    height: 10px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar.hide {
    visibility: hidden;
    transition: visibility 0.3s;
}

.update-bar {
    background: linear-gradient(90deg, var(--neon-green), var(--accent-amber));
    width: 0%;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
    animation: shimmer 2s ease-in-out infinite;
}

model-viewer {
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: fadeIn 1s ease-out 0.5s both;
}

.stage {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.stage.active {
    background: var(--blood-red);
    animation: neonGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--blood-red);
}

.stage-indicators {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    animation: slideInUp 0.6s ease-out 0.4s both;
}

@media (prefers-reduced-motion: no-preference) {
    .text-content p {
        opacity: 0;
        animation: slideInUp 0.8s ease-out forwards;
        animation-delay: calc(var(--p-order, 0) * 0.1s + 0.3s);
    }
    
    .text-content p:nth-child(1) { --p-order: 0; }
    .text-content p:nth-child(2) { --p-order: 1; }
    .text-content p:nth-child(3) { --p-order: 2; }
    .text-content p:nth-child(4) { --p-order: 3; }
    .text-content p:nth-child(5) { --p-order: 4; }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card:nth-child(1) { --card-order: 0; }
    .stat-card:nth-child(2) { --card-order: 1; }
    .stat-card:nth-child(3) { --card-order: 2; }
    .stat-card:nth-child(4) { --card-order: 3; }
}

@media (max-width: 768px) {
    .document {
        width: 95%;
        padding: 32px 24px;
    }

    .bookmarks {
        flex-wrap: wrap;
        gap: 4px;
    }

    .bookmark {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    #monkey-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .stream-container,
    .observation-dashboard {
        width: 100%;
    }

    h2 {
        font-size: 1.75rem;
    }

    .classified-stamp {
        font-size: 14px;
        padding: 12px 16px;
        top: 32px;
        right: 24px;
    }
    
    .bookmark:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .monkey-image:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}