/* Windows XP Portfolio - Authentic Styling */

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

body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #5a7fbe;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
}

/* Boot Screen */
#boot-screen {
    background: #000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

.windows-logo {
    margin-bottom: 60px;
}

.logo-text {
    font-size: 48px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
}

.registered {
    font-size: 20px;
    vertical-align: super;
}

.logo-subtitle {
    font-size: 64px;
    color: #fff;
    font-weight: bold;
    margin-top: 10px;
}

.xp-text {
    color: #ffa500;
    font-style: italic;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

.boot-text {
    color: #fff;
    margin-top: 20px;
    font-size: 14px;
}

/* Login Screen */
#login-screen {
    background: linear-gradient(180deg, #5a7fbe 0%, #3e5f9e 100%);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

.login-header {
    margin-bottom: 80px;
}

.windows-logo-small {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.xp-small {
    color: #ffa500;
    font-style: italic;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 40px 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.user-name {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.login-button {
    background: linear-gradient(180deg, #3c8ddc 0%, #2563b8 100%);
    color: #fff;
    border: 1px solid #1e4d8b;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.login-button:hover {
    background: linear-gradient(180deg, #4a9ae5 0%, #2f6fc7 100%);
}

.login-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.login-footer {
    margin-top: 60px;
}

.login-option {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.login-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Desktop */
#desktop {
    background: url('assets/images/bliss-wallpaper.png') center/cover;
    background-color: #5a7fbe;
    display: flex;
    flex-direction: column;
}

.desktop-icons {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    flex: 1;
    align-content: start;
}

.desktop-icon {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

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

.desktop-icon.selected {
    background: rgba(51, 153, 255, 0.3);
    border: 1px dotted #fff;
}

.icon-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.icon-label {
    color: #fff;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    word-wrap: break-word;
    max-width: 90px;
}

/* Windows */
#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    pointer-events: none;
}

.window {
    position: absolute;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    z-index: 1;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 40px) !important;
    border-radius: 0;
}

.window.minimized {
    display: none;
}

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

.window-titlebar {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 100%);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.window-title i {
    width: 16px;
    height: 16px;
}

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

.window-control {
    width: 21px;
    height: 21px;
    border: 1px solid #003c74;
    background: linear-gradient(180deg, #3c8ddc 0%, #2563b8 100%);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: all 0.1s;
}

.window-control:hover {
    background: linear-gradient(180deg, #4a9ae5 0%, #2f6fc7 100%);
}

.window-control:active {
    background: linear-gradient(180deg, #2563b8 0%, #1e4d8b 100%);
}

.window-control i {
    width: 12px;
    height: 12px;
}

.window-menubar {
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    padding: 4px 8px;
    display: flex;
    gap: 8px;
    font-size: 11px;
}

.menu-item-bar {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 2px;
}

.menu-item-bar:hover {
    background: #e5f3ff;
    border: 1px solid #99d1ff;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #fff;
}

.window-statusbar {
    background: #f0f0f0;
    border-top: 1px solid #ccc;
    padding: 4px 8px;
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Taskbar */
.taskbar {
    height: 40px;
    background: linear-gradient(180deg, #245edb 0%, #1941a5 100%);
    border-top: 2px solid #1e4d8b;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
    position: relative;
    z-index: 10000;
}

.start-button {
    background: linear-gradient(180deg, #3c8ddc 0%, #2563b8 100%);
    border: 1px solid #1e4d8b;
    border-radius: 6px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.1s;
}

.start-button:hover {
    background: linear-gradient(180deg, #4a9ae5 0%, #2f6fc7 100%);
}

.start-button:active,
.start-button.active {
    background: linear-gradient(180deg, #1e4d8b 0%, #2563b8 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.start-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-icon i {
    color: #fff;
}

.taskbar-divider {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
    margin: 0 4px;
}

.quick-launch {
    display: flex;
    gap: 2px;
}

.quick-launch-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.1s;
}

.quick-launch-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-launch-icon i {
    width: 20px;
    height: 20px;
}

.taskbar-buttons {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
}

.taskbar-buttons::-webkit-scrollbar {
    display: none;
}

.taskbar-button {
    background: linear-gradient(180deg, #3c8ddc 0%, #2563b8 100%);
    border: 1px solid #1e4d8b;
    border-radius: 4px;
    padding: 4px 12px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    min-width: 120px;
    transition: all 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-button:hover {
    background: linear-gradient(180deg, #4a9ae5 0%, #2f6fc7 100%);
}

.taskbar-button.active {
    background: linear-gradient(180deg, #1e4d8b 0%, #2563b8 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.taskbar-button i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    height: 32px;
}

.tray-icons {
    display: flex;
    gap: 6px;
    color: #fff;
}

.tray-icons i {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.clock {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 400px;
    background: #fff;
    border: 2px solid #1e4d8b;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 9999;
}

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

.start-menu-header {
    background: linear-gradient(90deg, #245edb 0%, #1941a5 100%);
    padding: 16px;
    border-radius: 6px 6px 0 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: bold;
}

.start-menu-content {
    display: flex;
    flex: 1;
}

.start-menu-left,
.start-menu-right {
    flex: 1;
    padding: 8px;
}

.start-menu-left {
    background: #fff;
    border-right: 1px solid #ccc;
}

.start-menu-right {
    background: #d3e5fa;
}

.menu-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.1s;
}

.menu-item:hover {
    background: #3c8ddc;
    color: #fff;
}

.menu-item i {
    width: 20px;
    height: 20px;
}

.menu-divider {
    height: 1px;
    background: #ccc;
    margin: 4px 0;
}

.start-menu-footer {
    background: #3c8ddc;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #1e4d8b;
}

.footer-button {
    background: linear-gradient(180deg, #ff6b35 0%, #f7931e 100%);
    border: 1px solid #d97706;
    border-radius: 4px;
    padding: 8px 16px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s;
}

.footer-button:hover {
    background: linear-gradient(180deg, #ff7b45 0%, #ff9e2e 100%);
}

.footer-button i {
    width: 16px;
    height: 16px;
}

/* Window Content Styles */
.content-section {
    margin-bottom: 24px;
}

.content-section h2 {
    color: #0053ee;
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0053ee;
}

.content-section h3 {
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.content-section p {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.content-section li:before {
    content: "▸";
    color: #0053ee;
    position: absolute;
    left: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.info-card {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
}

.info-card h4 {
    color: #0053ee;
    font-size: 13px;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 12px;
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.skill-badge {
    background: linear-gradient(135deg, #0053ee 0%, #0997ff 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-item i {
    width: 24px;
    height: 24px;
    color: #0053ee;
}

.contact-item a {
    color: #0053ee;
    text-decoration: none;
    font-size: 13px;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, 80px);
        gap: 15px;
    }
    
    .window {
        min-width: 300px;
        width: 90% !important;
    }
    
    .start-menu {
        width: 100%;
    }
    
    .taskbar-button {
        min-width: 80px;
        max-width: 120px;
    }
}

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

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3c8ddc 0%, #2563b8 100%);
    border: 1px solid #1e4d8b;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4a9ae5 0%, #2f6fc7 100%);
}

::-webkit-scrollbar-button {
    background: #f0f0f0;
    border: 1px solid #ccc;
}

/* Selection */
::selection {
    background: #3c8ddc;
    color: #fff;
}