@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

/* Gruvbox Dark Palette */
:root {
    --bg: #282828;
    --fg: #ebdbb2;
    --red: #cc241d;
    --green: #98971a;
    --yellow: #d79921;
    --blue: #458588;
    --purple: #b16286;
    --aqua: #689d6a;
    --gray: #a89984;
    --orange: #d65d0e;
    --bg-darker: #1d2021;
}

body {
    background-color: var(--bg-darker);
    color: var(--fg);
    font-family: 'Fira Code', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* CRT Scanline Effect */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 9999;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.terminal {
    width: 80%;
    max-width: 900px;
    background-color: rgba(40, 40, 40, 0.85);
    border: 1px solid var(--gray);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(104, 157, 106, 0.2);
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* CRT Text Glow */
    text-shadow: 0 0 5px var(--aqua);
}

.terminal-header {
    background-color: #21252b;
    padding: 10px;
    border-bottom: 1px solid var(--gray);
    position: relative;
    height: 38px;
}

.terminal-buttons {
    display: flex;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.red {
    background-color: var(--red);
}

.terminal-button.yellow {
    background-color: var(--yellow);
}

.terminal-button.green {
    background-color: var(--green);
}

.terminal-title {
    color: var(--gray);
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.profile-pic {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    mask-image: radial-gradient(circle, black 85%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 85%, transparent 100%);
}

.terminal-body {
    padding: 20px;
    height: 60vh;
    overflow-y: auto;
}

.line {
    margin-bottom: 15px;
}

.prompt {
    color: var(--blue);
}

.prompt .user {
    color: var(--green);
}

.prompt .path {
    color: var(--purple);
}

.command {
    color: var(--fg);
}

.output {
    padding-left: 10px;
    color: var(--fg);
}

.output a {
    color: var(--aqua);
    text-decoration: none;
}

.output a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--aqua);
}

.output h3 {
    color: var(--green);
    margin-top: 0;
}

.output ul {
    list-style-type: none;
    padding-left: 0;
}

.output li {
    margin-bottom: 5px;
}

.output .title {
    color: var(--yellow);
    font-weight: bold;
}

.output .meta {
    color: var(--orange);
    font-style: italic;
}

.output .description {
    margin-top: 5px;
}

.output-image {
    max-width: 300px;
    width: 100%;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid var(--gray);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--fg);
    box-shadow: 0 0 5px var(--fg);
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink {
    50% {
        background-color: transparent;
        box-shadow: none;
    }
}