/* Windows XP Portfolio - Main Styles */

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

/* Windows XP System Fonts */
@font-face {
    font-family: 'Tahoma';
    src: local('Tahoma'), local('Tahoma Regular');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MS Sans Serif';
    src: local('MS Sans Serif'), local('Microsoft Sans Serif');
    font-weight: normal;
    font-style: normal;
}

/* Body and HTML */
html, body {
    height: 100%;
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    overflow: hidden;
    cursor: default;
}

/* Desktop Background - Windows XP Blue Sky */
.desktop {
    width: 100vw;
    height: 100vh;
    background: url('../assets/images/windows_background.webp') center/cover,
                linear-gradient(180deg, #3A6EA5 0%, #004E92 100%);
    position: relative;
    overflow: hidden;
}

/* Windows XP Cloud Background with Dimming */
.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        rgba(0, 0, 0, 0.15),
        radial-gradient(ellipse 200px 80px at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse 300px 100px at 80% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 250px 90px at 60% 40%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse 180px 70px at 10% 70%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 220px 85px at 90% 60%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

/* CRT Filter Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.03) 51%, transparent 52%);
    background-size: 100% 100%, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0.3;
}

/* Pixelated Effect */
.desktop {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Windows XP Color Palette */
:root {
    --xp-blue: #0054E3;
    --xp-blue-dark: #003CB0;
    --xp-blue-light: #4A90E2;
    --xp-orange: #FF9500;
    --xp-green: #00A000;
    --xp-gray: #ECE9D8;
    --xp-gray-dark: #ACA899;
    --xp-gray-light: #F1EFE2;
    --xp-border-light: #FFFFFF;
    --xp-border-dark: #8D8D8D;
    --xp-border-darker: #404040;
    --xp-text: #000000;
    --xp-text-light: #FFFFFF;
    --xp-shadow: rgba(0, 0, 0, 0.25);
}

/* Windows XP 3D Border Effects */
.border-raised {
    border: 1px solid;
    border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
}

.border-sunken {
    border: 1px solid;
    border-color: var(--xp-border-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-border-dark);
}

.border-raised-thick {
    border: 2px solid;
    border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
}

.border-sunken-thick {
    border: 2px solid;
    border-color: var(--xp-border-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-border-dark);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Button Base Styles */
button {
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    border: none;
    outline: none;
}

button:active {
    transform: translateX(1px) translateY(1px);
}

/* Text Selection */
::selection {
    background: var(--xp-blue);
    color: var(--xp-text-light);
}

::-moz-selection {
    background: var(--xp-blue);
    color: var(--xp-text-light);
}

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

::-webkit-scrollbar-track {
    background: var(--xp-gray);
    border: 1px solid var(--xp-border-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray-dark));
    border: 1px solid var(--xp-border-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #F8F6F0, #D6D3CE);
}

::-webkit-scrollbar-corner {
    background: var(--xp-gray);
}

::-webkit-scrollbar-button {
    background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray-dark));
    border: 1px solid var(--xp-border-dark);
    height: 16px;
    width: 16px;
}

::-webkit-scrollbar-button:hover {
    background: linear-gradient(to bottom, #F8F6F0, #D6D3CE);
}

/* Focus Styles */
button:focus,
.desktop-icon:focus {
    outline: 1px dotted var(--xp-text);
    outline-offset: 2px;
}

/* Animations */
@keyframes boot-up {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes window-open {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes icon-hover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .desktop {
        font-size: 12px;
    }
    
    .crt-overlay,
    .scanlines {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .desktop {
        font-size: 13px;
    }
    
    .crt-overlay,
    .scanlines {
        display: none;
    }
}

/* Mobile Layout */
.mobile-view {
    overflow: auto !important;
}

.mobile-view .desktop {
    overflow-y: auto !important;
    padding: 0;
    padding-bottom: 140px; /* Space for social footer */
}

.mobile-view .windows-container {
    position: static !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 140px);
}

.mobile-view .window {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(50vh - 70px) !important;
    margin: 0 0 20px 0 !important;
    border: 1px solid #8D8D8D !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.mobile-view .window-header {
    display: block !important;
    background: #0054E3 !important;
    color: white !important;
    text-align: center !important;
    padding: 8px !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

.mobile-view .window-controls {
    display: none !important;
}

.mobile-view .window-content {
    height: auto !important;
    min-height: calc(50vh - 100px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
}

/* Mobile Social Footer */
#mobile-social-footer {
    display: none;
}

.mobile-view #mobile-social-footer {
    display: block !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 300px;
    background: var(--xp-gray);
    border: 2px solid;
    border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 2000;
    box-shadow: 2px 2px 4px var(--xp-shadow);
    animation: slideIn 0.3s ease-out forwards;
}

.notification-header {
    background: var(--xp-gray);
    color: var(--xp-text);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid var(--xp-border-dark);
}

.notification-header .notification-icon {
    margin-right: 6px;
}

.notification-close {
    cursor: pointer;
    font-weight: bold;
    padding: 0 4px;
    margin-left: auto;
}

.notification-close:hover {
    background: var(--xp-border-dark);
    color: white;
}

.notification-message {
    padding: 8px;
    line-height: 1.4;
    color: var(--xp-text);
}

/* Notification Animations */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

@keyframes slideUp {
    from { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes slideDown {
    from { 
        transform: translateY(0); 
        opacity: 1; 
    }
    to { 
        transform: translateY(100%); 
        opacity: 0; 
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mobile Notification Adjustments */
@media (max-width: 768px) {
    .notification {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 20px;
    }
    
    .mobile-view .notification {
        position: fixed;
        z-index: 9999;
    }
}

/* Print Styles */
@media print {
    .crt-overlay,
    .scanlines {
        display: none;
    }
    
    .desktop {
        background: white;
    }
} 

/* Responsive taskbar for smaller screens */
@media (max-width: 768px) {
    .taskbar {
        height: 40px !important;
    }
    
    .start-button {
        height: 36px !important;
        font-size: 12px !important;
    }
    
    .system-tray {
        font-size: 10px !important;
    }
    
    .clock .time {
        font-size: 10px !important;
    }
    
    .clock .date {
        font-size: 9px !important;
    }
} 

/* Mobile Layout */
@media (max-width: 768px) {
    .mobile-view .windows-container {
        position: static !important;
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        overflow-y: auto !important;
        padding: 0;
        padding-bottom: 80px; /* Space for social footer */
    }

    .mobile-view .desktop-icons {
        position: static !important;
        display: none !important; /* Hide desktop icons on mobile */
    }

    .mobile-view .taskbar {
        display: none !important; /* Hide taskbar on mobile */
    }

    .mobile-view .start-menu {
        display: none !important; /* Hide start menu on mobile */
    }

    .mobile-view .context-menu {
        display: none !important; /* Hide context menu on mobile */
    }

    /* Hide notifications on mobile */
    .mobile-view .notification {
        display: none !important;
    }

    .mobile-view .notification-container {
        display: none !important;
    }

    /* Ensure About Me and Portfolio windows are fully visible */
    .mobile-view .window {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: 80vh !important;
        margin: 10px 0 !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        z-index: 1 !important;
    }

    .mobile-view .window-content {
        height: auto !important;
        min-height: 70vh !important;
        overflow-y: auto !important;
    }

    /* Make sure About Me and Portfolio windows are prioritized */
    .mobile-view .window[data-app="about"],
    .mobile-view .window[data-app="projects"] {
        order: -1; /* Show first */
        width: 100% !important;
        height: auto !important;
        min-height: 90vh !important;
    }

    .mobile-view .window[data-app="about"] .window-content,
    .mobile-view .window[data-app="projects"] .window-content {
        height: auto !important;
        min-height: 80vh !important;
        padding: 20px !important;
    }
} 