/* ============================================================
   Thuto R's Portfolio — Windows 98 Theme
   ============================================================
   A retro Windows 98-styled personal portfolio.
   Built with 98.css, vanilla JS, and interact.js.
   ============================================================ */

@import url("https://unpkg.com/98.css");

/* ── Base Reset & Globals ──────────────────────────────────── */

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    background-color: #008080;
    font-family: "Pixelated MS Sans Serif", "sans-serif";
    font-size: 12px;
    color: #fff;
}

/* ── Desktop Icons ─────────────────────────────────────────── */

.desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

/* ── Taskbar ────────────────────────────────────────────────── */

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.start-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 6px;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    height: 22px;
}

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

.start-button img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.start-button span {
    font-weight: bold;
    font-size: 11px;
    color: #000;
}

/* ── Start Menu ── */

.start-menu {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 180px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    flex-direction: row;
}

.start-menu.open {
    display: flex;
}

.start-menu-sidebar {
    width: 24px;
    background: #808080;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #c0c0c0;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 6px 3px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.start-menu-sidebar span {
    color: #ffffff;
    font-weight: bold;
}

.start-menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2px 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    color: #000;
    font-size: 11px;
}

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

.start-menu-item img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.start-menu-item span {
    font-size: 11px;
}

.start-menu-has-sub {
    position: relative;
}

.start-menu-arrow {
    margin-left: auto;
    font-size: 8px;
    color: #000;
}

.start-menu-has-sub:hover>.start-menu-arrow {
    color: #ffffff;
}

.start-submenu {
    display: none;
    position: absolute;
    left: 100%;
    bottom: 0;
    background: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    padding: 2px 0;
    z-index: 10000;
}

.start-menu-has-sub:hover>.start-submenu {
    display: flex;
    flex-direction: column;
}

.start-menu-divider {
    height: 1px;
    background: #808080;
    border-bottom: 1px solid #ffffff;
    margin: 2px 4px;
}

/* ── Taskbar Name Button ── */

.taskbar-spacer {
    flex: 1;
}

.taskbar-name {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 8px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background: #c0c0c0;
    height: 22px;
}

.taskbar-name:hover {
    background: #d4d0c8;
}

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

.taskbar-name img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.taskbar-name span {
    font-size: 11px;
    font-weight: bold;
    color: #000;
}

.taskbar-clock {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background: #c0c0c0;
    height: 22px;
    margin-left: 4px;
}

.taskbar-clock span {
    font-size: 11px;
    color: #000;
}

/* ── Window Chrome ──────────────────────────────────────────── */

.window {
    position: absolute;
    width: 400px;
    height: 300px;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Mobile responsive windows */
@media (max-width: 768px) {
    .window {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 60px) !important;
    }

    .title-bar {
        touch-action: none;
        cursor: move;
    }
}

.title-bar {
    background-color: #000080;
    color: #fff;
    padding: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.title-bar-controls button {
    width: 16px;
    height: 14px;
    margin-left: 2px;
}

.window-body {
    padding: 10px;
    color: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100% - 26px);
    /* subtract title-bar height */
    box-sizing: border-box;
}

/* ── User Properties (System Properties style) ── */

.tabs-container {
    display: flex;
    padding: 6px 10px 0 10px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.tab {
    padding: 4px 12px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    margin-right: 2px;
    cursor: pointer;
    font-size: 11px;
    position: relative;
    top: 2px;
    z-index: 0;
}

.tab.active {
    background: #c0c0c0;
    border-bottom-color: #c0c0c0;
    font-weight: bold;
    z-index: 2;
}

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

.tab-panel-border {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    margin: 0 10px;
    padding: 10px;
    position: relative;
    z-index: 1;
    background: #c0c0c0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.property-group {
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #808080;
    background: #ffffff;
}

.property-row {
    display: flex;
    margin-bottom: 6px;
    align-items: center;
}

.property-label {
    font-weight: bold;
    min-width: 80px;
    font-size: 11px;
}

.property-value {
    flex: 1;
    font-size: 11px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid #808080;
    font-size: 11px;
}

.experience-item,
.education-item,
.project-item {
    margin-bottom: 10px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #808080;
}

.item-title {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 2px;
}

.item-subtitle {
    font-style: italic;
    font-size: 11px;
    color: #000080;
    margin-bottom: 2px;
}

.item-date {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
}

.item-description {
    font-size: 11px;
    line-height: 1.4;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.skill-category {
    background: #ffffff;
    padding: 6px;
    border: 1px solid #808080;
}

.skill-category-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 4px;
    color: #000080;
}

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

.skill-list li {
    font-size: 11px;
    padding: 1px 0 1px 12px;
    position: relative;
}

.skill-list li::before {
    content: "\25AA";
    position: absolute;
    left: 0;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 10px;
    flex-shrink: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #808080;
}

.profile-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.profile-info h2 {
    margin: 0 0 4px 0;
    font-size: 14px;
}

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

/* ── Projects Explorer (folder view) ── */

.explorer-toolbar {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 3px 6px;
    font-size: 11px;
    color: #000;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #808080;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-content: flex-start;
}

.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.folder-icon:hover {
    background: #000080;
    color: #ffffff;
    border: 1px dotted #000;
}

.folder-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.folder-icon span {
    font-size: 10px;
    word-wrap: break-word;
    line-height: 1.2;
}

/* ── Project detail window (child window) ── */

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #808080;
}

.detail-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.detail-title {
    font-weight: bold;
    font-size: 13px;
}

.detail-subtitle {
    font-size: 11px;
    color: #000080;
    font-style: italic;
}

.detail-body {
    padding: 0;
}

.detail-section {
    margin-bottom: 10px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #808080;
}

.detail-section-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 4px;
    border-bottom: 1px solid #808080;
    padding-bottom: 3px;
}

.detail-section p {
    margin: 4px 0 0 0;
    font-size: 11px;
    line-height: 1.4;
}

.detail-section a {
    color: #000080;
    text-decoration: underline;
    font-size: 11px;
}

/* ── Shutdown Screen ── */

.shutdown-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.shutdown-screen.active {
    display: flex;
}

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

.shutdown-logo {
    margin-bottom: 30px;
}

.shutdown-logo img {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
}

.shutdown-text {
    color: #f8a600;
    font-family: "Pixelated MS Sans Serif", "sans-serif";
    font-size: 24px;
    font-weight: normal;
    line-height: 1.5;
    margin: 0 0 40px 0;
    text-shadow: 2px 2px 0px #000;
}

.shutdown-hint {
    color: #808080;
    font-family: "Pixelated MS Sans Serif", "sans-serif";
    font-size: 12px;
    margin: 0;
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Boot / Startup Screen ── */

.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000080;
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-content {
    text-align: center;
    position: relative;
}

.boot-clouds {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.boot-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.boot-logo img {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    margin-bottom: 16px;
}

.boot-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boot-windows {
    color: #ffffff;
    font-family: "Pixelated MS Sans Serif", "sans-serif";
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.boot-98 {
    color: #ffffff;
    font-family: "Pixelated MS Sans Serif", "sans-serif";
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.boot-progress-container {
    width: 200px;
    height: 18px;
    background: #000080;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin: 0 auto;
    padding: 2px;
}

.boot-progress-bar {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(90deg,
            #c0c0c0 0px,
            #c0c0c0 8px,
            #000080 8px,
            #000080 10px);
    transition: width 0.3s linear;
}

/* ── Notepad ── */

.notepad-menubar {
    display: flex;
    background: #c0c0c0;
    padding: 2px 0;
    border-bottom: 1px solid #808080;
    flex-shrink: 0;
}

.notepad-menu-item {
    padding: 2px 8px;
    font-size: 11px;
    color: #000;
    cursor: default;
}

.notepad-menu-item:hover {
    background: #000080;
    color: #ffffff;
}

.notepad-textarea {
    flex: 1;
    width: 100%;
    border: none;
    resize: none;
    padding: 4px;
    font-family: "Fixedsys", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.4;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    color: #000;
}

/* ── Internet Explorer ── */

.ie-toolbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 2px 4px;
    flex-shrink: 0;
}

.ie-nav-buttons {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.ie-nav-btn {
    width: 28px;
    height: 22px;
    font-size: 12px;
    cursor: default;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ie-address-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ie-address-label {
    font-size: 11px;
    color: #000;
}

.ie-address-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 1px 4px;
    height: 18px;
}

.ie-address-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.ie-address-input span {
    font-size: 11px;
    color: #000;
}

.ie-content {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    min-height: 0;
}

.ie-page {
    padding: 12px;
    color: #000;
}

.ie-page-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.ie-page-logo {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.ie-page-title {
    margin: 0;
    font-size: 16px;
    color: #000080;
}

.ie-page-subtitle {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #666;
}

.ie-hr {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    margin: 8px 0;
}

.ie-section-title {
    font-size: 12px;
    color: #000;
    margin: 0 0 6px 0;
}

.ie-link-item {
    display: flex;
    align-items: center;
    padding: 3px 0;
}

.ie-link-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.ie-link-item a {
    color: #0000ff;
    text-decoration: underline;
    font-size: 11px;
    cursor: pointer;
}

.ie-link-item a:visited {
    color: #800080;
}

.ie-footer {
    font-size: 10px;
    color: #808080;
    text-align: center;
    margin-top: 8px;
}

.ie-statusbar {
    display: flex;
    justify-content: space-between;
    background: #c0c0c0;
    border-top: 1px solid #808080;
    padding: 2px 6px;
    font-size: 10px;
    color: #000;
    flex-shrink: 0;
}

/* ── MS-DOS Prompt ── */

.dos-terminal {
    background: #000000;
    color: #c0c0c0;
    font-family: "Fixedsys", "Courier New", monospace;
    font-size: 13px;
    padding: 4px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dos-output {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.3;
    min-height: 0;
}

.dos-output div {
    margin: 0;
}

.dos-input-line {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dos-prompt {
    color: #c0c0c0;
    white-space: nowrap;
    margin-right: 4px;
}

.dos-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #c0c0c0;
    font-family: "Fixedsys", "Courier New", monospace;
    font-size: 13px;
    outline: none;
    caret-color: #c0c0c0;
    padding: 0;
}

/* ── My Documents: Image / Video Viewer ── */

.doc-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 8px;
}

.doc-photo-img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border: 1px solid #808080;
}

.doc-video-player {
    max-width: 100%;
    max-height: 280px;
    border: 1px solid #808080;
    background: #000;
}

.doc-caption {
    font-size: 11px;
    color: #808080;
    text-align: center;
    padding-top: 4px;
}

/* ── Minesweeper ── */

.mine-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #c0c0c0;
    border-bottom: 2px solid #808080;
    padding: 4px 6px;
}

.mine-counter {
    background: #000;
    color: #ff0000;
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 2px 4px;
    min-width: 40px;
    text-align: center;
    border: 1px inset #808080;
}

.mine-face {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.mine-board {
    display: grid;
    grid-template-columns: repeat(9, 24px);
    grid-template-rows: repeat(9, 24px);
    gap: 0;
    background: #c0c0c0;
    padding: 4px;
    justify-content: center;
}

.mine-cell {
    width: 24px;
    height: 24px;
    background: #c0c0c0;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.mine-cell.revealed {
    border: 1px solid #808080;
    background: #d0d0d0;
    cursor: default;
}

.mine-cell.mine-hit {
    background: #ff0000;
}

.mine-cell[data-num="1"] {
    color: #0000ff;
}

.mine-cell[data-num="2"] {
    color: #008000;
}

.mine-cell[data-num="3"] {
    color: #ff0000;
}

.mine-cell[data-num="4"] {
    color: #000080;
}

.mine-cell[data-num="5"] {
    color: #800000;
}

.mine-cell[data-num="6"] {
    color: #008080;
}

.mine-cell[data-num="7"] {
    color: #000000;
}

.mine-cell[data-num="8"] {
    color: #808080;
}

/* ── Resume (Word Document style) ── */

.resume-toolbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.resume-print-btn,
.resume-download-btn {
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
}

.resume-toolbar-text {
    font-size: 11px;
    color: #000;
}

.resume-page {
    background: #ffffff;
    color: #000;
    padding: 30px 36px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    line-height: 1.5;
}

.resume-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000080;
}

.resume-name {
    margin: 0 0 2px 0;
    font-size: 20px;
    color: #000;
    letter-spacing: 1px;
}

.resume-title {
    font-size: 12px;
    color: #000080;
    font-weight: bold;
    margin-bottom: 8px;
}

.resume-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: #333;
    margin-bottom: 2px;
}

.resume-contact a {
    color: #000080;
    text-decoration: underline;
    font-size: 10px;
}

.resume-section {
    margin-bottom: 14px;
}

.resume-section-title {
    font-size: 12px;
    font-weight: bold;
    color: #000080;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #808080;
    padding-bottom: 3px;
    margin-bottom: 8px;
}

.resume-entry {
    margin-bottom: 10px;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.resume-entry-title {
    font-weight: bold;
    font-size: 11px;
}

.resume-entry-date {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.resume-entry-date a {
    color: #000080;
    text-decoration: underline;
    font-size: 10px;
}

.resume-entry-subtitle {
    font-size: 10px;
    color: #666;
    font-style: italic;
    margin-bottom: 2px;
}

.resume-list {
    margin: 2px 0 0 0;
    padding-left: 18px;
    font-size: 11px;
    line-height: 1.4;
}

.resume-list li {
    margin-bottom: 1px;
}

.resume-section p {
    margin: 2px 0 0 0;
    font-size: 11px;
    line-height: 1.4;
}

.resume-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.resume-skill-group {
    font-size: 11px;
    line-height: 1.4;
}

@media print {
    body {
        background: #fff;
    }

    .taskbar,
    .desktop,
    .start-menu,
    .boot-screen,
    .shutdown-screen {
        display: none;
    }

    .window {
        position: static;
        width: 100%;
        height: auto;
        border: none;
        box-shadow: none;
    }

    .title-bar {
        display: none;
    }

    .window-body {
        height: auto;
        overflow: visible;
    }

    .resume-toolbar {
        display: none;
    }

    .resume-page {
        padding: 20px;
    }
}