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

body {
    font-family: 'Courier New', 'Courier', 'Lucida Console', monospace;
    background: #000;
    overflow: hidden;
    height: calc(100 * var(--vh));
    width: calc(100 * var(--vw));
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
}

/* Bootup Screen */
.bootup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100 * var(--vw));
    height: calc(100 * var(--vh));
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'MS Sans Serif', sans-serif;
}

.bootup-content {
    text-align: center;
}

.windows-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in;
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.3));
}

.bootup-text {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: bold;
    animation: fadeIn 0.8s ease-in;
}

.bootup-messages {
    font-size: 12px;
    color: #888;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.boot-msg {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Password Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100 * var(--vw));
    height: calc(100 * var(--vh));
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-content {
    text-align: center;
}

.password-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    object-fit: cover;
}

.password-screen h2 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.password-box {
    display: flex;
    gap: 0;
    max-width: 300px;
    margin: 0 auto;
}

.password-box input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #fff;
    border-right: none;
    font-size: 16px;
    font-family: 'MS Sans Serif', sans-serif;
    background: #fff;
}

.password-button {
    padding: 8px 20px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.password-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Desktop Container */
.desktop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100 * var(--vw));
    height: calc(100 * var(--vh));
    background: var(--cloud-wallpaper) no-repeat center center, var(--cloud-fallback);
    background-size: cover;
}

/* Desktop */
.desktop {
    position: relative;
    height: calc(calc(100 * var(--vh)) - 40px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
    background: transparent;
}

/* Desktop Icons */
.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px 8px;
    border: 1px solid transparent;
    width: 85px;
    text-align: center;
    margin-bottom: 10px;
}

.icon:hover {
    background: rgba(0, 0, 128, 0.3);
    border: 1px dotted #fff;
}

.icon-image {
    font-size: 42px;
    margin-bottom: 4px;
    filter: drop-shadow(2px 2px 0px #000);
}

.icon span {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

/* Windows */
.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: calc(90 * var(--vw));
    display: none;
    z-index: 1;
}

.window.active {
    z-index: 100;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: calc(100 * var(--vw)) !important;
    height: calc(calc(100 * var(--vh)) - 40px) !important;
    max-width: calc(100 * var(--vw)) !important;
}

.window.maximized .window-body {
    max-height: calc(calc(100 * var(--vh)) - 100px) !important;
}

.window.maximized .window-body.scrollable {
    max-height: calc(calc(100 * var(--vh)) - 100px) !important;
}

/* Home window tabs fill the maximized window (title bar + toolbar + tabs + status bar ≈ 115px) */
.window.maximized .portfolio-content {
    height: calc(calc(100 * var(--vh)) - 40px - 115px) !important;
    max-height: none !important;
}

/* Spotify embed iframe sizing */
.window.maximized .spotify-embed iframe {
    height: calc(calc(100 * var(--vh)) - 200px) !important;
}

/* Title Bar */
.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    padding: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.title-bar-text {
    color: white;
    font-weight: bold;
    font-size: 13px;
    padding-left: 3px;
    font-family: 'Courier New', monospace;
}

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

.title-bar-controls button {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.title-bar-controls button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Window Body */
.window-body {
    padding: 15px;
    background: #c0c0c0;
    max-height: calc(70 * var(--vh));
    overflow-y: auto;
    overflow-x: hidden;
}

.window-body.scrollable {
    max-height: calc(60 * var(--vh));
    overflow-y: auto;
    overflow-x: hidden;
}

.window-body h2 {
    color: #000080;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.window-body h3 {
    color: #000080;
    margin: 15px 0 10px 0;
    font-size: 16px;
    font-weight: bold;
}

.window-body p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 13px;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-pic {
    font-size: 80px;
    margin: 15px 0;
    background: #ffffff;
    padding: 20px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Project Cards */
.project-card {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 12px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-top: 0;
    font-size: 14px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.skill-item {
    background: #ffffff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
}

/* Contact Links */
.contact-links {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 12px;
}

.contact-item {
    margin-bottom: 12px;
    font-size: 12px;
}

.contact-item a {
    color: #0000ff;
    text-decoration: underline;
    word-break: break-word;
}

/* Buttons */
.win98-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    margin-top: 8px;
}

.win98-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 7px 11px 5px 13px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    display: flex;
    align-items: center;
    padding: 3px;
    z-index: 1000;
}

.start-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 3px;
    height: 34px;
    font-family: 'Courier New', monospace;
}

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

.start-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

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

.taskbar-item {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 34px;
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.taskbar-item.active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.system-tray {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 4px 10px;
    font-size: 13px;
    margin-left: 3px;
    height: 34px;
    font-family: 'Courier New', monospace;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 42px;
    left: 2px;
    width: 200px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    z-index: 1001;
    display: none;
}

.start-menu.show {
    display: block;
}

.start-menu-header {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 8px;
    font-weight: bold;
    font-size: 12px;
}

.start-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-menu-item:hover {
    background: #000080;
    color: white;
}

.start-menu-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.start-menu hr {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    margin: 2px 0;
}

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

::-webkit-scrollbar-track {
    background: #c0c0c0;
}

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

/* Portfolio Window Styles */
.window-large {
    width: 920px;
    max-width: calc(90 * var(--vw));
}

/* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 0;
    background: #c0c0c0;
    padding: 3px 3px 0 3px;
}

.portfolio-tab {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    border-bottom: none;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    top: 2px;
    font-family: 'Courier New', monospace;
}

.portfolio-tab.active {
    background: #d4d0c8;
    border-color: #ffffff #808080 transparent #ffffff;
    font-weight: bold;
    z-index: 1;
}

.portfolio-tab:hover:not(.active) {
    background: #d4d0c8;
}

/* Portfolio Content with Cloud Background */
.portfolio-content {
    background: var(--sky-gradient);
    position: relative;
    overflow-y: auto !important;
    overflow-x: hidden;
    max-height: calc(70 * var(--vh));
}


.portfolio-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 20px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.profile-pic-large {
    font-size: 120px;
    background: #c0c0c0;
    padding: 20px;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

.profile-info h1 {
    color: #000080;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
}

.profile-info h3 {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-info p {
    font-size: 14px;
    color: #666;
}

.section-divider {
    border: none;
    border-top: 2px solid;
    border-color: #808080 #ffffff;
    margin: 20px 0;
}

.portfolio-section {
    margin-bottom: 25px;
}

.portfolio-section h2 {
    color: #000080;
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #c0c0c0;
    font-weight: 700;
}

.experience-item,
.project-item {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 12px;
    margin-bottom: 12px;
}

.experience-item h4,
.project-item h4 {
    color: #000;
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 700;
}

.experience-item .date {
    color: #666;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 8px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.skill-category h4 {
    color: #000;
    font-size: 13px;
    margin-bottom: 10px;
}

.skills-grid-small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* Resume (Home window) */
.profile-pic-large img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.win98-group {
    border: 2px groove #ffffff;
    background: #c0c0c0;
    padding: 8px 12px 10px;
    margin-bottom: 12px;
}

.win98-group legend {
    color: #000080;
    font-weight: 700;
    font-size: 13px;
    padding: 0 4px;
    background: #c0c0c0;
}

.win98-group p {
    margin-bottom: 6px;
}

.win98-group .contact-item a,
.experience-item a {
    color: #0000ff;
    text-decoration: underline;
    word-break: break-word;
}

a.win98-button,
a.win98-button-small {
    display: inline-block;
    color: #000;
    text-decoration: none;
    margin-right: 6px;
}

.resume-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.resume-row h4 {
    margin-bottom: 2px;
}

.resume-meta {
    color: #666;
    font-size: 12px;
}

.resume-list {
    margin: 8px 0 4px 20px;
}

.resume-list li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 13px;
}

.resume-list strong,
.win98-group strong,
.cert-item strong,
.experience-item > p strong {
    color: #000080;
}

.resume-note {
    font-size: 11px;
    font-style: italic;
    color: #333;
}

.cert-item {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.cert-item p {
    margin-bottom: 0;
}

.cert-item .win98-button-small,
.resume-row h4 .win98-button-small {
    margin-top: 0;
    margin-right: 2px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Overview: each resume section is its own Win98 block */
.overview-block {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 1px 1px 0 #000;
    margin-bottom: 16px;
}

.overview-block-title {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 8px;
}

.overview-block-body {
    padding: 10px;
    margin-bottom: 0;
}

.overview-block-body > :last-child {
    margin-bottom: 0;
}

/* Profile header: photo + title on the left, contact on the right */
.profile-contact {
    margin-left: auto;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 10px 14px;
}

.profile-contact .contact-item {
    margin-bottom: 6px;
}

.profile-contact .contact-item:last-child {
    margin-bottom: 0;
}

.profile-contact a {
    color: #0000ff;
    text-decoration: underline;
    word-break: break-word;
}

.contact-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

/* Win98 toolbar (top-right of the Home window) */
.window-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 3px 4px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    box-shadow: 0 1px 0 #ffffff;
}

.toolbar-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.toolbar-button:hover {
    border-color: #ffffff #808080 #808080 #ffffff;
}

.toolbar-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Win98 status bar */
.status-bar {
    display: flex;
    gap: 2px;
    padding: 2px;
    background: #c0c0c0;
}

.status-bar span {
    flex: 1;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win98-button-small {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 10px;
    font-size: 10px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    margin-top: 8px;
}

.win98-button-small:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-icon {
    font-size: 18px;
    text-decoration: none;
    padding: 3px 5px;
    transition: transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.3);
}

.social-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.tray-divider {
    margin: 0 8px;
    color: #808080;
    font-size: 14px;
}

.dogesh-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    position: fixed;
    bottom: 0;
    right: 300px;
    z-index: 1002;
    cursor: pointer;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 4px;
}

.taskbar-item.minimized {
    font-style: italic;
    opacity: 0.7;
}

/* Error Dialog */
.error-window {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100 * var(--vw));
    height: calc(100 * var(--vh));
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s;
}

.error-dialog {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    min-width: 400px;
    max-width: calc(90 * var(--vw));
}

.error-title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    padding: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-title-text {
    color: white;
    font-weight: bold;
    font-size: 11px;
    padding-left: 3px;
}

.error-close {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.error-body {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.error-icon {
    font-size: 48px;
}

.error-message h3 {
    color: #000;
    font-size: 14px;
    margin-bottom: 10px;
}

.error-message p {
    margin-bottom: 8px;
    font-size: 12px;
}

/* My Computer Styles */
.system-info {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 12px;
    margin: 10px 0;
}

.info-item {
    font-size: 11px;
    margin-bottom: 6px;
}

.drives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.drive-item {
    background: #ffffff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 15px;
    text-align: center;
    cursor: pointer;
}

.drive-item:hover {
    background: #000080;
    color: white;
}

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

/* Music/Spotify Styles */
.spotify-embed {
    margin: 15px 0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Videos Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.video-item {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 10px;
    cursor: pointer;
}

.video-item:hover {
    border-color: #000080;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    display: block;
    border: 1px solid #808080;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.8;
    pointer-events: none;
}

.video-item h4 {
    color: #000;
    font-size: 13px;
    margin: 8px 0 4px 0;
}

.video-item p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

/* Paint Window */
.paint-canvas {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 40px;
    margin: 10px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paint-message {
    text-align: center;
}

.paint-message p {
    margin-bottom: 8px;
    font-size: 12px;
}

/* Custom Icon Images */
.icon-image-custom {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 4px;
    filter: drop-shadow(2px 2px 0px #000);
}

/* Game Error Content */
.game-error-content {
    text-align: center;
    padding: 30px 20px;
}

.game-error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.game-error-content h3 {
    color: #000080;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.game-error-content p {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.game-error-content p strong {
    color: #cc0000;
}

.game-error-content button {
    margin-top: 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    html:not(.letterbox) .desktop {
        grid-template-columns: repeat(auto-fill, 70px);
        grid-auto-rows: 70px;
        gap: 15px;
        padding: 15px 10px;
    }

    html:not(.letterbox) .icon {
        width: 70px;
    }

    html:not(.letterbox) .icon-image {
        font-size: 28px;
    }

    html:not(.letterbox) .window {
        min-width: 280px;
        max-width: calc(95 * var(--vw));
        font-size: 14px;
    }

    html:not(.letterbox) .window-body {
        padding: 12px;
        max-height: calc(60 * var(--vh));
    }

    html:not(.letterbox) .window-body.scrollable {
        max-height: calc(50 * var(--vh));
    }

    html:not(.letterbox) .profile-pic {
        font-size: 60px;
        padding: 15px;
    }

    html:not(.letterbox) .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }

    html:not(.letterbox) .skill-item {
        font-size: 10px;
        padding: 6px;
    }

    html:not(.letterbox) .start-text {
        display: none;
    }

    html:not(.letterbox) .taskbar {
        height: 36px;
    }

    html:not(.letterbox) .desktop {
        height: calc(calc(100 * var(--vh)) - 36px);
    }

    html:not(.letterbox) .window.maximized {
        height: calc(calc(100 * var(--vh)) - 36px) !important;
    }

    html:not(.letterbox) .start-menu {
        bottom: 38px;
        width: 180px;
    }

    html:not(.letterbox) .project-card {
        padding: 10px;
    }

    html:not(.letterbox) .project-card h3 {
        font-size: 13px;
    }

    html:not(.letterbox) .project-card p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    html:not(.letterbox) .desktop {
        grid-template-columns: repeat(3, 70px);
        justify-content: center;
    }

    html:not(.letterbox) .window {
        min-width: 260px;
    }

    html:not(.letterbox) .window-body h2 {
        font-size: 16px;
    }

    html:not(.letterbox) .contact-item {
        font-size: 11px;
    }

    html:not(.letterbox) .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch support for mobile */
@media (hover: none) {
    .icon:hover {
        background: transparent;
        border: 2px solid transparent;
    }

    .icon:active {
        background: rgba(0, 0, 128, 0.3);
        border: 2px dotted #fff;
    }
}

/* ===== Skills section: same sidebar + card layout as Experience (exp-* classes) ===== */
.exp-card .skill-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px !important;
}

.skill-card-title img {
    width: 22px;
    height: 22px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.chip,
.sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1.5px solid #bdbdbd;
    border-radius: 10px;
    color: #333;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.chip {
    padding: 5px 11px 5px 8px;
    font-size: 13px;
}

.chip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sub-chip {
    padding: 3px 9px 3px 6px;
    font-size: 12px;
    color: #555;
}

.sub-chip img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.chip:hover,
.sub-chip:hover {
    transform: translate(-1px, -1px);
    border-color: #111;
    box-shadow: 2px 2px 0 #111;
    color: #111;
}

/* A parent skill with its parenthetical sub-skills, e.g. AWS (S3, Lambda, ...) */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: #f7f6f2;
    border: 1.5px dashed #cfcfcf;
    border-radius: 12px;
}

.chip.certified {
    background: #fff7d1;
    border-color: #e0b400;
}

.cert-star {
    color: #b8860b;
    font-weight: 700;
    margin-left: -2px;
}

.skills-legend {
    display: inline-block;
    margin: 0 !important;
    padding: 5px 12px;
    font-size: 12px !important;
    color: #333;
    background: rgba(247, 246, 242, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

/* ===== Experience section: sidebar + bold cards on clouds ===== */
.exp-showcase {
    padding: 24px !important;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    background: var(--cloud-wallpaper) center / cover no-repeat, var(--cloud-fallback);
}

.exp-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
}

.exp-sidebar {
    position: sticky;
    top: 0;
    padding: 20px 16px;
    border-radius: 16px;
    background: rgba(247, 246, 242, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.exp-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
}

.exp-eyebrow::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #cfcfcf;
}

.exp-title {
    margin: 12px 0 18px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #111;
}

.exp-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    font-family: inherit;
    color: #6b6b6b;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.exp-nav-item:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.04);
}

.exp-nav-item.active {
    color: #111;
    background: #ebe9e3;
    border-color: #111;
    box-shadow: 3px 3px 0 #111;
}

.exp-dot {
    flex: none;
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border: 2px solid #777;
    border-radius: 50%;
}

.exp-nav-item.active .exp-dot {
    background: #f5c518;
    border-color: #111;
}

.exp-nav-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.exp-nav-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.exp-nav-meta {
    font-size: 12px;
}

.exp-card {
    margin-bottom: 26px;
    padding: 22px 26px;
    background: #ffffff;
    border: 2px solid #111;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #111;
    scroll-margin-top: 8px;
}

.exp-card:last-child {
    margin-bottom: 6px;
}

.exp-card-meta {
    font-size: 13px;
    color: #777;
}

.exp-card-meta strong {
    color: #111;
    font-weight: 600;
}

.exp-company {
    margin: 8px 0 2px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111 !important;
    letter-spacing: -0.01em;
}

.exp-role {
    margin-bottom: 14px;
    font-size: 14px;
    color: #555;
}

.exp-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exp-points li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #4a4a4a;
}

.exp-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: #f5c518;
    border: 2px solid #111;
}

.exp-points strong {
    color: #111;
    font-weight: 700;
}

.exp-tools-label {
    margin: 16px 0 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #777;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-tag {
    padding: 5px 11px;
    font-size: 12.5px;
    color: #333;
    background: #fff;
    border: 1.5px solid #bdbdbd;
    border-radius: 10px;
}

@media (max-width: 900px) {
    html:not(.letterbox) .exp-layout {
        grid-template-columns: 1fr;
    }

    html:not(.letterbox) .exp-sidebar {
        position: static;
    }
}

/* ===== Projects section: full-width cards (no sidebar) with a screenshot carousel ===== */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 18px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    background: #fff;
    border: 2px solid #111;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #111;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.project-link.primary {
    background: #f5c518;
}

.project-link img {
    width: 16px;
    height: 16px;
}

.project-link:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #111;
}

.project-link:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.carousel {
    container-type: inline-size;
    outline: none;
    margin-bottom: 22px;
}

/* Project demo video (Google Drive embed), framed like the gallery */
.project-video {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 22px;
    overflow: hidden;
    background: #000;
    border: 1.5px solid #e2e0da;
    border-radius: 14px;
}

.project-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.carousel-stage {
    position: relative;
    height: 40cqw;
    min-height: 220px;
    max-height: 520px;
    overflow: hidden;
    background: #f7f6f2;
    border: 1.5px solid #e2e0da;
    border-radius: 14px;
}

.carousel:focus-visible .carousel-stage {
    box-shadow: 0 0 0 3px #f5c518;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 54%;
    height: 86%;
    margin: 0;
    overflow: hidden;
    background: #0b0f19;
    border: 2px solid #111;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transform: translate(-50%, -50%) scale(0.6);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, box-shadow 0.45s ease;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Centre slide: full size and highlighted */
.carousel-slide.is-active {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    cursor: zoom-in;
    box-shadow: 6px 6px 0 #111;
    transform: translate(-50%, -50%) scale(1);
}

/* Neighbours peek out on either side, smaller and faded */
.carousel-slide.is-prev,
.carousel-slide.is-next {
    z-index: 2;
    opacity: 0.55;
    pointer-events: auto;
}

.carousel-slide.is-prev {
    transform: translate(-106%, -50%) scale(0.74);
}

.carousel-slide.is-next {
    transform: translate(6%, -50%) scale(0.74);
}

.carousel-slide.is-prev:hover,
.carousel-slide.is-next:hover {
    opacity: 0.85;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    border: 2px solid #111;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #111;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.1s ease;
}

.carousel-arrow.prev {
    left: 12px;
}

.carousel-arrow.next {
    right: 12px;
}

.carousel-arrow:hover {
    background: #f5c518;
}

.carousel-arrow:active {
    box-shadow: 1px 1px 0 #111;
    transform: translate(2px, calc(-50% + 2px));
}

.carousel-arrow img {
    width: 20px;
    height: 20px;
}

.carousel-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 12px;
}

.carousel-caption {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.carousel-counter {
    font-size: 12.5px;
    color: #777;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.carousel-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: #fff;
    border: 2px solid #111;
    cursor: pointer;
}

.carousel-dot.active {
    background: #f5c518;
}

/* ===== Certifications / Education / Languages: same card style ===== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.showcase-grid .exp-card {
    margin-bottom: 0;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cert-card-issuer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #777;
}

.cert-card-issuer img {
    width: 16px;
    height: 16px;
}

.exp-card .cert-card-name {
    flex: 1;
    margin: 10px 0 16px !important;
    font-size: 17px !important;
    line-height: 1.35;
}

.exp-card .edu-title,
.exp-card .lang-card-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-title img,
.lang-card-name img {
    width: 22px;
    height: 22px;
}

.lang-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.exp-card .lang-card-name {
    margin: 0 !important;
}

.lang-level {
    padding: 4px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    background: #f5c518;
    border: 2px solid #111;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #111;
}

.lang-detail {
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: #4a4a4a;
}

/* Education: college profile card (campus banner + logo as profile picture) */
.exp-card.edu-profile {
    padding: 0;
    overflow: hidden;
}

.edu-banner {
    aspect-ratio: 3 / 1;
    max-height: 260px;
    width: 100%;
    border-bottom: 2px solid #111;
}

.edu-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.edu-profile-body {
    padding: 0 26px 22px;
}

.edu-profile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.edu-logo {
    width: 112px;
    height: 112px;
    margin-top: -56px;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border: 3px solid #111;
    border-radius: 50%;
    box-shadow: 4px 4px 0 #111;
}

.edu-location {
    margin-bottom: 4px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    background: #f7f6f2;
    border: 1.5px solid #bdbdbd;
    border-radius: 999px;
}

.edu-profile .exp-company {
    margin-top: 0 !important;
}

/* Social profile icons (Home header + Contact window) */
.social-label {
    margin: 10px 0 6px;
    font-size: 11px;
    color: #000080;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

.social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-btn:hover {
    background: #d4d0c8;
}

.social-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Contact window shows the Home profile header */
#contact {
    width: 880px;
}

.contact-profile .portfolio-header {
    margin: 12px 0 4px;
}

/* Profile header: pronouns badge and LinkedIn-style headline */
.pronouns {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    color: #000;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

.profile-info {
    flex: 1;
    min-width: 260px;
}

.profile-info .profile-headline {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

/* Portfolio folder: its own column, top row, right of My Computer
   (desktop padding 10px + icon width 85px + gap 10px) */
.icon.icon-column-2 {
    position: absolute;
    top: 10px;
    left: 105px;
}

.taskbar-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    object-fit: contain;
    flex: none;
}

/* Employee ID badge (Overview): hangs from the tab bar on a lanyard, replaces the photo, name and headline there */
#tab-overview .profile-pic-large,
#tab-overview .profile-info,
#tab-overview .profile-contact .contact-location,
#tab-overview .profile-contact .social-label {
    display: none;
}

/* Overview header: badge on the left, intro text with the social icons underneath on the right */
#tab-overview .portfolio-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 28px;
    row-gap: 14px;
    align-items: start;
}

#tab-overview .id-badge-stage {
    grid-row: span 2;
}

/* Email and phone side by side, social icons on their own line underneath */
#tab-overview .profile-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
}

#tab-overview .profile-contact .contact-item {
    margin: 0;
}

#tab-overview .profile-contact .contact-email {
    order: 1;
}

#tab-overview .profile-contact .contact-phone {
    order: 2;
}

#tab-overview .profile-contact a {
    color: #1f2328;
    text-decoration: none;
}

#tab-overview .profile-contact a:hover {
    color: #1f5fae;
    text-decoration: underline;
}

#tab-overview .social-row {
    order: 3;
    flex-basis: 100%;
    flex-wrap: nowrap;
}

.overview-letter {
    font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2328;
}

.overview-letter p {
    margin: 0 0 12px;
}

.overview-letter p:last-child {
    margin-bottom: 0;
}

.overview-letter a {
    color: #1f5fae;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.id-badge-stage {
    --id-navy: #14306a;
    --id-blue: #1f5fae;
    --id-yellow: #e7b12d;
    --id-muted: #8a93a6;
    position: relative;
    flex: none;
    align-self: flex-start;
    width: 220px;
    height: 372px;
    /* Reach up through the header and tab padding so the strap starts at the tab bar */
    margin: -37px 0 -20px;
    perspective: 900px;
}

.id-badge-strap {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 44px);
    width: 16px;
    /* Runs up past the top of the tab, where the scroll area clips it */
    height: 300px;
    margin-left: -8px;
    background: linear-gradient(90deg, #142f66 0%, #2c55a3 25%, #1f4489 60%, #142f66 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.id-badge {
    position: absolute;
    top: 44px;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    transform-origin: 50% 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.id-badge.dragging {
    cursor: grabbing;
}

/* Metal swivel clip from strap into the card slot */
.id-badge-clip {
    position: relative;
    z-index: 2;
    height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.id-clip-ring {
    width: 18px;
    height: 12px;
    border: 3px solid #b9bec6;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.3);
}

.id-clip-bar {
    width: 26px;
    height: 20px;
    margin-top: -2px;
    border-radius: 3px 3px 6px 6px;
    background: linear-gradient(90deg, #8c929b, #eef0f3 35%, #b4b9c1 65%, #7d838c);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.id-badge-card {
    position: relative;
    width: 200px;
    height: 300px;
    margin-top: -6px;
    transform-style: preserve-3d;
}

.id-face {
    position: absolute;
    inset: 0;
    padding: 26px 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(0, 0, 0, 0.08);
    font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
    color: var(--id-navy);
}

.id-slot {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 36px;
    height: 8px;
    margin-left: -18px;
    border-radius: 4px;
    background: #d6dbe2;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.id-logo {
    position: absolute;
    top: 8px;
    left: 12px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
    color: var(--id-blue);
    border: 1.5px solid var(--id-blue);
    border-radius: 3px;
}

.id-name {
    margin-top: 12px;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.id-role {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--id-blue);
}

.id-rule {
    height: 2px;
    margin: 12px 0 14px;
    background: linear-gradient(90deg, var(--id-navy) 0 40%, #dfe3ea 40%);
}

.id-details {
    display: flex;
    gap: 12px;
}

.id-photo {
    width: 74px;
    height: 90px;
    flex: none;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
}

.id-fields {
    margin: 0;
}

.id-fields dt {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--id-muted);
}

.id-fields dd {
    margin: 1px 0 7px;
    font-size: 11px;
    font-weight: 600;
}

.id-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    display: flex;
}

.id-band-number {
    flex: 0 0 42%;
    padding: 12px 12px 0;
    background: var(--id-yellow);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.id-band-number span {
    display: block;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
}

.id-band-code {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--id-blue);
}

.id-barcode {
    width: 84px;
    height: 28px;
    background: repeating-linear-gradient(90deg,
        #ffffff 0 2px, transparent 2px 4px,
        #ffffff 4px 5px, transparent 5px 8px,
        #ffffff 8px 11px, transparent 11px 13px);
}

@media (max-width: 600px) {
    html:not(.letterbox) #tab-overview .portfolio-header {
        grid-template-columns: 1fr;
    }

    html:not(.letterbox) #tab-overview .id-badge-stage {
        grid-row: auto;
    }

    html:not(.letterbox) .id-badge-stage {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Light / dark theme: swaps the cloud wallpaper (desktop, Portfolio and Projects sections) */
:root {
    --cloud-wallpaper: url('custom-icons/win98 only clouds wallpaper.png');
    --cloud-fallback: #6fb3e8;
    --sky-gradient: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 50%, #FFE4B5 100%);
}

:root[data-theme="dark"] {
    --cloud-wallpaper: url('custom-icons/win98 clouds wallpaper dark.jpg');
    --cloud-fallback: #0f2552;
    --sky-gradient: linear-gradient(to bottom, #0b1a3d 0%, #16305f 50%, #223a6b 100%);
}

/* Theme switch, top-right of the desktop */
.theme-switch {
    position: fixed;
    top: 10px;
    right: 10px;
    /* Part of the desktop: above the wallpaper and icons, below every window */
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: pointer;
}

.theme-switch:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.theme-switch-track {
    position: relative;
    width: 34px;
    height: 16px;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.theme-switch-knob {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 10px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    transition: left 0.15s ease;
}

:root[data-theme="dark"] .theme-switch-track {
    background: #000080;
}

:root[data-theme="dark"] .theme-switch-knob {
    left: 15px;
}

/* ===== Phones: desktop notice, rotate prompt, then the site in a scaled 1024x576 frame ===== */

/* Screen-size units used across the site; on phones they measure the 1024x576 frame instead */
:root {
    --vw: 1vw;
    --vh: 1vh;
}

html.letterbox {
    --vw: 10.24px;
    --vh: 5.76px;
}

/* Normal layout: the frame wrapper doesn't exist as far as layout is concerned */
#stage {
    display: contents;
}

html.letterbox,
html.letterbox body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
    overscroll-behavior: none;
}

/* Pin the page to the screen so the 1024px frame can't make the browser zoom out or pan */
html.letterbox body {
    position: fixed;
    inset: 0;
    /* body's own size uses --vw/--vh (the frame); here it must be the real screen */
    width: auto;
    height: auto;
    touch-action: manipulation;
}

/* The whole site renders at 1024x576, scaled so its height fills the screen and centred
   with black on the sides (offset and scale set by fitStage() in script.js).
   The transform also makes position: fixed children (taskbar, windows) stick to the frame. */
html.letterbox #stage {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1024px;
    height: 576px;
    overflow: hidden;
    transform-origin: 0 0;
    transform: translate(var(--stage-x, 0px), var(--stage-y, 0px)) scale(var(--stage-scale, 1));
}

/* Phone frame: the desktop is too short for one icon column, so icons wrap into a second.
   Put Portfolio back in the flow right after GTA Vice City (instead of pinned at the top of
   column 2, where Vice City lands), followed by Road Rash */
html.letterbox .icon.icon-column-2 {
    position: static;
    order: 1;
}

html.letterbox .icon[data-window="road-rash"] {
    order: 2;
}

/* Until the visitor taps Continue, phones only see the notice */
html.is-phone:not(.letterbox) #stage {
    display: none;
}

.phone-gate,
.rotate-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--cloud-wallpaper) center / cover no-repeat, var(--cloud-fallback);
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

html.is-phone:not(.letterbox) .phone-gate {
    display: flex;
}

@media (orientation: portrait) {
    html.letterbox .rotate-screen {
        display: flex;
    }
}

.phone-dialog {
    width: 100%;
    max-width: 340px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 0 #000;
}

.phone-dialog .title-bar-text {
    padding: 2px 4px;
}

.phone-dialog-body {
    padding: 16px 14px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #000;
}

.phone-dialog-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.phone-dialog-icon {
    flex: none;
    font-size: 32px;
    line-height: 1;
}

.phone-dialog-body p {
    margin: 0 0 8px;
}

.phone-dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.phone-dialog-buttons .win98-button {
    padding: 8px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    color: #000;
}

.phone-dialog-buttons .primary {
    font-weight: bold;
    outline: 1px dotted #000;
    outline-offset: -5px;
}

/* Rotate prompt: a phone outline that tips over to landscape */
.rotate-phone {
    width: 46px;
    height: 78px;
    margin: 4px auto 14px;
    border: 4px solid #000080;
    border-radius: 8px;
    position: relative;
    animation: rotate-phone 2.4s ease-in-out infinite;
}

.rotate-phone::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 10px;
    height: 3px;
    margin-left: -5px;
    border-radius: 2px;
    background: #000080;
}

@keyframes rotate-phone {
    0%, 20% { transform: rotate(0deg); }
    50%, 80% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

.rotate-screen .phone-dialog-body {
    text-align: center;
}
