@font-face {
    font-family: 'VGA';
    src: url('assets/vga.ttf') format('truetype');
}

/* CSS Variables for Consistency */
:root {
    --primary-bg: #008080; /* Teal */
    --window-bg: #c0c0c0; /* Silver */
    --highlight-bg: #d0d0d0; /* Light silver */
    --border-light: #ffffff; /* White */
    --border-dark: #000000; /* Black */
    --title-bar-start: #000080; /* Navy */
    --title-bar-end: #1084d0; /* Light blue */
    --text-dark: #000000; /* Black */
    --text-light: #ffffff; /* White */
    --link-color: #000080; /* Navy link */
    --hover-color: #ff00ff; /* Magenta hover */
    --shadow-light: #dfdfdf;
    --shadow-dark: #808080;
    --icon-size: 36px;
    --taskbar-height: 48px;
    --window-width: 800px;
    --window-height: 500px;
}

body {
    background-color: var(--primary-bg);
    font-family: 'VGA', 'MS Sans Serif', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    color: var(--text-dark);
    cursor: default;
}

html {
    scrollbar-color: var(--shadow-dark) var(--window-bg);
    scrollbar-width: auto;
}

* {
    box-sizing: border-box;
}

.window-body,
.menu-items,
.taskbar-items {
    scrollbar-color: var(--shadow-dark) var(--window-bg);
    scrollbar-width: auto;
}

.window-body::-webkit-scrollbar,
.menu-items::-webkit-scrollbar,
.taskbar-items::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.window-body::-webkit-scrollbar-track,
.menu-items::-webkit-scrollbar-track,
.taskbar-items::-webkit-scrollbar-track {
    background: var(--window-bg);
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: inset 1px 1px 0 var(--shadow-light);
}

.window-body::-webkit-scrollbar-thumb,
.menu-items::-webkit-scrollbar-thumb,
.taskbar-items::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--highlight-bg), var(--window-bg));
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    border-radius: 0;
    min-height: 28px;
}

.window-body::-webkit-scrollbar-corner,
.menu-items::-webkit-scrollbar-corner,
.taskbar-items::-webkit-scrollbar-corner {
    background: var(--window-bg);
}

.window-body::-webkit-scrollbar-button,
.menu-items::-webkit-scrollbar-button,
.taskbar-items::-webkit-scrollbar-button {
    display: block;
    width: 16px;
    height: 16px;
    background: linear-gradient(to bottom, var(--highlight-bg), var(--window-bg));
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    border-radius: 0;
}

.desktop {
    position: relative;
    height: 100%;
    width: 100%;
    background: url('images/bg1.jpg') no-repeat center center;
    background-size: contain; /* Fit entire image without zooming */
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.05), rgba(0,0,0,0.05) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 1000;
    animation: flicker 5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeOut 1s forwards 0.5s;
}

@keyframes fadeOut {
    to { opacity: 0; display: none; }
}

.loading-text {
    font-size: 16px;
    color: var(--text-light);
    text-shadow: 1px 1px var(--text-dark);
}

/* Desktop Icons */
.icon-grid {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 240px;
    max-height: calc(100vh - var(--taskbar-height) - 20px);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px 18px;
    z-index: 1;
}

.desktop-icon {
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    width: 92px;
    transition: transform 0.2s ease-in-out;
}

button.desktop-icon {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.desktop-icon:hover {
    transform: translateY(-2px);
}

.desktop-icon span {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    text-shadow: 1px 1px 0 var(--text-dark);
}

.icon-image {
    width: var(--icon-size);
    height: var(--icon-size);
    background-size: cover;
    background-color: transparent;
    margin: 0 auto;
    transform: perspective(500px) translateZ(0);
    transition: transform 0.3s ease-in-out;
}

.desktop-icon:hover .icon-image {
    transform: perspective(500px) translateZ(10px);
}

.home-icon { background-image: url('images/home-icon.png'); }
.discography-icon { background-image: url('images/discography-icon.png'); }
.gallery-icon { background-image: url('images/gallery-icon.png'); }
.contact-icon { background-image: url('images/contact-icon.png'); }
.live-icon { background-image: url('images/live-icon.png'); }
.store-icon { background-image: url('images/store-icon.png'); }
.bandcamp-icon { background-image: url('images/bandcamp-icon.png'); }
.spotify-icon { background-image: url('images/spotify.png'); }
.bandcodes-icon { background-image: url('images/bandcodes-icon.png'); }
.sleevenote-icon { background-image: url('images/sleevenote-icon.png'); }
.skifree-icon { background-image: url('images/skifree.png'); }

.portfolio-shortcut-icon {
    position: relative;
    background: linear-gradient(to bottom, #f7df9c 0 42%, #c7922a 42% 100%);
    border: 1px solid #000000;
    box-shadow:
        inset 1px 1px 0 #fff7cf,
        inset -1px -1px 0 #8b5d10;
}

.portfolio-shortcut-icon::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 6px;
    width: 18px;
    height: 14px;
    background: #ffffff;
    border: 1px solid #000080;
    box-shadow: inset 1px 1px 0 #ffffff;
}

.portfolio-shortcut-icon::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 10px;
    width: 10px;
    height: 2px;
    background: #000080;
    box-shadow: 0 4px 0 #1084d0;
}

.fullscreen-icon {
    position: relative;
    background:
        linear-gradient(to bottom, #e8e8e8 0 55%, #c0c0c0 55% 100%);
    border: 1px solid #000000;
    box-shadow:
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080;
}

.fullscreen-icon::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 22px;
    height: 16px;
    border: 2px solid #000080;
    box-shadow: inset 0 0 0 1px #ffffff;
}

.fullscreen-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 14px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #000080;
    border-right: 2px solid #000080;
}

.desktop-icon:active .icon-image {
    border: 1px dotted var(--text-light);
}

/* Window Styles */
.window {
    background-color: var(--window-bg);
    border: 2px solid var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    box-shadow: 2px 2px 0 var(--border-dark);
    position: absolute;
    width: var(--window-width);
    height: var(--window-height);
    min-width: 200px;
    min-height: 150px;
    z-index: 10;
    resize: both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease-in-out, opacity 0.2s ease-in-out;
}

.window.maximized {
    top: 0 !important;
    left: 90px !important;
    width: calc(100% - 100px) !important;
    height: calc(100vh - var(--taskbar-height)) !important;
    border-width: 2px !important;
    box-shadow: none !important;
    resize: none !important;
}

.window.active {
    z-index: 50;
    transform: scale(1.01);
}

.bio-window {
    top: 50px;
    left: 120px;
    opacity: 0;
    transform: translateY(-20px);
    animation: window-open 0.3s forwards;
}

.gallery-window {
    width: min(780px, calc(100vw - 170px));
    height: calc(100vh - var(--taskbar-height) - 76px);
    max-height: calc(100vh - var(--taskbar-height) - 76px);
}

.news-window {
    top: 100px;
    left: 300px; /* Shifted right to avoid overlap */
    width: 520px;
    height: 500px;
    opacity: 0;
    transform: translateY(-20px);
    animation: window-open 0.3s forwards;
}

.gig-window {
    top: 140px;
    left: 930px;
    width: 330px;
    height: 470px;
    opacity: 0;
    transform: translateY(-20px);
    animation: window-open 0.3s forwards 0.15s;
}

.portfolio-window {
    top: 118px;
    left: 700px;
    width: 420px;
    height: 430px;
}

.skifree-window {
    width: var(--window-width);
    height: var(--window-height);
    min-width: 300px;
    min-height: 200px;
    top: 50px; /* Consistent with bio-window */
    left: 120px; /* Consistent with bio-window */
}

@keyframes window-open {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-bar {
    background: linear-gradient(to right, var(--title-bar-start), var(--title-bar-end));
    color: var(--text-light);
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    flex: 0 0 auto;
}

.title-bar-text {
    font-size: 14px;
    font-weight: bold;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    background-color: var(--window-bg);
    border: 1px solid var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    cursor: pointer;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    padding: 0;
    transition: background-color 0.2s ease-in-out;
}

.title-bar-controls button:hover {
    background-color: var(--highlight-bg);
}

.title-bar-controls button:active {
    border-style: inset;
}

.window-body {
    padding: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

h1 {
    font-size: 20px;
    margin: 0 0 8px;
}

h2 {
    font-size: 16px;
    margin: 12px 0 8px;
}

p {
    font-size: 14px;
    line-height: 1.4;
}

p a, .news-link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

p a:hover, .news-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Tables (Discography, Concerts) */
.discography-table, .concert-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--highlight-bg);
    border: 1px solid var(--border-dark);
    box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--shadow-dark);
}

.discography-table th, .discography-table td,
.concert-table th, .concert-table td {
    padding: 6px;
    font-size: 14px;
    border: 1px solid var(--shadow-dark);
    text-align: left;
}

.discography-table th, .concert-table th {
    background: linear-gradient(to bottom right, var(--title-bar-start), #0000c0);
    color: var(--text-light);
    text-shadow: 1px 1px 0 var(--text-dark);
}

.discography-table td a, .concert-table td a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.discography-table td a:hover, .concert-table td a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.discography-table tr:nth-child(even), .concert-table tr:nth-child(even) {
    background-color: #e0e0e0;
}

.discography-table tr:hover, .concert-table tr:hover {
    background-color: #ffffcc;
}

.discography-table .divider, .concert-table .divider {
    background: linear-gradient(to bottom right, var(--shadow-dark), #a0a0a0);
    color: var(--text-light);
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 0 var(--text-dark);
    padding: 4px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    background-color: var(--window-bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    box-shadow: inset 0 1px 0 var(--shadow-light), inset 0 -1px 0 var(--shadow-dark);
    z-index: 100;
    animation: flicker 10s infinite;
}

.start-button {
    background: url('assets/win98-logo.png') no-repeat 6px center, linear-gradient(to bottom, #c0c0c0, #e0e0e0);
    background-size: 22px;
    border: 2px outset var(--border-light);
    padding: 1px 8px 1px 34px;
    font-size: 12px;
    cursor: pointer;
    height: calc(var(--taskbar-height) - 8px);
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.start-button:hover {
    background: url('assets/win98-logo.png') no-repeat 6px center, linear-gradient(to bottom, #d0d0d0, #f0f0f0);
    background-size: 22px;
}

.start-button:active {
    border-style: inset;
}

.start-text {
    font-size: 12px;
    color: var(--text-dark);
}

.menu-dropdown {
    display: none;
    position: absolute;
    bottom: var(--taskbar-height);
    left: 0;
    width: 180px;
    background-color: var(--window-bg);
    border: 1px solid var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    box-shadow: 2px 2px 0 var(--shadow-dark);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    z-index: 99;
    overflow: hidden;
}

.menu-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu-dropdown::before {
    content: "Robert Farrugia";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background-color: var(--title-bar-start);
    color: var(--text-light);
    font-size: 9px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    border-right: 1px solid var(--border-dark);
}

.menu-items {
    margin-left: 30px;
    padding: 2px 0;
}

.menu-items a, .menu-items button {
    display: flex;
    align-items: center;
    color: var(--link-color);
    text-decoration: none;
    padding: 3px 6px;
    font-size: 12px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border: none;
    background: none;
    width: 100%;
    max-width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-items a:hover, .menu-items button:hover {
    background-color: var(--title-bar-start);
    color: var(--text-light);
}

.taskbar-items {
    flex-grow: 1;
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.taskbar-item {
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    padding: 2px 8px;
    font-size: 12px;
    color: var(--link-color);
    cursor: pointer;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.taskbar-item:hover {
    background-color: var(--title-bar-start);
    color: var(--text-light);
}

.taskbar-item.active {
    border-style: inset;
    background-color: var(--highlight-bg);
}

.taskbar-clock {
    font-size: 12px;
    padding: 2px 4px;
    background-color: var(--window-bg);
    border: 1px solid var(--shadow-dark);
    border-right-color: var(--border-light);
    border-bottom-color: var(--border-light);
    box-shadow: inset 1px 1px 0 var(--shadow-light);
}

/* Bandcamp Player */
.bandcamp-player {
    margin-top: 20px;
    padding: 10px;
    background-color: var(--highlight-bg);
    border: 1px solid var(--shadow-dark);
    box-shadow: inset 1px 1px 0 var(--border-light);
}

.bandcamp-player iframe {
    width: 100%;
    height: 120px;
    border: 0;
}

.bandcamp-fallback {
    color: #ff0000;
    font-weight: bold;
}

/* Simplified Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 10px;
}

.gallery-window .gallery-container {
    height: 100%;
}

.gallery-image {
    width: 100%;
    max-width: 100%;
    max-height: 52vh;
    min-height: 260px;
    object-fit: contain;
    border: 2px solid var(--border-dark);
    box-shadow: 2px 2px 0 var(--shadow-dark);
    margin-bottom: 10px;
    background-color: #111111;
}

.gallery-caption {
    font-size: 14px;
    color: var(--text-dark);
    text-align: left;
    background-color: var(--border-light);
    padding: 8px 10px;
    border: 1px solid var(--shadow-dark);
    width: 100%;
    margin-bottom: 10px;
}

.gallery-credit {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.gallery-credit a {
    color: var(--link-color);
}

.gallery-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-controls button {
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.gallery-controls button:hover {
    background-color: var(--highlight-bg);
}

.gallery-controls button:active {
    border-style: inset;
}

.gallery-controls button:disabled {
    color: var(--shadow-dark);
    cursor: default;
}

.gallery-archive {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
    min-height: 100%;
}

.gallery-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-event {
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    padding: 8px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-dark);
}

.gallery-event.active {
    border-style: inset;
    background-color: #d8d8d8;
}

.skifree-mobile-launch {
    display: none;
}

.gallery-event-title {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}

.gallery-event-meta {
    display: block;
    font-size: 11px;
    line-height: 1.3;
}

.gallery-stage {
    min-width: 0;
}

.gallery-stage-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-stage-header h2 {
    margin: 0 0 4px;
}

.gallery-stage-header p {
    margin: 0;
}

.gallery-counter {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--shadow-dark);
    background-color: var(--border-light);
    box-shadow: inset 1px 1px 0 var(--border-light);
    font-size: 12px;
}

.gallery-filmstrip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 8px;
}

.filmstrip-thumb {
    padding: 3px;
    border: 2px outset var(--border-light);
    background-color: var(--window-bg);
    cursor: pointer;
    aspect-ratio: 1;
}

.filmstrip-thumb.active {
    border-style: inset;
    background-color: #d8d8d8;
}

.filmstrip-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--shadow-dark);
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    text-decoration: none;
    color: var(--link-color);
    margin-right: 10px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.social-btn:hover {
    background-color: var(--highlight-bg);
    color: var(--hover-color);
}

.social-btn:active {
    border-style: inset;
}

/* Songkick Button */
.songkick-btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    text-decoration: none;
    color: var(--link-color);
    margin: 10px 0;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.songkick-btn:hover {
    background-color: var(--highlight-bg);
    color: var(--hover-color);
}

.songkick-btn:active {
    border-style: inset;
}

/* News Window */
.news-item {
    margin-bottom: 15px;
}

.current-focus,
.live-status {
    margin-bottom: 14px;
    padding: 10px;
    background-color: var(--highlight-bg);
    border: 1px solid var(--shadow-dark);
    box-shadow: inset 1px 1px 0 var(--border-light);
}

.current-focus h2,
.live-status h2 {
    margin-top: 0;
}

.current-focus p,
.live-status p {
    margin: 0 0 8px;
}

.current-focus-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.live-status-secondary {
    background-color: #d7dde8;
}

.portfolio-window .window-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-intro {
    margin: 0;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: var(--highlight-bg);
    border: 1px solid var(--shadow-dark);
    box-shadow: inset 1px 1px 0 var(--border-light);
}

.portfolio-item-icon {
    width: 32px;
    height: 32px;
    position: relative;
    background: linear-gradient(to bottom, #ffffff, #dcdcdc);
    border: 1px solid #000000;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.portfolio-item-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: #1084d0;
}

.portfolio-item-icon.natura::before {
    inset: 4px;
    background:
        radial-gradient(circle at 22px 10px, #ffe36e 0 3px, transparent 3px),
        linear-gradient(to bottom, #86d8ff 0 48%, #5ca9d6 48% 60%, #2c8b42 60% 100%);
}

.portfolio-item-icon.natura::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 11px solid #f5f5f5;
    box-shadow: 8px 3px 0 -1px #dfe8ef;
}

.portfolio-item-icon.magna::before {
    inset: 5px;
    background: linear-gradient(to right, #000080 0 20%, #1084d0 20% 40%, #00a000 40% 60%, #c7922a 60% 80%, #ffffff 80% 100%);
}

.portfolio-item-icon.magna::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 9px;
    width: 14px;
    height: 14px;
    border: 2px solid #000000;
    border-radius: 50%;
}

.portfolio-item-icon.foley::before {
    inset: 5px;
    background: linear-gradient(135deg, #1084d0 0 48%, #ffffff 48% 56%, #000080 56% 100%);
}

.portfolio-item-icon.foley::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 15px;
    width: 2px;
    height: 12px;
    background: #ffffff;
    transform: rotate(35deg);
}

.portfolio-item-icon.argus::before {
    inset: 5px;
    background: radial-gradient(circle at 50% 50%, #ff00ff 0 18%, #000080 18% 36%, #1084d0 36% 56%, #00a000 56% 76%, #ffffff 76% 100%);
}

.portfolio-item-icon.argus::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 7px;
    width: 18px;
    height: 2px;
    background: #000000;
}

.portfolio-item-title {
    margin: 0 0 4px;
    font-size: 16px;
}

.portfolio-item-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: #333333;
}

.portfolio-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-btn {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    color: var(--link-color);
    text-decoration: none;
    font-size: 12px;
}

.portfolio-btn:active {
    border-style: inset;
}

.news-item h2 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.news-image,
.gig-poster {
    display: block;
    height: auto;
    border: 2px solid var(--border-dark);
    box-shadow: 2px 2px 0 var(--shadow-dark);
    margin: 10px 0;
}

.news-image {
    max-width: 200px;
}

.transients-image {
    width: 200px;
    aspect-ratio: 1;
    object-fit: cover;
}

.gig-poster {
    width: 100%;
    max-width: 250px;
    max-height: 210px;
    object-fit: contain;
    background-color: var(--border-light);
}

.gig-photo {
    max-width: 270px;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Store Image */
.store-image {
    max-width: 200px;
    height: auto;
    border: 2px solid var(--border-dark);
    box-shadow: 2px 2px 0 var(--shadow-dark);
    margin: 10px 0;
}

/* Contact Form */
.contact-form {
    margin-top: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--border-dark);
    background-color: var(--border-light);
    font-family: 'VGA', 'MS Sans Serif', Arial, sans-serif;
    font-size: 14px;
}

.contact-form button {
    background-color: var(--window-bg);
    border: 2px outset var(--border-light);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.contact-form button:hover {
    background-color: var(--highlight-bg);
}

.contact-form button:active {
    border-style: inset;
}

/* High Contrast Mode */
.high-contrast {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.high-contrast .desktop {
    background-color: var(--text-dark);
}

.high-contrast .window {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.high-contrast .title-bar {
    background: var(--title-bar-start);
}

.high-contrast .taskbar {
    background-color: var(--text-dark);
}

.high-contrast .start-button,
.high-contrast .taskbar-item,
.high-contrast .social-btn,
.high-contrast .contact-form button,
.high-contrast .songkick-btn {
    background-color: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-light);
}

.high-contrast .menu-items a, .high-contrast .menu-items button {
    color: var(--text-light);
}

.high-contrast .menu-items a:hover, .high-contrast .menu-items button:hover {
    background-color: var(--title-bar-start);
    color: var(--text-light);
}

.high-contrast .menu-dropdown {
    background-color: var(--text-dark);
}

.high-contrast .bandcamp-player {
    background-color: var(--text-dark);
}

.high-contrast .bandcamp-fallback {
    color: #ff0000;
}

.high-contrast .contact-form input,
.high-contrast .contact-form textarea {
    background-color: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-light);
}

.high-contrast .discography-table, .high-contrast .concert-table {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.high-contrast .discography-table td, .high-contrast .concert-table td {
    border-color: var(--text-light);
}

.high-contrast .discography-table tr:nth-child(even), .high-contrast .concert-table tr:nth-child(even) {
    background-color: #333333;
}

.high-contrast .discography-table tr:hover, .high-contrast .concert-table tr:hover {
    background-color: #555555;
}

@media (max-width: 900px) and (min-width: 601px) {
    body {
        min-height: 1100px;
        overflow: auto;
    }

    .desktop {
        min-height: 1100px;
        height: auto;
        padding-bottom: var(--taskbar-height);
        background-size: cover;
    }

    .icon-grid {
        width: 240px;
        max-height: calc(100vh - var(--taskbar-height) - 20px);
        flex-wrap: wrap;
        gap: 10px 12px;
        align-content: flex-start;
    }

    .desktop-icon {
        width: 92px;
    }

    .bio-window,
    .news-window,
    .gig-window {
        left: 230px;
        width: calc(100vw - 260px);
        max-width: 620px;
    }

    .bio-window {
        top: 40px;
        height: 420px;
    }

    .gallery-window {
        height: 500px;
        max-height: 500px;
    }

    .news-window {
        top: 490px;
        height: 390px;
    }

    .gig-window {
        top: 910px;
        height: 390px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .icon-grid {
        width: 240px;
        flex-wrap: wrap;
        gap: 10px 12px;
        align-content: flex-start;
    }

    .desktop-icon {
        width: 92px;
    }

    .bio-window {
        left: 230px;
    }

    .gallery-window {
        left: 230px;
        height: calc(100vh - var(--taskbar-height) - 50px);
        max-height: calc(100vh - var(--taskbar-height) - 50px);
    }

    .news-window {
        left: 410px;
    }
}

/* Mobile Styles */
@media (max-width: 600px) {
    body {
        image-rendering: pixelated;
        cursor: url('assets/retro-cursor.png'), auto;
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding-bottom: 70px;
    }

    .desktop {
        min-height: 100vh;
        height: auto;
        padding: 8px 8px 70px;
        background-size: cover;
    }

    .scanlines {
        background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
        animation: flicker 3s infinite;
    }

    .taskbar {
        height: 60px;
        padding: 0 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(to bottom, #d0d0d0, #a0a0a0);
        border-top: 3px solid var(--border-light);
        border-bottom: 3px solid var(--border-dark);
        box-shadow: 0 -1px 3px rgba(0,0,0,0.2);
        z-index: 200;
    }

    .start-button {
        width: auto;
        padding: 6px 12px 6px 34px;
        height: calc(60px - 10px);
        font-size: 12px;
        border: 3px outset var(--border-light);
        background: url('assets/win98-logo.png') no-repeat 6px center, linear-gradient(to bottom, #c0c0c0, #e0e0e0);
        background-size: 22px;
        box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        transition: background-color 0.2s ease-in-out;
    }

    .start-button:hover {
        background: url('assets/win98-logo.png') no-repeat 6px center, linear-gradient(to bottom, #d0d0d0, #f0f0f0);
        background-size: 22px;
    }

    .start-button:active {
        border-style: inset;
        box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
    }

    .taskbar-clock {
        font-size: 12px;
        padding: 6px 8px;
        height: calc(60px - 10px);
        display: flex;
        align-items: center;
        border: 3px inset var(--border-dark);
        background: linear-gradient(to bottom, #d0d0d0, #e0e0e0);
        box-shadow: inset 1px 1px 2px var(--shadow-light);
    }

    .taskbar-items {
        display: flex; /* Show taskbar items on mobile */
        overflow-x: auto; /* Allow horizontal scrolling */
        gap: 3px;
        margin-left: 5px;
        flex-grow: 1;
    }

    .taskbar-item {
        font-size: 10px; /* Smaller font for mobile */
        padding: 2px 6px;
        max-width: 100px; /* Compact width */
        height: calc(60px - 14px); /* Fit taskbar height */
        line-height: normal;
        display: flex;
        align-items: center;
    }

    .icon-grid {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
        padding-bottom: 10px;
        z-index: 1;
    }

    .desktop-icon {
        width: 80px;
        margin: 0 auto;
        padding: 3px;
        border: 1px solid transparent;
        transition: border 0.2s ease-in-out;
    }

    .desktop-icon:hover {
        border: 1px dotted var(--text-light);
    }

    .icon-image {
        width: 48px;
        height: 48px;
    }

    .window {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
        top: auto;
        left: auto;
        margin: 10px 0;
        min-width: 0;
        min-height: 0;
        resize: none;
        border: 3px solid var(--border-light);
        box-shadow: 3px 3px 0 var(--border-dark);
    }

    .bio-window,
    .news-window,
    .gig-window {
        width: 100%;
        height: auto;
        transform: none;
    }

    .window-body {
        max-height: none;
        overflow: visible;
    }

    .window.maximized {
        width: 100% !important;
        height: auto !important;
        left: 0 !important;
        top: 0 !important;
    }

    .menu-dropdown {
        position: fixed;
        bottom: 60px; /* Align above taskbar */
        left: 0;
        width: 100%;
        height: 50vh;
        background-color: var(--window-bg);
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
    }

    .menu-dropdown.active {
        transform: translateY(0);
    }

    .menu-items {
        margin-left: 30px;
        padding: 10px;
        overflow-y: auto;
        height: 100%;
    }

    .menu-items a, .menu-items button {
        padding: 15px;
        font-size: 18px;
        display: block;
        border-bottom: 1px solid var(--shadow-dark);
    }

    .news-image,
    .store-image {
        max-width: min(220px, 100%);
    }

    .gig-poster {
        max-width: min(280px, 100%);
        max-height: none;
    }

    .title-bar-text {
        font-size: 14px;
    }

    .title-bar-controls button {
        width: 24px;
        height: 24px;
        font-size: 14px;
        border: 2px outset var(--border-light);
    }

    .contact-form input, .contact-form textarea {
        padding: 10px;
        font-size: 16px;
        border: 2px inset var(--border-dark);
        background-color: #e0e0e0;
    }

    .contact-form button {
        padding: 10px 20px;
        font-size: 16px;
        border: 3px outset var(--border-light);
    }

    .social-btn, .songkick-btn {
        padding: 10px 20px;
        font-size: 16px;
        margin-bottom: 15px;
        border: 3px outset var(--border-light);
        background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
    }

    .gallery-archive {
        grid-template-columns: 1fr;
    }

    .gallery-events {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
    }

    .gallery-event {
        min-width: 170px;
        scroll-snap-align: start;
    }

    .gallery-stage-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-image {
        max-width: 100%;
        max-height: 42vh;
        min-height: 180px;
    }

    .gallery-caption {
        font-size: 12px;
    }

    .gallery-filmstrip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-controls button {
        padding: 8px 15px;
        font-size: 14px;
        border: 3px outset var(--border-light);
    }

    .current-focus-links {
        flex-direction: column;
        gap: 6px;
    }

    .skifree-window .window-body {
        padding: 12px;
        overflow: visible;
        gap: 12px;
        height: auto;
    }

    .skifree-window #game-iframe {
        display: none;
    }

    .skifree-mobile-launch {
        display: flex;
        min-height: 220px;
        align-items: center;
        justify-content: center;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
            #909090;
        border: 2px inset var(--border-dark);
        box-shadow: inset 1px 1px 0 var(--border-light);
    }

    .skifree-mobile-launch .social-btn {
        margin: 0;
    }
}
