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

body {
    font-family: 'MS Sans Serif', 'Tahoma', 'Verdana', sans-serif;
    background: #008080;
    overflow: hidden;
    height: 100vh;
    user-select: none;
    transition: background 0.3s ease;
}

/* Light Mode */
body.light-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Desktop */
#desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(45deg, #008080 25%, #009999 25%, #009999 50%, #008080 50%, #008080 75%, #009999 75%, #009999);
    background-size: 20px 20px;
    transition: background 0.3s ease;
    background-image: url('assets/wallpapers/dark-mode.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.light-mode #desktop {
    background-image: url('assets/wallpapers/light-mode.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #2a2a2a;
    border-top: 2px solid #444444;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1000;
    transition: background 0.3s ease;
}

body.light-mode #taskbar {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
}

.start-button {
    background: linear-gradient(to bottom, #444444 0%, #2a2a2a 50%, #1a1a1a 100%);
    border: 2px solid;
    border-color: #555555 #1a1a1a #1a1a1a #555555;
    padding: 4px 12px;
    margin-right: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
}

.start-button:active {
    border-color: #1a1a1a #555555 #555555 #1a1a1a;
}

body.light-mode .start-button {
    background: linear-gradient(to bottom, #ffffff 0%, #c0c0c0 50%, #808080 100%);
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000000;
}

body.light-mode .start-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.taskbar-items {
    display: flex;
    gap: 2px;
    flex: 1;
}

.taskbar-item {
    background: #2a2a2a;
    border: 2px solid;
    border-color: #444444 #1a1a1a #1a1a1a #444444;
    padding: 4px 8px;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    font-size: 11px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.taskbar-item.active {
    border-color: #1a1a1a #444444 #444444 #1a1a1a;
    background: #444444;
}

body.light-mode .taskbar-item {
    background: #c0c0c0;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000000;
}

body.light-mode .taskbar-item.active {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #ffffff;
}

.system-tray {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    transition: color 0.3s ease;
}

body.light-mode .system-tray {
    color: #000000;
}

.theme-toggle {
    background: #2a2a2a;
    border: 2px solid;
    border-color: #444444 #1a1a1a #1a1a1a #444444;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #444444;
}

.theme-toggle:active {
    border-color: #1a1a1a #444444 #444444 #1a1a1a;
}

body.light-mode .theme-toggle {
    background: #c0c0c0;
    border-color: #ffffff #808080 #808080 #ffffff;
}

body.light-mode .theme-toggle:hover {
    background: #d0d0d0;
}

/* Windows */
.window {
    position: absolute;
    background: #2a2a2a;
    border: 2px solid;
    border-color: #444444 #1a1a1a #1a1a1a #444444;
    min-width: 300px;
    min-height: 200px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    will-change: transform;
}

body.light-mode .window {
    background: #c0c0c0;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.window.dragging {
    transition: none;
    transform: scale(1.02);
    opacity: 0.9;
}

.window.minimized {
    display: none;
}

.window-header {
    background: linear-gradient(to right, #1a1a1a, #2a2a2a);
    color: #ffffff;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
    font-size: 11px;
    transition: background 0.3s ease;
}

body.light-mode .window-header {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
}

.window-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control {
    width: 16px;
    height: 14px;
    background: #2a2a2a;
    border: 1px solid;
    border-color: #444444 #1a1a1a #1a1a1a #444444;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.control:active {
    border-color: #1a1a1a #444444 #444444 #1a1a1a;
}

body.light-mode .control {
    background: #c0c0c0;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000000;
}

body.light-mode .control:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.window-content {
    padding: 8px;
    height: calc(100% - 20px);
    overflow: auto;
    font-size: 11px;
    color: #ffffff;
    transition: color 0.3s ease;
}

body.light-mode .window-content {
    color: #000000;
}

/* Terminal */
.terminal {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    height: 100%;
    padding: 8px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

body.light-mode .terminal {
    background: #f8f8f8;
    color: #006600;
    border: 1px solid #cccccc;
}

.terminal-output {
    margin-bottom: 8px;
}

.terminal-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
}

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

.prompt {
    color: #00ff00;
    margin-right: 4px;
}

body.light-mode .prompt {
    color: #006600;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    outline: none;
    flex: 1;
}

body.light-mode .terminal-input {
    color: #006600;
}

/* Glitch effect */
@keyframes glitch {
    0%, 100% { text-shadow: 2px 0 #ff0000, -2px 0 #00ffff; }
    25% { text-shadow: -2px 0 #ff0000, 2px 0 #00ffff; }
    50% { text-shadow: 2px 0 #00ffff, -2px 0 #ff0000; }
    75% { text-shadow: -2px 0 #00ffff, 2px 0 #ff0000; }
}

.glitch {
    animation: glitch 0.3s infinite;
}

/* About Content */
.about-content h2 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 16px;
    transition: color 0.3s ease;
}

body.light-mode .about-content h2 {
    color: #000080;
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.4;
}

.stats {
    display: flex;
    gap: 16px;
}

.stat {
    text-align: center;
    border: 2px solid;
    border-color: #1a1a1a #444444 #444444 #1a1a1a;
    padding: 8px;
    background: #1a1a1a;
    flex: 1;
    transition: all 0.3s ease;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #00ff00;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 10px;
    color: #cccccc;
    transition: color 0.3s ease;
}

body.light-mode .stat {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #ffffff;
}

body.light-mode .stat-number {
    color: #000080;
}

body.light-mode .stat-label {
    color: #666666;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 2px solid;
    border-color: #1a1a1a #444444 #444444 #1a1a1a;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: #00ff00;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: bold;
    color: #ffffff;
    transition: color 0.3s ease;
}

.member-role {
    font-size: 10px;
    color: #cccccc;
    transition: color 0.3s ease;
}

.member-skills {
    font-size: 9px;
    color: #999999;
    margin-top: 2px;
    transition: color 0.3s ease;
}

body.light-mode .team-member {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #ffffff;
}

body.light-mode .member-avatar {
    background: #000080;
    color: white;
}

body.light-mode .member-name {
    color: #000080;
}

body.light-mode .member-role {
    color: #666666;
}

body.light-mode .member-skills {
    color: #333333;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 2px solid;
    border-color: #1a1a1a #444444 #444444 #1a1a1a;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.project-icon {
    font-size: 20px;
    margin-right: 12px;
}

.project-details {
    flex: 1;
}

.project-name {
    font-weight: bold;
    color: #ffffff;
    transition: color 0.3s ease;
}

.project-desc {
    font-size: 10px;
    color: #cccccc;
    transition: color 0.3s ease;
}

body.light-mode .project-item {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #ffffff;
}

body.light-mode .project-name {
    color: #000080;
}

body.light-mode .project-desc {
    color: #666666;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 64px;
    padding: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed #ffffff;
}

.desktop-icon.selected {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #ffffff;
}

body.light-mode .desktop-icon:hover {
    background: rgba(0, 0, 128, 0.2);
    border: 1px dashed #ffffff;
}

body.light-mode .desktop-icon.selected {
    background: rgba(0, 0, 128, 0.4);
    border: 1px solid #ffffff;
}

.icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.desktop-icon span {
    font-size: 11px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

body.light-mode .desktop-icon span {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

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

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #808080;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

/* Matrix rain effect */
@keyframes matrix-rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff00;
    animation: matrix-rain linear infinite;
}
