:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --dim-text: #888888;
    --accent: #22d3ee;
    --border-color: #333333;
    --window-bg: #0a0a0a;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.nav-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 1rem 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--dim-text);
}

/* Showcase (Split View) */
.showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.window {
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    height: 410px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Specific glows */
/* Specific glows */
.browser-window {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.05);
    opacity: 0;
    transform: translateX(50%) scale(0.7); /* Starts behind the right window */
    z-index: 1;
    position: absolute;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.browser-window.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    position: relative;
    z-index: 2;
}

.terminal-window {
    border-color: rgba(255,255,255,0.1);
    z-index: 3;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

.terminal-window.pushed {
    /* No explicit transform needed if flex gap handles it, but let's ensure it stays smooth */
}

/* Rest of the window styles remain */
.window-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #111;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
}

.dots {
    display: flex;
    gap: 6px;
    position: absolute;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.url-bar, .title {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--dim-text);
    font-family: 'Fira Code', monospace;
}

.window-content {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow: hidden; /* Prevent ugly scrollbars */
    flex-grow: 1;
}

.browser-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #050505;
    position: relative;
}

/* Jupyter Theme Styles */
.jupyter-theme {
    background-color: #1e1e1e !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 2rem !important;
}

.jupyter-cell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cell-input-row, .cell-output-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    position: relative; /* For the blue bars */
}

/* Split blue execution bars */
.cell-input-row::before, 
.cell-output-row::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}

.jupyter-cell.running .cell-input-row::before {
    background-color: #f81ce5;
}

.jupyter-cell.completed .cell-input-row::before,
.jupyter-cell.completed .cell-output-row::before {
    background-color: #f81ce5;
}

.cell-output-row {
    opacity: 0;
    transition: opacity 0.5s;
    display: none; /* JS will change to flex */
}
.cell-output-row.visible {
    opacity: 1;
    display: flex;
}

.prompt-col {
    min-width: 65px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-align: right;
    padding-right: 10px;
    padding-top: 10px;
    color: #888888;
    white-space: nowrap;
}
.out-prompt {
    padding-top: 0px; /* Align perfectly with output */
}

.code-col {
    flex-grow: 1;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 4px;
    padding: 10px;
}

#jupyter-output {
    flex-grow: 1;
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #e6edf3;
    white-space: pre-wrap;
}

/* Cell Execution Status */
.cell-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--dim-text);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cell-status.visible {
    opacity: 1;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.spin {
    animation: spin 1.5s linear infinite;
}

/* Pink Blinking Cursor */
.pink-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #f81ce5;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

.pink-cursor.line {
    width: 2px;
}

.pink-highlight {
    background-color: rgba(248, 28, 229, 0.4) !important;
}

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

/* Syntax Highlighting */
.py-keyword { color: #c678dd; font-weight: bold; }
.py-string { color: #98c379; }
.py-number { color: #d19a66; }

.terminal-content {
    color: #e6edf3;
    line-height: 1.5;
    white-space: pre-wrap; /* Fixes alignment by respecting newlines */
}


/* Frameworks */
.frameworks {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 2rem;
    flex-wrap: wrap;
}

.framework h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #e6edf3;
    line-height: 1.8;
}

.code-block .prompt {
    color: var(--dim-text);
    margin-right: 8px;
}
.code-block .output {
    color: var(--dim-text);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--dim-text);
    margin-bottom: 2rem;
}

.form-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-container input {
    background-color: #111;
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    width: 60%;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-container input:focus {
    border-color: var(--accent);
}

.form-container button {
    background-color: white;
    color: black;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s;
}

.form-container button:hover {
    background-color: #e5e5e5;
}

.hidden-msg {
    display: none;
    color: var(--accent) !important;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--dim-text);
    font-size: 0.85rem;
    margin-top: auto;
}

@media (max-width: 900px) {
    .showcase { flex-direction: column; align-items: center; }
    .window { width: 90%; }
    .hero h1 { font-size: 2.5rem; }
    .frameworks { flex-direction: column; align-items: flex-start; gap: 2rem; max-width: 300px; margin: 0 auto; }
}
