:root {
    --terminal-bg: #0a0e14;
    --terminal-fg: #52d053;
    --terminal-border: #3eb73e;
    --terminal-highlight: #6eff6e;
    --terminal-dim: #2a7a2a;
    --terminal-accent: #40c940;
    --terminal-font: 'Share Tech Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    --border-char: '═';
}

@media (prefers-color-scheme: light) {
    :root {
        --terminal-bg: #d4d8d4;
        --terminal-fg: #0d4d0d;
        --terminal-border: #2d7a2d;
        --terminal-highlight: #1a6b1a;
        --terminal-dim: #5a8a5a;
        --terminal-accent: #2a8a2a;
    }
}

* {
    font-family: var(--terminal-font) !important;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
}

::-webkit-scrollbar-thumb {
    background: var(--terminal-dim);
    border: 1px solid var(--terminal-border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-fg);
}

::-webkit-scrollbar-corner {
    background: var(--terminal-bg);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--terminal-dim) var(--terminal-bg);
}

/* Profile Picture with ASCII effect */
#profile-picture {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px 0 30px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile-picture:hover {
    transform: scale(1.05);
}

.ascii-profile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    opacity: 1;
    pointer-events: none;
}

.ascii-profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.original-profile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terminal-bg);
    pointer-events: none;
}

.original-profile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

#profile-picture:hover .ascii-profile {
    opacity: 0;
}

#profile-picture:hover .original-profile {
    opacity: 1;
}


body {
    font-family: var(--terminal-font);
    background-color: var(--terminal-bg);
    color: var(--terminal-fg);
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

#terminal-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

#terminal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ascii-title {
    color: var(--terminal-highlight);
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: pre;
    font-weight: bold;
    text-shadow: 0 0 10px var(--terminal-dim);
    font-family: var(--terminal-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    width: auto;
    display: inline-block;
}

/* ASCII Title Text */
.ascii-title-text {
    color: var(--terminal-highlight);
    font-weight: bold;
    text-shadow: 0 0 10px var(--terminal-dim);
    white-space: pre;
    overflow: hidden;
    font-variant-ligatures: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Apply tint color to SVG */
.ascii-profile-img {
    filter: brightness(0) saturate(100%) invert(69%) sepia(41%) saturate(1048%) hue-rotate(68deg) brightness(103%) contrast(95%) drop-shadow(0 0 10px var(--terminal-dim));
}

/* Light mode tint adjustment */
@media (prefers-color-scheme: light) {
    .ascii-profile-img {
        filter: brightness(0) saturate(100%) invert(21%) sepia(89%) saturate(1048%) hue-rotate(99deg) brightness(95%) contrast(102%);
    }
}

.menu-border, .content-border {
    border: 1px solid var(--terminal-border);
    padding: 15px;
    position: relative;
    background-color: var(--terminal-bg);
}

#terminal-menu {
    margin-bottom: 20px;
}

.menu-list {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.menu-list .menu-item:first-child {
    margin-right: auto;
}

.menu-item {
    cursor: pointer;
    padding: 5px 8px;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: var(--terminal-dim);
    color: var(--terminal-bg);
}


.menu-item.active {
    background-color: var(--terminal-fg);
    color: var(--terminal-bg);
}

.menu-item.active .menu-indicator {
    color: var(--terminal-highlight);
}

.menu-item.active .menu-indicator::after {
    content: 'X';
    position: absolute;
    left: 1px;
}

.menu-indicator {
    margin-right: 5px;
}

#terminal-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 45px; /* Minimal space for footer */
    position: relative;
    border-top: 1px solid var(--terminal-border);
    border-bottom: 1px solid var(--terminal-border);
}

.content-border {
    border-left: 1px solid var(--terminal-border);
    border-right: 1px solid var(--terminal-border);
    border-top: none;
    border-bottom: none;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content-section {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-content {
    flex-grow: 1;
}

.content-section h2 {
    color: var(--terminal-highlight);
    margin-bottom: 15px;
    font-size: 18px;
}

.section-content {
    color: var(--terminal-fg);
}

.section-content p {
    margin-bottom: 10px;
}

#terminal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--terminal-bg);
    border-top: 1px dashed var(--terminal-border);
    padding: 10px 20px;
    z-index: 100;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.keyboard-guide {
    color: var(--terminal-dim);
}

.keyboard-guide span {
    background-color: var(--terminal-dim);
    color: var(--terminal-bg);
    padding: 2px 4px;
    margin: 0 2px;
}

.keyboard-guide a {
    color: var(--terminal-fg);
    text-decoration: none;
    transition: all 0.2s;
}

.keyboard-guide a:hover {
    color: var(--terminal-highlight);
    text-decoration: underline;
}

.keyboard-guide a span {
    background-color: var(--terminal-dim);
    color: var(--terminal-bg);
    padding: 2px 4px;
    margin: 0 2px;
}

.keyboard-guide a:hover span {
    background-color: var(--terminal-highlight);
}

.copyright {
    color: var(--terminal-dim);
}

.copyright a {
    color: var(--terminal-highlight);
    text-decoration: underline;
}

.copyright a:hover {
    background-color: var(--terminal-highlight);
    color: var(--terminal-bg);
}

@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.cursor::after {
    content: '█';
    animation: blink 1s infinite;
    color: var(--terminal-highlight);
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--terminal-highlight);
}

.terminal-input {
    color: var(--terminal-fg);
}

.terminal-output {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    opacity: 1 !important;
    animation: none !important;
}

.terminal-output > * {
    opacity: 1 !important;
    animation: none !important;
}

.no-animation,
.no-animation * {
    animation: none !important;
    opacity: 1 !important;
}