/* === Gruvbox Theme Credit === */
.gruvbox-credit {
    margin-top: 1.2rem;
    text-align: center;
    color: #bdae93;
    font-size: 0.98rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.85;
    letter-spacing: 0.01em;
}



/* =============================
   Terminal-Themed Personal Site
   Main Stylesheet
   ============================= */

/* === Color Palette (Gruvbox Inspired) === */
:root {
    --bg: #282828;
    --fg: #ebdbb2;
    --secondary: #d79921;
    --accent: #fb4934;
    --surface: #3c3836;
    --cursor: #fe8019;
    --green: #b8bb26;
    --blue: #83a598;
    --purple: #d3869b;
}

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

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: auto;
}

.terminal-container {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 4px 24px 0 #0008;
    padding: 0 0 0 0;
    margin: 3rem auto 2rem auto;
    max-width: 800px;
    min-width: 320px;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.terminal-bar {
    width: 100%;
    height: 2.2rem;
    background: #181825;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    padding-left: 1.2rem;
    position: relative;
    border-bottom: 1.5px solid #444;
    box-sizing: border-box;
    z-index: 10;
}
.terminal-bar .dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    opacity: 1;
    box-shadow: 0 0 0 2px #222, 0 0 6px 2px #0008;
}
.terminal-bar .dot.red { background: #ff5f56; }
.terminal-bar .dot.yellow { background: #ffbd2e; }
.terminal-bar .dot.green { background: #27c93f; }

.typeme {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.7rem 2rem 0.7rem 2rem;
    position: relative;
    border-bottom: none;
    z-index: 2;
    margin-bottom: 0.7rem;
}

.typing-cursor {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.text-secondary {
    color: var(--secondary);
}

.text-background {
    color: var(--fg);
}

.cursor {
    color: var(--accent);
}

.cursor-blink {
    color: var(--cursor);
    animation: blink 1s infinite;
    font-weight: bold;
    line-height: 1.2;
}

.cursor-static {
    color: var(--cursor);
    font-weight: bold;
    line-height: 1.2;
}

.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    padding-right: 0.05ch;
    animation: type 0.6s steps(6, end) 1s forwards;
}

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

@keyframes type {
    to {
        width: 6ch;
    }
}

@keyframes reveal {
    to {
        opacity: 1;
    }
}

.output {
    margin-left: 0;
    opacity: 0;
    animation: reveal 1s ease-in-out 1.7s forwards;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.7rem 2rem 0.7rem 2rem;
    margin-bottom: 0;
    z-index: 1;
}

.command-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.7rem 0;
    position: relative;
    border-bottom: none;
    z-index: 2;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
}

.links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.links a {
    color: var(--green);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: #232323;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(.4,1.5,.5,1);
    box-shadow: 0 1px 4px 0 #0002;
}

.links a:hover {
    background-color: var(--green);
    color: #232323;
    border-color: var(--green);
    box-shadow: 0 2px 8px 0 #0003;
}

p {
    margin-bottom: 1.2rem;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
}

h3 {
    color: var(--blue);
    margin: 2.2rem 0 1.2rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

ul {
    margin-bottom: 2rem;
    padding-left: 1rem;
    list-style-type: disc;
}

li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}


a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--surface);
    padding-top: 1.2rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    body {
        padding: 0.5rem;
        max-width: 100vw;
    }
    .typeme, .output {
        padding: 0.7rem 0.5rem;
        font-size: 1rem;
    }
    .links {
        flex-direction: column;
        gap: 0.5rem;
    }
    p {
        max-width: 100%;
        font-size: 0.98rem;
    }
    h3 {
        font-size: 1rem;
    }
}

