/* Custom Font */
@font-face {
    font-family: 'MS Sans Serif';
    src: url('fonts/MS-Sans-Serif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

 /* Global Styles */
* {
    box-sizing: border-box;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    user-select: none;
}

/* Make desktop clickable */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background-color: #008080;
    margin: 0;
    padding: 0;
    color: #000;
    height: 100vh;
    cursor: default;
}

/* Windows 95 Desktop */
.desktop {
    position: relative;
    width: 100vw;
    height: calc(100vh - 28px);
    overflow: hidden;
}

/* Desktop Icons */
.desktop-icon {
    width: 70px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    cursor: pointer;
    z-index: 1;
}

.desktop-icon:hover .icon-label {
    background-color: #000080;
    color: white;
}

.icon-image {
    width: 32px;
    height: 32px;
    background-color: transparent;
    margin-bottom: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about-icon {
    background-image: url('images/about-icon.png');
}

.resume-icon {
    background-image: url('images/file.png');
}

.portfolio-icon {
    background-image: url('images/resume-icon.png');
}

.mail-icon {
    background-image: url('images/mail-icon.png');
}

.icon-label {
    padding: 2px 4px;
    text-align: center;
    font-size: 11px;
    color: white;
    white-space: nowrap;
}

/* Windows 95 Window Styles */
.window {
    background-color: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #848484;
    border-bottom-color: #848484;
    box-shadow: 1px 1px 0 0 #000;
    position: absolute;
    overflow: hidden;
    resize: both;
    z-index: 1;
    display: none;
}

.title-bar {
    background-color: #000080;
    color: white;
    padding: 2px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.title-bar-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
    flex-shrink: 0;
}

.about-icon-small {
    background-image: url('images/about-icon.png');
}

.resume-icon-small {
    background-image: url('images/file.png');
}

.portfolio-icon-small {
    background-image: url('images/resume-icon.png');
}

.mail-icon-small {
    background-image: url('images/mail-icon.png');
}

.title-bar-text {
    margin-right: auto;
}

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

.title-bar-button {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #848484;
    border-bottom-color: #848484;
    margin-left: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
}

.window-content {
    padding: 10px;
    height: calc(100% - 47px);
    overflow: auto;
}

/* Menu Bar Styles */
.menu-bar {
    padding: 2px 0;
    background-color: #c0c0c0;
    border-bottom: 1px solid #848484;
    display: flex;
}

.menu-item {
    padding: 2px 8px;
    margin-right: 4px;
    cursor: pointer;
}

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

/* Button Styles */
.button {
    background-color: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #848484;
    border-bottom-color: #848484;
    padding: 4px 10px;
    margin: 4px;
    cursor: pointer;
}

.button:active {
    border: 1px solid #848484;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

/* Form Controls */
input, textarea, select {
    background-color: #fff;
    border: 1px solid #848484;
    border-right-color: #fff;
    border-bottom-color: #fff;
    padding: 2px 4px;
    width: 100%;
}

textarea {
    resize: none;
    height: 100px;
}

/* Field Row */
.field-row {
    margin: 10px 0;
}

/* Resume Window Styles */
.resume-toolbar {
    padding: 4px;
    background-color: #c0c0c0;
    border-bottom: 1px solid #848484;
    display: flex;
    gap: 5px;
}

.resume-download-btn,
.resume-newtab-btn {
    padding: 4px 12px;
    margin: 0;
}

.resume-content {
    padding: 0;
    background-color: #808080;
    height: calc(100% - 47px - 32px);
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #ffffff;
}

.pdf-fallback {
    padding: 40px;
    background-color: #ffffff;
    text-align: center;
    font-size: 12px;
}

.pdf-fallback h3 {
    color: #000080;
    margin-bottom: 15px;
}

.pdf-fallback ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.pdf-fallback li {
    margin: 10px 0;
    font-size: 11px;
}

/* Portfolio Window Styles */
.portfolio-content {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 47px);
}

.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    background-color: #ffffff;
    flex-grow: 0;
}

.file-item-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    width: 120px;
}

.file-item-grid:hover .file-content-wrapper {
    background-color: #000080;
    color: white;
    border: 1px dotted #ffffff;
}

.file-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid transparent;
}

.file-item-grid .file-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.file-icon-new {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    background-image: url('images/file.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.file-icon-new-second {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    background-image: url('images/folder.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.file-name-grid {
    font-size: 11px;
    text-align: center;
    max-width: 100px;
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.model-info {
    padding: 15px;
    background-color: #c0c0c0;
    border: 2px inset #848484;
    font-size: 11px;
    margin-top: auto;
    margin-bottom: 0;
    max-height: 250px;
    overflow-y: auto;
}

/* File List Styles */
.file-list {
    margin-top: 20px;
    padding: 10px;
    background-color: #ffffff;
    border: 2px inset #848484;
    min-height: 150px;
}

/* About Me / Biography Styles - New Version */
.about-content-new {
    font-size: 11px;
    line-height: 1.6;
    background-color: #c0c0c0;
    padding: 15px;
}

.bio-header {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.section-title {
    color: #000;
    font-size: 14px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    padding-bottom: 2px;
    border-bottom: 1px solid #000;
}

.about-content-new p {
    margin: 0 0 12px 0;
    text-align: justify;
}

.resume-link {
    color: #0000ff;
    text-decoration: underline;
    cursor: pointer;
}

.resume-link:hover {
    color: #0000cc;
}

.resume-link:visited {
    color: #800080;
}

/* Old About Me styles - keeping for backward compatibility */
.about-content {
    font-size: 11px;
    line-height: 1.5;
}

.about-content h2 {
    color: #000080;
    font-size: 16px;
}

.about-content h3 {
    color: #000080;
    font-size: 14px;
}

.bio-section p {
    margin: 0 0 12px 0;
    text-align: justify;
}

.work-experience-section {
    margin-top: 15px;
}

.job-entry {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #848484;
}

.job-header {
    font-size: 12px;
    margin-bottom: 3px;
}

.job-meta {
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
}

.job-details {
    margin: 8px 0 0 0;
    padding-left: 20px;
    font-size: 11px;
}

.job-details li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    cursor: pointer;
    border: 1px solid transparent;
}

.file-item:hover {
    background-color: #000080;
    color: white;
    border: 1px dotted #ffffff;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.excel-icon {
    background-image: url('images/excel-icon.png');
}

.file-name {
    font-size: 12px;
    font-weight: normal;
}

/* Mail Window Styles */
.mail-toolbar {
    padding: 4px;
    background-color: #c0c0c0;
    border-bottom: 1px solid #848484;
}

.mail-send-btn {
    padding: 4px 12px;
    margin: 0;
}

.mail-content {
    background-color: #c0c0c0;
}

.mail-form {
    width: 100%;
}

.mail-field {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.mail-label {
    width: 60px;
    font-size: 11px;
    font-weight: normal;
    color: #000;
    flex-shrink: 0;
}

.mail-recipient {
    padding: 3px 6px;
    background-color: #ffffff;
    border: 2px inset #848484;
    font-size: 11px;
    display: inline-block;
}

.mail-input {
    flex: 1;
    padding: 3px 4px;
    font-size: 11px;
    background-color: #ffffff;
    border: 2px inset #848484;
}

.mail-input:focus {
    outline: none;
    border: 1px solid #000080;
}

.mail-body-field {
    margin-top: 15px;
}

.mail-textarea {
    width: 100%;
    height: 260px;
    padding: 8px;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    background-color: #ffffff;
    border: 2px inset #848484;
    resize: none;
    line-height: 1.4;
}

.mail-textarea:focus {
    outline: none;
}

.mail-status {
    margin-top: 10px;
    padding: 10px;
    border: 2px inset #848484;
    background-color: #ffffff;
    font-size: 11px;
    text-align: center;
    min-height: 20px;
    visibility: hidden;
}

.mail-status.visible {
    visibility: visible;
}

.mail-status.success {
    color: #008000;
    visibility: visible;
}

.mail-status.error {
    color: #ff0000;
    visibility: visible;
}

/* Tokenomics Item */
.tokenomics-item {
    margin: 15px 0;
}

/* Progress Bar */
.progress-bar {
    height: 20px;
    width: 100%;
    background-color: #ffffff;
    border: 2px inset #848484;
    margin-top: 5px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #000080;
    transition: width 0.3s ease;
}

/* Windows 95 Taskbar */
.taskbar {
    height: 28px;
    background-color: #c0c0c0;
    border-top: 2px solid #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 9999;
}

.start-button {
    padding: 1px 5px;
    margin: 2px;
    display: flex;
    align-items: center;
    background-color: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #848484;
    border-bottom-color: #848484;
    height: 22px;
    cursor: pointer;
    font-weight: bold;
}

.start-logo {
    margin-right: 3px;
    font-size: 14px;
}

.taskbar-items {
    display: flex;
    flex: 1;
    align-items: center;
}

.taskbar-item {
    padding: 1px 8px;
    margin: 2px;
    background-color: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #848484;
    border-bottom-color: #848484;
    font-size: 11px;
    height: 22px;
    display: flex;
    align-items: center;
    min-width: 125px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.taskbar-item.active {
    border: 1px solid #848484;
    border-right-color: #fff;
    border-bottom-color: #fff;
    background-color: #d0d0d0;
}

.system-tray {
    padding: 1px 8px;
    margin: 2px;
    background-color: #c0c0c0;
    border: 1px solid #848484;
    border-right-color: #fff;
    border-bottom-color: #fff;
    font-size: 11px;
    height: 22px;
    display: flex;
    align-items: center;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    /* Hide taskbar on mobile */
    .taskbar {
        display: none;
    }
    
    /* Desktop takes full height without taskbar */
    .desktop {
        height: 100vh;
    }
    
    /* Make desktop icons touch-friendly */
    .desktop-icon {
        width: 80px;
        height: 90px;
        padding: 5px;
    }
    
    .icon-image {
        width: 48px;
        height: 48px;
    }
    
    .icon-label {
        font-size: 12px;
        padding: 3px 5px;
    }
    
    /* Windows open full screen */
    .window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        resize: none;
        border: none;
    }
    
    /* Larger title bar for touch */
    .title-bar {
        padding: 8px 6px;
        cursor: default !important;
    }
    
    .title-bar-text {
        font-size: 14px;
    }
    
    .title-bar-button {
        width: 32px;
        height: 28px;
        font-size: 16px;
        margin-left: 4px;
    }
    
    /* Menu bar touch-friendly */
    .menu-bar {
        padding: 6px 0;
    }
    
    .menu-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Adjust window content */
    .window-content {
        padding: 12px;
        font-size: 13px;
        height: calc(100% - 60px);
    }
    
    /* Biography - larger fonts */
    .bio-header {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 15px;
        margin: 16px 0 12px 0;
    }
    
    .about-content-new p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .resume-link {
        font-size: 13px;
    }
    
    /* Portfolio - 2 columns */
    .file-grid {
        gap: 20px;
        padding: 15px;
    }
    
    .file-item-grid {
        width: calc(50% - 20px);
    }
    
    .file-icon-new {
        width: 48px;
        height: 48px;
    }
    
    .file-name-grid {
        font-size: 12px;
        max-width: 100%;
        line-height: 1.4;
    }
    
    .file-content-wrapper {
        padding: 12px;
    }
    
    /* Model info - larger scroll area */
    .model-info {
        font-size: 12px;
        padding: 12px;
        max-height: 180px;
        line-height: 1.6;
    }
    
    .model-info h3 {
        font-size: 14px;
    }
    
    /* Mail form - touch-friendly */
    .mail-toolbar {
        padding: 8px;
    }
    
    .mail-send-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .mail-field {
        margin-bottom: 12px;
        padding: 6px 0;
    }
    
    .mail-label {
        font-size: 13px;
        width: 70px;
    }
    
    .mail-recipient {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .mail-input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .mail-textarea {
        height: 220px;
        padding: 10px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .mail-status {
        font-size: 13px;
        padding: 12px;
    }
    
    /* Resume toolbar - larger buttons */
    .resume-toolbar {
        padding: 8px;
        gap: 8px;
    }
    
    .resume-download-btn,
    .resume-newtab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .resume-content {
        height: calc(100% - 60px - 44px);
    }
    
    /* PDF fallback */
    .pdf-fallback {
        padding: 30px 20px;
        font-size: 13px;
    }
    
    .pdf-fallback h3 {
        font-size: 16px;
    }
    
    .pdf-fallback li {
        font-size: 13px;
        margin: 12px 0;
    }
    
    /* Hide maximize button on mobile */
    .maximize-btn {
        display: none;
    }
    
    /* Disable window dragging on mobile */
    .title-bar {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Extra small devices - adjust icons layout */
@media (max-width: 480px) {
    /* Smaller icons on very small screens */
    .desktop-icon {
        width: 70px;
        height: 85px;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
    }
    
    .icon-label {
        font-size: 11px;
    }
    
    /* Portfolio - single column on tiny screens */
    .file-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .file-item-grid {
        width: 80%;
    }
}