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

body {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.desktop-mode {
    display: block;
    padding: 0;
}

body.desktop-mode .terminal {
    display: none;
}

.terminal {
    width: 100%;
    max-width: 1200px;
    background: #252526;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 20px auto;
}

.terminal-header {
    background: #2d2d30;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #3e3e42;
    position: relative;
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: #cccccc;
    font-size: 13px;
    flex: 1;
    margin-right: 50px;
}

.terminal-body {
    padding: 25px;
    min-height: 500px;
    max-height: 85vh;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.9;
}

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

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

.terminal-body::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #4e4e52;
}

.output {
    margin-bottom: 15px;
}

.line {
    margin-bottom: 5px;
}

.prompt {
    color: #4ec9b0;
    margin-right: 5px;
}

.command {
    color: #dcdcaa;
    margin-left: 10px;
}

.response {
    color: #ce9178;
    margin-left: 25px;
    white-space: pre-wrap;
    margin-top: 5px;
}

.response strong {
    color: #569cd6;
    font-weight: normal;
}

.response a {
    color: #4ec9b0;
    text-decoration: none;
}

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

.typing {
    color: #dcdcaa;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #d4d4d4;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.skill-tag {
    display: inline-block;
    background: #3e3e42;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 3px;
    color: #d4d4d4;
    font-size: 12px;
}

.json-key {
    color: #9cdcfe;
}

.json-string {
    color: #ce9178;
}

.json-number {
    color: #b5cea8;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
    margin-left: 10px;
}

.command-input {
    background: transparent;
    border: none;
    outline: none;
    color: #dcdcaa;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    width: 100%;
    caret-color: #d4d4d4;
}

.command-input::placeholder {
    color: #6e6e6e;
    opacity: 0.7;
}


.welcome-message {
    animation: fade-out 8s forwards;
}

@keyframes fade-out {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0.3; }
}

.command-link {
    color: #4ec9b0;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dotted #4ec9b0;
    transition: all 0.2s;
}

.command-link:hover {
    color: #dcdcaa;
    border-bottom-color: #dcdcaa;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
        align-items: flex-start;
    }
    
    .terminal {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .terminal-header {
        padding: 8px 12px;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .terminal-body {
        padding: 12px;
        font-size: 13px;
        line-height: 1.7;
        max-height: calc(100vh - 50px);
        min-height: auto;
    }
    
    .response {
        margin-left: 10px;
        font-size: 12px;
    }
    
    .prompt {
        font-size: 12px;
    }
    
    .command {
        font-size: 12px;
    }
    
    .command-input {
        font-size: 16px;
    }
    
    .command-link {
        font-size: 12px;
    }
    
    .input-wrapper {
        margin-left: 5px;
    }
    
    .input-line {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .terminal-body {
        padding-bottom: 50px;
    }
}

/* Desktop Toggle Button */
.desktop-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(78, 201, 176, 0.15);
    color: #4ec9b0;
    border: 1px solid rgba(78, 201, 176, 0.3);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
}

.desktop-toggle:hover {
    background: rgba(78, 201, 176, 0.25);
    border-color: #4ec9b0;
    color: #5ed9c0;
    transform: translateY(-50%) scale(1.05);
}

.desktop-icon-symbol {
    font-size: 14px;
    line-height: 1;
}

.desktop-toggle-text {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Ubuntu Desktop */
.ubuntu-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    z-index: 50;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    height: 40px;
    background: rgba(45, 45, 48, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
    position: relative;
    isolation: isolate;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-launcher {
    background: transparent;
    border: none;
    color: #d4d4d4;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.app-launcher:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4ec9b0;
}

.top-bar-title {
    color: #d4d4d4;
    font-size: 13px;
}

.top-bar-center {
    flex: 1;
    text-align: center;
}

.time {
    color: #d4d4d4;
    font-size: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-toggle {
    background: rgba(78, 201, 176, 0.15);
    border: 1px solid rgba(78, 201, 176, 0.3);
    color: #4ec9b0;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
}

.terminal-toggle:hover {
    background: rgba(78, 201, 176, 0.25);
    border-color: #4ec9b0;
    color: #5ed9c0;
    transform: scale(1.05);
}

.terminal-icon-symbol {
    font-size: 14px;
    line-height: 1;
}

.terminal-toggle-text {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Desktop Area */
.desktop-area {
    flex: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 30px;
    align-content: start;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.desktop-icon.selected {
    background: rgba(78, 201, 176, 0.2);
}

.icon-image {
    font-size: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.icon-image.pdf-icon {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-image.pdf-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.icon-label {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dock */
.dock {
    height: 60px;
    background: rgba(45, 45, 48, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 200;
    isolation: isolate;
}

.dock-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 24px;
}

.dock-item svg {
    width: 24px;
    height: 24px;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px) scale(1.2);
}

.dock-item.active {
    background: rgba(78, 201, 176, 0.3);
    border: 2px solid #4ec9b0;
}

/* App Menu */
.app-menu {
    position: fixed;
    top: 50px;
    left: 10px;
    background: rgba(45, 45, 48, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 250;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

.menu-item {
    padding: 12px 15px;
    color: #d4d4d4;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(78, 201, 176, 0.2);
    color: #4ec9b0;
}

/* Window */
.window-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
}

.window-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 149;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.window-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.window-backdrop.active ~ .desktop-window {
    pointer-events: all;
}

.desktop-window {
    position: absolute;
    width: 750px;
    max-width: 90vw;
    height: 550px;
    max-height: 85vh;
    background: linear-gradient(135deg, #252526 0%, #1e1e1e 100%);
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(78, 201, 176, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    pointer-events: all;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: windowOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(78, 201, 176, 0.15);
    z-index: 151;
    user-select: none;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85) translateY(-20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
        filter: blur(0);
    }
}

.window-header {
    background: linear-gradient(135deg, #2d2d30 0%, #252526 100%);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    cursor: move;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.window-title {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-close {
    background: rgba(255, 95, 86, 0.1);
    border: 1px solid rgba(255, 95, 86, 0.2);
    color: #ff5f56;
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: bold;
    line-height: 1;
}

.window-close:hover {
    background: #ff5f56;
    color: #fff;
    border-color: #ff5f56;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 95, 86, 0.4);
}

.window-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    color: #d4d4d4;
    line-height: 1.9;
    font-size: 14px;
    background: rgba(30, 30, 30, 0.3);
}

.window-body a {
    color: #4ec9b0;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 3px;
}

.window-body a:hover {
    color: #5ed9c0;
    background: rgba(78, 201, 176, 0.1);
    text-decoration-color: #5ed9c0;
}

.window-body strong {
    color: #e0e0e0;
    font-weight: 600;
}

.window-body::-webkit-scrollbar {
    width: 10px;
}

.window-body::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 5px;
}

.window-body::-webkit-scrollbar-thumb {
    background: rgba(78, 201, 176, 0.3);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.window-body::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 201, 176, 0.5);
    background-clip: padding-box;
}

@media (max-width: 768px) {
    .desktop-toggle {
        padding: 5px 8px;
        right: 12px;
    }
    
    .desktop-icon-symbol {
        font-size: 12px;
    }
    
    .desktop-toggle-text {
        font-size: 10px;
    }
    
    .terminal-toggle {
        padding: 5px 8px;
    }
    
    .terminal-icon-symbol {
        font-size: 12px;
    }
    
    .terminal-toggle-text {
        font-size: 10px;
    }
    
    .terminal-title {
        margin-right: 80px;
        font-size: 10px;
    }
    
    .desktop-area {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 20px;
        padding: 20px;
    }
    
    .icon-image {
        font-size: 36px;
    }
    
    .icon-label {
        font-size: 11px;
    }
    
    .dock {
        height: 50px;
        gap: 8px;
    }
    
    .dock-item {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .desktop-window {
        width: 95vw;
        height: 85vh;
    }
}

