/* Windows 98 Style Portfolio */

@font-face {
    font-family: 'W95FA';
    src: url('W95FA.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 13px;
    background: #008080;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

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

.desktop-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.desktop-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.desktop-background-video.loaded {
    opacity: 1;
}

.desktop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.3) 0%, rgba(0, 64, 64, 0.3) 100%);
    z-index: -1;
}

/* Desktop Icons */
.desktop-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon:active {
    background: rgba(0, 0, 0, 0.2);
}

.icon-image {
    width: 38px;
    height: 38px;
    margin-bottom: 2px;
    filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.3));
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.icon-label {
    color: white;
    text-align: center;
    font-size: 12px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    max-width: 72px;
    word-wrap: break-word;
    font-weight: bold;
}

/* Windows */
.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px outset #ffc4fe;
    min-width: 480px;
    min-height: 360px;
    z-index: 10;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.window.auto-height {
    min-height: auto;
    height: auto;
}

.window.hidden {
    display: none;
}

.window.minimized {
    display: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: calc(100vw - 4px) !important;
    height: calc(100vh - 38px) !important;
}

.window-titlebar {
    background: linear-gradient(90deg, #859ffc 0%, #ffc4fe 100%);
    color: white;
    padding: 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #ffc4fe;
}

.window-title {
    flex: 1;
}

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

.window-controls button {
    background: #c0c0c0;
    border: 1px outset #ffc4fe;
    color: black;
    font-size: 12px;
    width: 18px;
    height: 16px;
    cursor: pointer;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-weight: bold;
}

.window-controls button:hover {
    background: #e0e0e0;
}

.window-controls button:active {
    border: 1px inset #ffc4fe;
}

.close-btn {
    background: #c0c0c0;
}

.close-btn:hover {
    background: #ff6b6b;
    color: white;
    border: 1px outset #ff6b6b;
}

.window-content {
    padding: 12px;
    height: calc(100% - 24px);
    overflow-y: auto;
    background: white;
}

.window-content.auto-height {
    height: auto;
    overflow-y: visible;
}

.window-content h2 {
    background: linear-gradient(90deg, #859ffc 0%, #ffc4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: bold;
}

.window-content h3 {
    background: linear-gradient(90deg, #859ffc 0%, #ffc4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0 6px 0;
    font-size: 14px;
    font-weight: bold;
}

.window-content p {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Project Items */
.project-item {
    margin-bottom: 18px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px inset #ffc4fe;
}

.project-item h3 {
    background: linear-gradient(90deg, #859ffc 0%, #ffc4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    font-weight: bold;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.skill-category {
    background: #f0f0f0;
    border: 1px inset #ffc4fe;
    padding: 12px;
}

.skill-category ul {
    list-style: none;
    margin-top: 6px;
}

.skill-category li {
    padding: 2px 0;
    font-size: 12px;
}

/* Contact Info */
.contact-info {
    background: #f0f0f0;
    border: 1px inset #ffc4fe;
    padding: 12px;
    margin-bottom: 18px;
}

.contact-form {
    background: #f0f0f0;
    border: 1px inset #ffc4fe;
    padding: 12px;
}

.social-links {
    margin-top: 10px;
}

.social-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px inset #ffc4fe;
}

.social-item img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Form Elements */
.win98-input, .win98-textarea {
    background: white;
    border: 2px inset #ffc4fe;
    padding: 2px 5px;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 13px;
    width: 100%;
    margin-bottom: 10px;
}

.win98-textarea {
    height: 96px;
    resize: vertical;
}

.win98-button {
    background: #c0c0c0;
    border: 2px outset #ffc4fe;
    padding: 5px 14px;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 13px;
    cursor: pointer;
    font-weight: bold;
}

.win98-button:hover {
    background: #e0e0e0;
}

.win98-button:active {
    border: 2px inset #ffc4fe;
}

/* Resume Sections */
.resume-section {
    margin-bottom: 24px;
    padding: 12px;
    background: #f0f0f0;
    border: 1px inset #ffc4fe;
}

.resume-section h3 {
    background: linear-gradient(90deg, #859ffc 0%, #ffc4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    font-weight: bold;
}

.resume-section ul {
    margin-top: 10px;
    margin-left: 24px;
}

.resume-section li {
    margin-bottom: 4px;
    font-size: 12px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: linear-gradient(90deg, #ffc4fe 0%, #859ffc 100%);
    border-top: 1px outset #ffc4fe;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.start-button {
    background: linear-gradient(90deg, #ffc4fe 0%, #859ffc 100%);
    border: 1px outset #ffc4fe;
    padding: 2px 10px;
    cursor: pointer;
    font-weight: bold;
    height: 29px;
    display: flex;
    align-items: center;
    margin-left: 2px;
    font-size: 13px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    color: white;
}

.start-button:hover {
    background: linear-gradient(90deg, #ffb3ff 0%, #7a8fff 100%);
    color: white;
}

.start-button:active {
    border: 1px inset #ffc4fe;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    padding: 0 5px;
}

.taskbar-item {
    background: #859ffc;
    border: 1px outset #859ffc;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 12px;
    height: 26px;
    display: flex;
    align-items: center;
    min-width: 120px;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    color: white;
}

.taskbar-item:hover {
    background: #7a8fff;
    color: white;
}

.taskbar-item:active {
    border: 1px inset #859ffc;
}

.system-tray {
    display: flex;
    gap: 2px;
    padding: 0 5px;
}

.tray-item {
    background: linear-gradient(90deg, #ffc4fe 0%, #859ffc 100%);
    border: 1px outset #ffc4fe;
    padding: 2px 5px;
    font-size: 12px;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.tray-item:hover {
    background: linear-gradient(90deg, #ffb3ff 0%, #7a8fff 100%);
    color: white;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 34px;
    left: 0;
    width: 240px;
    background: #c0c0c0;
    border: 2px outset #ffc4fe;
    z-index: 1001;
}

.start-menu.hidden {
    display: none;
}

.start-menu-item {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-menu-item:hover {
    background: linear-gradient(90deg, #859ffc 0%, #ffc4fe 100%);
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

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

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

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .window {
        min-width: 360px;
        min-height: 300px;
    }
    
    .desktop-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile full-screen windows */
    .window:not(.hidden):not(.minimized) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        z-index: 1000 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .window-content {
        height: calc(100vh - 24px) !important;
        padding: 16px !important;
    }
    
    .desktop-icon {
        width: 80px;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
    }
    
    .icon-label {
        font-size: 11px;
        max-width: 80px;
    }
}
