* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }

        body {
            font-family: 'Roboto', sans-serif;
            overflow: hidden;
            height: 100vh;
            background-color: #0a0a0a;
        }

        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #0a0a0a;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-in-out;
        }

        .logo-text {
            font-size: 4rem;
            font-weight: 700;
            color: white;
            margin-bottom: 2rem;
            letter-spacing: 3px;
        }

        .loading-bar-container {
            width: 300px;
            height: 6px;
            background-color: #222;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .loading-bar {
            height: 100%;
            width: 0;
            display: flex;
        }

        .loading-segment {
            height: 100%;
            flex-grow: 1;
        }

        .segment-1 {
            background-color: #ff5252;
        }

        .segment-2 {
            background-color: #4285f4;
        }

        .segment-3 {
            background-color: #ffca28;
        }

        .loading-text {
            color: #aaa;
            font-size: 0.9rem;
        }        #desktop {
            height: 100vh;
            background-size: cover;
            background-position: center;
            background-image: url('images/backgrounds/mountain-bg.jpg');
            position: relative;
            overflow: hidden;
        }

        #taskbar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background-color: rgba(10, 10, 10, 0.8);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            padding: 0 15px;
            z-index: 100;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        #start-btn {
            height: 30px;
            width: 30px;
            border-radius: 4px;
            background: linear-gradient(135deg, #ff5252, #4285f4, #ffca28);
            margin-right: 10px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: white;
            transition: all 0.2s;
        }

        #start-btn:hover {
            transform: scale(1.1);
        }

        #taskbar-apps {
            display: flex;
            height: 100%;
            align-items: center;
            flex: 1;
        }

        .taskbar-app {
            height: 30px;
            min-width: 160px;
            margin-right: 5px;
            border-radius: 4px;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            padding: 0 10px;
            cursor: pointer;
            transition: background-color 0.2s;
            color: white;
        }

        .taskbar-app:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .taskbar-app.active {
            background-color: rgba(255, 255, 255, 0.25);
            box-shadow: inset 0 2px 0 #4285f4;
        }

        .taskbar-app i {
            margin-right: 8px;
        }

        #taskbar-right {
            display: flex;
            align-items: center;
        }

        #time-display {
            color: white;
            font-size: 0.85rem;
            text-align: center;
            padding: 0 15px;
        }

        .desktop-icon {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 80px;
            padding: 10px;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.2s;
        }

        .desktop-icon:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .icon-bg {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 5px;
        }

        .icon-name {
            color: white;
            font-size: 0.75rem;
            text-align: center;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
        }

        .window {
            position: absolute;
            min-width: 300px;
            min-height: 200px;
            background-color: rgba(30, 30, 30, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .window-header {
            height: 32px;
            background-color: rgba(60, 60, 60, 0.8);
            display: flex;
            align-items: center;
            padding: 0 10px;
            cursor: move;
        }

        .window-title {
            flex: 1;
            color: white;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .window-controls {
            display: flex;
            align-items: center;
            flex-shrink: 0; /* Prevent shrinking */
        }

        .window-btn {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            margin-left: 4px; /* Slightly reduced margin */
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 10px;
            font-weight: bold;
            color: rgba(0,0,0,0.8); /* Ensured dark text for visibility */
            line-height: 18px; /* Explicit line height for centering text */
        }

        .minimize-btn {
            background-color: #ffca28;
        }

        .close-btn {
            background-color: #ff5252;
        }

        .window-content {
            flex: 1;
            padding: 15px;
            color: #ddd;
            overflow: auto;
        }

        #calculator-window .window-content {
            padding: 6px;
        }

        .start-menu {
            position: absolute;
            bottom: 40px;
            left: 0;
            width: 300px;
            background-color: rgba(30, 30, 30, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: none;
        }

        .start-menu-header {
            padding: 20px;
            background: linear-gradient(135deg, rgba(255, 82, 82, 0.2), rgba(66, 133, 244, 0.2), rgba(255, 202, 40, 0.2));
            display: flex;
            align-items: center;
        }

        .start-logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #ff5252, #4285f4, #ffca28);
            border-radius: 8px;
            margin-right: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: white;
        }

        .start-menu-title {
            color: white;
            font-size: 1.5rem;
            font-weight: 500;
        }

        .start-menu-items {
            padding: 10px;
        }

        .start-menu-item {
            display: flex;
            align-items: center;
            padding: 10px;
            color: white;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .start-menu-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .start-menu-item i {
            width: 24px;
            margin-right: 10px;
            text-align: center;
        }

        .right-click-menu {
            position: absolute;
            width: 200px;
            background-color: rgba(30, 30, 30, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 6px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: none;
        }

        .context-menu-item {
            padding: 8px 15px;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .context-menu-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .context-menu-item i {
            width: 20px;
            margin-right: 10px;
            text-align: center;
        }

        .separator {
            height: 1px;
            background-color: rgba(255, 255, 255, 0.1);
            margin: 5px 0;
        }

        /* Portfolio window specific */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .gallery-item {
            height: 150px;
            background-color: #333;
            border-radius: 4px;
            overflow: hidden;
            transition: transform 0.2s;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Contact form specific */
        .contact-form {
            display: flex;
            flex-direction: column;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #aaa;
            font-size: 0.9rem;
        }

        .form-control {
            width: 100%;
            padding: 8px;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            color: white;
            font-family: inherit;
        }

        .form-control:focus {
            outline: none;
            border-color: #4285f4;
        }

        .btn {
            padding: 8px 16px;
            background: linear-gradient(135deg, #ff5252, #4285f4);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .btn:hover {
            transform: translateY(-2px);
        }

        /* Apps window specific */
        .apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
        }

        .app-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px;
            cursor: pointer;
            border-radius: 8px;
            transition: background-color 0.2s;
        }

        .app-icon:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .app-icon-bg {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 8px;
        }

        .app-name {
            color: white;
            font-size: 0.8rem;
            text-align: center;
        }

        /* Animations */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        /* Image Modal Styles */
        .modal {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 1001; /* Sit on top */
            padding-top: 100px; /* Location of the box */
            left: 0;
            top: 0;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgb(0,0,0); /* Fallback color */
            background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
        }

        .modal-content {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
        }

        #caption {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 150px;
        }

        .modal-content, #caption {
            animation-name: zoom;
            animation-duration: 0.6s;
        }

        @keyframes zoom {
            from {transform:scale(0)}
            to {transform:scale(1)}
        }

        .modal-close-btn {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
        }

        .modal-close-btn:hover,
        .modal-close-btn:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }

        /* Add cursor pointer to gallery images */
        .gallery-item img {
            cursor: pointer;
        }

        /* Notes Styles */
        .notes-textarea {
            width: 100%;
            height: calc(100% - 80px);
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: white;
            font-family: 'Roboto', sans-serif;
            padding: 15px;
            resize: none;
            outline: none;
            font-size: 16px;
        }
        
        .notes-textarea:focus {
            border-color: #4285f4;
            box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
        }
        
        .notes-textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        #form-status {
            padding: 10px;
            border-radius: 4px;
            margin-top: 10px;
            width: 100%;
            text-align: center;
            font-weight: 500;
        }

        .text-green-500 {
            color: #10B981;
            background-color: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .text-red-500 {
            color: #EF4444;
            background-color: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .mt-3 {
            margin-top: 0.75rem;
        }

        #shutdown-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: background-color 1s ease-in-out;
            color: white;
            font-size: 24px;
        }

        #shutdown-overlay .logo-text {
            animation: pulseFade 2s infinite;
        }

        #shutdown-overlay p {
            margin-top: 20px;
            opacity: 0.8;
            font-weight: 300;
        }

        @keyframes pulseFade {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }

        /* Printing Services Styles */
        .print-service {
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .print-service:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        #request-quote-btn {
            background-color: #9C27B0;
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.2s;
        }

        #request-quote-btn:hover {
            background-color: #7B1FA2;
        }
        
        /* Calendar Styles */
        .calendar-controls {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;
        }
        
        .calendar-nav-btn {
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .calendar-nav-btn:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
        
        .calendar-container {
            margin-top: 16px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 10px;
        }
        
        .calendar-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: #ddd;
        }
        
        .calendar-cell {
            height: 40px;
            padding: 4px;
            position: relative;
            color: #ddd;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }
        
        .calendar-cell:not(.empty-cell):hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        
        .day-number {
            font-size: 0.9rem;
            margin-bottom: 2px;
        }
        
        .calendar-cell.today {
            background-color: rgba(66, 133, 244, 0.2);
            border-radius: 4px;
            font-weight: bold;
        }
        
        .calendar-cell.selected {
            background-color: rgba(66, 133, 244, 0.4);
            border-radius: 4px;
        }
        
        .empty-cell {
            background-color: transparent;
            cursor: default;
        }
        
        .event-indicator {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-top: 2px;
        }
        
        .events-container {
            max-height: 150px;
            overflow-y: auto;
        }
        
        .event-item {
            border-left: 3px solid rgba(66, 133, 244, 0.7);
        }
        
        .event-item:hover {
            background-color: rgba(255, 255, 255, 0.15);
        }
        
        #add-event-btn {
            background-color: #0F9D58;
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.2s;
        }
        
        #add-event-btn:hover {
            background-color: #0b8043;
        }

        /* Calculator Styles */        
        .calculator-content {
            display: flex;
            justify-content: center;
            align-items: stretch;
            padding: 8px;
            height: 100%;
        }        
        .calculator-container {
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 12px;
            width: 100%;
            height: 100%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-sizing: border-box;
        }
        .calculator-display-container {
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 6px;
            margin-bottom: 10px;
            padding: 10px 15px 12px;
            text-align: right;
        }
        .calculator-expression {
            font-family: 'Roboto', sans-serif;
            font-size: 14px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.7);
            min-height: 16px;
            margin-bottom: 4px;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
        }
              
        .calculator-display {
            font-family: 'Roboto', sans-serif;
            font-size: 26px;
            font-weight: 500;
            color: white;
            min-height: 32px;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-top: 4px;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
        }        
        .calculator-buttons {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
            justify-content: space-between;
        }
          
        .calculator-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 2px;
        }
          
        .calc-btn {
            border: none;
            background-color: rgba(255, 255, 255, 0.15);
            color: white;
            font-size: 20px;
            font-weight: 500;
            border-radius: 6px;
            padding: 10px 5px;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.1s;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .calc-btn:hover {
            background-color: rgba(255, 255, 255, 0.25);
        }
        
        .calc-btn:active {
            transform: scale(0.95);
        }
        
        .calc-btn-operator {
            background-color: rgba(255, 193, 7, 0.5);
        }
        
        .calc-btn-operator:hover {
            background-color: rgba(255, 193, 7, 0.7);
        }
        
        .calc-btn-equals {
            background-color: rgba(66, 133, 244, 0.7);
        }
        
        .calc-btn-equals:hover {
            background-color: rgba(66, 133, 244, 0.9);
        }
        
        .calc-btn-clear {
            background-color: rgba(255, 82, 82, 0.7);
        }
        
        .calc-btn-clear:hover {
            background-color: rgba(255, 82, 82, 0.9);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            /* General Adjustments */
            body {
                font-size: 14px; /* Adjust base font size for mobile */
                /* Prevent horizontal scroll on mobile if not desired */
                overflow-x: hidden;
            }

            .logo-text {
                font-size: 2.5rem;
            }

            /* Taskbar */
            #taskbar {
                height: 50px; /* Slightly taller for touch targets */
                padding: 0 10px;
            }

            #start-btn {
                height: 35px;
                width: 35px;
                margin-right: 8px;
            }

            .taskbar-app {
                min-width: auto; /* Allow icons to shrink */
                padding: 0 8px;
                flex-shrink: 1; /* Allow items to shrink */
            }
            .taskbar-app span { /* Hide text in taskbar apps on mobile */
                display: none;
            }
            .taskbar-app i {
                margin-right: 0; /* Remove margin if only icon is shown */
            }


            #time-display {
                font-size: 0.8rem;
                padding: 0 10px;
            }

            /* Desktop Icons */
            #desktop {
                /* Enable flexbox for icon layout on mobile */
                display: flex;
                flex-direction: column; /* Stack icons vertically */
                align-items: flex-start; /* Align to the left */
                padding-top: 10px; /* Add some padding at the top */
                padding-left: 10px; /* Add some padding to the left */
                overflow-y: auto; /* Allow vertical scrolling for icons if they overflow */
            }

            .desktop-icon {
                position: relative; /* Change from absolute to relative for flex layout */
                width: 70px;
                padding: 5px;
                margin-bottom: 10px; /* Add margin between icons */
                /* Remove top/left positioning as flexbox will handle it */
                top: auto !important;
                left: auto !important;
            }
            .icon-bg {
                width: 35px;
                height: 35px;
            }
            .icon-name {
                font-size: 0.7rem;
            }

            /* Windows */
            .window {
                min-width: 95%;
                width: 95% !important; /* Ensure windows take up most of the screen */
                min-height: auto; /* Adjust min-height as needed */
                height: auto; /* Let content define height, or set a specific mobile height */
                max-height: 80vh; /* Limit max height */
                left: 2.5% !important; /* Center them */
                top: 5% !important; 
                display: flex; /* Ensure flex properties apply */
                flex-direction: column;
            }

            .window-header {
                height: 30px;
                padding: 0 8px;
            }
            .window-title {
                font-size: 0.85rem;
            }
            .window-btn {
                width: 20px; /* Slightly larger for touch */
                height: 20px;
                font-size: 10px;
                margin-left: 6px;
            }
            .window-content {
                padding: 10px;
                flex-grow: 1; /* Allow content to take available space */
                overflow-y: auto; /* Ensure content scrolls if it overflows */
            }

            /* Start Menu */
            .start-menu {
                width: 90%;
                left: 5%;
                bottom: 55px; /* Above taller taskbar */
            }
            .start-menu-header {
                padding: 15px;
            }
            .start-logo {
                width: 35px;
                height: 35px;
                margin-right: 10px;
            }
            .start-menu-title {
                font-size: 1.2rem;
            }
            .start-menu-items {
                padding: 8px;
            }
            .start-menu-item {
                padding: 8px;
            }
             .start-menu-item i {
                width: 20px;
                margin-right: 8px;
            }

            /* Portfolio Gallery */
            .gallery {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Smaller items */
                gap: 10px;
            }
            .gallery-item {
                height: 120px;
            }

            /* Apps Grid */
            .apps-grid {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Smaller app icons */
                gap: 10px;
            }
            .app-icon {
                padding: 8px;
            }
            .app-icon-bg {
                width: 40px;
                height: 40px;
                margin-bottom: 5px;
            }
            .app-name {
                font-size: 0.75rem;
            }

            /* Modal */
            .modal-content {
                width: 90%;
                max-width: 90%; /* Allow it to be wider on mobile */
            }
            #caption {
                width: 90%;
                max-width: 90%;
                height: auto; /* Adjust height dynamically */
                padding-bottom: 20px;
            }
            .modal-close-btn {
                font-size: 30px;
                top: 10px;
                right: 20px;
            }
            .modal {
                padding-top: 60px;
            }

            /* Contact Form */
            .form-control {
                padding: 10px; /* Easier to tap */
            }
            .btn {
                padding: 10px 18px; /* Easier to tap */
            }

            /* Calculator responsive adjustments */
            .calculator-content {
                padding: 6px;
            }
            
            .calculator-container {
                padding: 12px;
            }
            
            .calculator-display-container {
                padding: 8px 12px 10px;
                margin-bottom: 8px;
            }
            
            .calculator-buttons {
                grid-gap: 6px;
            }
            
            .calculator-row {
                gap: 6px;
                margin-bottom: 1px;
            }
            
            .calc-btn {
                height: 40px;
                font-size: 18px;
                padding: 8px 3px;
            }
        }

        /* Responsive Design for very small screens */
        @media (max-width: 320px) {
            .logo-text {
                font-size: 1.8rem;
            }
            
            .loading-bar-container {
                width: 240px;
            }

            #taskbar {
                height: 55px; /* Even taller for very small screens */
            }

            .taskbar-app {
                min-width: auto; /* Icon only essentially */
                padding: 0 5px;
                margin-right: 3px;
            }
            
            .taskbar-app span { /* Ensure text is hidden */
                display: none;
            }
            
            .taskbar-app i {
                font-size: 0.9rem;
                margin-right: 0;
            }

            #time-display {
                font-size: 0.7rem;
                padding: 0 5px;
            }

            /* Desktop icons for very small screens */
            #desktop {
                padding-top: 5px;
                padding-left: 5px;
            }

            .desktop-icon {
                width: 60px;
                padding: 3px;
                margin-bottom: 5px;
            }
            
            .icon-bg {
                width: 30px;
                height: 30px;
            }
            
            .icon-bg i {
                font-size: 0.8em;
            }
            
            .icon-name {
                font-size: 0.6rem;
            }

            /* Windows for very small screens */
            .window {
                min-width: 100%;
                width: 100% !important; /* Force full width */
                height: calc(100% - 55px) !important; /* Full height minus taskbar */
                max-height: calc(100% - 55px);
                left: 0 !important;
                top: 0 !important;
                border-radius: 0; /* Full screen window */
                border: none;
            }

            .window-header {
                height: 36px; /* Increase height for better touch targets */
                padding: 0 8px;
            }

            .window-title {
                font-size: 0.8rem;
                max-width: calc(100% - 60px); /* Limit title width to ensure buttons are visible */
            }

            .window-controls {
                display: flex;
                align-items: center;
                flex-shrink: 0; /* Prevent shrinking */
            }

            .window-btn {
                width: 22px; /* Larger buttons for touch */
                height: 22px;
                border-radius: 50%;
                margin-left: 5px; /* Adjust margin */
                font-size: 12px;
                font-weight: bold;
                display: flex !important; /* Ensure buttons are visible */
                justify-content: center;
                align-items: center; 
                color: rgba(0,0,0,0.9); /* Darker text for better visibility */
            }

            .minimize-btn {
                background-color: #ffca28;
            }

            .close-btn {
                background-color: #ff5252;
            }

            .start-menu {
                width: 100%;
                left: 0;
                bottom: 55px;
                border-radius: 0;
            }
            
            .start-menu-header {
                padding: 12px;
            }
            
            .start-logo {
                width: 30px;
                height: 30px;
            }
            
            .start-menu-title {
                font-size: 1.1rem;
            }

            .portfolio-section h3 {
                font-size: 0.95rem;
                display: flex;
                align-items: center;
                margin-top: 15px;
            }
            
            .portfolio-section h3 i {
                font-size: 0.9em;
            }
            
            /* Force 2 columns exactly for gallery on 320px */
            .gallery {
                display: grid;
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 6px;
                margin-top: 8px;
            }
            
            .gallery-item {
                height: 90px;
            }

            /* Adjust apps grid for very small screens */
            .apps-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 5px;
            }
            
            .app-icon {
                padding: 5px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
            }
            
            .app-icon-bg {
                width: 32px;
                height: 32px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            
            .app-icon-bg i {
                font-size: 0.9rem;
                width: auto;
                height: auto;
            }
            
            /* Special handling for SocialConnect icon at small screen */
            .app-icon-bg img {
                width: 65%;
                height: 65%;
                object-fit: contain;
                display: block;
                margin: auto;
            }
            
            /* Fix for longer app names at small screen size */
            .app-name {
                font-size: 0.65rem;
                margin-top: 4px;
                text-align: center;
                width: 100%;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* Modal adjustments */
            .modal {
                padding-top: 15px;
            }
            
            .modal-content {
                width: 95%;
                max-width: 95%;
            }
            
            .modal-close-btn {
                font-size: 24px;
                top: 5px;
                right: 10px;
            }

            /* Content adjustments */
            .window-content {
                padding: 8px;
            }
            
            .window-content h2 {
                font-size: 1rem;
                margin-bottom: 5px;
            }
            
            .window-content p, .window-content .form-group label {
                font-size: 0.8rem;
            }
            
            /* Form controls for better touch experience */
            .form-control {
                padding: 12px 8px;
                margin-bottom: 5px;
            }
            
            .form-group {
                margin-bottom: 10px;
            }
            
            .btn {
                padding: 12px;
                width: 100%;
            }

            /* Calculator responsive adjustments */
            .calculator-content {
                padding: 6px;
            }
            
            .calculator-container {
                padding: 12px;
            }
            
            .calculator-display-container {
                padding: 8px 12px 10px;
                margin-bottom: 8px;
            }
            
            .calculator-buttons {
                grid-gap: 6px;
            }
            
            .calculator-row {
                gap: 6px;
                margin-bottom: 1px;
            }
            
            .calc-btn {
                height: 40px;
                font-size: 18px;
                padding: 8px 3px;
            }
        }
