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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > *:not(nav) {
    flex: 1;
}

/* ── top toggle bar ── */
.top-toggle-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1.5rem;
    background: #0d1117;
}

/* ── GNU screen-style bottom bar ── */
.tmux-bar {
    background-color: #00bb00;
    display: flex;
    align-items: stretch;
    user-select: none;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000;
    order: 999;
}


.tmux-windows {
    display: flex;
    flex: 1;
    align-items: stretch;
    padding-left: 0.5rem;
    gap: 0.8rem;
}

.tmux-win {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.4rem;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
    font-size: 1.2rem;
}

.tmux-win:hover {
    background: #009900;
}

.tmux-win.active {
    background: #000;
    color: #00bb00;
}

.tmux-clock {
    padding: 0.9rem 1.4rem;
    color: #000;
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 1.2rem;
}

.view-toggle {
    background: #238636;
    border: 1px solid #2ea043;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.view-toggle:hover {
    background: #2ea043;
}

.tmux-session {
    padding: 0.6rem 1rem;
    background: #000;
    color: #00bb00;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

/* ── terminal window chrome ── */
.term-window {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ── git log ── */
.git-log {
    margin: 0.3rem 0;
}

.git-entry {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-size: 0.88rem;
}

.git-commit { color: #f0883e; }
.git-hash   { color: #f0883e; }
.git-ref    { color: #3fb950; }
.git-field  { color: #58a6ff; }

.git-message {
    padding-left: 1.5rem;
    margin-top: 0.1rem;
    color: #e6edf3;
}

.git-sub {
    color: #8b949e;
    font-size: 0.85rem;
}

.term-chrome {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.term-titlebar {
    background: #21262d;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #8b949e;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.term-titlebar::before {
    content: '● ● ●';
    color: #f0883e;
    letter-spacing: 3px;
    font-size: 0.65rem;
}

.term-body {
    padding: 1.2rem 1.5rem;
    line-height: 1.8;
}

.prompt {
    color: #3fb950;
}

.prompt-path {
    color: #58a6ff;
}

.cmd {
    color: #e6edf3;
}

.output {
    color: #c9d1d9;
    padding-left: 1rem;
    margin: 0.3rem 0 0.8rem;
}

.output-label {
    color: #f0883e;
    font-weight: bold;
}

.output-value {
    color: #c9d1d9;
}

.comment {
    color: #8b949e;
    font-style: italic;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 1.1em;
    background: #3fb950;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

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

/* ── landing ── */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    gap: 1.2rem;
    text-align: center;
}

.landing-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3fb950;
    box-shadow: 0 0 20px rgba(63,185,80,0.3);
}

.landing-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #21262d;
    border: 3px solid #3fb950;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.landing-name {
    font-size: 2.4rem;
    color: #e6edf3;
    letter-spacing: 2px;
}

.landing-tagline {
    font-size: 1rem;
    color: #3fb950;
    letter-spacing: 1px;
}

.landing-tagline::before { content: '# '; color: #8b949e; }

/* ── contact form ── */
.resume-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #3fb950;
}

.form-group label::before { content: '> '; color: #8b949e; }

.form-group input,
.form-group textarea {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #c9d1d9;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3fb950;
}

.form-group textarea { resize: vertical; }

.optional { color: #8b949e; font-size: 0.8rem; }

.char-count { font-size: 0.75rem; color: #8b949e; text-align: right; }

.btn-send {
    align-self: flex-start;
    background: #238636;
    color: #fff;
    border: 1px solid #2ea043;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-send:hover { background: #2ea043; }

.flash {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.flash-success { background: #0d2318; color: #3fb950; border-color: #3fb950; }
.flash-error   { background: #2d0f0f; color: #f85149; border-color: #f85149; }

/* ── linkedin ── */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #58a6ff;
    text-decoration: none;
}

.linkedin-link:hover { text-decoration: underline; }

/* ── entry layout ── */
.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.entry-header h3 { color: #e6edf3; font-size: 1rem; }

.entry-meta-right {
    text-align: right;
    font-size: 0.85rem;
    color: #8b949e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── mobile ── */
@media (max-width: 600px) {
    .tmux-session { display: none; }

    .tmux-win {
        font-size: 0.75rem;
        padding: 0.6rem 0.5rem;
    }

    .tmux-windows {
        gap: 0.2rem;
        padding-left: 0.2rem;
    }

    .tmux-clock {
        font-size: 0.75rem;
        padding: 0.6rem 0.5rem;
    }
}

.degree {
    font-style: italic;
    color: #58a6ff;
    font-size: 0.9rem;
}
