/* OS-like Portfolio Interface */

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

:root {
    --bg-desktop: #f0f0f0;
    --bg-window: #ffffff;
    --bg-taskbar: #e0e0e0;
    --bg-terminal: #0d1117;
    --text-dark: #2d2d2d;
    --text-light: #c9d1d9;
    --text-gray: #666666;
    --border-color: #d0d0d0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.2);
    --accent-blue: #0078d4;
    --terminal-green: #7ee787;
    --terminal-yellow: #d29922;
    --terminal-blue: #58a6ff;
    --terminal-red: #f85149;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: var(--bg-desktop);
}

/* Desktop */
.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.desktop.default-wallpaper {
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 4px 0;
    z-index: 99999;
    min-width: 180px;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: rgba(0, 120, 212, 0.1);
}

.context-menu-item.disabled {
    color: var(--text-gray);
    cursor: not-allowed;
}

.context-menu-item.disabled:hover {
    background: transparent;
}

.context-menu-separator {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Wallpaper Submenu */
.context-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 4px;
    display: none;
    z-index: 10001;
}

.context-menu-item {
    position: relative;
}

.context-menu-item:hover .context-submenu {
    display: block;
}

/* Adjust submenu if it goes off screen */
.context-menu-item:hover .context-submenu.right-edge {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 4px;
}

.wallpaper-option {
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    user-select: none;
}

.wallpaper-option:hover {
    background: rgba(0, 120, 212, 0.1);
}

/* Direct Wallpaper Popup */
.wallpaper-popup {
    position: fixed;
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px;
    z-index: 99999;
    min-width: 250px;
    max-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    pointer-events: all;
}

.wallpaper-popup.show {
    display: block;
}

.wallpaper-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.wallpaper-popup-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    user-select: none;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.wallpaper-popup-item:hover {
    background: rgba(0, 120, 212, 0.1);
}

.wallpaper-popup-item.active {
    background: rgba(0, 120, 212, 0.2);
    font-weight: 500;
}

/* Desktop Icons */
.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    padding: 20px;
    align-content: start;
}

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

.desktop-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.desktop-icon.selected {
    background: rgba(0, 120, 212, 0.1);
}

/* Dark wallpaper - adjust hover and selected states */
.desktop.dark-wallpaper .desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop.dark-wallpaper .desktop-icon.selected {
    background: rgba(0, 120, 212, 0.3);
}

.icon-image {
    font-size: 48px;
    margin-bottom: 8px;
}

.icon-label {
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
    word-break: break-word;
    max-width: 100px;
    transition: color 0.3s ease;
}

/* Dark wallpaper - white text */
.desktop.dark-wallpaper .icon-label {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Light wallpaper - dark text */
.desktop.light-wallpaper .icon-label {
    color: var(--text-dark);
}

/* Windows */
.windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    pointer-events: none;
}

.window {
    position: absolute;
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    z-index: 10;
}

.window.active {
    z-index: 100;
    box-shadow: var(--shadow-hover);
}

.window-header {
    background: var(--bg-taskbar);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
}

.window-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.window-controls button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-controls button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.window-close:hover {
    background: #e81123 !important;
    color: white;
}

.window-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allows flex child to shrink below content size */
}

/* Terminal Window */
.terminal-window {
    width: 700px;
    height: 500px;
    top: 50px;
    left: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.terminal-body {
    background: var(--bg-terminal);
    color: var(--text-light);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    padding: 20px;
    overflow-y: auto;
    cursor: text;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 8px 8px;
}

.terminal-output {
    margin-bottom: 10px;
    flex: 1;
    white-space: pre-wrap;
    overflow-y: auto;
    min-height: 0;
    padding-right: 5px;
}

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

.terminal-output::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.terminal-line {
    margin-bottom: 3px;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-prompt {
    color: var(--terminal-green);
    margin-right: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.terminal-prompt .user {
    color: var(--terminal-blue);
}

.terminal-prompt .host {
    color: var(--terminal-yellow);
}

.terminal-prompt .path {
    color: var(--terminal-blue);
}

.terminal-text {
    color: var(--text-light);
    font-size: 14px;
}

.terminal-command {
    color: var(--text-light);
    font-weight: 400;
    font-size: 14px;
}

.terminal-error {
    color: var(--terminal-red);
}

.terminal-success {
    color: var(--terminal-green);
    font-weight: 400;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 5px;
    position: relative;
    width: 100%;
    flex-wrap: nowrap;
}

.terminal-prompt-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.terminal-input-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
}

.terminal-typed-text {
    color: var(--text-light);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 400;
    white-space: pre;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.5;
}

.terminal-input {
    background: transparent;
    border: none;
    color: transparent;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    caret-color: var(--terminal-green);
    pointer-events: auto;
    z-index: 1000;
    position: relative;
    font-weight: 400;
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 200px;
    line-height: 1.5;
    flex: 1;
}

.terminal-input::selection {
    background: rgba(126, 231, 135, 0.3);
    color: transparent;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--terminal-green);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

.terminal-input::placeholder {
    color: var(--text-gray);
}

/* Content Windows */
.content-window {
    width: 800px;
    height: 600px;
    top: 80px;
    left: 100px;
}

.content-panel {
    color: var(--text-dark);
}

.content-panel h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.content-panel h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.content-panel p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.content-panel ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-panel li {
    margin-bottom: 8px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: var(--bg-desktop);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.skill-category ul {
    list-style: none;
    margin: 0;
}

.skill-category li {
    padding: 5px 0;
    font-size: 14px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--bg-desktop);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tech-tag {
    background: var(--accent-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.project-card p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

/* Experience */
.experience-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-company {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.experience-date {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

/* Education */
.education-content {
    text-align: center;
}

.education-institution {
    font-size: 18px;
    margin-bottom: 5px;
}

.education-period {
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Certifications */
.certifications-list {
    margin-top: 20px;
}

.cert-item {
    margin-bottom: 20px;
}

.cert-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--accent-blue);
}

.cert-item ul {
    list-style: none;
    padding-left: 0;
}

.cert-item li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.cert-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--terminal-green);
    font-weight: bold;
}

/* Contact */
.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-desktop);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-taskbar);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.taskbar-start {
    margin-right: 10px;
}

.taskbar-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taskbar-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 5px;
    align-items: center;
}

.taskbar-app {
    padding: 8px 15px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-dark);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-app:hover {
    background: rgba(0, 0, 0, 0.1);
}

.taskbar-app.active {
    background: rgba(0, 120, 212, 0.2);
    border-bottom: 2px solid var(--accent-blue);
}

.taskbar-time {
    padding: 0 15px;
    font-size: 12px;
    color: var(--text-dark);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-window);
    border-radius: 8px;
    padding: 30px;
    padding-top: 50px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: var(--shadow-hover);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    border-radius: 4px;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    margin-top: 0;
}

.modal-body #modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--text-dark);
}

.modal-tech {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 14px;
}

.modal-highlights {
    margin-bottom: 20px;
}

.modal-highlights ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.modal-highlights li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

.modal-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 18px;
    line-height: 1.4;
}

.modal-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-window);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background: #0063b1;
}

.btn-outline {
    background: transparent;
}


/* Mobile Navigation Bar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-taskbar);
    border-top: 1px solid var(--border-color);
    padding: 8px 4px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    min-height: 70px;
    height: auto;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 50px;
    flex: 1 1 auto;
    max-width: none;
    pointer-events: all;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-nav-btn:active {
    background: rgba(0, 120, 212, 0.1);
    transform: scale(0.95);
}

.mobile-nav-btn.active {
    background: rgba(0, 120, 212, 0.2);
}

.mobile-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

.mobile-nav-btn.active .mobile-nav-label {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:active {
    transform: scale(0.9);
}

.mobile-nav-toggle.active {
    background: var(--terminal-red);
    transform: rotate(90deg);
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.mobile-nav.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Responsive - Mobile View */
@media (max-width: 768px) {
    /* Lock orientation to portrait */
    @media screen and (orientation: landscape) {
        body::before {
            content: 'Please rotate your device to portrait mode';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-desktop);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 600;
            color: var(--text-dark);
            z-index: 99999;
            text-align: center;
            padding: 20px;
        }
    }
    
    body {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide desktop icons and terminal on mobile */
    .desktop-icons {
        display: none !important;
    }
    
    #terminal-icon {
        display: none !important;
    }
    
    .terminal-window {
        display: none !important;
    }
    
    /* Show mobile navigation toggle button */
    .mobile-nav-toggle {
        display: flex !important;
    }
    
    /* Show mobile navigation bar at bottom */
    .mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        pointer-events: all !important;
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .mobile-nav.hidden {
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-nav-btn {
        pointer-events: all !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 120, 212, 0.2);
    }
    
    /* Hide taskbar on mobile */
    .taskbar {
        display: none !important;
    }
    
    /* Adjust window height - JavaScript will handle dynamic height */
    .window {
        transition: height 0.3s ease, bottom 0.3s ease;
        padding-bottom: 20px;
    }
    
    .window[style*="display: none"] {
        pointer-events: none !important;
    }
    
    /* Ensure windows don't block mobile nav when closed */
    .windows-container {
        pointer-events: none;
        transition: height 0.3s ease;
        padding-bottom: 20px;
    }
    
    /* Add bottom spacing for mobile view */
    .desktop {
        padding-bottom: 20px;
    }
    
    body {
        padding-bottom: 20px;
    }
    
    /* Mobile navigation button styling */
    .mobile-nav-btn {
        width: 100%;
    }
    
    /* Windows - Full Screen on Mobile */
    .window {
        min-width: 100vw !important;
        width: 100vw !important;
        min-height: calc(100vh - 50px) !important;
        height: calc(100vh - 50px) !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0;
        margin: 0;
        position: fixed !important;
    }
    
    .window.maximized {
        width: 100vw !important;
        height: calc(100vh - 50px) !important;
    }
    
    .terminal-window {
        width: 100vw !important;
        height: calc(100vh - 50px) !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .content-window {
        width: 100vw !important;
        height: calc(100vh - 50px) !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Window Header - Touch Friendly */
    .window-header {
        padding: 12px;
        min-height: 44px; /* Touch target size */
    }
    
    .window-title {
        font-size: 16px;
    }
    
    .window-controls button {
        width: 32px;
        height: 32px;
        font-size: 18px;
        min-width: 32px; /* Touch target */
    }
    
    /* Window Body - Mobile Padding */
    .window-body {
        padding: 15px;
        padding-bottom: 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Terminal - Mobile Optimized */
    .terminal-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .terminal-input-line {
        font-size: 14px;
    }
    
    /* Content Panels - Mobile */
    .content-panel {
        padding-bottom: 30px;
    }
    
    .content-panel h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .content-panel p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Taskbar - Mobile */
    .taskbar {
        height: 50px;
        padding: 0 8px;
        z-index: 10000;
    }
    
    .taskbar-button {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .taskbar-app {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .taskbar-time {
        font-size: 12px;
        padding: 0 8px;
    }
    
    /* Forms - Mobile */
    .contact-form {
        margin-top: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 44px; /* Touch target */
    }
    
    /* Social Links - Mobile */
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    /* Skills Grid - Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Projects - Mobile */
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Experience/Education - Mobile */
    .timeline-item {
        padding-left: 20px;
    }
    
    /* Context Menu - Mobile */
    .context-menu {
        min-width: 200px;
        max-width: 80vw;
    }
    
    /* Wallpaper Popup - Mobile */
    .wallpaper-popup {
        min-width: 250px;
        max-width: 90vw;
        max-height: 70vh;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
    }
    
    /* Modal - Mobile */
    .modal-content {
        width: 95%;
        padding: 20px;
        padding-top: 50px;
        max-height: 85vh;
    }
    
    /* Hide maximize button functionality on mobile (windows are always fullscreen) */
    .window-maximize {
        display: none;
    }
    
    /* Ensure windows are always visible on mobile */
    .windows-container {
        pointer-events: all;
    }
    
    /* Hide taskbar start button on mobile */
    .taskbar-start {
        display: none;
    }
    
    /* Mobile navigation active state */
    .mobile-nav-btn.active {
        background: var(--accent-blue);
        border-color: var(--accent-blue);
        color: white;
    }
    
    .mobile-nav-btn.active .mobile-nav-label {
        color: white;
    }
}

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

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

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

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