::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0 24px;
    position: relative;
}

header {
    margin-top: 100px;
    margin-bottom: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-12px);
    animation: header-fade-in 0.7s var(--ease-out-expo) 0.1s forwards;
}

@keyframes header-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sys-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--text-ghost);
    margin-top: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: letter-spacing 0.5s var(--ease-out-expo), color 0.5s ease;
}

header:hover .sys-status {
    letter-spacing: 7px;
    color: var(--text-dim);
}

.bio-text {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    min-height: 1.5em;
    transition: color 0.4s ease;
}

header:hover .bio-text {
    color: var(--text-muted);
}

.bio-cursor {
    animation: cursor-breathe 2.5s ease-in-out infinite;
    color: var(--text-dim);
    font-weight: 300;
}

@keyframes cursor-breathe {
    0%, 100% { opacity: 0; }
    35%, 65% { opacity: 0.6; }
}

.divider {
    border: none;
    height: 1px;
    margin: 44px 0;
    max-width: 480px;
    width: 0;
    animation: divider-expand 0.8s var(--ease-out-expo) 0.4s forwards;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #2a2a2a 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
}

.divider.expanded {
    animation: divider-expand 0.8s var(--ease-out-expo) forwards, divider-sweep 4s ease 1.5s infinite;
}

.divider:last-of-type {
    animation-delay: 0.8s;
}

@keyframes divider-expand {
    to { width: 100%; }
}

@keyframes divider-sweep {
    0%   { background-position: -100% 0; }
    50%  { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

footer {
    margin-top: 0;
    margin-bottom: 80px;
    text-align: center;
    opacity: 0;
    animation: footer-fade-in 0.5s ease 1s forwards;
}

@keyframes footer-fade-in {
    to { opacity: 1; }
}

.footer-time {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 300;
    color: var(--text-ghost);
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    transition: color 0.5s ease, opacity 0.3s ease;
}

.footer-time.colon-dim {
    opacity: 0.4;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 300;
    color: var(--text-ghost);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.5s ease;
}

footer:hover .footer-time,
footer:hover .footer-copy {
    color: var(--text-dim);
}

.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: terminal-bg-in 0.3s ease forwards;
}

@keyframes terminal-bg-in {
    to { background: rgba(5, 5, 5, 0.97); }
}

.terminal-overlay.hidden {
    display: none;
}

.terminal-window {
    width: 90%;
    max-width: 680px;
    height: 70vh;
    max-height: 480px;
    background: var(--bg-primary);
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    animation: terminal-window-in 0.35s var(--ease-out-expo) 0.1s forwards;
    box-shadow: var(--glow-soft);
}

@keyframes terminal-window-in {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.terminal-title {
    opacity: 0.6;
    font-weight: 300;
}

.terminal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 6px;
    transition: color 0.2s ease;
}

.terminal-close:hover {
    color: var(--text-primary);
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-output .cmd-line {
    color: var(--text-primary);
}

.terminal-output .error {
    color: var(--text-dim);
    font-style: italic;
}

.terminal-output .info {
    color: var(--text-primary);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid var(--border-dim);
}

.terminal-prompt {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-dim);
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 300;
    caret-color: var(--text-secondary);
}
