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

/* --- CSS Resets & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Fira Code', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Terminal Window --- */
.terminal-window {
    width: 100%;
    max-width: 800px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.terminal-header {
    background-color: #21262d;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.header-buttons {
    display: flex;
}

.button {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.button.red { background-color: #ff5f56; }
.button.yellow { background-color: #ffbd2e; }
.button.green { background-color: #27c93f; }

.header-title {
    color: #c9d1d9;
    font-size: 14px;
    margin: 0 auto;
    transform: translateX(-24px); /* Centrar titulo compensando los botones */
}

/* --- Terminal Body & Content --- */
.terminal-body {
    padding: 15px;
    height: 600px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.prompt.user { color: #58a6ff; }
.prompt.separator { color: #c9d1d9; margin: 0 2px; }
.prompt.path { color: #a5d6ff; }
.prompt.dollar { color: #c9d1d9; margin: 0 8px; }

.command {
    color: #e0e0e0;
    white-space: pre-wrap;
}

.terminal-output {
    padding-left: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    color: #b0b8c4;
}

/* --- Cursor Animation --- */
.cursor {
    background-color: #58a6ff;
    display: inline-block;
    width: 8px;
    height: 1.2em;
    animation: blink 1s steps(1) infinite;
    margin-left: 4px;
    transform: translateY(2px);
}

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

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.project-card {
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 15px;
    background-color: #21262d;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

.project-card h3 {
    color: #58a6ff;
    margin-bottom: 10px;
    font-size: 16px;
}

.project-card p {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-card a {
    text-decoration: none;
    color: #c9d1d9;
    background-color: #30363d;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.project-card a:hover {
    background-color: #58a6ff;
    color: #161b22;
}

/* --- Links --- */
a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Scrollbar --- */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #161b22;
}
.terminal-body::-webkit-scrollbar-thumb {
    background-color: #30363d;
    border-radius: 4px;
}
