: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;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.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 {
    opacity: 0;
    transform: scale(0.7);
    z-index: 4;
    position: absolute;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.browser-window.active {
    opacity: 1;
    transform: translateX(calc(-50% - 1rem)) scale(1);
}

.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 {
    transform: translateX(calc(50% + 1rem));
}

/* 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; }

/* Unfocused Mac Window State */
.window.unfocused .dot.red,
.window.unfocused .dot.yellow,
.window.unfocused .dot.green {
    background-color: #404040;
}

.window.unfocused .title {
    color: #404040;
    transition: color 0.3s;
}

.window .dot {
    transition: background-color 0.3s;
}

.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: #f81ce5 !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) {
    .navbar { padding: 1rem; }
    .nav-links { gap: 1rem; }
    .logo { font-size: 1.1rem; }
    .nav-btn { padding: 0.5rem 1rem; }

    .showcase { flex-direction: column; align-items: center; position: relative; gap: 0; }
    .window { width: 95%; height: auto; min-height: 320px; margin: 0 auto; }
    .window-content { padding: 1rem; }
    .jupyter-theme { padding: 1rem !important; }
    .prompt-col { font-size: 0.75rem; min-width: 45px; padding-right: 5px; }
    .code-col { font-size: 0.75rem; overflow-x: auto; padding: 8px; }
    #jupyter-output { font-size: 0.75rem; }
    .terminal-content { font-size: 0.75rem; }
    
    .browser-window { 
        position: relative !important; 
        display: flex; 
        opacity: 0; 
        margin-bottom: -350px; 
        transform: translateY(60px) scale(0.9) !important; 
        pointer-events: none; 
        z-index: 4;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .browser-window.active { 
        opacity: 1; 
        margin-bottom: 2rem; 
        transform: translateY(0) scale(1) !important; 
        pointer-events: auto; 
    }
    .terminal-window {
        z-index: 3;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .terminal-window.pushed { 
        transform: scale(0.95) !important; 
        opacity: 0.5; 
    }
    
    .hero h1 { font-size: 2.5rem; }
    .frameworks { flex-direction: column; align-items: flex-start; gap: 2rem; max-width: 300px; margin: 0 auto; }
}
/* About Page */
.about-page { display: flex; max-width: 1000px; margin: 0 auto; padding: 4rem 2rem; gap: 4rem; }
.hash-nav { list-style: none; position: sticky; top: 6rem; height: max-content; min-width: 150px; }
.hash-nav li { margin-bottom: 1rem; }
.hash-nav a { text-decoration: none; color: var(--dim-text); font-size: 0.9rem; transition: color 0.2s; }
.hash-nav a:hover, .hash-nav a.active { color: var(--text-color); }
.about-content { flex-grow: 1; max-width: 700px; }
.about-section { margin-bottom: 6rem; }
.about-section h1 { font-size: 2rem; font-weight: 500; margin-bottom: 0.5rem; }
.about-section h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 2rem; color: var(--text-color); }
.about-section h3 { font-size: 1.1rem; font-weight: 500; margin-top: 2.5rem; margin-bottom: 1rem; }
.heading-anchor { text-decoration: none !important; color: inherit !important; }
.heading-anchor:hover::after { content: ' #'; color: var(--dim-text); }
.mission-text { font-family: 'Fira Code', monospace; font-size: 1.1rem; margin-bottom: 2rem; color: var(--dim-text); }
.about-section p, .about-section ul, .about-section ol { color: var(--dim-text); margin-bottom: 1.5rem; line-height: 1.7; }
.about-section ul, .about-section ol { padding-left: 1.5rem; }
.about-section li { margin-bottom: 0.75rem; }
.about-section a { color: var(--text-color); text-decoration: underline; text-decoration-color: #333; text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.about-section a:hover { text-decoration-color: var(--text-color); }

/* Team */
.team-person { display: flex; gap: 1.5rem; margin-bottom: 3rem; }
.team-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-name { font-weight: 500; margin-bottom: 0.5rem; font-size: 1.1rem; }
.team-flag { vertical-align: middle; margin-left: 4px; margin-bottom: 2px; }
.team-description { font-size: 0.95rem; }

/* Navbar/Footer adjustments */
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--dim-text); text-decoration: none; font-size: 0.875rem; font-weight: 500; line-height: 1; padding: 0.5rem 0; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text-color); }
.footer-nav { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.footer-nav a { color: var(--dim-text); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text-color); }

@media (max-width: 768px) {
    .about-page { flex-direction: column; gap: 2rem; }
    .hash-nav { display: flex; gap: 1.5rem; position: static; overflow-x: auto; }
    .team-person { flex-direction: column; gap: 1rem; }
}
