@import url('./core.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Typography & Reset */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --app-accent: #22d3c5;

  /* Typographic Hierarchy & Contrast Tokens */
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --text-accent: #38bdf8;
  --text-accent-soft: #7dd3fc;
}

body, button, input, select, textarea {
  font-family: var(--font-sans);
}

code, kbd, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Ensure body occupies full viewport & hardware font-smoothing */
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-background, #111318);
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ==================== OS WINDOWS SYSTEM ==================== */
.os-window {
  display: none;
  position: absolute;
  background: rgba(15, 18, 26, 0.76);
  backdrop-filter: blur(28px) saturate(170%) brightness(102%);
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(102%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
              0 14px 36px -8px rgba(0, 0, 0, 0.55),
              0 2px 6px -1px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  overflow: hidden;
  min-width: 320px;
  min-height: 220px;
  pointer-events: auto;
  transform-origin: center center;
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-window.active {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.24),
              0 24px 68px -12px rgba(0, 0, 0, 0.72),
              0 8px 22px -4px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(0, 0, 0, 0.45);
}

.os-window.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* ==================== OS WINDOW RESIZE SYSTEM ==================== */
.os-window-resize-handle {
  position: absolute;
  z-index: 40;
  touch-action: none;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Edge handles */
.os-window-resize-handle.top {
  top: 0;
  left: 14px;
  right: 14px;
  height: 8px;
  cursor: ns-resize;
}

.os-window-resize-handle.bottom {
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 8px;
  cursor: ns-resize;
}

.os-window-resize-handle.left {
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 8px;
  cursor: ew-resize;
}

.os-window-resize-handle.right {
  right: 0;
  top: 14px;
  bottom: 14px;
  width: 8px;
  cursor: ew-resize;
}

/* Corner handles (generous hit area for easy grabbing) */
.os-window-resize-handle.top-left {
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 45;
}

.os-window-resize-handle.top-right {
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: nesw-resize;
  z-index: 45;
}

.os-window-resize-handle.bottom-left {
  bottom: 0;
  left: 0;
  width: 16px;
  height: 16px;
  cursor: nesw-resize;
  z-index: 45;
}

.os-window-resize-handle.bottom-right {
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 45;
}

/* Deactivate resize handles when window is maximized */
.os-window.maximized .os-window-resize-handle {
  display: none !important;
}

/* Visual and pointer state during active resizing */
body.is-window-resizing {
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.is-window-resizing iframe,
.os-window.is-resizing iframe {
  pointer-events: none !important;
}

.os-window.is-resizing {
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: none !important;
}

.os-window.is-resizing .os-window-content {
  pointer-events: none !important;
}

/* ==================== DESKTOP ICONS ANIMATION & DRAGGING ==================== */
.desktop-grid-container {
  position: absolute;
  top: 0;
  left: 0;
  padding: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
  grid-template-rows: repeat(auto-fill, 86px);
  max-height: calc(100vh - 84px);
  gap: 16px 20px;
  justify-content: start;
  align-content: start;
  pointer-events: none !important;
  z-index: 10;
}

.desktop-grid-cell {
  width: 76px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
  position: relative;
}

.desktop-enter-icon {
  animation: none !important;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  max-width: 76px;
  padding: 6px 4px 6px 4px;
  border-radius: 12px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  touch-action: none;
  pointer-events: auto !important;
  will-change: transform;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  opacity: 1;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.08);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

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

.desktop-icon:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

.desktop-icon-image {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.desktop-icon .app-tile {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* While dragging: elevated floating look with active glow, dynamic lighting and high z-index */
.desktop-icon.is-dragging {
  cursor: grabbing !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.4), 0 16px 32px rgba(0, 0, 0, 0.6) !important;
  filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.5)) !important;
  transform: scale(1.08) !important;
  transition: none !important;
}

.desktop-icon.is-dragging .desktop-icon-image {
  transform: scale(1.1);
  filter: brightness(1.15);
}

.desktop-icon.is-dragging .desktop-icon-label {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 1), 0 0 12px rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.desktop-icon.reordering {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.desktop-icon-label {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .desktop-grid-container {
    padding: 16px;
    gap: 12px 16px;
    max-height: calc(100vh - 76px);
  }
}

.os-window.maximized {
  border-radius: 10px !important;
}

.os-window-titlebar {
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.025) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  user-select: none;
  cursor: default;
}

/* macOS Signature Traffic Lights */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 54px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), filter 0.14s ease;
  position: relative;
  background: transparent;
}

.traffic-light::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.traffic-light.close {
  background: #ff5f56;
}

.traffic-light.minimize {
  background: #ffbd2e;
}

.traffic-light.maximize {
  background: #27c93f;
}

.traffic-light:hover {
  filter: brightness(1.08);
  transform: scale(1.08);
}

.traffic-light:active {
  filter: brightness(0.88);
  transform: scale(0.92);
}

.traffic-light svg {
  opacity: 0;
  color: rgba(0, 0, 0, 0.72);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
  width: 6.5px;
  height: 6.5px;
}

.traffic-light.close svg {
  color: #4a0000;
}

.traffic-lights:hover .traffic-light svg {
  opacity: 0.85;
}

.traffic-light:hover svg {
  opacity: 1;
  transform: scale(1.12);
}

.os-window-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.titlebar-spacer {
  min-width: 54px;
  display: flex;
  justify-content: flex-end;
}

.os-window-controls {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  min-width: 54px;
}

.os-window-control-btn {
  cursor: pointer;
  width: 2.15rem;
  height: 2.15rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  display: flex;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 0.25rem;
}

.os-window-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.os-window-control-btn:active {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(0.5px) scale(0.96);
}

.os-window-control-btn.close {
  color: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-window-control-btn.close:hover {
  background: #e0443e !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.os-window-control-btn.close:active {
  background: #c5302a !important;
  color: #ffffff !important;
  transform: translateY(0.5px) scale(0.96);
}

/* Apple Design System Utility Classes */
.apple-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 980px;
  padding: 0.42rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
              0 2px 6px -1px rgba(0, 113, 227, 0.4),
              0 1px 2px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  line-height: 1.4;
}

.apple-btn-primary:hover {
  background: linear-gradient(180deg, #1f8eff 0%, #0077ed 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.38),
              0 4px 14px -2px rgba(0, 113, 227, 0.5),
              0 1px 3px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

.apple-btn-primary:active {
  transform: translateY(0.5px) scale(0.98);
  filter: brightness(0.95);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3),
              0 1px 2px rgba(0, 0, 0, 0.2);
}

.apple-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 980px;
  padding: 0.42rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
              0 1px 2px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  line-height: 1.4;
}

.apple-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
              0 4px 12px rgba(0, 0, 0, 0.3);
}

.apple-btn-secondary:active {
  transform: translateY(0.5px) scale(0.98);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.apple-segmented-control {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.apple-segment-btn {
  padding: 0.35rem 0.95rem;
  border-radius: 980px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
}

.apple-segment-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.apple-segment-btn.active {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
              0 2px 6px rgba(0, 0, 0, 0.35);
}

.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.apple-badge-blue {
  background: rgba(14, 116, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.apple-badge-purple {
  background: rgba(147, 51, 234, 0.18);
  border-color: rgba(192, 132, 252, 0.35);
  color: #e9d5ff;
}

.apple-badge-amber {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fef08a;
}

.apple-badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* CV Preview Container */
.cv-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
}

.cv-image-card {
  max-width: 680px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  background: #ffffff;
}

.cv-image-card:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cv-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.cv-preview-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==================== BENTO PROJECTS SYSTEM (DISTILLED & BORDERLESS) ==================== */
.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
}

@media (min-width: 760px) {
  .projects-bento-grid .bento-project-cell:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.bento-project-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.bento-project-cell:hover {
  background: rgba(255, 255, 255, 0.048);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
              0 14px 30px -8px rgba(0, 0, 0, 0.55);
}

.bento-cell-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.bento-icon-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.bento-app-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
              0 3px 8px rgba(0, 0, 0, 0.3);
}

.bento-title {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.015em !important;
  color: #ffffff !important;
}

.bento-subtitle {
  display: block;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: var(--text-muted, rgba(255, 255, 255, 0.6)) !important;
  margin-top: 0.15rem;
}

.bento-pill-category {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 550;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.bento-desc {
  font-size: 0.85rem !important;
  line-height: 1.62 !important;
  color: var(--text-secondary, rgba(255, 255, 255, 0.76)) !important;
  margin: 0 0 1.15rem 0 !important;
  flex: 1;
}

.bento-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.bento-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.bento-project-cell:hover .bento-tag {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.bento-actions-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Apple List Groups (Settings / Resume / About) */
.apple-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
}

.apple-group-item {
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

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

.apple-group-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.os-window-content {
  background: rgba(12, 15, 22, 0.65);
  flex: 1;
  padding: 0;
  overflow: hidden auto;
  user-select: text;
  -webkit-user-select: text;
}

.os-window-content::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.os-window-content::-webkit-scrollbar-track {
  background: transparent;
}

.os-window-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.os-window-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== TASKBAR DOCK & SYSTEM TRAY (APPLE macOS HIG) ==================== */
#taskbar-nav {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  background: rgba(16, 20, 29, 0.68) !important;
  backdrop-filter: blur(28px) saturate(170%) brightness(103%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(103%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
              0 16px 44px -8px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(0, 0, 0, 0.35) !important;
  border-radius: 1.35rem !important;
  padding: 0.35rem 0.65rem 0.5rem 0.65rem !important;
  height: auto !important;
  min-height: 3.45rem;
  display: flex;
  align-items: flex-end;
  pointer-events: auto !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#dock-items-container {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 100%;
}

.dock-item-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  transform-origin: bottom center;
  will-change: transform;
  pointer-events: auto;
}

.dock-item-wrap .island-icon,
.dock-item-wrap #start-btn {
  width: 100%;
  height: 100%;
  transform-origin: bottom center;
  position: relative;
  transition: filter 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item-wrap:hover .island-icon,
.dock-item-wrap:hover #start-btn {
  filter: brightness(1.12);
}

.dock-item-wrap:active .island-icon,
.dock-item-wrap:active #start-btn {
  transform: scale(0.92);
  filter: brightness(0.95);
}

/* macOS Smooth Dock Launch Animation */
@keyframes macDockElevate {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-14px) scale(1.04); }
  65% { transform: translateY(-3px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

.dock-bouncing {
  animation: macDockElevate 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* macOS Active/Open App Indicator Dot */
.dock-app-indicator {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.dock-item-wrap.is-open .dock-app-indicator {
  opacity: 1;
}

.dock-item-wrap.is-active .dock-app-indicator {
  opacity: 1;
  background: #38bdf8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Apple HIG Floating Tooltip */
.island-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 18, 26, 0.9);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  color: #ffffff;
  padding: 0.32rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
              0 8px 24px -4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  z-index: 99999;
}

.dock-item-wrap:hover .island-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Floating System Tray matching Dock */
[aria-label="System tray"] {
  background: rgba(16, 20, 29, 0.68) !important;
  backdrop-filter: blur(28px) saturate(170%) brightness(103%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(103%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
              0 16px 44px -8px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(0, 0, 0, 0.35) !important;
  border-radius: 1.15rem !important;
}

[aria-label="System tray"] button {
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
}

[aria-label="System tray"] button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

[aria-label="System tray"] button:active {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(0.5px) scale(0.96) !important;
}

/* Sound Button in System Tray */
#sound-toggle-btn {
  position: relative;
  transition: background 0.15s ease, transform 0.15s ease;
}

#sound-toggle-btn:active {
  transform: scale(0.94);
}

/* ==================== START MENU ==================== */
.start-menu-card {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px) scale(0.97);
  width: 480px;
  max-width: 92vw;
  max-height: 580px;
  background: rgba(16, 20, 29, 0.82) !important;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
              0 24px 64px -12px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.start-menu-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.start-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.75rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.start-search-input:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.start-app-item {
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.start-app-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px);
}

.start-app-item:active {
  transform: translateY(0.5px) scale(0.98) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ==================== DESKTOP ICONS ==================== */

/* ==================== INTERNAL WINDOW LAYOUTS ==================== */
/* About Me Window */
.about-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #1e2536 0%, #111520 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 8px 20px -4px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.about-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.about-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.38rem 0.95rem;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.about-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.about-tab-btn.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
              0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.about-body {
  padding: 1.5rem;
}

/* Projects Window */
.projects-header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-url-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 197, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-card-banner {
  height: 120px;
  background: linear-gradient(135deg, rgba(34, 211, 197, 0.2), rgba(37, 99, 235, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card-body {
  padding: 1rem;
}

.tag-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

/* Terminal Window */
.terminal-body {
  padding: 1rem;
  background: #0a0c10;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 100%;
}

.terminal-line {
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.terminal-prompt {
  color: var(--color-primary, #22d3c5);
  font-weight: 600;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #eceef3;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  flex: 1;
}

/* Chat Assistant Window */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-foreground, #eceef3);
  border-bottom-left-radius: 0.25rem;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--color-primary, #22d3c5);
  color: #04201d;
  font-weight: 500;
  border-bottom-right-radius: 0.25rem;
}

.chat-input-bar {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 0.75rem;
}

.chat-quick-suggestions {
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.chat-suggestion-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.chat-suggestion-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.chat-suggestion-btn:active {
  transform: scale(0.96);
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(16, 20, 29, 0.84);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
              0 24px 65px -12px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(0, 0, 0, 0.4);
  padding: 1.75rem;
  max-width: 420px;
  width: 90vw;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Toast */
.toast-msg {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(12, 14, 18, 0.95);
  border: 1px solid var(--color-primary, #22d3c5);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 999999;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==================== BOOT & LOGIN SUBSYSTEM ==================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(1px 1px at 18% 28%, rgba(255, 255, 255, 0.85) 50%, transparent 100%),
              radial-gradient(1px 1px at 42% 64%, rgba(255, 255, 255, 0.85) 50%, transparent 100%),
              radial-gradient(1px 1px at 71% 22%, rgba(255, 255, 255, 0.85) 50%, transparent 100%),
              radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--color-primary, #22d3c5) 26%, #03060a) 0%, color-mix(in srgb, var(--color-primary, #22d3c5) 9%, #03060a) 45%, #03060a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

.boot-screen.dismissed {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

/* Lock Phase */
.lock-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 2rem 3.5rem 2rem;
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.lock-view.hidden-phase {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px);
}

.lock-clock-large {
  font-size: clamp(3.8rem, 8vw, 6.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

.lock-date-large {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.85rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.lock-unlock-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  animation: pulse 2s infinite ease-in-out;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Login Phase */
.login-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(35px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-view.active-phase {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 350px;
  max-width: 90vw;
}

.login-avatar-ring {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-primary, #22d3c5), #3b82f6);
  box-shadow: 0 10px 35px rgba(34, 211, 197, 0.4);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111318;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
}

.login-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.login-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary, #22d3c5);
  margin: 0 0 1.6rem 0;
}

.login-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.login-password-input {
  width: 100%;
  height: 2.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 0 3.35rem 0 1.35rem;
  color: #ffffff;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-password-input:focus, .login-password-input.typing {
  border-color: var(--color-primary, #22d3c5);
  box-shadow: 0 0 0 3px rgba(34, 211, 197, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.login-submit-btn {
  position: absolute;
  right: 5px;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: none;
  background: var(--color-primary, #22d3c5);
  color: #04201d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.login-submit-btn:hover {
  transform: scale(1.08);
}

.login-submit-btn:active {
  transform: scale(0.95);
}

@keyframes loginPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.12); }
}

.login-submit-btn.pulse-active {
  animation: loginPulse 0.8s ease-in-out infinite;
}

.login-status-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.5rem;
}

.login-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-primary, #22d3c5);
  border-radius: 50%;
  animation: bootSpinner 0.75s linear infinite;
  display: none;
}

.login-hint {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.login-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
}

/* ==================== DESKTOP CONTEXT MENU ==================== */
.context-menu {
  position: fixed;
  background: rgba(16, 20, 29, 0.86);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.85rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
              0 20px 50px -10px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  min-width: 220px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.context-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.context-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-foreground, #eceef3);
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
  position: relative;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.context-menu-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.context-menu-shortcut {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
}

.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 0.35rem;
}

/* Context Submenu - Solid Apple Hover Bridge */
.context-menu-item.has-submenu {
  position: relative;
}

.context-submenu {
  position: absolute;
  left: calc(100% - 3px);
  top: -6px;
  background: color-mix(in srgb, var(--color-taskbar, #0c0e12) 95%, transparent);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 1px rgba(255, 255, 255, 0.15);
  padding: 0.4rem;
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97) translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100001;
}

/* Invisible safe-hover bridge so cursor can travel diagonally without losing hover */
.context-submenu::before {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: -25px;
  width: 32px;
  pointer-events: auto;
  z-index: -1;
}

.context-menu-item.has-submenu:hover .context-submenu,
.context-menu-item.has-submenu.submenu-open .context-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateX(0);
}

.context-menu.submenu-left .context-submenu {
  left: auto;
  right: calc(100% - 3px);
  transform: scale(0.97) translateX(4px);
}

.context-menu.submenu-left .context-submenu::before {
  left: auto;
  right: -25px;
}

.context-menu.submenu-left .context-menu-item.has-submenu:hover .context-submenu,
.context-menu.submenu-left .context-menu-item.has-submenu.submenu-open .context-submenu {
  transform: scale(1) translateX(0);
}

.context-menu.submenu-up .context-submenu {
  top: auto;
  bottom: -6px;
}


/* ==================== WALLPAPERS GALLERY MODAL ==================== */
.wallpaper-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.wallpaper-card {
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.wallpaper-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary, #22d3c5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wallpaper-card.active {
  border-color: var(--color-primary, #22d3c5);
  box-shadow: 0 0 0 2px var(--color-primary, #22d3c5), 0 8px 24px rgba(34, 211, 197, 0.3);
}

.wallpaper-preview-thumb {
  height: 80px;
  width: 100%;
  position: relative;
}

.wallpaper-label-title {
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

/* ==================== SPOTLIGHT SEARCH (CMD+K / CTRL+K) ==================== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(4rem, 15vh, 8rem);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-overlay.open {
  display: flex;
  opacity: 1;
}

.spotlight-card {
  width: 90%;
  max-width: 620px;
  background: rgba(16, 20, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
              0 24px 70px -12px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-overlay.open .spotlight-card {
  transform: scale(1) translateY(0);
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-icon {
  color: var(--color-primary, #22d3c5);
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 500;
}

.spotlight-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.spotlight-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  letter-spacing: 0.5px;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.6rem 0.75rem;
}

.spotlight-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.6rem 0.75rem 0.35rem 0.75rem;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.spotlight-item:hover,
.spotlight-item.selected {
  background: rgba(34, 211, 197, 0.15);
  color: #ffffff;
}

.spotlight-item.selected {
  outline: 1px solid rgba(34, 211, 197, 0.4);
}

.spotlight-item-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.spotlight-item-content {
  flex: 1;
  min-width: 0;
}

.spotlight-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-shortcut {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: rgba(10, 12, 18, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.spotlight-keys {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spotlight-keys kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== RECRUITER 1-CLICK MODAL ==================== */
.recruiter-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(34, 211, 197, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(34, 211, 197, 0.25);
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}

.recruiter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.recruiter-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.recruiter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 1rem;
}

.recruiter-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.recruiter-card-body {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.recruiter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

.recruiter-btn-primary {
  flex: 1;
  min-width: 140px;
  padding: 0.68rem 1rem;
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  color: #04201d;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
              0 3px 10px -2px rgba(20, 184, 166, 0.4),
              0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.recruiter-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
              0 6px 16px -2px rgba(20, 184, 166, 0.5);
}

.recruiter-btn-primary:active {
  transform: translateY(0.5px) scale(0.98);
  filter: brightness(0.95);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.recruiter-btn-secondary {
  flex: 1;
  min-width: 140px;
  padding: 0.68rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.recruiter-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
              0 4px 12px rgba(0, 0, 0, 0.3);
}

.recruiter-btn-secondary:active {
  transform: translateY(0.5px) scale(0.98);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ==================== TYPOGRAPHY & READING COMFORT SYSTEM ==================== */
/* Reading Paragraphs: Optimal measure (65ch), line-height (1.62), and gentle contrast */
.os-readable-text,
#about-bio-desc,
#resume-text-about-p,
#contact-sub,
#modal-phone-desc,
.project-card-body-apple p,
.about-hero p {
  font-size: 0.86rem !important;
  line-height: 1.62 !important;
  color: var(--text-secondary, rgba(255, 255, 255, 0.78)) !important;
  letter-spacing: 0.005em !important;
  max-width: 65ch !important;
}

/* Section Eyebrow Headers: Subtle tracking, calm slate accent, no aggressive neon */
.os-eyebrow,
#about-edu-formal-title,
#about-edu-certs-title,
#about-skills-title-1,
#about-skills-title-2,
#about-skills-title-3,
#resume-text-about-h,
#resume-text-edu-h,
#resume-text-certs-h,
#resume-text-skills-h {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-accent-soft, #7dd3fc) !important;
  margin: 0 0 0.85rem 0 !important;
  display: block;
}

/* Resume Section Headers: Clean hairline divider for effortless visual scanning */
#resume-text-about-h,
#resume-text-edu-h,
#resume-text-certs-h,
#resume-text-skills-h {
  padding-bottom: 0.4rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 1rem !important;
}

/* Sub-labels, institutions, dates with WCAG AA compliance (contrast > 4.5:1) */
.os-text-muted,
.apple-group-item span:not(.apple-badge),
.project-card-subtitle {
  color: var(--text-muted, rgba(255, 255, 255, 0.64)) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

/* Contact form inputs: comfortable touch/click targets and elegant focus ring */
#win-contact input,
#win-contact textarea {
  padding: 0.65rem 0.85rem !important;
  font-size: 0.84rem !important;
  line-height: 1.5 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

#win-contact input:focus,
#win-contact textarea:focus {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

#win-contact label {
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary, rgba(255, 255, 255, 0.78)) !important;
  margin-bottom: 0.35rem !important;
  display: block;
}




