/* style.css */
:root {
    --bg-color: #000;
    --text-color: #00ff00;
    --window-bg: #111;
    --border-color: #333;
    --highlight: #ffff00;
    --scrollbar-track: #222;
    --scrollbar-thumb: #555;
    --scrollbar-thumb-hover: #777;
}

.light-theme {
    --bg-color: #f0f0f0;
    --text-color: #000;
    --window-bg: #fff;
    --border-color: #ccc;
    --highlight: #ff0000;
    --scrollbar-track: #ddd;
    --scrollbar-thumb: #aaa;
    --scrollbar-thumb-hover: #888;
}

body {
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

.ascii-art {
    text-align: left;
    font-size: 14px;
    margin-bottom: 20px;
}

.guide {
    text-align: left;
    font-size: 12px;
    margin-bottom: 20px;
}

.menu {
    text-align: left;
}

.menu-item {
    padding: 10px;
    cursor: pointer;
    width: fit-content;
    box-sizing: border-box;
}

.menu-item.selected {
    background-color: var(--highlight);
    color: var(--bg-color);
}

.window {
    position: absolute;
    top: 100px;
    left: 200px;
    width: 550px;
    height: 400px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: none;
    z-index: 10;
    resize: both;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#about-window {
    width: 552px;
    height: 402px;
}

#terminal-window {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
}

#terminal-window .window-header {
    display: block;
    height: 30px;
    background: var(--border-color);
    padding: 5px 10px;
    cursor: move;
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0 0;
    position: relative;
}

#terminal-window .window-controls {
    display: flex;
    gap: 5px;
    position: absolute;
    left: 10px;
}

#terminal-window .window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#terminal-window .window-body {
    padding: 0;
    height: 100%;
    background: var(--window-bg);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

#terminal-output {
    white-space: pre-wrap;
    line-height: 1.2;
}

#terminal-input {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.window-header {
    background: var(--border-color);
    padding: 5px 10px;
    cursor: move;
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0 0;
    position: relative;
    height: 30px;
}

.window-controls {
    display: flex;
    gap: 5px;
    position: absolute;
    left: 10px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.close-btn {
    background: #ff5f57;
}

.minimize-btn {
    background: #ffbd2e;
}

.maximize-btn {
    background: #28ca42;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.window-body {
    padding: 20px;
    height: calc(100% - 30px);
    overflow-y: auto;
}

#about-window .window-body {
    padding-bottom: 0;
}

#github-window .window-body {
    padding-bottom: 60px;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--window-bg);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    cursor: pointer;
    font-family: inherit;
}

.repos a {
    color: var(--text-color);
    text-decoration: none;
}

.repos a:hover {
    text-decoration: underline;
}

.repos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.repos h4 {
    margin: 20px 0 10px 0;
    font-size: 14px;
    color: var(--text-color);
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: 150px;
    gap: 15px;
}

.skill-item {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-item:last-child {
    grid-column: span 1;
}

.skill-item:hover {
    background: var(--border-color);
    color: var(--window-bg);
}

.skill-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 10px;
    word-break: break-all;
}

.skill-name a {
    color: var(--text-color);
    text-decoration: none;
}

.skill-name a:hover {
    text-decoration: underline;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-color);
    border-radius: 4px;
    transition: width 0.3s;
}

.repo-card {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 250px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    cursor: pointer;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

#repos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 40px;
}

#certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .window {
        width: 90vw !important;
        height: 70vh !important;
        top: 10vh !important;
        left: 5vw !important;
    }
    
    body {
        padding: 10px;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .menu-item {
        padding: 5px;
        font-size: 12px;
    }
}

#projects {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.taskbar-item {
    display: inline-block;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
}

.taskbar-item button {
    margin-left: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 12px;
}

.taskbar-item .close-btn {
    background: #ff5f57;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-left: 5px;
}

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
}