:root {
    --bg-dark: #0a0c10;
    --terminal-bg: rgba(13, 17, 23, 0.9);
    --accent: #39FF14;
    --py-blue: #3776AB;
    --py-yellow: #FFD43B;
    --text-main: #e6edf3;
    --text-dim: #8b949e;
    --border: #30363d;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow-x: hidden;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

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

.terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: #21262d;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.term-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: 10px;
}

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

.input-line {
    display: flex;
    gap: 10px;
}

.prompt {
    color: var(--py-blue);
    font-weight: bold;
}

#cli-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 1rem;
    flex: 1;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 40px;
    background: rgba(22, 27, 34, 0.5);
}

.stat-item .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: block;
}

.stat-item .value {
    color: var(--accent);
    font-size: 1rem;
}

.section-title {
    margin-bottom: 20px;
    color: var(--py-blue);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--py-yellow);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(57, 255, 20, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.highlight {
    color: var(--py-yellow);
    font-weight: bold;
}

.system-msg {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 15px;
}

.resume-content {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 8px;
    line-height: 1.6;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section h2 {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.download-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.resume-section a, .history-item a {
    color: var(--accent);
    border-bottom: 1px dashed var(--accent);
}

.resume-section a:hover, .history-item a:hover {
    color: var(--bg-dark);
    background-color: var(--accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        box-shadow: rgba(113, 192, 40, 0.4) 0px 0px 0px;
    }
    50% {
        transform: scale(1.2);
        box-shadow: rgba(113, 192, 40, 0.4) 0px 0px 10px;
    }
    100% {
        transform: scale(1);
        box-shadow: rgba(113, 192, 40, 0.4) 0px 0px 0px;
    }
}

.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgb(113, 192, 40);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}