/* style.css */
:root {
    --bg-color: #111;
    --text-main: #eee;
    --text-dim: #888;
    --accent: #4ec9b0; /* Cyan */
    --cmd-color: #ce9178; 
    --success-color: #6a9955;
    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace; /*"EB Garamond", "Helvetica Neue", "Segoe UI", sans-serif;*/
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-hav: "EB Garamond", "Helvetica Neue", "Segoe UI", sans-serif;
    --max-width: 800px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0 20px 40px 20px;
    overflow-y: scroll;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Navigation */
nav {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
}
nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
}
nav a:hover, nav a.active { color: var(--accent); }
.brand { font-weight: bold; color: var(--text-main); font-size: 1.2rem; margin-left: 0; }

/* TERMINAL */
#terminal-wrapper {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.terminal-header { display: flex; gap: 6px; margin-bottom: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

#terminal-output { 
    flex-grow: 1; 
    overflow-y: auto; 
    white-space: pre-wrap; 
    color: #d4d4d4; 
    margin-bottom: 10px; 
    max-height: 50vh;
}

.input-line { 
    display: flex; 
    align-items: center; 
    position: relative; /* Needed for positioning */
}
.prompt { color: var(--accent); margin-right: 10px; font-weight: bold; flex-shrink: 0; }

/* The animated text placeholder */
#ghost-input {
    color: #888; /* Dim color to look like a placeholder */
    font-family: var(--font-mono);
    font-size: 0.9rem;
    white-space: pre;
}

/* Blinking cursor effect appended to the ghost text */
#ghost-input::after {
    content: '▋';
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

#commandInput {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex-grow: 1;
    outline: none;
    min-width: 0;
    opacity: 0; /* Hidden initially while ghost is typing */
    transition: opacity 0.1s;
}

/* When the user activates the terminal, we show the real input */
.input-active #commandInput {
    opacity: 1;
}
.input-active #ghost-input {
    display: none; /* Hide ghost when active */
}

/* Dynamic Content Area */
#content-area {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.keyword { color: #569cd6; font-weight: bold; }
.highlight { color: #dcdcaa; }
.string { color: var(--cmd-color); }
.success { color: var(--success-color); }

/* Component Styles (Used inside loaded HTML files) */
h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--accent);
}

.project-item, .blog-item { 
    margin-bottom: 25px; 
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}
.project-item:last-child, .blog-item:last-child { border-bottom: none; }

.tech-tag {
    font-size: 0.75rem;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    color: #888;
    display: inline-block;
    margin-top: 5px;
}

/* Add to style.css */

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.award-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-left: 3px solid #ffd700; /* Gold Color */
    padding: 15px;
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
}

.award-card:hover {
    transform: translateY(-3px);
    border-color: #555;
    border-left-color: #ffd700;
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.award-title {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.award-year {
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.8rem;
    background: #222;
    padding: 2px 6px;
    border-radius: 4px;
}

.award-desc {
    font-size: 0.9rem;
    color: #bbb;
    margin: 0;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    body { padding: 10px 15px 40px 15px; }
    
    nav { flex-wrap: wrap; padding: 20px 0; }
    nav div { margin-top: 10px; display: flex; gap: 15px; }
    nav a { margin-left: 0; }
    
    #terminal-wrapper {
        padding: 15px;
        min-height: 200px;
        font-size: 0.8rem; /* Smaller font for mobile */
    }
    
    #commandInput { font-size: 16px; /* Prevents iOS zoom on focus */ }
    
    .project-item { flex-direction: column; }
    .project-meta { margin-top: 5px; color: var(--accent); }
}