:root {
    --bg-color: #1E1E1E;
    --text-color: #E0E0E0;
    --accent-color: #569CD6;
    --secondary-color: #4EC9B0;
    --terminal-green: #6A9955;
    --terminal-prompt: #DCDCAA;
    --terminal-command: #CE9178;
    --link-color: #9CDCFE;
    --quote-bg: #252526;
    --border-color: #3E3E42;
    --skill-bg: #264F78;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Terminal Header Styling */
.terminal-header, .terminal-footer {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-footer {
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    margin-top: 40px;
    margin-bottom: 0;
    padding-top: 20px;
}

.terminal-prompt {
    color: var(--terminal-prompt);
    margin-right: 10px;
}

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

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--text-color);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

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

/* Markdown-style Headings */
.md-heading {
    margin: 25px 0 15px;
    color: var(--accent-color);
    font-weight: bold;
}

h1.md-heading {
    font-size: 2rem;
    margin-top: 0;
}

h2.md-heading {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Bold Text */
.md-bold {
    color: var(--accent-color);
    font-weight: bold;
}

/* Lists */
.md-list {
    list-style-type: none;
    margin: 15px 0;
    padding-left: 20px;
}

.md-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
}

.md-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--terminal-green);
}

/* Skills Styling */
.skill-category {
    color: var(--secondary-color);
    font-weight: bold;
}

.skill {
    display: inline-block;
    background-color: var(--skill-bg);
    padding: 2px 6px;
    border-radius: 3px;
    margin: 2px;
    font-size: 0.9em;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--link-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* Quote */
.md-quote {
    border-left: 3px solid var(--terminal-green);
    padding: 10px 20px;
    margin: 20px 0;
    background-color: var(--quote-bg);
    font-style: italic;
}

/* Terminal Navigation */
.terminal-nav {
    margin: 30px 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(30, 30, 30, 0.7);
}

.terminal-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin-top: 10px;
}

.terminal-nav li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.terminal-nav a {
    color: var(--terminal-green);
    border-bottom: none;
    padding: 3px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.terminal-nav a:hover {
    background-color: rgba(106, 153, 85, 0.2);
}

/* Terminal Content */
.terminal-content {
    padding: 10px 0;
}

section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

section:last-child {
    border-bottom: none;
}

/* Footer Styling */
.terminal-footer p {
    margin-top: 10px;
    color: var(--terminal-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .terminal-container {
        padding: 15px;
    }
    
    h1.md-heading {
        font-size: 1.8rem;
    }
    
    h2.md-heading {
        font-size: 1.3rem;
    }
    
    .terminal-nav ul {
        flex-direction: column;
    }
    
    .terminal-nav li {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .terminal-container {
        padding: 10px;
    }
    
    h1.md-heading {
        font-size: 1.6rem;
    }
    
    h2.md-heading {
        font-size: 1.2rem;
    }
    
    .md-list {
        padding-left: 10px;
    }
}
