/* Windows XP Portfolio Stylesheet */

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

html, body {
    height: 100%;
    font-family: 'Tahoma', 'Trebuchet MS', sans-serif;
    font-size: 11px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    background: url('assets/images/wallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    /* Fallback gradient if image fails to load */
    background-color: #4a90e2;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-screen.active {
    opacity: 1;
    visibility: visible;
}

.boot-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

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

.profile-logo-boot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-logo-boot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.linux-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-text {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', monospace;
}

.logo-subtitle {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #00cc00;
    font-family: 'Courier New', monospace;
}

.logo-author {
    display: block;
    font-size: 12px;
    color: #888888;
    font-family: 'Courier New', monospace;
    font-style: italic;
    margin-top: 5px;
}

.boot-terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px;
    margin: 15px 0;
    max-height: 150px;
    overflow: hidden;
    text-align: left;
}

.boot-line {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #00ff00;
    line-height: 1.3;
    margin-bottom: 2px;
    opacity: 0;
    animation: bootTextAppear 0.3s ease-out forwards;
}

@keyframes bootTextAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.boot-details {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #00cc00;
    text-align: left;
    margin-top: 10px;
    line-height: 1.3;
}

.system-info {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00cc00;
    margin-top: 10px;
    margin-bottom: 20px;
}

.boot-progress {
    width: 300px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border: 1px solid #555;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #0066cc, #0088ff);
    width: 0%;
    animation: bootProgress 3s ease-out forwards;
}

.boot-message {
    font-size: 12px;
    color: #ccc;
}

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

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/wallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/wallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(10px);
    z-index: -1;
}

.login-screen.active::before {
    filter: blur(10px);
}

.login-screen.active {
    opacity: 1;
    visibility: visible;
}

.login-content {
    text-align: center;
    color: white;
    max-width: 400px;
    width: 90%;
}

.login-content h1 {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.user-selection {
    margin-bottom: 30px;
}

.user-profile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.user-profile:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 3px solid rgba(255,255,255,0.3);
}

.avatar-icon {
    font-size: 32px;
}

.username {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.login-message {
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.login-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 50%, #cdcdcd 51%, #b3b3b3 100%);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 6px 12px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.login-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 50%, #d4d4d4 51%, #bababa 100%);
}

.login-btn:active {
    background: linear-gradient(to bottom, #b3b3b3 0%, #cdcdcd 49%, #e1e1e1 50%, #e1e1e1 100%);
    border-color: #666;
}

/* Desktop */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/wallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #4a90e2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.desktop.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    z-index: 100;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.desktop-icon:hover {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(-2px) scale(1.05);
}

.desktop-icon:hover .icon-image {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.6)) brightness(1.1);
    transform: scale(1.1);
}

.desktop-icon:hover .icon-label {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

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

.icon-image {
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-image img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
}

.icon-label {
    font-size: 11px;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    word-wrap: break-word;
    line-height: 1.2;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, #245fdb 0%, #1941a5 50%, #0d2475 51%, #002171 100%);
    border-top: 1px solid #4a7bc8;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.start-button {
    background: linear-gradient(to bottom, #73bf73 0%, #5da85d 50%, #4a8c4a 51%, #3e7d3e 100%);
    border: 1px outset #5da85d;
    border-radius: 8px;
    height: 32px;
    margin: 4px 6px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}

.start-button:hover {
    background: linear-gradient(to bottom, #7bc67b 0%, #65b065 50%, #519451 51%, #458545 100%);
}

.start-button:active,
.start-button.active {
    background: linear-gradient(to bottom, #4a8c4a 0%, #5da85d 49%, #73bf73 50%, #73bf73 100%);
    border: 1px inset #5da85d;
}

.start-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-icon img {
    width: 16px;
    height: 16px;
}

.start-text {
    text-transform: lowercase;
}

.taskbar-buttons {
    flex: 1;
    display: flex;
    gap: 2px;
    margin-left: 6px;
}

.taskbar-button {
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 50%, #cdcdcd 51%, #b3b3b3 100%);
    border: 1px outset #cdcdcd;
    height: 30px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    max-width: 160px;
    min-width: 120px;
    overflow: hidden;
    white-space: nowrap;
}

.taskbar-button:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 50%, #d4d4d4 51%, #bababa 100%);
}

.taskbar-button.active {
    background: linear-gradient(to bottom, #b3b3b3 0%, #cdcdcd 49%, #e1e1e1 50%, #e1e1e1 100%);
    border: 1px inset #cdcdcd;
}

.taskbar-button img {
    width: 16px;
    height: 16px;
}

.system-tray {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 100%;
    background: rgba(0,0,0,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
    gap: 8px;
}

.tray-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tray-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease;
    touch-action: manipulation;
}

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

.tray-icon img {
    width: 16px;
    height: 16px;
}

.battery-indicator {
    font-size: 12px;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

.tray-separator {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
}

.clock {
    color: white;
    font-size: 11px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    min-width: 60px;
    text-align: center;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 300px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border: 2px outset #e8e8e8;
    border-radius: 8px 8px 0 0;
    box-shadow: 3px -3px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.start-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.start-menu-header {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    padding: 12px;
    border-radius: 6px 6px 0 0;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-small {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-small img {
    width: 16px;
    height: 16px;
}

.user-name {
    font-size: 12px;
    font-weight: bold;
}

.start-menu-items {
    padding: 4px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.1s ease;
}

.menu-item:hover {
    background: linear-gradient(to right, #3399ff 0%, #0066cc 100%);
    color: white;
}

.menu-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon img {
    width: 16px;
    height: 16px;
}

.menu-separator {
    height: 1px;
    background: #c0c0c0;
    margin: 4px 12px;
    border-bottom: 1px solid #ffffff;
}

/* Windows */
.windows-container {
    position: relative;
    z-index: 500;
}

.window {
    position: fixed;
    min-width: 300px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 90vh;
    background: linear-gradient(to bottom, #f8f8f8 0%, #f0f0f0 1%, #e8e8e8 50%, #dcdcdc 100%);
    border: 2px outset #e8e8e8;
    border-radius: 8px 8px 0 0;
    box-shadow: 
        4px 4px 16px rgba(0,0,0,0.35),
        8px 8px 24px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.8) inset,
        0 1px 0 rgba(255,255,255,0.9) inset;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    backdrop-filter: blur(1px);
}

.window.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1100;
}

.window:hover:not(.maximized) {
    box-shadow: 
        5px 5px 20px rgba(0,0,0,0.4),
        10px 10px 30px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.8) inset,
        0 1px 0 rgba(255,255,255,0.9) inset;
    transform: scale(1) translateY(-1px);
}

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

.window.minimized {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.1);
}

.window-header {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 50%, #1e5f99 100%);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px 6px 0 0;
    cursor: move;
    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.window-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-icon img {
    width: 16px;
    height: 16px;
}

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

.window-btn {
    width: 18px;
    height: 16px;
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 50%, #cdcdcd 51%, #b3b3b3 100%);
    border: 1px outset #cdcdcd;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Marlett', sans-serif;
    transition: all 0.1s ease;
}

.window-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 50%, #d4d4d4 51%, #bababa 100%);
}

.window-btn:active {
    background: linear-gradient(to bottom, #b3b3b3 0%, #cdcdcd 49%, #e1e1e1 50%, #e1e1e1 100%);
    border: 1px inset #cdcdcd;
}

.window-btn.close:hover {
    background: linear-gradient(to bottom, #ff4444 0%, #cc3333 100%);
    color: white;
}

.window-content {
    padding: 16px;
    height: calc(100% - 32px);
    overflow-y: auto;
    font-size: 11px;
    color: #000;
    user-select: text;
}

/* About Window Content */
.about-content {
    max-width: 600px;
}

.profile-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.profile-image {
    flex-shrink: 0;
}

.avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    border: 3px solid #e0e0e0;
}

.profile-info h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.profile-info h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.location {
    font-size: 12px;
    color: #888;
}

.about-description h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.about-description p {
    line-height: 1.4;
    margin-bottom: 12px;
    color: #444;
}

.personal-info {
    background: #f8f8f8;
    border: 1px inset #e0e0e0;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

.info-item {
    margin-bottom: 6px;
    font-size: 11px;
}

.info-item strong {
    color: #333;
    min-width: 90px;
    display: inline-block;
}

/* Skills Window Content */
.skills-content {
    max-width: 600px;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 5px;
}

.skill-grid {
    display: grid;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-name {
    min-width: 100px;
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

.skill-bar {
    flex: 1;
    height: 16px;
    background: #e0e0e0;
    border: 1px inset #ccc;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, #4a90e2 0%, #357abd 100%);
    transition: width 1s ease;
    position: relative;
}

/* Projects Window Content */
.projects-content {
    max-width: 700px;
}

.projects-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 5px;
}

.projects-grid {
    display: grid;
    gap: 15px;
}

.project-card {
    background: #f8f8f8;
    border: 2px inset #e0e0e0;
    padding: 15px;
    border-radius: 4px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-header h4 {
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

.project-type {
    font-size: 10px;
    background: #4a90e2;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.project-description {
    line-height: 1.4;
    margin-bottom: 10px;
    color: #444;
    font-size: 11px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tech-tag {
    font-size: 9px;
    background: #e0e0e0;
    color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* Experience Window Content */
.experience-content {
    max-width: 650px;
}

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-date {
    min-width: 70px;
    font-size: 11px;
    font-weight: bold;
    color: #4a90e2;
    text-align: right;
}

.timeline-content {
    flex: 1;
    background: #f8f8f8;
    border: 2px inset #e0e0e0;
    padding: 12px;
    border-radius: 4px;
}

.timeline-content h4 {
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 3px;
}

.timeline-content h5 {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.timeline-content p {
    line-height: 1.4;
    margin-bottom: 10px;
    color: #444;
    font-size: 11px;
}

.timeline-content ul {
    margin-left: 15px;
}

.timeline-content li {
    margin-bottom: 4px;
    font-size: 10px;
    color: #555;
    line-height: 1.3;
}

.skills-used {
    margin-top: 12px;
    padding: 8px;
    background: linear-gradient(to right, #f0f8ff, #e8f4f8);
    border: 1px solid #4a90e2;
    border-radius: 4px;
    font-size: 9px;
    color: #333;
    line-height: 1.4;
}

.skills-used strong {
    color: #4a90e2;
    font-weight: bold;
}

.achievements {
    margin-top: 10px;
    padding: 8px;
    background: linear-gradient(to right, #f0fff0, #e8f5e8);
    border: 1px solid #00aa00;
    border-radius: 4px;
    font-size: 9px;
    color: #333;
}

.achievements strong {
    color: #00aa00;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.achievements ul {
    margin-left: 15px;
    margin-top: 5px;
}

.achievements li {
    margin-bottom: 3px;
    font-size: 9px;
    color: #555;
    line-height: 1.2;
}

/* Contact Window Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
}

.contact-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.contact-info p {
    line-height: 1.4;
    margin-bottom: 15px;
    color: #444;
    font-size: 11px;
}

.contact-methods {
    display: grid;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f8f8;
    border: 1px inset #e0e0e0;
    border-radius: 4px;
}

.contact-icon {
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    width: 16px;
    height: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-details strong {
    font-size: 10px;
    color: #333;
    text-transform: uppercase;
}

.contact-details a,
.contact-details span {
    font-size: 11px;
    color: #0066cc;
    text-decoration: none;
}

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

.contact-form h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.message-form {
    display: grid;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 10px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 4px 6px;
    border: 2px inset #e0e0e0;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.submit-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 50%, #cdcdcd 51%, #b3b3b3 100%);
    border: 2px outset #cdcdcd;
    padding: 6px 12px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
}

.submit-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 50%, #d4d4d4 51%, #bababa 100%);
}

.submit-btn:active {
    background: linear-gradient(to bottom, #b3b3b3 0%, #cdcdcd 49%, #e1e1e1 50%, #e1e1e1 100%);
    border: 2px inset #cdcdcd;
}

/* Resume Window Content */
.resume-content {
    max-width: 500px;
}

.resume-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
}

.resume-header h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.resume-header p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.resume-contact {
    font-size: 10px;
    color: #888;
}

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

.resume-section h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.resume-section p {
    line-height: 1.4;
    color: #444;
    font-size: 11px;
}

.resume-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.resume-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 50%, #cdcdcd 51%, #b3b3b3 100%);
    border: 2px outset #cdcdcd;
    padding: 6px 12px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.resume-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 50%, #d4d4d4 51%, #bababa 100%);
}

.resume-btn:active {
    background: linear-gradient(to bottom, #b3b3b3 0%, #cdcdcd 49%, #e1e1e1 50%, #e1e1e1 100%);
    border: 2px inset #cdcdcd;
}

/* Shutdown Dialog */
.shutdown-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.shutdown-dialog.active {
    opacity: 1;
    visibility: visible;
}

.dialog-content {
    background: #f0f0f0;
    border: 2px outset #e8e8e8;
    border-radius: 8px;
    width: 350px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.dialog-header {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px 6px 0 0;
    color: white;
}

.dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-icon img {
    width: 16px;
    height: 16px;
}

.dialog-header h3 {
    font-size: 12px;
    font-weight: normal;
}

.dialog-message {
    padding: 20px 20px 10px;
    text-align: center;
}

.dialog-message p {
    font-size: 11px;
    color: #333;
}

.dialog-options {
    padding: 0 20px 20px;
    display: grid;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.option-item:hover {
    background: #e8e8e8;
}

.option-item.selected {
    border-color: #4a90e2;
    background: #e8f4ff;
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon img {
    width: 16px;
    height: 16px;
}

.option-text {
    font-size: 11px;
    color: #333;
}

.dialog-buttons {
    padding: 10px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dialog-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 50%, #cdcdcd 51%, #b3b3b3 100%);
    border: 2px outset #cdcdcd;
    padding: 6px 20px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    min-width: 75px;
}

.dialog-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 50%, #d4d4d4 51%, #bababa 100%);
}

.dialog-btn:active {
    background: linear-gradient(to bottom, #b3b3b3 0%, #cdcdcd 49%, #e1e1e1 50%, #e1e1e1 100%);
    border: 2px inset #cdcdcd;
}

.dialog-btn.primary {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: #357abd;
}

.dialog-btn.primary:hover {
    background: linear-gradient(to bottom, #5a9ae7 0%, #4585c7 100%);
}

.dialog-btn.primary:active {
    background: linear-gradient(to bottom, #357abd 0%, #4a90e2 100%);
    border: 2px inset #357abd;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        font-size: 12px;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        overscroll-behavior: none;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -webkit-font-smoothing: antialiased;
    }
    
    /* Mobile-optimized desktop icons */
    .desktop-icons {
        grid-template-columns: repeat(4, 1fr);
        width: calc(100vw - 20px);
        max-width: none;
        padding: 10px;
        top: 10px;
        left: 10px;
        gap: 15px;
    }
    
    .desktop-icon {
        width: auto;
        padding: 8px 4px;
        min-height: 80px;
        touch-action: manipulation;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
    }
    
    .icon-image img {
        width: 40px;
        height: 40px;
    }
    
    .icon-label {
        font-size: 10px;
        line-height: 1.1;
    }
    
    /* Mobile-friendly windows */
    .window {
        min-width: 320px;
        width: calc(100vw - 20px);
        height: calc(100vh - 60px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 60px);
        top: 10px !important;
        left: 10px !important;
        border-radius: 8px;
    }
    
    .window-header {
        padding: 8px;
        min-height: 32px;
        touch-action: manipulation;
    }
    
    .window-btn {
        width: 24px;
        height: 22px;
        font-size: 12px;
        touch-action: manipulation;
    }
    
    .window-content {
        padding: 12px;
        height: calc(100% - 40px);
    }
    
    /* Mobile taskbar */
    .taskbar {
        height: 48px;
        padding: 0 5px;
    }
    
    .start-button {
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
        touch-action: manipulation;
    }
    
    .taskbar-button {
        min-width: 60px;
        max-width: 120px;
        height: 36px;
        padding: 0 6px;
        font-size: 10px;
        touch-action: manipulation;
    }
    
    .system-tray {
        padding: 0 8px;
        min-width: 80px;
    }
    
    .clock {
        font-size: 10px;
        min-width: 50px;
    }
    
    /* Mobile start menu */
    .start-menu {
        width: calc(100vw - 20px);
        max-width: 300px;
        bottom: 48px;
    }
    
    .menu-item {
        padding: 12px;
        font-size: 12px;
        touch-action: manipulation;
    }
    
    /* Mobile-friendly forms and inputs */
    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
        touch-action: manipulation;
    }
    
    .submit-btn,
    .resume-btn,
    .dialog-btn,
    .game-btn {
        padding: 12px 16px;
        font-size: 12px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Mobile layouts */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .dialog-content {
        width: 90%;
        max-width: 320px;
    }
    
    /* Mobile game controls */
    .calc-btn {
        height: 48px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* Mobile Tic-Tac-Toe Complete Redesign */
    .game-window {
        width: calc(100vw - 10px) !important;
        height: calc(100vh - 55px) !important;
        max-width: calc(100vw - 10px) !important;
        max-height: calc(100vh - 55px) !important;
        top: 5px !important;
        left: 5px !important;
    }
    
    .game-content {
        padding: 8px !important;
        display: flex;
        flex-direction: column;
        height: calc(100% - 40px) !important;
        overflow-y: auto;
    }
    
    .game-header {
        flex-shrink: 0;
        padding: 8px 4px;
        margin-bottom: 10px;
        background: rgba(255,255,255,0.9);
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }
    
    .game-status {
        font-size: 16px !important;
        font-weight: bold;
        text-align: center;
        margin-bottom: 10px;
        color: #333;
        padding: 8px;
        background: linear-gradient(to right, #e8f4f8, #f0f8ff);
        border-radius: 4px;
        border: 1px solid #4a90e2;
    }
    
    .game-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .game-mode-selector {
        grid-column: span 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px;
        background: #f8f8f8;
        border-radius: 4px;
        border: 1px solid #ddd;
    }
    
    .game-mode-selector label {
        font-size: 12px !important;
        font-weight: bold;
    }
    
    .game-mode-selector select {
        font-size: 14px !important;
        padding: 6px 10px !important;
        border-radius: 4px;
        border: 1px solid #ccc;
        background: white;
        min-width: 120px;
    }
    
    .tictactoe-board {
        width: min(85vw, 300px) !important;
        height: min(85vw, 300px) !important;
        margin: 10px auto !important;
        flex-shrink: 0;
        background: #f0f0f0;
        border: 3px inset #e0e0e0;
        padding: 6px;
        border-radius: 8px;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .ttt-cell {
        background: linear-gradient(to bottom, #ffffff, #f8f8f8) !important;
        border: 2px outset #e0e0e0 !important;
        border-radius: 4px !important;
        min-height: calc((min(85vw, 300px) - 20px) / 3 - 4px) !important;
        height: calc((min(85vw, 300px) - 20px) / 3 - 4px) !important;
        font-size: clamp(28px, 10vw, 42px) !important;
        font-weight: bold !important;
        touch-action: manipulation;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
        position: relative;
        overflow: hidden;
    }
    
    .ttt-cell:hover {
        background: linear-gradient(to bottom, #f0f8ff, #e8f4f8) !important;
        border-color: #4a90e2 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
    }
    
    .ttt-cell:active {
        border: 2px inset #e0e0e0 !important;
        background: linear-gradient(to bottom, #e8f4f8, #f0f8ff) !important;
        transform: scale(0.95) translateY(1px);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .ttt-cell.x {
        color: #ff4444 !important;
        text-shadow: 2px 2px 4px rgba(255, 68, 68, 0.3);
    }
    
    .ttt-cell.o {
        color: #4444ff !important;
        text-shadow: 2px 2px 4px rgba(68, 68, 255, 0.3);
    }
    
    .ttt-cell:empty:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60%;
        height: 60%;
        border: 2px dashed #ccc;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .ttt-cell:empty:hover:before {
        opacity: 0.5;
    }
    
    .online-controls {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: #f0f8ff;
        border-radius: 6px;
        border: 1px solid #4a90e2;
        width: 100%;
    }
    
    .difficulty {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px;
        background: #fff8e7;
        border-radius: 4px;
        border: 1px solid #ffa500;
    }
    
    .difficulty label {
        font-size: 12px !important;
        font-weight: bold;
    }
    
    .difficulty select {
        font-size: 14px !important;
        padding: 6px 10px !important;
        border-radius: 4px;
        border: 1px solid #ccc;
        background: white;
        min-width: 100px;
    }
    
    .game-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
        padding: 12px;
        background: linear-gradient(to right, #f8f8f8, #f0f0f0);
        border-radius: 6px;
        border: 1px solid #ddd;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .stat {
        text-align: center;
        padding: 6px 12px;
        background: white;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
        min-width: 70px;
        font-size: 11px !important;
        color: #666;
    }
    
    .stat span {
        display: block;
        font-size: 16px !important;
        font-weight: bold;
        color: #333;
        margin-top: 2px;
    }
    
    .game-btn {
        min-height: 52px !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        font-weight: bold;
        width: 100%;
        max-width: 250px;
        border-radius: 6px;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .game-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .game-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    /* Mobile terminal */
    .terminal-input {
        font-size: 14px;
        padding: 8px;
    }
    
    .terminal-line {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Mobile editor */
    .editor-btn {
        width: 32px;
        height: 32px;
        touch-action: manipulation;
    }
    
    .editor-textarea {
        font-size: 14px;
        padding: 12px;
    }
    
    /* Hide some desktop elements on very small screens */
    @media (max-width: 480px) {
        .start-text {
            display: none;
        }
        
        .taskbar-button .button-text {
            display: none;
        }
        
        .desktop-icons {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media (max-width: 480px) {
    .boot-content {
        scale: 0.8;
    }
    
    .login-content {
        scale: 0.9;
    }
    
    .desktop-icons {
        top: 10px;
        left: 10px;
        right: 10px;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .desktop-icon {
        width: auto;
    }
    
    .window-content {
        padding: 12px;
    }
    
    .start-menu {
        width: 200px;
    }
    
    .taskbar {
        height: 35px;
    }
    
    .start-button {
        height: 28px;
        padding: 0 8px;
    }
    
    .start-text {
        display: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #e1e1e1 0%, #cdcdcd 100%);
    border: 1px outset #cdcdcd;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d4d4d4 100%);
}

/* Utility Classes */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dragging {
    cursor: grabbing !important;
}

.window-dragging {
    pointer-events: none;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1s infinite;
}

/* Terminal Styling */
.terminal-window .window-content {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 0;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
}

.terminal-content {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

.terminal-line {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-cursor {
    background: #00ff00;
    color: #000;
    animation: blink 1s infinite;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid #333;
}

.terminal-prompt {
    color: #00cc00;
    margin-right: 5px;
    font-size: 12px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    outline: none;
    caret-color: #00ff00;
}

.terminal-input::placeholder {
    color: #006600;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* LinkedIn Button Styling */
.linkedin-section {
    margin-top: 15px;
    text-align: center;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0077b5;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.linkedin-btn:hover {
    background: #005885;
    text-decoration: none;
}

/* PDF Preview Styling */
.pdf-preview-section {
    margin-top: 20px;
}

.pdf-viewer-container {
    width: 100%;
    height: 400px;
    border: 2px inset #e0e0e0;
    margin-top: 10px;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.competencies {
    margin-left: 20px;
    margin-top: 10px;
}

.competencies li {
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.3;
}

/* Desktop Icons Grid for More Apps */
@media (min-width: 769px) {
    .desktop-icons {
        grid-template-columns: repeat(3, 1fr);
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hacker Theme Accents */
.menu-item:hover {
    background: linear-gradient(to right, #00cc00 0%, #008800 100%);
    color: black;
}

.window-header {
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-bottom: 1px solid #00cc00;
}

.start-button {
    background: linear-gradient(to bottom, #333 0%, #1a1a1a 50%, #000 51%, #111 100%);
    color: #00ff00;
    border-color: #00cc00;
    text-shadow: 0 0 5px #00ff00;
}

.start-button:hover {
    background: linear-gradient(to bottom, #444 0%, #2a2a2a 50%, #111 51%, #222 100%);
    text-shadow: 0 0 8px #00ff00;
}

.taskbar {
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 50%, #000 51%, #111 100%);
    border-top: 1px solid #00cc00;
}

/* Context Menu Styling */
.context-menu {
    position: fixed;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border: 2px outset #e8e8e8;
    border-radius: 4px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    z-index: 3000;
    display: none;
    min-width: 180px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.context-item:hover {
    background: linear-gradient(to right, #3399ff 0%, #0066cc 100%);
    color: white;
}

.context-item img {
    width: 16px;
    height: 16px;
}

.context-separator {
    height: 1px;
    background: #c0c0c0;
    margin: 2px 0;
    border-bottom: 1px solid #ffffff;
}

/* Calculator Styling */
.calculator-window {
    min-width: 280px;
    max-width: 280px;
    min-height: 360px;
    max-height: 360px;
}

.calculator-content {
    padding: 15px;
    background: #f0f0f0;
}

.calculator {
    width: 100%;
}

.calc-display {
    margin-bottom: 10px;
}

.calc-display input {
    width: 100%;
    height: 50px;
    font-size: 18px;
    text-align: right;
    padding: 0 10px;
    border: 2px inset #e0e0e0;
    background: white;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.calc-btn {
    height: 40px;
    font-size: 14px;
    font-weight: bold;
    border: 2px outset #e0e0e0;
    background: linear-gradient(to bottom, #f8f8f8 0%, #e0e0e0 100%);
    cursor: pointer;
    font-family: 'Tahoma', sans-serif;
    transition: all 0.1s ease;
}

.calc-btn:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 100%);
}

.calc-btn:active {
    border: 2px inset #e0e0e0;
    background: linear-gradient(to bottom, #e0e0e0 0%, #f8f8f8 100%);
}

.calc-btn.operation {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    color: white;
}

.calc-btn.operation:hover {
    background: linear-gradient(to bottom, #5a9ae7 0%, #4585c7 100%);
}

.calc-btn.clear {
    background: linear-gradient(to bottom, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.calc-btn.clear:hover {
    background: linear-gradient(to bottom, #ff7b7b 0%, #f06a6a 100%);
}

.calc-btn.equals {
    background: linear-gradient(to bottom, #00cc66 0%, #00b359 100%);
    color: white;
    grid-column: span 2;
}

.calc-btn.equals:hover {
    background: linear-gradient(to bottom, #00dd77 0%, #00c466 100%);
}

.calc-btn.zero {
    grid-column: span 2;
}

/* Game Windows Styling */
.game-window {
    min-width: 450px;
    min-height: 500px;
}

.game-content {
    padding: 15px;
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.game-score {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.game-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.game-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #cdcdcd 100%);
    border: 2px outset #cdcdcd;
    padding: 6px 12px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
}

.game-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d4d4d4 100%);
}

.game-btn:active {
    border: 2px inset #cdcdcd;
    background: linear-gradient(to bottom, #cdcdcd 0%, #e1e1e1 100%);
}

/* Snake Game Styling */
#snakeCanvas {
    border: 3px inset #e0e0e0;
    background: #000;
    margin: 15px 0;
}

.game-instructions {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
}

/* Tic-Tac-Toe Styling */
.game-status {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.difficulty select {
    font-size: 11px;
    padding: 2px 5px;
    border: 1px solid #ccc;
    background: white;
}

.tictactoe-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 200px;
    height: 200px;
    margin: 15px auto;
    border: 2px inset #e0e0e0;
    padding: 5px;
    background: #f0f0f0;
}

.ttt-cell {
    background: white;
    border: 1px outset #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ttt-cell:hover {
    background: #f8f8f8;
}

.ttt-cell:active {
    border: 1px inset #e0e0e0;
}

.ttt-cell.x {
    color: #ff4444;
}

.ttt-cell.o {
    color: #4444ff;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.stat {
    font-size: 11px;
    color: #666;
}

.stat span {
    font-weight: bold;
    color: #333;
}

/* Online Multiplayer Styling */
.game-mode-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.game-mode-selector select {
    font-size: 11px;
    padding: 2px 5px;
    border: 1px solid #ccc;
    background: white;
}

.online-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.player-status {
    text-align: center;
    min-height: 40px;
    padding: 5px;
    font-size: 10px;
    line-height: 1.2;
}

.player-status button {
    margin-top: 3px;
    padding: 3px 8px;
    font-size: 9px;
}

/* Online Player List Styling */
.online-player-list {
    width: 100%;
    margin-top: 10px;
    background: white;
    border: 2px inset #e0e0e0;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.player-list-header {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #357abd;
}

.no-players {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    transition: background-color 0.2s ease;
}

.player-item:hover {
    background: #f8f8ff;
}

.player-item:last-child {
    border-bottom: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-status {
    font-size: 10px;
    width: 12px;
}

.player-name {
    font-weight: bold;
    color: #333;
}

.player-item.available .player-name {
    color: #008800;
}

.player-item.in_game .player-name {
    color: #cc6600;
}

.player-actions {
    display: flex;
    align-items: center;
}

.invite-btn {
    background: linear-gradient(to bottom, #00cc66 0%, #00b359 100%);
    color: white;
    border: 1px outset #00b359;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-btn:hover {
    background: linear-gradient(to bottom, #00dd77 0%, #00c466 100%);
    transform: translateY(-1px);
}

.invite-btn:active {
    border: 1px inset #00b359;
    transform: translateY(0);
}

.status-text {
    font-size: 10px;
    color: #666;
    font-style: italic;
}

/* Mobile Player List */
@media (max-width: 768px) {
    .online-player-list {
        max-height: 150px;
        font-size: 12px;
    }
    
    .player-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .invite-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
        touch-action: manipulation;
    }
    
    .player-list-header {
        font-size: 14px;
        padding: 10px;
    }
}

/* Connection Status Indicator */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(to right, #f0f0f0, #e8e8e8);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: #00cc66;
}

.status-indicator.connecting {
    background: #ffa500;
}

.status-indicator.disconnected {
    background: #ff4444;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Game Chat */
.game-chat {
    margin-top: 15px;
    background: white;
    border: 2px inset #e0e0e0;
    border-radius: 4px;
    max-height: 120px;
    overflow-y: auto;
}

.chat-header {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px 2px 0 0;
}

.chat-messages {
    padding: 8px;
    min-height: 60px;
    max-height: 80px;
    overflow-y: auto;
    font-size: 10px;
    line-height: 1.3;
}

.chat-message {
    margin-bottom: 4px;
    padding: 2px 4px;
    background: #f8f8f8;
    border-radius: 3px;
    word-wrap: break-word;
}

.chat-input {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 10px;
}

.chat-send {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    color: white;
    border: 1px outset #357abd;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 2px;
    cursor: pointer;
}

/* Mobile Chat */
@media (max-width: 768px) {
    .game-chat {
        max-height: 100px;
    }
    
    .chat-messages {
        font-size: 11px;
        max-height: 60px;
    }
    
    .chat-input input {
        font-size: 12px;
        padding: 6px;
    }
    
    .chat-send {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Firefox Browser Window Styling */
.browser-window {
    min-width: 800px;
    min-height: 600px;
}

.browser-content {
    padding: 0;
    height: calc(100% - 32px);
    overflow: hidden;
}

.firefox-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f9f9fa;
}

/* Tab Bar */
.tab-bar {
    display: flex;
    background: linear-gradient(to bottom, #e8e8e8 0%, #d1d1d1 100%);
    border-bottom: 1px solid #a6a6a6;
    padding: 0;
    min-height: 32px;
}

.tab {
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid #a6a6a6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 12px;
    margin: 2px 1px 0 2px;
    min-width: 200px;
    max-width: 240px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
}

.tab.active {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
    z-index: 1;
}

.tab-favicon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.tab-favicon img {
    width: 100%;
    height: 100%;
}

.tab-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.tab-close {
    background: none;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.tab-close:hover {
    background: #ff4444;
    color: white;
}

.new-tab-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    margin: 0 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.new-tab-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border-bottom: 1px solid #a6a6a6;
    padding: 4px 8px;
    gap: 8px;
    min-height: 36px;
}

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

.nav-btn {
    background: linear-gradient(to bottom, #f8f8f8 0%, #e0e0e0 100%);
    border: 1px solid #a6a6a6;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 100%);
}

.nav-btn:active {
    background: linear-gradient(to bottom, #d0d0d0 0%, #f0f0f0 100%);
    border: 1px inset #a6a6a6;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Address Bar */
.address-bar-container {
    flex: 1;
    margin: 0 8px;
}

.address-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 2px inset #e0e0e0;
    border-radius: 6px;
    padding: 4px 8px;
    gap: 6px;
}

.secure-icon {
    font-size: 12px;
    color: #4CAF50;
}

.url-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #333;
    outline: none;
}

.bookmark-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #ffa500;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.bookmark-btn:hover {
    background: rgba(255, 165, 0, 0.1);
}

.browser-actions {
    display: flex;
    gap: 2px;
}

.action-btn {
    background: linear-gradient(to bottom, #f8f8f8 0%, #e0e0e0 100%);
    border: 1px solid #a6a6a6;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 100%);
}

/* Bookmarks Bar */
.bookmarks-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #f8f8f8 0%, #f0f0f0 100%);
    border-bottom: 1px solid #d0d0d0;
    padding: 4px 8px;
    gap: 8px;
    min-height: 28px;
    overflow-x: auto;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.bookmark-item:hover {
    background: rgba(0,0,0,0.1);
}

.bookmark-item img {
    width: 16px;
    height: 16px;
}

/* Browser Viewport */
.browser-viewport {
    flex: 1;
    position: relative;
    background: white;
    overflow: hidden;
}

#browserFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #666;
    font-family: 'Tahoma', sans-serif;
}

/* Mobile Browser Styles */
@media (max-width: 768px) {
    .browser-window {
        min-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        height: calc(100vh - 60px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 60px);
        top: 10px !important;
        left: 10px !important;
    }
    
    .tab-bar {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-bar::-webkit-scrollbar {
        display: none;
    }
    
    .tab {
        min-width: 120px;
        font-size: 11px;
    }
    
    .nav-bar {
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px;
    }
    
    .address-bar-container {
        order: 2;
        width: 100%;
        margin: 4px 0 0 0;
    }
    
    .nav-controls {
        order: 1;
    }
    
    .browser-actions {
        order: 3;
    }
    
    .nav-btn, .action-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    .bookmarks-bar {
        padding: 6px 8px;
        gap: 6px;
    }
    
    .url-input {
        font-size: 14px;
        padding: 4px 0;
    }
}

/* Comprehensive Mobile Responsive Design */
@media (max-width: 768px) {
    /* Base Mobile Adjustments */
    html, body {
        font-size: 12px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Desktop Layout - Mobile Adjustments */
    .desktop {
        padding: 0;
    }

    .desktop-icons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 20px 10px;
        justify-items: center;
        overflow-y: auto;
        height: calc(100vh - 48px); /* Account for mobile taskbar */
    }

    .desktop-icon {
        width: 70px;
        height: 85px;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.2s ease;
        touch-action: manipulation;
    }

    .desktop-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.1);
    }

    .icon-image img {
        width: 42px;
        height: 42px;
    }

    .icon-label {
        font-size: 10px;
        margin-top: 6px;
        text-align: center;
        line-height: 1.2;
    }

    /* Taskbar Mobile Adjustments */
    .taskbar {
        height: 48px;
        padding: 0 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .start-button {
        min-width: 70px;
        height: 36px;
        font-size: 11px;
        padding: 0 8px;
    }

    .start-icon img {
        width: 18px;
        height: 18px;
    }

    .taskbar-buttons {
        flex: 1;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .taskbar-button {
        min-width: 80px;
        height: 36px;
        font-size: 10px;
        margin: 0 1px;
        touch-action: manipulation;
    }

    .system-tray {
        min-width: 120px;
    }

    .tray-icons {
        gap: 4px;
    }

    .tray-icon {
        width: 32px;
        height: 32px;
        touch-action: manipulation;
    }

    .clock {
        font-size: 10px;
        min-width: 50px;
    }

    /* Window Mobile Adjustments */
    .window {
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        min-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        top: 10px !important;
        left: 10px !important;
    }

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

    .window-header {
        height: 44px;
        padding: 0 12px;
        touch-action: none;
    }

    .window-title {
        font-size: 12px;
    }

    .window-controls {
        gap: 8px;
    }

    .window-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 6px;
        touch-action: manipulation;
    }

    .window-content {
        padding: 12px;
        font-size: 12px;
    }

    /* Start Menu Mobile */
    .start-menu {
        width: calc(100vw - 20px);
        max-width: 280px;
        bottom: 58px;
        left: 10px;
        border-radius: 8px;
    }

    .start-menu-items {
        max-height: 60vh;
        overflow-y: auto;
    }

    .menu-item {
        padding: 12px 16px;
        font-size: 12px;
        touch-action: manipulation;
    }

    .menu-item:active {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Game Windows Mobile */
    .game-content {
        padding: 8px;
    }

    .game-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .game-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .game-btn {
        padding: 10px 16px;
        font-size: 12px;
        min-width: 80px;
        touch-action: manipulation;
    }

    /* Calculator Mobile */
    .calculator-content {
        padding: 8px;
    }

    .calc-display {
        margin-bottom: 12px;
    }

    .calc-display input {
        height: 48px;
        font-size: 18px;
        padding: 0 12px;
    }

    .calc-buttons {
        gap: 8px;
    }

    .calc-btn {
        height: 48px;
        font-size: 16px;
        border-radius: 6px;
        touch-action: manipulation;
    }

    /* Tic-Tac-Toe Mobile */
    .tictactoe-board {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        gap: 4px;
    }

    .ttt-cell {
        font-size: 36px;
        border-radius: 8px;
        touch-action: manipulation;
    }

    /* Snake Game Mobile */
    #snakeCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: 8px;
    }

    /* Terminal Mobile */
    .terminal-content {
        padding: 8px;
        font-size: 11px;
    }

    .terminal-input {
        font-size: 12px;
        padding: 8px;
        border-radius: 4px;
    }

    /* Form Mobile */
    .message-form input,
    .message-form textarea {
        font-size: 14px;
        padding: 10px;
        border-radius: 6px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
        touch-action: manipulation;
    }

    /* Skills Mobile */
    .skill-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skill-item {
        padding: 8px 0;
    }

    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        padding: 16px;
        border-radius: 8px;
    }

    /* Timeline Mobile */
    .timeline-item {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .timeline-date {
        font-size: 11px;
        margin-bottom: 8px;
    }

    /* Contact Mobile */
    .contact-content {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    /* Boot and Login Mobile */
    .boot-content,
    .login-content {
        padding: 20px;
        width: 95%;
        max-width: 320px;
    }

    .logo-text {
        font-size: 24px;
    }

    .user-profile {
        padding: 16px;
        border-radius: 8px;
    }

    .user-avatar {
        width: 56px;
        height: 56px;
    }

    /* Virtual Keyboard Support */
    .virtual-keyboard {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #333;
        padding: 10px;
        z-index: 10000;
        display: none;
    }

    .virtual-keyboard.active {
        display: block;
    }

    /* Touch Feedback */
    .desktop-icon:active,
    .window-btn:active,
    .calc-btn:active,
    .game-btn:active,
    .submit-btn:active,
    .taskbar-button:active,
    .start-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px !important;
    }

    /* Notification Mobile */
    .notification {
        width: calc(100vw - 40px);
        max-width: 300px;
        left: 20px;
        right: 20px;
        margin: 0 auto;
        border-radius: 8px;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .desktop-icons {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        padding: 30px 20px;
    }

    .window {
        min-width: 500px;
        border-radius: 6px;
    }

    .taskbar {
        height: 44px;
    }

    .window-header {
        height: 36px;
    }
}

/* Large Mobile Adjustments */
@media (max-width: 480px) {
    .desktop-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 15px 8px;
    }

    .desktop-icon {
        width: 80px;
        height: 90px;
    }

    .icon-image img {
        width: 48px;
        height: 48px;
    }

    .start-menu {
        width: calc(100vw - 10px);
        left: 5px;
    }

    .tictactoe-board {
        width: 250px;
        height: 250px;
    }

    .calc-display input {
        font-size: 20px;
        height: 52px;
    }

    .calc-btn {
        height: 52px;
        font-size: 18px;
    }
}

/* Advanced Resume Styles */
.resume-app {
    display: flex;
    flex-direction: column;
    height: calc(100% - 10px);
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.resume-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-bottom: 1px solid #ddd;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.toolbar-btn img {
    width: 12px;
    height: 12px;
}

.theme-selector {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.resume-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.resume-tabs::-webkit-scrollbar {
    display: none;
}

.resume-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.resume-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.resume-tab:hover:not(.active) {
    background: rgba(0,0,0,0.05);
}

.resume-content-area {
    flex: 1;
    overflow-y: auto;
    background: white;
    position: relative;
}

.resume-tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Tab Styles */
.resume-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-photo {
    position: relative;
    flex-shrink: 0;
}

.profile-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-indicator.online {
    background: #00d084;
    animation: pulse 2s infinite;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.location-status {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.location,
.availability {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.contact-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-card {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 16px;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.summary-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.summary-section h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 20px;
}

.summary-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.highlights h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.highlights ul {
    list-style: none;
    padding: 0;
}

.highlights li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.highlights li:last-child {
    border-bottom: none;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 100%;
}

.timeline-item {
    position: relative;
    padding: 0 0 32px 60px;
    border-left: 2px solid #e9ecef;
}

.timeline-item.featured {
    border-left-color: #667eea;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-marker {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid white;
}

.timeline-marker.current {
    background: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.timeline-marker.founder {
    background: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.timeline-item.featured .timeline-content {
    border-left: 4px solid #667eea;
}

.job-header {
    margin-bottom: 16px;
}

.job-header h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.company {
    color: #667eea;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.duration,
.employment-type {
    color: #6c757d;
    font-size: 12px;
    margin-right: 16px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

/* Skills Dashboard */
.skills-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.skill-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-category {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.skill-category h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 16px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.skill-item.expert {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.skill-item.advanced {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(34, 139, 34, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.skill-item.intermediate {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.skill-name {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.skill-level {
    flex: 1;
    position: relative;
}

.skill-progress {
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.skill-years {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 10px;
    color: #6c757d;
}

.skill-rating {
    font-size: 16px;
    color: #ffc107;
}

/* Projects Showcase */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.project-card.featured {
    border: 2px solid #667eea;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-header h3 {
    color: #333;
    font-size: 18px;
    margin: 0;
}

.project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.live {
    background: #d4edda;
    color: #155724;
}

.project-status.demo {
    background: #d1ecf1;
    color: #0c5460;
}

.project-status.maintenance {
    background: #fff3cd;
    color: #856404;
}

.project-metrics {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.metric {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    color: #495057;
}

/* Education Timeline */
.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.education-item {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.edu-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.edu-content h3 {
    color: #333;
    margin: 0 0 8px 0;
}

.institution {
    color: #667eea;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.duration {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-bottom: 12px;
}

.subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.subject {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    color: #495057;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.cert-card.verified {
    border-color: #28a745;
}

.cert-badge {
    font-size: 48px;
    margin-bottom: 16px;
}

.cert-card h3 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.cert-issuer {
    color: #667eea;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.cert-date {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-bottom: 12px;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 12px 0;
}

.cert-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.cert-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cert-btn:hover {
    background: #764ba2;
    transform: translateY(-1px);
}

/* Analytics Dashboard */
.analytics-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-feed {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.activity-feed h4 {
    margin-bottom: 16px;
    color: #333;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.activity-time {
    color: #6c757d;
    font-size: 11px;
}

.skill-trends {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.skill-trends h4 {
    margin-bottom: 16px;
    color: #333;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trend-skill {
    min-width: 80px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.trend-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.trend-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.trend-percentage {
    font-size: 11px;
    color: #28a745;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

/* Resume Footer */
.resume-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: white;
    color: #667eea;
}

.action-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn.primary:hover {
    background: #f8f9fa;
}

.action-btn.secondary:hover {
    background: rgba(255,255,255,0.3);
}

.last-updated {
    font-size: 11px;
    opacity: 0.9;
}

/* Mobile Responsive for Resume */
@media (max-width: 768px) {
    .resume-toolbar {
        flex-direction: column;
        gap: 8px;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }
    
    .resume-tabs {
        flex-wrap: wrap;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .skills-dashboard {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-showcase {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resume-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Desktop Icons Grid Update for More Apps */
@media (min-width: 769px) {
    .desktop-icons {
        grid-template-columns: repeat(3, 1fr);
        max-width: 320px;
    }
}

/* File Manager Styling */
.file-manager {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.toolbar {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.toolbar-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #cdcdcd 100%);
    border: 1px outset #cdcdcd;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d4d4d4 100%);
}

.toolbar-btn:active {
    border: 1px inset #cdcdcd;
}

.address-bar {
    padding: 5px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.address-bar input {
    width: 100%;
    padding: 4px 8px;
    border: 2px inset #e0e0e0;
    font-size: 11px;
    background: white;
}

.file-area {
    flex: 1;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background: rgba(51, 153, 255, 0.1);
}

.file-item img {
    margin-bottom: 5px;
}

.file-item span {
    font-size: 10px;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

/* Text Editor Styling */
.text-editor-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 32px);
}

.editor-toolbar {
    display: flex;
    gap: 2px;
    padding: 5px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.editor-btn {
    width: 24px;
    height: 24px;
    background: linear-gradient(to bottom, #e1e1e1 0%, #cdcdcd 100%);
    border: 1px outset #cdcdcd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
}

.editor-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d4d4d4 100%);
}

.editor-btn:active {
    border: 1px inset #cdcdcd;
}

.editor-btn img {
    width: 16px;
    height: 16px;
}

.separator {
    width: 1px;
    height: 20px;
    background: #c0c0c0;
    margin: 0 3px;
}

.editor-textarea {
    flex: 1;
    border: none;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: none;
    outline: none;
    background: white;
}

/* Network Manager Styling */
.network-content h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.network-status {
    background: #f8f8f8;
    border: 1px inset #e0e0e0;
    padding: 10px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}

.status-label {
    font-weight: bold;
    color: #333;
}

.status-value {
    color: #666;
}

.status-value.connected {
    color: #00aa00;
    font-weight: bold;
}

.network-list {
    background: white;
    border: 2px inset #e0e0e0;
    max-height: 200px;
    overflow-y: auto;
}

.network-item {
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.network-item:hover {
    background: #f0f8ff;
}

.network-item.connected {
    background: #e8f5e8;
    font-weight: bold;
}

.network-signal {
    font-family: monospace;
    font-size: 10px;
    color: #666;
}

/* System Information Styling */
.system-content {
    max-width: 600px;
}

.system-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
}

.system-title h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.system-title p {
    font-size: 12px;
    color: #666;
}

.system-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.tab-btn {
    background: linear-gradient(to bottom, #e1e1e1 0%, #cdcdcd 100%);
    border: 2px outset #cdcdcd;
    padding: 8px 16px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.tab-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d4d4d4 100%);
}

.tab-btn.active {
    background: linear-gradient(to bottom, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: #357abd;
}

.tab-content {
    background: #f8f8f8;
    border: 2px inset #e0e0e0;
    padding: 15px;
    min-height: 200px;
}

.info-group {
    display: grid;
    gap: 10px;
}

.info-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    font-size: 11px;
    align-items: center;
}

.info-item strong {
    color: #333;
}

.info-item span {
    color: #666;
}

.performance-meter {
    margin-bottom: 15px;
}

.performance-meter strong {
    display: block;
    font-size: 11px;
    color: #333;
    margin-bottom: 5px;
}

.meter {
    width: 100%;
    height: 16px;
    background: #e0e0e0;
    border: 1px inset #ccc;
    margin-bottom: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(to right, #00aa00 0%, #66cc66 100%);
    transition: width 1s ease;
}

.performance-meter span {
    font-size: 10px;
    color: #666;
}

/* Image Loading States */
img {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

img.image-error-fallback {
    filter: grayscale(50%) opacity(0.8);
    border: 2px dashed #ccc;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

img.image-error-fallback::before {
    content: '👤';
    font-size: 24px;
    position: absolute;
    z-index: 1;
}

img.image-loaded {
    opacity: 1;
    filter: none;
}

/* Enhanced Profile Image Styles */
.avatar-icon img,
.avatar-large img,
.profile-photo img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.avatar-icon img:hover,
.avatar-large img:hover,
.profile-photo img:hover {
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* Error state for profile images */
.avatar-icon img.image-error-fallback,
.avatar-large img.image-error-fallback,
.profile-photo img.image-error-fallback {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #667eea, #764ba2);
    filter: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* Loading animation for images - REMOVED to prevent blinking */
@keyframes imageLoading {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Only apply loading animation to images that are actually loading */
img.image-loading {
    animation: imageLoading 1.5s ease-in-out infinite;
}

/* Fallback SVG styling */
.image-error-fallback {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
