:root {
    --bg-color: #0d0d0d;
    --text-color: #00ff41; /* Classic Matrix/Hacker green */
    --prompt-color: #00ff41;
    --command-color: #ffffff;
    --header-bg: #1a1a1a;
    --dot-red: #ff5f56;
    --dot-yellow: #ffbd2e;
    --dot-green: #27c93f;
    --font-family: 'JetBrains+Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* CRT Overlay Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 100%),
                linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 100%, 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 100% 4px;
    animation: scan 10s linear infinite;
    pointer-events: none;
    z-index: 11;
}

@keyframes scan {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

/* GUI Toggle Button */
.gui-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.gui-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gui-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.2);
}

/* Terminal Styles */
.terminal-container {
    width: 90%;
    max-width: 900px;
    height: 70vh;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 15;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.terminal-header {
    background: var(--header-bg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

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

.dot.red { background: var(--dot-red); }
.dot.yellow { background: var(--dot-yellow); }
.dot.green { background: var(--dot-green); }

.header-title {
    margin-left: 20px;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.output-line {
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
}

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

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

#command-input {
    background: transparent;
    border: none;
    color: var(--command-color);
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    flex: 1;
    width: 100%;
}

/* Command Styling */
.cmd-help { color: #50fa7b; }
.cmd-about { color: #8be9fd; }
.cmd-exp { color: #ffb86c; }
.cmd-projects { color: #bd93f9; }
.cmd-skills { color: #f1fa8c; }
.cmd-contact { color: #ff79c6; }

.ascii-art {
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 8px;
    line-height: 8px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .terminal-container {
        width: 95%;
        height: 80vh;
    }
    .header-title { display: none; }
    .ascii-art { font-size: 6px; line-height: 6px; }
}
