/* ═══════════════════════════════════════════════════════════════
   macOS Portfolio — style.css
   Themeable via CSS variables. Dark (default) + Light.
   Tip: --ink is the "foreground tint" (white in dark, black in light),
   so rgba(var(--ink), .1) adapts to both themes automatically.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --ink: 255, 255, 255;

  /* macOS system colors */
  --macos-blue: #0a84ff;
  --accent-rgb: 10, 132, 255;
  --macos-green: #32d74b;
  --macos-red: #ff453a;
  --macos-yellow: #ffd60a;
  --macos-purple: #bf5af2;
  --macos-teal: #5ac8fa;
  --tag-text: #5ac8fa;

  /* Menubar */
  --menubar-bg: rgba(30, 30, 32, 0.78);
  --menubar-h: 28px;
  --menubar-text: rgba(var(--ink), 0.92);
  --menubar-hover: rgba(var(--ink), 0.12);

  /* Windows */
  --win-bg: rgba(28, 28, 30, 0.92);
  --win-border: rgba(var(--ink), 0.12);
  --win-titlebar: rgba(40, 40, 44, 0.96);
  --win-titlebar-dark: rgba(18, 18, 20, 0.98);
  --win-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
  --win-shadow-focus: 0 40px 100px rgba(0, 0, 0, 0.65), 0 12px 30px rgba(0, 0, 0, 0.45);
  --win-title-color: rgba(var(--ink), 0.75);
  --win-radius: 12px;

  /* Sidebar / content */
  --sidebar-bg: rgba(35, 35, 38, 0.8);
  --sidebar-text: rgba(var(--ink), 0.7);
  --content-bg: rgba(22, 22, 26, 0.9);
  --popover-bg: rgba(32, 32, 36, 0.95);
  --text-strong: #fff;
  --text-primary: rgba(var(--ink), 0.92);
  --text-secondary: rgba(var(--ink), 0.58);
  --text-tertiary: rgba(var(--ink), 0.4);
  --border-subtle: rgba(var(--ink), 0.08);
  --border-normal: rgba(var(--ink), 0.14);
  --fill-1: rgba(var(--ink), 0.05);
  --fill-2: rgba(var(--ink), 0.08);
  --fill-3: rgba(var(--ink), 0.12);
  --cv-desk: #3a3a3d;

  /* Dock */
  --dock-bg: rgba(255, 255, 255, 0.14);
  --dock-border: rgba(255, 255, 255, 0.22);
  --dock-item-size: 58px;
  --dock-clearance: 92px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease-smooth);

  /* Wallpapers (pure CSS, so it looks great even without wallpaper.jpg) */
  --wp: radial-gradient(1200px 760px at 14% 18%, #7b5cff 0%, transparent 60%),
        radial-gradient(1000px 700px at 88% 22%, #ff5fa2 0%, transparent 55%),
        radial-gradient(1100px 800px at 72% 92%, #1fb6ff 0%, transparent 60%),
        linear-gradient(160deg, #1b1442, #2a1457 45%, #0f2a5e);
}

:root[data-wallpaper="2"] {
  --wp: radial-gradient(1100px 700px at 80% 10%, #ffb347 0%, transparent 58%),
        radial-gradient(1000px 800px at 10% 85%, #ff4e7a 0%, transparent 60%),
        radial-gradient(900px 700px at 55% 55%, #8e44ff 0%, transparent 62%),
        linear-gradient(200deg, #3a1250, #5b1a4f 50%, #1d1240);
}
:root[data-wallpaper="3"] {
  --wp: radial-gradient(1100px 700px at 20% 15%, #2de2a6 0%, transparent 58%),
        radial-gradient(1000px 800px at 90% 70%, #1b8cff 0%, transparent 60%),
        radial-gradient(800px 700px at 40% 100%, #0c5a6e 0%, transparent 65%),
        linear-gradient(170deg, #06222e, #0a3b4a 50%, #0a2440);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: 0, 0, 0;
  --macos-blue: #007aff;
  --accent-rgb: 0, 122, 255;
  --tag-text: #0062b8;
  --menubar-bg: rgba(242, 242, 245, 0.7);
  --win-bg: rgba(250, 250, 252, 0.9);
  --win-titlebar: rgba(236, 236, 240, 0.96);
  --win-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 6px 16px rgba(0, 0, 0, 0.16);
  --win-shadow-focus: 0 40px 100px rgba(0, 0, 0, 0.38), 0 12px 30px rgba(0, 0, 0, 0.22);
  --sidebar-bg: rgba(238, 238, 242, 0.82);
  --content-bg: rgba(250, 250, 252, 0.95);
  --popover-bg: rgba(248, 248, 250, 0.96);
  --text-strong: #111;
  --text-secondary: rgba(var(--ink), 0.62);
  --text-tertiary: rgba(var(--ink), 0.45);
  --dock-bg: rgba(255, 255, 255, 0.35);
  --dock-border: rgba(255, 255, 255, 0.55);
  --cv-desk: #dcdce0;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font-system);
  font-size: 14px;
  color: var(--text-primary);
  background: #000;
  -webkit-user-select: none; user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Safari breaks typing in inputs when user-select is none */
input, textarea, .term-output, .cv-paper, .mail-reader, .about-bio, .pd-desc, .li-text {
  -webkit-user-select: text; 
  user-select: text;
}

button { font-family: inherit; 
  color: inherit; 
}
:focus-visible { outline: 2px solid var(--macos-blue); 
  outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; 
  width: 1px;
   height: 1px;
    overflow: hidden;
     clip: rect(0 0 0 0); 
     white-space: nowrap; }

::-webkit-scrollbar { width: 8px;
   height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--ink), 0.22); 
  border-radius: 4px; border: 2px solid transparent; 
  background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--ink), 0.38); 
  background-clip: content-box;
   border: 2px solid transparent; }

/* ═══════════════════════════ MENU BAR ═══════════════════════════ */
.menubar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  background: var(--menubar-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 9999;
  border-bottom: 1px solid rgba(var(--ink), 0.08);
  padding: 0 6px;
}
.menubar-left, .menubar-right { display: flex;
   align-items: center; }

.menu-item {
  color: var(--menubar-text);
  font-size: 13px; font-weight: 400;
  padding: 0 9px; height: 22px;
  display: flex; align-items: center; gap: 4px;
  cursor: default; border: none; background: none;
  border-radius: 5px; white-space: nowrap;
  transition: background 0.12s;
}
.menu-item:hover, .menu-item[aria-expanded="true"] { background: var(--menubar-hover); }
.apple-logo { padding: 0 11px; }
.app-name { font-weight: 700; cursor: default; }
.menu-icon { padding: 0 7px; }
.battery-percent { font-size: 12px; }
.menu-time { font-size: 13px; font-weight: 500; cursor: default; }
.menu-icon.off svg { opacity: 0.35; }

/* Dropdown / context menu */
.dropdown-menu {
  position: fixed; top: calc(var(--menubar-h) + 2px); left: 0;
  min-width: 240px;
  background: var(--popover-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(var(--ink), 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 5px;
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none; visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10000;
}
.dropdown-menu.visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

.dropdown-item {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 12px 5px 4px; border-radius: 5px;
  color: var(--text-primary); font-size: 13px; cursor: default;
}
.dd-check { width: 16px; text-align: center; font-size: 11px; flex-shrink: 0; }
.dd-label { flex: 1; }
.dd-shortcut { margin-left: 28px; color: var(--text-secondary); font-size: 12px; }
.dropdown-item:hover:not(.disabled), .dropdown-item:focus-visible { background: var(--macos-blue); color: #fff; outline: none; }
.dropdown-item:hover:not(.disabled) .dd-shortcut, .dropdown-item:focus-visible .dd-shortcut { color: rgba(255, 255, 255, 0.8); }
.dropdown-item.disabled { opacity: 0.4; }
.dropdown-separator { height: 1px; background: rgba(var(--ink), 0.1); margin: 5px 8px; }

/* Control Center */
.control-center-panel {
  position: fixed; top: calc(var(--menubar-h) + 6px); right: 8px;
  width: 300px;
  background: var(--popover-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(var(--ink), 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 14px;
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none; visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10000;
}
.control-center-panel.visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cc-card {
  background: var(--fill-2); border: none; text-align: left;
  border-radius: var(--radius-md); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  transition: background var(--transition);
}
.cc-card:hover { background: var(--fill-3); }
.cc-card.cc-active { background: rgba(var(--accent-rgb), 0.25); }
.cc-icon { font-size: 18px; margin-bottom: 4px; display: block; }
.cc-label { font-size: 11px; color: var(--text-secondary); }
.cc-value { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.cc-slider-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.cc-icon-sm { font-size: 16px; }
.cc-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 3px; background: rgba(var(--ink), 0.2); outline: none;
}
.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.cc-slider::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }

.brightness-overlay { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 9998; }

/* ═══════════════════════════ DESKTOP ═══════════════════════════ */
.desktop {
  position: fixed; top: var(--menubar-h); left: 0; right: 0; bottom: 0;
  background-image: url('wallpaper.jpg'), var(--wp);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}

/* ═══════════════════════════ WINDOWS ═══════════════════════════ */
.window {
  position: absolute;
  background: var(--win-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--win-radius);
  border: 1px solid var(--win-border);
  box-shadow: var(--win-shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 320px; min-height: 200px;
  max-width: 100%; max-height: calc(100% - 8px);
  transition: box-shadow 0.2s var(--ease-smooth);
}
.window.focused { box-shadow: var(--win-shadow-focus); }

.window.opening   { animation: windowOpen 0.3s var(--ease-spring) both; }
.window.restoring { animation: windowRestore 0.38s var(--ease-smooth) both; }
.window.closing   { animation: windowClose 0.22s var(--ease-smooth) both; pointer-events: none; }
.window.minimizing{ animation: windowMinimize 0.4s var(--ease-smooth) both; pointer-events: none; }

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.window.anim-geom { transition: top 0.3s var(--ease-smooth), left 0.3s var(--ease-smooth), width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), box-shadow 0.2s; }

@keyframes windowOpen    { from { opacity: 0; transform: scale(0.88) translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes windowClose   { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.9) translateY(12px); } }
@keyframes windowMinimize{ from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(var(--genie-x, 0), var(--genie-y, 200px)) scale(0.06); } }
@keyframes windowRestore { from { opacity: 0; transform: translate(var(--genie-x, 0), var(--genie-y, 200px)) scale(0.06); } to { opacity: 1; transform: none; } }

/* Title bar */
.win-titlebar {
  height: 40px; min-height: 40px;
  background: var(--win-titlebar);
  display: flex; align-items: center;
  padding: 0 12px; gap: 8px;
  border-bottom: 1px solid var(--win-border);
  cursor: default; position: relative; flex-shrink: 0;
  touch-action: none;
}
.win-titlebar.dragging { cursor: grabbing; }
.win-titlebar-dark { background: var(--win-titlebar-dark); }
.win-titlebar-dark .win-title { color: rgba(255, 255, 255, 0.7); }

.win-controls { display: flex; gap: 8px; flex-shrink: 0; position: relative; z-index: 2; }
.win-btn {
  width: 12px; height: 12px; border-radius: 50%; border: none;
  cursor: default; position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}
.win-btn::before { content: ''; position: absolute; inset: -3px; }
.win-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  color: rgba(0, 0, 0, 0.6); font-weight: 700; font-size: 8px;
}
.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28c940; }
.win-controls:hover .btn-close::after { content: '✕'; }
.win-controls:hover .btn-minimize::after { content: '−'; font-size: 10px; }
.win-controls:hover .btn-maximize::after { content: '+'; font-size: 10px; }
.window.maximized .win-controls:hover .btn-maximize::after { content: '⤡'; font-size: 8px; }
.win-btn:active { filter: brightness(0.8); }
.window:not(.focused) .win-controls:not(:hover) .win-btn { background: rgba(var(--ink), 0.2); }

.win-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--win-title-color);
  pointer-events: none;
}
.win-titlebar-browser .win-title { display: none; }

.win-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }

/* Resize handles (injected by JS) */
.win-resize { position: absolute; z-index: 6; touch-action: none; }
.win-resize-n  { top: 0; left: 12px; right: 12px; height: 5px; cursor: ns-resize; }
.win-resize-s  { bottom: 0; left: 12px; right: 12px; height: 6px; cursor: ns-resize; }
.win-resize-e  { right: 0; top: 12px; bottom: 12px; width: 6px; cursor: ew-resize; }
.win-resize-w  { left: 0; top: 12px; bottom: 12px; width: 6px; cursor: ew-resize; }
.win-resize-ne { top: 0; right: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.win-resize-nw { top: 0; left: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.win-resize-se { bottom: 0; right: 0; width: 14px; height: 14px; cursor: nwse-resize; }
.win-resize-sw { bottom: 0; left: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.window.maximized .win-resize { display: none; }

/* Toolbar */
.win-toolbar { display: flex; align-items: center; gap: 4px; margin-left: auto; position: relative; z-index: 2; }
.view-btn {
  width: 28px; height: 24px; background: none;
  border: 1px solid var(--border-normal); border-radius: 5px;
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.view-btn:hover, .view-btn.active { background: var(--fill-3); color: var(--text-primary); }

/* ═══════════════════════════ ABOUT WINDOW ═══════════════════════════ */
.about-body { flex-direction: row; }
.about-sidebar {
  width: 180px; flex-shrink: 0; background: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle); padding: 20px 0;
  display: flex; flex-direction: column; gap: 20px;
}
.about-avatar-wrap { display: flex; justify-content: center; padding: 0 16px; }
.about-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2a30, #3c3c44);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}
.about-sidebar-links { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.about-sidebar-item, .sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-size: 13px; cursor: default;
  transition: background var(--transition), color var(--transition);
}
.about-sidebar-item:hover, .sidebar-item:hover { background: var(--fill-2); color: var(--text-strong); }
.about-sidebar-item.active, .sidebar-item.active { background: rgba(var(--accent-rgb), 0.25); color: var(--text-strong); font-weight: 500; }

.about-content { flex: 1; overflow-y: auto; padding: 24px; }
.about-tab { display: none; }
.about-tab.active { display: block; animation: tabFadeIn 0.2s ease; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.about-name { font-size: 28px; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }
.about-title { font-size: 15px; color: var(--macos-blue); font-weight: 500; margin-bottom: 12px; }
.about-divider { height: 1px; background: var(--border-subtle); margin-bottom: 16px; }
.about-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 5px 12px; background: var(--fill-2); border: 1px solid var(--border-normal); border-radius: 20px; font-size: 12px; color: var(--text-secondary); }
.about-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.macos-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: none; cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}
.macos-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.macos-btn:active { filter: brightness(0.95); transform: none; }
.macos-btn.primary { background: var(--macos-blue); color: #fff; }
.macos-btn.secondary { background: var(--fill-3); color: var(--text-strong); border: 1px solid var(--border-normal); }

.tab-heading { font-size: 20px; font-weight: 600; color: var(--text-strong); margin-bottom: 20px; }
.skills-grid { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.skill-cat-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag, .project-tag, .pd-tag {
  padding: 4px 10px; background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3); border-radius: 6px;
  font-size: 12px; color: var(--tag-text);
}
.prof-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--text-secondary); }
.prof-bar span:first-child { width: 90px; flex-shrink: 0; }
.prof-bar span:last-child { width: 36px; text-align: right; }
.bar-track { flex: 1; height: 6px; background: var(--fill-3); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); background: linear-gradient(90deg, var(--macos-blue), var(--macos-purple)); border-radius: 3px; animation: barGrow 1s var(--ease-smooth) both; transform-origin: left; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 4px; bottom: 4px; width: 2px; background: var(--border-normal); }
.timeline-item { display: flex; gap: 16px; margin-bottom: 24px; position: relative; }
.timeline-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--macos-blue); flex-shrink: 0; border: 3px solid var(--win-bg); box-shadow: 0 0 0 2px var(--macos-blue); position: relative; z-index: 1; }
.timeline-content h3 { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-bottom: 2px; }
.timeline-company { display: block; font-size: 13px; color: var(--macos-blue); margin-bottom: 2px; }
.timeline-date { display: block; font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; }
.timeline-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.edu-cards { display: flex; flex-direction: column; gap: 14px; }
.edu-card { display: flex; gap: 14px; padding: 14px; background: var(--fill-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); transition: background var(--transition); }
.edu-card:hover { background: var(--fill-2); }
.edu-icon { font-size: 28px; flex-shrink: 0; }
.edu-info h3 { font-size: 14px; font-weight: 600; color: var(--text-strong); margin-bottom: 3px; }
.edu-school { display: block; font-size: 13px; color: var(--macos-blue); }
.edu-date { display: block; font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
.edu-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════ PROJECTS WINDOW ═══════════════════════════ */
.projects-body { flex-direction: row; }
.projects-sidebar { width: 150px; flex-shrink: 0; background: var(--sidebar-bg); border-right: 1px solid var(--border-subtle); padding: 12px 8px; }
.sidebar-label { font-size: 10px; font-weight: 700; color: var(--text-tertiary); letter-spacing: 0.07em; padding: 0 8px; margin-bottom: 6px; display: block; }
.sidebar-item { padding: 6px 8px; gap: 7px; }

.projects-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.projects-path-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-bottom: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--text-secondary); flex-shrink: 0;
}
.path-seg.active { color: var(--text-primary); font-weight: 500; }
.path-sep { color: var(--text-tertiary); }
.finder-search {
  margin-left: auto; width: 150px; height: 24px; padding: 0 10px;
  background: var(--fill-2); border: 1px solid var(--border-normal); border-radius: 6px;
  color: var(--text-primary); font-size: 12px; font-family: inherit; outline: none;
}
.finder-search:focus { border-color: var(--macos-blue); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }

.projects-grid {
  flex: 1; overflow-y: auto; padding: 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; align-content: start;
}
.projects-grid.list-view { display: flex; flex-direction: column; gap: 0; padding: 0; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--text-tertiary); padding: 40px 16px; font-size: 13px; }

.project-card {
  background: var(--fill-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px; cursor: default;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.project-card:hover { background: var(--fill-2); border-color: var(--border-normal); transform: translateY(-2px); }
.project-card.selected, .project-list-item.selected { background: rgba(var(--accent-rgb), 0.22); border-color: var(--macos-blue); }
.project-card-icon { font-size: 32px; }
.project-card-name { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.project-card-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.project-tag { font-size: 10px; padding: 2px 7px; border-radius: 4px; }

.project-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); cursor: default; transition: background var(--transition); }
.project-list-item:hover { background: var(--fill-1); }
.project-list-icon { font-size: 24px; flex-shrink: 0; }
.project-list-info { flex: 1; min-width: 0; }
.project-list-name { font-size: 13px; font-weight: 500; color: var(--text-strong); }
.project-list-desc { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-list-date { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; }

.project-detail-body { overflow: auto; }
.project-detail-inner { padding: 24px; }
.pd-icon { font-size: 56px; margin-bottom: 12px; }
.pd-name { font-size: 22px; font-weight: 700; color: var(--text-strong); margin-bottom: 6px; }
.pd-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pd-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-link { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; transition: filter var(--transition), transform var(--transition); }
.pd-link:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pd-link.live { background: var(--macos-blue); color: #fff; }
.pd-link.repo { background: var(--fill-2); color: var(--text-strong); border: 1px solid var(--border-normal); }
.pd-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.pd-detail-label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.pd-detail-value { font-size: 13px; color: var(--text-primary); }

/* ═══════════════════════════ CV WINDOW ═══════════════════════════ */
.cv-toolbar { gap: 6px; }
.cv-tool-btn, .cv-zoom-label {
  padding: 3px 10px; background: var(--fill-2);
  border: 1px solid var(--border-normal); border-radius: 5px;
  color: var(--text-primary); cursor: pointer; font-size: 14px;
  transition: background var(--transition);
}
.cv-tool-btn:hover, .cv-zoom-label:hover { background: var(--fill-3); }
.cv-zoom-label { font-size: 12px; color: var(--text-secondary); min-width: 48px; text-align: center; border-color: transparent; background: none; }
.cv-download-btn { font-size: 12px; color: var(--macos-blue); border-color: rgba(var(--accent-rgb), 0.35); }

.cv-body { background: var(--cv-desk); overflow: auto; padding: 24px; display: block; }
.cv-paper {
  background: #fff; width: 100%; max-width: 560px; margin: 0 auto;
  border-radius: 4px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 40px 48px; color: #1a1a1a;
}
.cv-header { border-bottom: 2px solid #0a84ff; padding-bottom: 16px; margin-bottom: 20px; }
.cv-header h1 { font-size: 26px; font-weight: 700; color: #111; }
.cv-subtitle { font-size: 15px; color: #555; margin-bottom: 8px; }
.cv-contact-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #666; }
.cv-section { margin-bottom: 20px; }
.cv-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #0a84ff; border-bottom: 1px solid #e0e0e0; padding-bottom: 4px; margin-bottom: 10px; }
.cv-text { font-size: 13px; color: #333; line-height: 1.7; }
.cv-job { margin-bottom: 14px; }
.cv-job-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cv-job-header strong { font-size: 14px; color: #111; }
.cv-date { font-size: 12px; color: #777; white-space: nowrap; }
.cv-company { display: block; font-size: 12px; color: #555; margin-bottom: 6px; font-style: italic; }
.cv-list { padding-left: 16px; font-size: 13px; color: #333; line-height: 1.7; }
.cv-skills-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; color: #333; line-height: 1.8; }
.print-frame { position: fixed; left: -9999px; top: 0; width: 800px; height: 1000px; border: 0; }

/* ═══════════════════════════ BROWSER WINDOWS ═══════════════════════════ */
.browser-bar { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; position: relative; z-index: 2; }
.browser-nav-btn {
  width: 26px; height: 24px; background: none; border: none;
  color: var(--text-secondary); cursor: pointer; border-radius: 4px; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.browser-nav-btn:hover:not(:disabled) { background: var(--fill-2); color: var(--text-strong); }
.browser-nav-btn:disabled { opacity: 0.35; cursor: default; }
.browser-url-bar {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 6px; justify-content: center;
  background: var(--fill-2); border-radius: 6px; padding: 0 10px;
  font-size: 12px; color: var(--text-secondary); height: 26px;
}
.browser-url-bar.loading::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--macos-blue); animation: loadBar 0.9s ease-out forwards; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }
.browser-lock { font-size: 11px; }
.browser-url-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-external-btn {
  width: 26px; height: 26px; background: none; border: 1px solid var(--border-normal);
  border-radius: 5px; color: var(--macos-blue); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.browser-external-btn:hover { background: rgba(var(--accent-rgb), 0.15); }
.browser-body { overflow: hidden; }
.browser-content { height: 100%; overflow-y: auto; padding: 20px; }

.github-content { background: #0d1117; color: #c9d1d9; }
.gh-profile { display: flex; gap: 16px; margin-bottom: 20px; align-items: center; }
.gh-avatar { font-size: 40px; width: 70px; height: 70px; background: #21262d; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #30363d; flex-shrink: 0; }
.gh-info { flex: 1; }
.gh-username { font-size: 20px; font-weight: 600; color: #e6edf3; margin-bottom: 4px; }
.gh-bio { font-size: 13px; color: #8b949e; margin-bottom: 8px; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #8b949e; }
.gh-stats { display: flex; border: 1px solid #30363d; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.gh-stat { flex: 1; padding: 12px; text-align: center; border-right: 1px solid #30363d; }
.gh-stat:last-child { border-right: none; }
.stat-num { display: block; font-size: 20px; font-weight: 700; color: #e6edf3; }
.stat-label { font-size: 11px; color: #8b949e; }
.gh-contrib-graph { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 12px; margin-bottom: 16px; overflow-x: auto; display: flex; justify-content: center; }
.contrib-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 10px); gap: 3px; }
.contrib-cell { width: 10px; height: 10px; border-radius: 2px; background: #161b22; outline: 1px solid rgba(240, 246, 252, 0.06); outline-offset: -1px; }
.contrib-cell.l1 { background: #0e4429; } .contrib-cell.l2 { background: #006d32; }
.contrib-cell.l3 { background: #26a641; } .contrib-cell.l4 { background: #39d353; }
.gh-pinned-label { font-size: 13px; font-weight: 600; color: #c9d1d9; margin-bottom: 10px; }
.gh-repos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gh-repo-card { display: block; text-decoration: none; background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 14px; transition: border-color 0.15s; }
.gh-repo-card:hover { border-color: #58a6ff; }
.gh-repo-name { font-size: 13px; font-weight: 600; color: #58a6ff; margin-bottom: 4px; }
.gh-repo-desc { font-size: 12px; color: #8b949e; margin-bottom: 10px; line-height: 1.5; }
.gh-repo-meta { display: flex; gap: 12px; font-size: 11px; color: #8b949e; }
.gh-repo-lang::before { content: '●'; margin-right: 4px; color: #f1e05a; }

.linkedin-content { background: #f3f2ef; color: #1a1a1a; }
.li-cover { height: 100px; background: linear-gradient(135deg, #0a66c2, #004182); border-radius: 8px 8px 0 0; margin: -20px -20px 0 -20px; }
.li-profile-section { display: flex; gap: 16px; align-items: flex-end; margin-top: -30px; margin-bottom: 16px; padding: 0 4px; }
.li-avatar { width: 72px; height: 72px; background: #fff; border-radius: 50%; border: 3px solid #f3f2ef; display: flex; align-items: center; justify-content: center; font-size: 38px; flex-shrink: 0; }
.li-info { flex: 1; }
.li-name { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.li-headline { font-size: 13px; color: #444; margin: 2px 0; }
.li-location { font-size: 12px; color: #666; margin-bottom: 8px; }
.li-connections { color: #0a66c2; font-weight: 500; }
.li-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.li-btn { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: filter 0.15s; }
.li-btn:hover { filter: brightness(0.9); }
.li-btn-primary { background: #0a66c2; color: #fff; }
.li-btn-secondary { background: rgba(10, 102, 194, 0.1); color: #0a66c2; border: 1px solid #0a66c2; }
.li-btn-outline { background: none; color: #1a1a1a; border: 1px solid #888; }
.li-section { padding: 14px 0; border-top: 1px solid #e0e0e0; }
.li-section-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.li-text { font-size: 13px; color: #444; line-height: 1.6; }
.li-job { display: flex; gap: 10px; margin-bottom: 10px; }
.li-job-icon { font-size: 20px; flex-shrink: 0; }
.li-job strong { font-size: 13px; font-weight: 600; color: #111; }
.li-job span { font-size: 12px; color: #666; }

/* ═══════════════════════════ MAIL WINDOW ═══════════════════════════ */
.contact-body { flex-direction: row; }
.mail-sidebar { width: 150px; flex-shrink: 0; background: var(--sidebar-bg); border-right: 1px solid var(--border-subtle); padding: 12px 0; }
.mail-new-btn {
  display: block; width: calc(100% - 16px); margin: 0 8px 14px; padding: 7px 10px;
  background: var(--fill-2); border: 1px solid var(--border-normal); border-radius: 7px;
  font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; color: var(--text-primary);
}
.mail-new-btn:hover { background: var(--fill-3); }
.mail-new-btn.active { background: rgba(var(--accent-rgb), 0.25); border-color: rgba(var(--accent-rgb), 0.5); }
.mail-sidebar-header { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.07em; padding: 0 12px; margin-bottom: 6px; }
.mail-sidebar-item { display: flex; align-items: center; gap: 7px; padding: 6px 12px; color: var(--sidebar-text); font-size: 12px; cursor: default; transition: background var(--transition); }
.mail-sidebar-item:hover { background: var(--fill-2); }
.mail-sidebar-item.active { background: rgba(var(--accent-rgb), 0.22); color: var(--text-strong); font-weight: 500; }
.mail-badge { margin-left: auto; background: var(--macos-blue); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 10px; }

.mail-main { flex: 1; display: flex; min-width: 0; min-height: 0; }
.mail-compose, .mail-pane { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.mail-compose-header, .mail-pane-header { padding: 14px 18px 10px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.mail-compose-header h3, .mail-pane-header h3 { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-bottom: 2px; }
.mail-compose-header p { font-size: 12px; color: var(--text-secondary); }

.mail-form { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 10px 18px 14px; gap: 2px; min-height: 0; }
.mail-field { display: flex; align-items: flex-start; border-bottom: 1px solid var(--border-subtle); padding: 6px 0; }
.mail-field label { width: 62px; flex-shrink: 0; font-size: 13px; color: var(--text-secondary); padding-top: 2px; }
.mail-input { flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: 13px; color: var(--text-primary); font-family: inherit; padding: 2px 4px; }
.mail-input[aria-invalid="true"], .mail-textarea[aria-invalid="true"] { box-shadow: 0 1px 0 0 var(--macos-red); }
.mail-input-readonly { color: var(--text-secondary); }
.mail-input::placeholder, .mail-textarea::placeholder { color: var(--text-tertiary); }
.mail-field-grow { flex: 1; align-items: stretch; min-height: 0; }
.mail-textarea { flex: 1; background: none; border: none; outline: none; resize: none; font-size: 13px; color: var(--text-primary); font-family: inherit; padding: 4px; line-height: 1.6; min-height: 80px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mail-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; flex-shrink: 0; }
.mail-discard { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 12px; padding: 6px 10px; border-radius: 6px; transition: background var(--transition), color var(--transition); }
.mail-discard:hover { background: rgba(255, 69, 58, 0.15); color: var(--macos-red); }
.mail-send { background: var(--macos-blue); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 130px; justify-content: center; transition: filter var(--transition), transform var(--transition); }
.mail-send:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.mail-send:disabled { opacity: 0.65; cursor: not-allowed; }

.mail-list { flex: 1; overflow-y: auto; }
.mail-row { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border-subtle); padding: 10px 18px; cursor: pointer; }
.mail-row:hover { background: var(--fill-1); }
.mail-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.mail-row-top strong { color: var(--text-strong); font-weight: 600; }
.mail-row-subject { font-size: 13px; font-weight: 500; color: var(--text-primary); margin: 2px 0; }
.mail-row-preview { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-reader { flex: 1; overflow-y: auto; padding: 16px 18px; }
.mail-reader h4 { font-size: 16px; color: var(--text-strong); margin: 10px 0 4px; }
.mail-reader .meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.mail-reader .body { font-size: 13px; line-height: 1.7; color: var(--text-primary); white-space: pre-wrap; }
.mail-back { background: none; border: none; color: var(--macos-blue); font-size: 13px; cursor: pointer; padding: 0; }

.spinner { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════ TERMINAL ═══════════════════════════ */
.terminal-body { background: rgba(15, 15, 18, 0.98); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; padding: 10px 14px; color: #e0e0e0; }
.term-output { flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-word; min-height: 0; }
.term-line { display: block; padding: 1px 0; min-height: 1.5em; }
.term-line.cmd { color: #33ff33; }
.term-line.out { color: #e0e0e0; }
.term-line.err { color: #ff6b6b; }
.term-line.info { color: #64c8ff; }
.term-line.warn { color: #ffd60a; }
.term-line.sys { color: #bf5af2; }
.term-line.matrix { color: #33ff33; opacity: 0.85; }
.term-input-line { display: flex; align-items: center; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.05); flex-shrink: 0; }
.term-prompt { color: #33ff33; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.term-path { color: #0a84ff; }
.term-input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: #e0e0e0; font-family: var(--font-mono); font-size: 13px; caret-color: #33ff33; }

/* Dock trigger area at bottom of screen when a window is maximized */
.dock-trigger {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 8999;
  pointer-events: auto;
}
body.has-maximized-window .dock-trigger,
body:has(.window.maximized:not(.hidden):not(.closing):not(.minimizing)) .dock-trigger {
  display: block;
}

/* ═══════════════════════════ DOCK ═══════════════════════════ */
.dock {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  max-width: 100vw;
  transition: transform 0.3s var(--ease-smooth);
}

/* Auto-hide dock when any window is maximized */
body.has-maximized-window .dock,
body:has(.window.maximized:not(.hidden):not(.closing):not(.minimizing)) .dock {
  transform: translateX(-50%) translateY(calc(100% + 20px));
}

/* Reveal dock on hover or when pointer reaches bottom trigger zone */
body.has-maximized-window .dock:hover,
body.has-maximized-window .dock.dock-peek,
body:has(.window.maximized:not(.hidden):not(.closing):not(.minimizing)) .dock:hover,
body:has(.window.maximized:not(.hidden):not(.closing):not(.minimizing)) .dock.dock-peek {
  transform: translateX(-50%) translateY(0) !important;
}
.dock-inner {
  display: flex; align-items: flex-end; gap: 6px; padding: 6px 12px;
  background: var(--dock-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--dock-border); border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.dock-separator { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.28); margin: 0 4px; align-self: center; }

.dock-item {
  --s: 1;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: calc(var(--dock-item-size) * var(--s)); cursor: pointer;
  transition: width 0.12s ease-out;
}
.dock-icon {
  width: var(--dock-item-size); height: var(--dock-item-size); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transform: scale(var(--s)); transform-origin: bottom center;
  transition: transform 0.12s ease-out;
}
.dock-icon svg, .dock-icon .finder-icon { width: calc(var(--dock-item-size) - 6px); height: calc(var(--dock-item-size) - 6px); }
.dock-item:focus-visible { outline: none; }
.dock-item:focus-visible .dock-icon { transform: scale(1.25); filter: drop-shadow(0 0 6px var(--macos-blue)); }
.dock-item:active .dock-icon { filter: brightness(0.85); }
.dock-item.bouncing { animation: dockBounce 0.55s ease-in-out 2; }
@keyframes dockBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22px); } 70% { transform: translateY(-6px); } }

.dock-tooltip {
  position: absolute; left: 50%;
  bottom: calc(100% + (var(--s) - 1) * var(--dock-item-size) + 8px);
  transform: translate(-50%, 4px);
  background: rgba(30, 30, 34, 0.92); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 1000;
}
.dock-item:hover .dock-tooltip, .dock-item:focus-visible .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }

.dock-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); margin-top: 1px; flex-shrink: 0; }
/* Keep layout stable: hidden dots still take space */
.dock-dot.hidden { display: block !important; visibility: hidden; }

.finder-icon { width: 52px; height: 52px; background: linear-gradient(145deg, #3b9fe8, #1a7fd4); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.finder-face { width: 36px; height: 36px; background: linear-gradient(145deg, #fff, #e8e8e8); border-radius: 50%; position: relative; }
.finder-eye { position: absolute; width: 7px; height: 9px; background: #333; border-radius: 50%; top: 9px; }
.finder-eye.left { left: 7px; } .finder-eye.right { right: 7px; }
.finder-smile { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 18px; height: 8px; border-bottom: 2.5px solid #333; border-radius: 50%; }

/* ═══════════════════════════ TOAST ═══════════════════════════ */
.toast-container { position: fixed; top: 38px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 99999; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--popover-bg); color: var(--text-primary);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-normal); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 13px; font-weight: 600; pointer-events: auto; cursor: pointer;
  min-width: 240px; max-width: 360px;
  animation: toastIn 0.3s var(--ease-spring) both;
}
.toast.removing { animation: toastOut 0.25s ease both; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-text { flex: 1; min-width: 0; }
.toast-subtitle { font-size: 12px; color: var(--text-secondary); font-weight: 400; margin-top: 1px; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(24px) scale(0.96); } }

/* ═══════════════════════════ SLEEP / LOCK OVERLAY ═══════════════════════════ */
.sleep-overlay { position: fixed; inset: 0; z-index: 100000; background: #000; display: none; align-items: center; justify-content: center; color: #fff; flex-direction: column; }
.sleep-overlay.visible { display: flex; }
.sleep-overlay > div { display: none; flex-direction: column; align-items: center; gap: 14px; }
.sleep-overlay[data-mode="sleep"] .ov-sleep,
.sleep-overlay[data-mode="shutdown"] .ov-shutdown,
.sleep-overlay[data-mode="lock"] .ov-lock { display: flex; }
.sleep-overlay[data-mode="lock"] { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(40px) brightness(0.8); -webkit-backdrop-filter: blur(40px) brightness(0.8); }
.ov-hint { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.ov-power { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); background: none; color: #fff; font-size: 28px; cursor: pointer; }
.ov-power:hover { background: rgba(255, 255, 255, 0.1); }
.ov-clock { font-size: 64px; font-weight: 300; margin-bottom: 30px; }
.ov-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); display: grid; place-items: center; font-size: 44px; }
.ov-name { font-size: 18px; font-weight: 500; }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 900px) {
  :root { --dock-item-size: 48px; --dock-clearance: 80px; }
  .dock-inner { gap: 4px; padding: 4px 8px; }
  .window { max-width: 96vw; }
  .about-sidebar { width: 150px; }
}
@media (max-width: 600px) {
  :root { --dock-item-size: 38px; }
  .projects-sidebar, .mail-sidebar { display: none; }
  .menubar-left .menu-item:nth-child(n+4) { display: none; }
  .battery-percent { display: none; }
  .toast-container { right: 8px; left: 8px; }
  .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print { .menubar, .dock, .toast-container { display: none; } }