:root {
    /* Windows Classic / 90s Colors */
    --win-gray: #c0c0c0;
    --win-gray-light: #dfdfdf;
    --win-gray-dark: #808080;
    --win-black: #000000;
    --win-white: #ffffff;
    --win-blue: #000080;
    /* Title bar blue */
    --win-blue-grad: #1084d0;
    /* XP Blue */
    --win-text: #000000;

    /* Fonts */
    --font-primary: 'MS PGothic', 'Osaka', 'Arial', sans-serif;
    --font-heading: 'MS Gothic', 'Impact', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: #008080;
    /* Classic Deal Blue Background */
    /* Optional: Bliss wallpaper fallback */
    background-image: url('../images/background.jpg');
    /* Sunset Grassland */
    background-color: #3a6ea5;
    /* XP Default Blue fallback */
    background-size: cover;
    background-attachment: fixed;
    color: var(--win-text);
    line-height: 1.5;
    cursor: default;
    /* Revert custom cursor for now, or use retro one later */
    padding-bottom: 50px;
    /* Space for taskbar */
    overflow-x: hidden;
}

/* Screensaver Canvas */
.screensaver-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 20000;
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in;
}

/* BIOS & Startup Overlay */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}

.bios-screen p {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.xp-load-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.xp-load-logo {
    max-width: 300px;
    filter: invert(1);
    margin-bottom: 40px;
}

.xp-load-bar {
    width: 200px;
    height: 15px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    padding: 2px;
}

.xp-load-progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #2b60de, #59b6f8, #2b60de);
    border-radius: 2px;
    position: absolute;
    animation: xpLoading 2s infinite linear;
}

@keyframes xpLoading {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Custom Cursor - Retro Pointer */
/* You might want to remove the JS interaction for the dot/outline cursor 
   and replace it with a CSS image cursor if available. 
   For now, we remove the modern dot. */
.cursor-dot,
.cursor-outline {
    display: none;
}

/* Header / Start Bar */
.header {
    position: fixed;
    bottom: 0;
    /* Taskbar moves to bottom */
    top: auto;
    left: 0;
    width: 100%;
    height: 40px;
    /* Reverted to 40px */
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    box-shadow: inset 0 1px 0 #fff;
}

.logo {
    display: flex;
    align-items: center;
}

/* "Start" Button Style for Logo */
.logo-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 2px 10px;
    height: 32px;
    /* Reverted to 32px */
    font-weight: bold;
    /* font-size removed */
    font-style: italic;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.logo-btn:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(1px);
}

.logo-img-header {
    height: 20px;
    width: auto;
}

/* Taskbar Nav */
.nav-list {
    display: flex;
    gap: 5px;
}

.nav-link {
    display: block;
    padding: 5px 15px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #000;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
}

.nav-link:active {
    border: 2px solid #808080;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    background: #e0e0e0;
}

.menu-toggle {
    display: none;
}

/* Layout Utilities */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Window Component (Replaces Section styling) */
.window {
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    padding: 2px;
    position: relative;
    /* transition: transform 0.2s; */
    z-index: 100;
}

.window.window-active {
    z-index: 1000 !important;
}

.window-placeholder {
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* Hero acts as desktop wallpaper area, but we can make it a window too or keep transparent */
.hero-window {
    margin-top: 50px;
    text-align: center;
}

.title-bar {
    background: linear-gradient(90deg, var(--win-gray-dark), var(--win-gray));
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window.window-active .title-bar {
    background: linear-gradient(90deg, var(--win-blue), #1084d0);
}

.title-bar-text {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    font-family: sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.window-btn {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.window-content {
    padding: 20px;
    background: #fff;
    color: #000;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    /* Inset effect */
    min-height: 200px;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: #000;
    text-transform: none;
    /* Remove uppercase enforcement */
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px dotted #808080;
    text-align: left;
    /* Align left purely */
}

.section-title::after {
    display: none;
}

/* Hero Specifics */
.hero {
    height: auto;
    min-height: 80vh;
    padding-top: 50px;
    background: transparent;
    display: block;
    /* Reset flex */
    overflow: visible;
}

.hero::before {
    /* We might modify this to be just a wallpaper, or keep the artistic photo distinct */
    display: none;
    /* Let's rely on the window content for the image */
}

.hero-content {
    position: relative;
    opacity: 1;
    transform: none;
    animation: none;
}

.hero-img-container {
    border: 2px solid #808080;
    padding: 5px;
    background: #fff;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.logo-img-hero {
    /* Adjusted for window fitting */
    max-width: 100%;
    filter: none;
    /* Remove drop shadow */
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    background: #fff;
    border: 1px dotted #808080;
    padding: 10px;
    transform: none !important;
    transition: none;
    text-align: left;
    /* Ensure left alignment */
}

.news-item:hover {
    background: #eef;
    cursor: pointer;
}

.news-date {
    color: #000080;
    font-weight: bold;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    font-size: 0.9rem;
    /* white-space: pre-wrap; removed to fix indentation issue */
}

/* Bio */
.members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.member {
    text-align: center;
    border: 1px solid #c0c0c0;
    padding: 10px;
    background: #efefef;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

.member-name {
    font-size: 1.2rem;
    color: #000;
}

.member-role {
    color: #666;
}

/* Form Styles */
.form-group label {
    color: #000;
}

.form-group input,
.form-group textarea {
    background: #fff;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    color: #000;
}

/* Windows Button Style */
.btn {
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    color: #000;
    box-shadow: 1px 1px 0 #000;
    padding: 5px 20px;
    font-family: var(--font-primary);
    text-transform: none;
    font-weight: normal;
}

.btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(1px);
    box-shadow: none;
}

/* Desktop Icons */
.desktop-icons {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
    /* Remove underline */
}

.desktop-icon i {
    font-size: 2.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.desktop-icon span {
    background: transparent;
    /* XP icons have transparent label backgrounds usually */
    padding: 2px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.desktop-icon:hover i {
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8)) brightness(1.2);
}

.desktop-icon:hover span {
    background: #000080;
    color: #fff;
    outline: 1px dotted #ccc;
}

/* Winamp Specific Styles */
.winamp-btn {
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.winamp-btn:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: translateY(1px);
    box-shadow: none;
}

.disco-item.active {
    background: #000080;
    color: #fff !important;
}

.disco-item.active h3,
.disco-item.active p,
.disco-item.active span {
    color: #fff !important;
}

.btn-submit {
    width: auto;
    background: #c0c0c0;
    color: #000;
}

/* Footer */
.footer {
    padding: 20px;
    background: transparent;
    border: none;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

/* Responsive adjustments for the faux-taskbar */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
        /* More space for larger mobile taskbar */
    }

    .container {
        padding: 10px;
    }

    .window {
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-window {
        margin-top: 20px;
    }

    .logo-img-hero {
        max-width: 90%;
        max-height: 120px;
    }

    /* Desktop Icons on Mobile - Grid layout */
    .desktop-icons {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
        padding-top: 10px;
    }

    .desktop-icon {
        width: 70px;
    }

    .desktop-icon i {
        font-size: 2rem;
    }

    .desktop-icon span {
        font-size: 0.75rem;
    }

    /* Mobile Taskbar */
    .header {
        height: 50px;
        padding: 0 5px;
    }

    .logo-btn {
        height: 38px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .nav-list {
        gap: 2px;
    }

    .nav-link {
        padding: 8px 8px;
        font-size: 0.75rem;
    }

    /* Members Grid */
    .members {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .member-name {
        font-size: 1rem;
    }

    /* Discography Adjustment (Internal elements) */
    .disco-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .disco-item img {
        width: 150px !important;
        height: 150px !important;
    }

    .news-item:active {
        background: #eef;
        outline: 1px dotted #000;
    }

    .nav-link:active {
        background: #808080;
        color: #fff;
    }

    /* Tracklist touch spacing */
    .disco-item ul li {
        padding: 5px 0;
        border-bottom: 1px solid #333;
    }

    .disco-item ul li:last-child {
        border-bottom: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-link {
        padding: 8px 5px;
        font-size: 0.7rem;
    }

    .logo-btn {
        padding: 0 5px;
    }
}