/* telomere.dev - Bioinformatics IDE */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --void: #0A0A14;
    --deep-indigo: #141428;
    --telomere-green: #40E878;
    --chromosome-blue: #4078E8;
    --mutation-mag: #E840A8;
    --divider-color: #4A4A68;
    --text-terminal: #40E878;
    --text-science: #E0D0F0;
    --text-body: #B8B8D0;
}
body {
    background: var(--void);
    color: var(--text-body);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    overflow: hidden;
    height: 100vh;
}

/* Split Screen */
.split-screen {
    display: flex;
    height: 100vh;
}
.pane {
    overflow-y: auto;
    height: 100vh;
}

/* Terminal Pane */
.terminal-pane {
    flex: 1;
    background: var(--void);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #0E0E1C;
    border-bottom: 1px solid rgba(74,74,104,0.3);
    position: sticky;
    top: 0;
    z-index: 2;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }
.terminal-tab {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    color: #6A6A88;
    margin-left: 8px;
}
.terminal-body {
    padding: 16px;
}
.term-line {
    margin-bottom: 2px;
    opacity: 0;
    animation: termReveal 0.3s ease 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-block {
    margin: 1.5rem 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.term-block.active {
    opacity: 1;
}
@keyframes termReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.prompt { color: var(--chromosome-blue); }
.cmd { color: var(--telomere-green); }
.output { color: #A0A0C0; }
.output.dim { color: #606080; }
.highlight { color: var(--telomere-green); font-weight: 500; }
.highlight-blue { color: var(--chromosome-blue); font-weight: 500; }
.highlight-mag { color: var(--mutation-mag); font-weight: 500; }
.blink-cursor .cursor {
    animation: cursorBlink 1s step-end infinite;
    color: var(--telomere-green);
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Divider */
.divider {
    width: 3px;
    background: var(--divider-color);
    cursor: col-resize;
    transition: background 0.3s ease, width 0.2s ease;
    flex-shrink: 0;
}
.divider:hover {
    background: #6A6A88;
    width: 5px;
}

/* Bio Pane */
.bio-pane {
    flex: 1;
    background: var(--deep-indigo);
    padding: 2rem;
    position: relative;
}
.helix-curve {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
}
.helix-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawHelix 2s ease forwards 0.5s;
}
@keyframes drawHelix {
    to { stroke-dashoffset: 0; }
}

.bio-header {
    margin-bottom: 3rem;
}
.bio-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-science);
    margin-bottom: 0.5rem;
}
.bio-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-body);
}
.bio-section {
    margin-bottom: 3rem;
    position: relative;
}
.bio-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-science);
    margin-bottom: 1rem;
}
.bio-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
}
.chromosome-shape {
    position: absolute;
    right: -20px;
    top: 0;
    width: 80px;
    opacity: 0.5;
    pointer-events: none;
}

/* Section Animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(64,120,232,0.15);
}
.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #606080;
}

/* Responsive */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    .pane {
        height: auto;
        max-height: 50vh;
    }
    .terminal-pane {
        max-height: 40vh;
    }
    .divider {
        width: 100%;
        height: 3px;
        cursor: row-resize;
    }
    .bio-pane {
        padding: 1.5rem;
    }
    body { overflow: auto; height: auto; }
}
