/* ============================================
   ProfileMe XP - Windows XP Style Portfolio
   Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --xp-blue: #0055e5;
  --xp-blue-dark: #0046c7;
  --xp-blue-light: #0078d7;
  --xp-green: #3c9c3c;
  --xp-green-light: #60b860;
  --xp-silver: #ece9d8;
  --xp-silver-light: #f5f3ed;
  --xp-silver-dark: #d4d0c8;
  --xp-gold: #ffd700;
  --xp-taskbar: #2358c3;
  --xp-taskbar-dark: #1941a0;
  --xp-start-green: #3c9c3c;
  --xp-start-green-dark: #2d7a2d;
  --xp-window-header: #0a246a;
  --xp-window-header-inactive: #7b8aa8;
  --xp-window-border: #0055e5;
  --xp-window-bg: #fff;
  --xp-text: #000;
  --xp-text-light: #666;
  --xp-text-white: #fff;
  --xp-font: 'Vazirmatn', 'Inter', Tahoma, 'Segoe UI', sans-serif;
  --xp-font-size: 13px;
  --xp-border-radius: 8px;
  --xp-taskbar-height: 30px;
  --transition-speed: 0.3s;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('./assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('./assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--xp-font);
  font-size: var(--xp-font-size);
  color: var(--xp-text);
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

/* LTR Support */
body {
  direction: ltr;
  text-align: left;
}

/* ---------- Screen Reader Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   BOOT SCREEN
   ============================================ */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 1s ease-out;
}

.boot-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-content {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 40px;
  display: block;
}

.boot-loader-container {
  width: 200px;
}

.boot-loader-bar {
  width: 100%;
  height: 18px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #444;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.boot-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #3a9a3a 0%, #2a7a2a 50%, #1a5a1a 100%);
  transition: width 0.4s ease;
  border-radius: 1px;
}

.boot-delay-message {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
}

.boot-bottom-left {
  position: fixed;
  bottom: 20px;
  left: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boot-bottom-right {
  position: fixed;
  bottom: 20px;
  right: 24px;
}

.boot-bottom-right img {
  height: 24px;
  width: auto;
  opacity: 0.6;
}

/* Boot Fadeout */
.boot-fadeout {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.boot-fadeout.active {
  opacity: 1;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: linear-gradient(135deg, #0a246a 0%, #1a3a8a 30%, #2a5aaa 60%, #0f2a6a 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.login-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.login-screen-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-screen-center {
  display: flex;
  align-items: center;
  gap: 40px;
}

.login-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.xp-logo-image {
  width: 100px;
  height: auto;
  display: block;
}

.login-left-text {
  max-width: 220px;
  text-align: center;
}

.desktop-login-instruction {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
}

.login-instruction-name {
  color: #fff;
  font-weight: 600;
}

.login-divider {
  width: 1px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
}

.login-right {
  display: flex;
  align-items: center;
}

.login-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.login-user-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.login-user-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.login-user-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: block;
}

.login-user-info {
  text-align: left;
}

.login-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.login-user-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.login-bottom-left {
  position: fixed;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.login-bottom-left:hover {
  opacity: 1;
}

.login-restart-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.login-restart-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.login-bottom-details {
  position: fixed;
  bottom: 20px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.login-bottom-detail {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

/* Welcome Message */
.welcome-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 8000;
  color: #fff;
  padding: 20px 40px;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.welcome-message.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.welcome-image-fallback {
  display: inline-block;
}

/* ============================================
   WALLPAPER PRELOAD
   ============================================ */
#preload-wallpaper {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   DESKTOP
   ============================================ */
.desktop {
  position: fixed;
  inset: 0;
  top: 0;
  bottom: var(--xp-taskbar-height);
  z-index: 1;
  display: none;
}

.desktop.active {
  display: block;
}

.desktop-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.wallpaper-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.wallpaper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 24px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  width: 80px;
  text-align: center;
}

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

.desktop-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.desktop-icon.selected {
  background: rgba(255, 255, 255, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.25);
}

.desktop-icon-img {
  width: 48px;
  height: 48px;
  display: block;
  image-rendering: auto;
}

.desktop-icon-label {
  font-size: 11px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  word-break: break-word;
  color: #fff;
  font-weight: 500;
}

/* ============================================
   WINDOWS (Windows XP Style)
   ============================================ */
.windows-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.window {
  position: absolute;
  min-width: 300px;
  min-height: 200px;
  background: #fff;
  border: 2px solid #284ffd;
  border-radius: 8px 8px 0 0;
  border-top-width: 1.5px;
  filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.5));
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
  animation: window-open 0.2s ease-out;
}

.window.active {
  border-color: #284ffd;
}

.window:not(.active) {
  border-color: #3d7bff;
}

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

.window.minimized {
  display: none;
}

.window.maximized {
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 0 !important;
  box-shadow: none !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - var(--xp-taskbar-height)) !important;
}

.window.inactive .window-header {
  background: linear-gradient(180deg, #7b8aa8 0%, #5a6a8a 8%, #5a6a8a 40%, #4a5a7a 88%, #5a6a8a 100%);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px 6px 0 0;
  margin: 0 -1px;
  min-height: 30px;
  overflow: hidden;
  padding-bottom: 1px;
  position: relative;
  width: calc(100% + 2px);
  background: linear-gradient(180deg, #0a246a 0%, #0a246a 4%, #0e2a7a 11%, #12308a 22%, #16369a 32%, #1a3caa 40%, #1e42b5 48%, #2248c0 55%, #264ecb 62%, #2a54d6 69%, #2e5ae1 77%, #3260ec 84%, #3666f0 92%, #3a6cf5 100%);
  color: #fff;
  cursor: move;
  flex-shrink: 0;
}

.window-header .window-title {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 3px;
  flex: 1;
  overflow: hidden;
}

.window-header .window-icon {
  display: flex;
  align-items: center;
  margin-right: 4px;
  user-select: none;
}

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

.window-header .window-title-text {
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
  padding: 3px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.window-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.window-btn {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, #3a6cf5 0%, #2a54d6 50%, #1e42b5 100%);
  color: #fff;
  font-size: 12px;
  font-family: 'Webdings', 'Segoe UI', Tahoma, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-right: 2px;
  line-height: 1;
}

.window-btn:hover {
  background: linear-gradient(180deg, #5a7cf5 0%, #4a6ae6 50%, #3a5ad6 100%);
}

.window-btn:active {
  background: linear-gradient(180deg, #1a3aa0 0%, #2248b0 50%, #2a54c0 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.window-minimize {
  border-radius: 3px 0 0 3px;
}

.window-maximize {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.window-close {
  border-radius: 0 3px 3px 0;
}

.window-close:hover {
  background: linear-gradient(180deg, #e04343 0%, #c03030 50%, #a02020 100%) !important;
  border-color: #c03030;
}

.window-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: #fff;
  direction: ltr;
}

.window-content {
  flex: 1;
  min-height: 100px;
}

.window-statusbar {
  height: 22px;
  background: #e9e9e9;
  border-top: 1px solid #d0d0d0;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  color: #666;
  flex-shrink: 0;
}

/* Window Content Styles */
.window-content h2 {
  font-size: 20px;
  color: var(--xp-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--xp-silver-dark);
}

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

.window-content p {
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

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

.window-content li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-content li::before {
  content: "•";
  color: var(--xp-blue);
  font-weight: bold;
}

/* Resume styles */
.resume-section {
  margin-bottom: 20px;
}

.resume-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 8px;
  border-right: 3px solid var(--xp-blue);
}

.resume-item-title {
  font-weight: 600;
  color: var(--xp-blue);
}

.resume-item-sub {
  font-size: 12px;
  color: var(--xp-text-light);
  margin-top: 2px;
}

/* Projects styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.project-card {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card-icon {
  font-size: 36px !important;
  margin-bottom: 8px;
  color: var(--xp-blue);
}

.project-card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.project-card-desc {
  font-size: 12px;
  color: var(--xp-text-light);
}

/* Skills styles */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.skill-item {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.skill-item-icon {
  font-size: 32px !important;
  color: var(--xp-blue);
  margin-bottom: 8px;
}

.skill-item-name {
  font-weight: 500;
  font-size: 13px;
}

.skill-item-level {
  font-size: 11px;
  color: var(--xp-text-light);
  margin-top: 4px;
}

/* Contact form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  font-weight: 500;
  font-size: 13px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s;
  direction: ltr;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--xp-blue);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 10px 24px;
  background: linear-gradient(180deg, var(--xp-blue-light), var(--xp-blue-dark));
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* ============================================
   TASKBAR (Windows XP Style)
   ============================================ */
:root {
  --taskbar-height: 30px;
  --taskbar-item-height: 26px;
  --icon-size-small: 15px;
  --tray-spacing: 6px;
  --taskbar-text-shadow: 1px 1px 1px rgba(0,0,0,.6);
}

.taskbar {
  align-items: center;
  background-image: url('../../assets/gui/taskbar/taskbar-bg.webp');
  background-repeat: repeat-x;
  background-size: auto 100%;
  bottom: 0;
  display: flex;
  height: var(--taskbar-height);
  left: 0;
  overflow: hidden;
  position: fixed;
  touch-action: none;
  width: 100%;
  z-index: 500;
}

/* Start Button */
.start-button {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  height: var(--taskbar-height);
  margin: 0;
  padding: 0;
  position: relative;
  transition: filter .1s ease;
  width: auto;
  flex-shrink: 0;
  cursor: pointer;
}

.start-button:hover {
  filter: brightness(1.15);
}

.start-button.active,
.start-button:active {
  filter: brightness(.9);
}

.start-button img {
  border: none;
  display: block;
  height: var(--taskbar-height);
}

.start-button:focus {
  outline: none !important;
}

/* Taskbar Programs */
.taskbar-programs {
  align-items: center;
  display: flex;
  flex-grow: 1;
  height: 100%;
  margin: 0 4px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.taskbar-item {
  align-items: center;
  background: linear-gradient(180deg, #3ba0e7 0%, #3295eb 50%, #3389d4);
  border: 1px solid #0e63ad;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, .2);
  color: #fff;
  display: flex;
  flex-shrink: 1;
  font-size: 11px;
  height: var(--taskbar-item-height);
  justify-content: flex-start;
  margin: 0 2px;
  overflow: hidden;
  padding: 0 10px;
  position: relative;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  transition: width .15s, background .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
  max-width: 180px;
  cursor: pointer;
}

.taskbar-item:hover {
  background: linear-gradient(180deg, #56b6fc 0%, #52aeff 50%, #0e81ec);
  border: 1px solid #2176c7;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, .45), 0 1px 2px rgba(0, 0, 0, .18);
}

.taskbar-item.active {
  background: linear-gradient(0deg, #1a5a99 0%, #2176c7);
  border: 1px solid #174a7c;
  box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .4), inset -1px -1px 0 hsla(0, 0%, 100%, .05);
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
}

.taskbar-item img {
  display: block;
  flex-shrink: 0;
  height: var(--icon-size-small);
  margin-right: 6px;
  position: relative;
  width: var(--icon-size-small);
}

.taskbar-item span {
  flex: 1;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* System Tray */
.system-tray {
  align-items: center;
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  height: 100%;
  margin-left: auto;
  min-width: 0;
  padding-right: 0;
  position: relative;
  width: auto;
}

.system-tray img.system-tray-bg {
  height: var(--taskbar-height);
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.tray-content {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0 12px 0 12px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.tray-icons {
  align-items: center;
  display: flex;
  gap: var(--tray-spacing);
  height: 100%;
  margin-right: 8px;
}

.tray-welcome-icon,
.tray-crt-toggle,
.tray-fullscreen-icon {
  align-items: center;
  display: flex;
  height: 16px;
  object-fit: contain;
  position: relative;
  width: 16px;
  cursor: pointer;
}

.tray-welcome-icon:hover,
.tray-crt-toggle:hover,
.tray-fullscreen-icon:hover {
  filter: brightness(1.2);
}

.system-tray img {
  display: block;
  height: var(--taskbar-height);
}

.time {
  color: #fff;
  font-size: 11px;
  padding: 0;
  position: static;
  text-shadow: var(--taskbar-text-shadow);
  white-space: nowrap;
  z-index: 2;
}

/* ============================================
   START MENU (Windows XP Style)
   ============================================ */
.startmenu {
  background-color: var(--xp-silver);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 5px 5px 0 0;
  bottom: var(--xp-taskbar-height);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4), 2px 4px 10px rgba(0, 0, 0, 0.4);
  direction: ltr;
  display: none;
  flex-direction: column;
  height: 455px;
  left: 0;
  opacity: 0;
  overflow: hidden;
  position: fixed;
  transition: opacity 0.1s ease, visibility 0s;
  visibility: hidden;
  width: 335px;
  z-index: 99;
  pointer-events: none;
}

.startmenu.active {
  display: flex;
  opacity: 1;
  transition: opacity 0.1s ease, visibility 0s;
  visibility: visible;
  pointer-events: auto;
}

/* Top Bar */
.menutopbar {
  align-items: center;
  background: linear-gradient(180deg, #1868ce 0%, #0e60cb 12%, #0e60cb 20%, #1164cf 32%, #1667cf 33%, #1b6cd3 47%, #1e70d9 54%, #2476dc 60%, #297ae0 65%, #3482e3 77%, #3786e5 79%, #428ee9 90%, #4791eb);
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 -2px 3px rgba(10, 36, 106, 0.4);
  display: flex;
  flex: 0 0 51px;
  height: 51px;
  position: relative;
  width: 100%;
}

.menutopbar:after {
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 165, 0, 0.9) 30%, rgba(255, 165, 0, 0.9) 70%, rgba(255, 140, 0, 0.1));
  bottom: 0;
  box-shadow: 0 1px 2px hsla(0, 0%, 100%, 0.3);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.userpicture {
  border: 2px solid hsla(0, 0%, 100%, 0.7);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 95, 184, 0.6), inset 0 0 2px 1px hsla(0, 0%, 100%, 0.35);
  height: 40px;
  margin: 7px 8px 8px;
  width: 40px;
}

.username {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Middle Section */
.start-menu-middle {
  box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, 0.3);
  direction: ltr;
  display: flex;
  flex: 1;
  overflow: hidden;
  width: 100%;
}

.middle-left {
  background-color: #fff;
  box-shadow: inset -2px 0 3px -1px rgba(0, 0, 0, 0.15), inset 0 3px 4px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  width: 52%;
}

.middle-right {
  background-color: #d2e5fa;
  border-left: 1px solid #a6bbd6;
  box-shadow: inset 2px 0 3px -1px hsla(0, 0%, 100%, 0.7), inset 0 3px 4px -3px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  width: 48%;
}

.middle-right .menu-items {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.middle-right .menu-items:after {
  content: "";
  flex: 1;
  min-height: 139px;
}

/* Menu Items */
.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.middle-left .menu-items {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 4px 0;
  gap: 0;
}

.menu-item {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  margin: 0;
  padding: 6px 8px;
  cursor: pointer;
  transition: background-color 0.05s ease;
  width: 100%;
}

.middle-left .menu-item {
  flex: 0 0 auto;
  padding: 6px 8px;
  min-height: 38px;
}

.middle-right .menu-item {
  height: 35px;
  max-height: 35px;
  min-height: 35px;
  padding: 8px 7.5px 8px 9px;
}

.middle-right .menu-item img {
  height: 25px;
  margin-left: 1px;
  margin-right: 7px;
  width: 25px;
}

.middle-right .menu-item .item-title {
  font-size: 11.5px;
  letter-spacing: normal;
}

.menu-item:hover {
  background-color: #2f71cd;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2), 0 0 1px hsla(0, 0%, 100%, 0.3);
  color: #fff;
}

.menu-item:hover .item-description,
.menu-item:hover .item-title {
  color: #fff !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  transition: color 0.05s ease;
}

.menu-item .item-description,
.menu-item .item-title,
.menu-item img {
  transition: color 0.05s ease, filter 0.05s ease;
}

.middle-left .menu-item img {
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
  height: 30px;
  margin-right: 7px;
  width: 30px;
}

.item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-description,
.item-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
}

#menu-contact .item-title,
#menu-projects .item-title,
.middle-right #menu-github .item-title,
.middle-right #menu-instagram .item-title,
.middle-right #menu-linkedin .item-title,
.middle-right #menu-recently-used .item-title {
  font-weight: 600;
}

.item-description {
  color: #777;
  font-size: 9.5px;
  line-height: 1.2;
  margin-top: 1px;
}

.menu-item:hover .item-description {
  color: #fff;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

/* Menu Dividers */
.menu-divider {
  list-style: none;
  margin: 0;
  padding: 0;
}

.divider {
  background: linear-gradient(90deg, transparent 0%, #d2d2d2 50%, transparent);
  border: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.middle-left .menu-divider {
  flex: 0 0 auto;
  height: 1px;
}

/* All Programs Button */
.all-programs-container {
  display: flex;
  flex: 0 0 35px;
  flex-direction: column;
  width: 100%;
}

.all-programs-button {
  align-items: center;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, 0.3);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  height: 35px;
  justify-content: center;
  padding-left: 10px;
  width: 100%;
  cursor: pointer;
}

.all-programs-button span {
  line-height: 18px;
  margin-right: 10px;
}

.all-programs-button img {
  height: 18px;
  width: 18px;
}

.all-programs-button:hover {
  background-color: #2f71cd;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2), 0 0 2px hsla(0, 0%, 100%, 0.2);
  color: #fff;
}

/* Footer */
.start-menu-footer {
  align-items: center;
  background-color: #0f61cb;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}

.start-menu-footer:before {
  background: linear-gradient(180deg, #428ee9 0%, #3786e5 10%, #3482e3 21%, #297ae0 35%, #2476dc 40%, #1e70d9 46%, #1b6cd3 53%, #1667cf 67%, #1164cf 68%, #0e60cb 80%, #0e60cb 88%, #1868ce);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.footer-buttons {
  align-items: center;
  display: flex;
  height: 100%;
  padding-right: 2px;
  position: relative;
  z-index: 1;
}

.footer-button {
  align-items: center;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  font-size: 12.5px;
  height: 30px;
  margin: 0 5px;
  padding: 0;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  transition: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.footer-button > img {
  pointer-events: none;
}

.footer-button span {
  padding: 0 6px;
}

.footer-button img {
  border-radius: 3px;
  box-shadow: none;
  height: 24px;
  transition: filter 0.1s ease;
  width: 24px;
}

.footer-button:hover {
  background-color: transparent;
  box-shadow: none;
}

.footer-button:hover img {
  filter: brightness(1.2);
}

.footer-button.disabled,
.footer-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.7);
}

.footer-button.disabled:hover img,
.footer-button:disabled:hover img {
  filter: grayscale(0.7) brightness(1);
}

/* Right column arrow */
.mut-menu-arrow {
  color: inherit;
  font-size: 10px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scaleX(0.5);
}

/* ============================================
   ABOUT ME PAGE (Original Site Style)
   ============================================ */
.about-wrapper {
  display: flex;
  flex-direction: row;
  height: 100%;
  min-height: 400px;
  background-attachment: fixed;
  background-image: url('../../assets/apps/about/aboutbg.webp');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin: -16px;
  padding: 0;
  width: calc(100% + 32px);
}

.about-left-panel {
  background: linear-gradient(180deg, #748aff 0%, #4057d3);
  flex-shrink: 0;
  height: 100%;
  max-width: 190px;
  min-width: 190px;
  padding: 0;
  position: relative;
  width: 190px;
  z-index: 1;
  box-sizing: border-box;
  overflow-y: auto;
}

.about-left-panel:after {
  background: linear-gradient(180deg, #fff 0%, transparent 70%);
  content: "";
  height: 100%;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0.8);
  transform-origin: right;
  width: 1px;
  z-index: 2;
}

.about-card {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: calc(95% - 6px);
  overflow: hidden;
  padding: 14px 0 0 0;
  width: calc(92% - 6px);
}

.about-card:first-child {
  padding-top: 20px;
}

.about-card-header {
  align-items: center;
  background: linear-gradient(90deg, #fff 0%, #f0f0ff 50%, #c2d4ec);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  height: 23px;
  padding-left: 10px;
  padding-right: 8px;
  cursor: pointer;
}

.about-card-social .about-card-header {
  background: linear-gradient(90deg, #054394 0%, #0484fb);
}

.about-card-social .about-card-header-text {
  color: #fff;
}

.about-card-content {
  background: #c2d4ec;
  border-bottom: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.about-card-inner {
  padding: 5px 10px;
}

.about-card-header-text {
  color: #0c327d;
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.about-card-header-img {
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
  height: 13px;
  width: 13px;
}

.about-card-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  text-decoration: none;
  color: inherit;
}

.about-card-row + .about-card-row {
  margin-top: 1px;
}

.about-card-row:hover .about-card-text {
  text-decoration: underline;
}

.about-card-img {
  height: 13px;
  margin-right: 6px;
  width: 13px;
  flex-shrink: 0;
}

.about-card-text {
  color: #0c327d;
  font-size: 10px;
  line-height: 14px;
  text-decoration: none;
}

/* Main content area */
.about-main {
  box-sizing: border-box;
  flex: 1;
  overflow: visible;
  padding: 24px 36px;
  position: relative;
  width: 100%;
  max-width: 700px;
}

.about-welcome-text {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 30px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 24px;
  margin-top: 0;
  text-align: left;
  text-shadow: 1px 1px 0 #000, 0 0 1px #000;
}

.about-welcome-img {
  height: 50px;
  width: 50px;
  display: block;
}

.about-paragraph-row {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  margin-bottom: 18px;
}

.about-paragraph-icon-col {
  align-items: flex-start;
  display: flex;
  flex: none;
  justify-content: center;
  min-width: 44px;
  width: 44px;
}

.about-paragraph-icon {
  display: block;
  height: 60px;
  padding-left: 18px;
  width: 60px;
}

.about-paragraph-text {
  display: block;
  flex: 1;
  font-size: 15.5px;
  padding-left: 48px;
  color: #fff;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.35;
  text-shadow: 1px 1px 0 #000, 0 0 1px #000;
}

/* Disabled items */
.menu-item.disabled {
  background-color: transparent !important;
  box-shadow: none !important;
  filter: grayscale(0.8) !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: default;
}

.menu-item.disabled .item-description,
.menu-item.disabled .item-title {
  color: #888 !important;
  text-shadow: none !important;
}

/* ============================================
   CRT EFFECTS
   ============================================ */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.crt-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.crt-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   XP TAB STYLES (Windows XP Style)
   ============================================ */
.xp-tabs-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  padding: 4px;
  background: #ece9d8;
}

.xp-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #b5b5b5;
  padding: 0 4px;
  background: #d4d0c8;
  flex-shrink: 0;
  position: relative;
}

.xp-tab {
  padding: 6px 16px 5px 16px;
  background: linear-gradient(180deg, #f5f3ed 0%, #e5e3dd 50%, #d5d3cd 100%);
  border: 1px solid #b5b5b5;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  margin-right: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  position: relative;
  top: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.xp-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8e6e0 50%, #d8d6d0 100%);
}

.xp-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ed 20%, #ece9d8 100%);
  border-bottom: 1px solid #ece9d8;
  padding-bottom: 6px;
  color: #000;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff, 0 -1px 2px rgba(0,0,0,0.05);
}

.xp-tab:active {
  background: linear-gradient(180deg, #d4d0c8 0%, #c8c4bc 50%, #bcb8b0 100%);
}

.xp-tab-icon {
  margin-right: 6px;
  font-size: 14px;
}

.xp-tab-content {
  flex: 1;
  background: #ece9d8;
  padding: 16px 18px;
  border: 1px solid #b5b5b5;
  border-top: none;
  overflow: auto;
  min-height: 300px;
}

.xp-tab-pane {
  display: none;
  animation: tabFadeIn 0.2s ease;
}

.xp-tab-pane.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0.6; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.xp-tab-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  background: #d4d0c8;
  border: 1px solid #b5b5b5;
  border-top: none;
  flex-shrink: 0;
}

.xp-btn {
  padding: 4px 20px;
  background: linear-gradient(180deg, #f5f3ed 0%, #e5e3dd 50%, #d5d3cd 100%);
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.xp-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8e6e0 50%, #d8d6d0 100%);
}

.xp-btn:active {
  background: linear-gradient(180deg, #d4d0c8 0%, #c8c4bc 50%, #bcb8b0 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.xp-btn-primary {
  background: linear-gradient(180deg, #3c6fb0 0%, #2a5a9a 50%, #1a4a8a 100%);
  border-color: #1a3a6a;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.xp-btn-primary:hover {
  background: linear-gradient(180deg, #4c7fc0 0%, #3a6aaa 50%, #2a5a9a 100%);
}

/* About Grid */
.xp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.xp-about-card {
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  padding: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.xp-about-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1a3a6a;
  margin: 0 0 8px 0;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 4px;
}

.xp-about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xp-about-card ul li {
  padding: 3px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.xp-about-card ul li:last-child {
  border-bottom: none;
}

.xp-about-card ul li::before {
  content: "▸";
  color: #2a5a9a;
  font-weight: bold;
}

.xp-about-card ul li a {
  color: #1a3a6a;
  text-decoration: none;
}

.xp-about-card ul li a:hover {
  text-decoration: underline;
}

.xp-about-bio {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.xp-about-bio strong {
  color: #1a3a6a;
}

/* Resume Grid */
.xp-resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.xp-resume-card {
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.xp-resume-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.xp-resume-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a3a6a;
  margin: 0 0 4px 0;
}

.xp-resume-card .xp-resume-sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.xp-resume-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xp-resume-card ul li {
  padding: 2px 0;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.4;
}

.xp-resume-card ul li:last-child {
  border-bottom: none;
}

.xp-resume-card ul li::before {
  content: "▸";
  color: #2a5a9a;
  font-weight: bold;
  flex-shrink: 0;
}

/* Projects Grid */
.xp-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 4px;
}

.xp-project-card {
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

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

.xp-project-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xp-project-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.xp-project-title {
  font-weight: 600;
  font-size: 13px;
  color: #1a3a6a;
  word-break: break-all;
}

.xp-project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.xp-project-links a {
  font-size: 11px;
  color: #1a3a6a;
  text-decoration: none;
  padding: 2px 8px;
  background: #f0f4fa;
  border-radius: 3px;
  border: 1px solid #d0d8e0;
  transition: all 0.15s;
}

.xp-project-links a:hover {
  background: #1a3a6a;
  color: #fff;
  border-color: #1a3a6a;
}

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

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

.xp-project-desc {
  font-size: 11px;
  line-height: 1.5;
  color: #444;
}

.xp-project-desc strong {
  color: #1a3a6a;
  display: block;
  margin-bottom: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .xp-projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-icons {
    top: auto;
    bottom: auto;
    left: 16px;
    transform: none;
    flex-direction: column;
    gap: 8px;
  }

  .desktop-icon {
    width: 64px;
    padding: 4px 6px;
  }

  .desktop-icon-img {
    width: 36px;
    height: 36px;
  }

  .desktop-icon-label {
    font-size: 9px;
  }

  .window {
    min-width: 280px !important;
    width: calc(100% - 20px) !important;
    height: calc(100% - var(--xp-taskbar-height) - 20px) !important;
    top: 10px !important;
    left: 10px !important;
  }

  .login-user-card {
    padding: 12px 20px;
  }

  .boot-title {
    font-size: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xp-about-grid,
  .xp-resume-grid {
    grid-template-columns: 1fr;
  }

  .xp-projects-grid {
    grid-template-columns: 1fr;
  }

  .xp-project-title {
    font-size: 12px;
  }

  .wallpaper-brand {
    bottom: 24px;
    right: 24px;
    font-size: 18px;
    letter-spacing: 4px;
    transform: rotate(-2deg);
  }
}

@media (max-width: 480px) {
  .start-button-text {
    display: none;
  }

  .start-button {
    padding: 3px 8px;
  }

  .taskbar-item {
    max-width: 100px;
  }

  .boot-loader {
    width: 200px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}