/* Global Styles */
:root {
    --bg-color: #1e1e1e;
    --text-color: #d4d4d4;
    --accent-color: #3b82f6;
    --python-blue: #306998;
    --python-yellow: #FFD43B;
    --terminal-bg: #1e1e1e;
    --terminal-text: #d4d4d4;
    --keyword: #569cd6;
    --string: #ce9178;
    --function: #dcdcaa;
    --comment: #6a9955;
    --prompt: #3b82f6;
}

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

body {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling in modal/terminal mode */
}

.hidden {
    display: none !important;
}

/* Modal Styles */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #252526;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
}

.python-logo {
    width: 80px;
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--python-yellow);
}

.modal-content p {
    margin-bottom: 2rem;
    color: #ccc;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-yes {
    background-color: var(--python-blue);
    color: white;
}

.btn-yes:hover {
    background-color: #265780;
}

.btn-no {
    background-color: #3c3c3c;
    color: white;
}

.btn-no:hover {
    background-color: #4a4a4a;
}

/* Terminal Styles */
#terminal-app {
    width: 100%;
    height: 100vh;
    padding: 1rem;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.5;
}

.terminal-header {
    margin-bottom: 1rem;
    color: var(--comment);
}

.output-line {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

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

.prompt {
    color: var(--prompt);
    margin-right: 0.5rem;
}

#command-input {
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: inherit;
    font-size: inherit;
    flex-grow: 1;
    outline: none;
    caret-color: var(--accent-color);
}

/* Syntax Highlighting Classes for JS output */
.hl-keyword { color: var(--keyword); }
.hl-string { color: var(--string); }
.hl-function { color: var(--function); }
.hl-comment { color: var(--comment); }
.hl-number { color: #b5cea8; }

/* GUI Styles */
#gui-app {
    height: 100vh;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

/* Reusing some of the previous nice styles for the GUI part but adapting to the new theme */
.gui-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.gui-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--python-blue);
}

.gui-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.gui-links a:hover {
    color: var(--python-yellow);
}

.gui-container {
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 2rem;
}

.gui-section {
    margin-bottom: 4rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.gui-section h2 {
    color: var(--python-yellow);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--python-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.gui-card {
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--python-blue);
}

.gui-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.gui-card .meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gui-hero {
    text-align: center;
    padding: 4rem 0;
}

.gui-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--python-blue), var(--python-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gui-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.skill-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--python-blue);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
