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

:root {
  --bg:           #0d0d14;
  --window-bg:    rgba(28, 28, 32, 0.82);
  --titlebar-bg:  rgba(38, 38, 44, 0.95);
  --border:       rgba(255,255,255,0.08);
  --shadow:       0 32px 80px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.04) inset;
  --text:         #f0f0f5;
  --text-muted:   #8e8e9a;
  --text-dim:     #55555f;
  --accent:       #0a84ff;
  --green:        #30d158;
  --yellow:       #ffd60a;
  --orange:       #ff9f0a;
  --red:          #ff453a;
  --purple:       #bf5af2;
  --pink:         #ff375f;
  --radius:       12px;
  --dock-h:       84px;
  --menubar-h:    28px;
  --font:         system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  --mono:         "SF Mono", "Fira Code", "JetBrains Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
  background-color: #0d0d14;
}

[data-theme="light"] html,
html[data-theme="light"] {
  background-color: #dde0ea;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Wallpaper ────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  transition: background 0.4s ease;
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%,  rgba(94,  60, 180, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 85% 75%,  rgba(20,  80, 180, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 60% 10%,  rgba(180, 40, 120, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10,  10,  20, 1.0) 30%, #060610 100%);
}

/* ── Light Mode ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg:           #e8e8f0;
  --window-bg:    rgba(255, 255, 255, 0.72);
  --titlebar-bg:  rgba(232, 232, 238, 0.96);
  --border:       rgba(0, 0, 0, 0.08);
  --shadow:       0 32px 80px rgba(0,0,0,0.12), 0 2px 0 rgba(255,255,255,0.9) inset;
  --text:         #1d1d1f;
  --text-muted:   #3a3a3c;
  --text-dim:     #8e8e93;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%,  rgba(255, 180,  80, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 75%,  rgba( 80, 160, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 60% 10%,  rgba(255, 100, 150, 0.10) 0%, transparent 50%),
    #dde0ea;
}

[data-theme="light"] .menubar {
  background: rgba(215, 215, 225, 0.88);
  border-bottom-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.85);
}

[data-theme="light"] .window-terminal {
  background: rgba(255, 255, 255, 0.78);
}

/* terminal text in light mode */
[data-theme="light"] .term-prompt { color: #0060c7; }
[data-theme="light"] .term-path   { color: #1a7f37; }
[data-theme="light"] .term-cmd,
[data-theme="light"] .term-cursor { color: #1d1d1f; }
[data-theme="light"] .term-output { color: #3a3a3c; }
[data-theme="light"] .term-green  { color: #1a7f37; }
[data-theme="light"] .term-yellow { color: #8a6300; }
[data-theme="light"] .blink       { color: #1d1d1f; }
[data-theme="light"] .term-prompt-mini { color: #0060c7; }
[data-theme="light"] .term-cmd-static  { color: #1d1d1f; }
[data-theme="light"] .term-cursor-line { color: #3a3a3c; }

/* skill pills in light mode */
[data-theme="light"] .skill-blue   { background: rgba(0, 96, 199, 0.1);  color: #0050aa; border-color: rgba(0, 96, 199, 0.2); }
[data-theme="light"] .skill-green  { background: rgba(26, 127, 55, 0.1); color: #1a5e28; border-color: rgba(26, 127, 55, 0.2); }
[data-theme="light"] .skill-orange { background: rgba(138, 99, 0, 0.1);  color: #6b4c00; border-color: rgba(138, 99, 0, 0.2); }
[data-theme="light"] .skill-pink   { background: rgba(180, 30, 60, 0.1); color: #9e1a35; border-color: rgba(180, 30, 60, 0.2); }

[data-theme="light"] .dock-track {
  background: rgba(220, 220, 228, 0.88);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.7) inset;
}

[data-theme="light"] .dock-icon {
  background: linear-gradient(145deg, rgba(240,240,248,0.95), rgba(220,220,232,0.95));
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .dock-icon svg { color: rgba(0,0,0,0.7); }

[data-theme="light"] .window-title { color: #6e6e73; }

[data-theme="light"] .job-date {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .project-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .project-card:hover { background: rgba(0,0,0,0.055); }

[data-theme="light"] .edu-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
}

[data-theme="light"] .timeline::before {
  background: linear-gradient(to bottom, var(--accent), var(--purple), transparent);
}

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  color: inherit;
  opacity: 0.75;
  transition: opacity .15s;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle svg { width: 14px; height: 14px; }

/* dark mode: show moon, hide sun */
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
/* light mode: show sun, hide moon */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }

/* ── Menu Bar ─────────────────────────────────────────────── */
.menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(20, 20, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  user-select: none;
}

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

.apple-icon {
  width: 16px; height: 16px;
  opacity: 0.9;
}

.menubar-app-name { font-weight: 600; }

.menubar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menubar-nav span {
  cursor: default;
  opacity: 0.75;
  transition: opacity .15s;
}
.menubar-nav span:hover { opacity: 1; }

.menubar-icon {
  width: 14px; height: 14px;
  opacity: 0.75;
}

.menubar-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  opacity: 0.85;
}

/* ── Desktop ──────────────────────────────────────────────── */
.desktop {
  padding-top: calc(var(--menubar-h) + 40px);
  padding-bottom: calc(var(--dock-h) + 48px);
  padding-left: max(24px, calc(50vw - 580px));
  padding-right: max(24px, calc(50vw - 580px));
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── Window ───────────────────────────────────────────────── */
.window {
  background: var(--window-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-terminal {
  background: rgba(18, 18, 22, 0.92);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--titlebar-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.traffic-lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tl {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
}
.tl-red    { background: #ff5f57; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3); }
.tl-yellow { background: #febc2e; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3); }
.tl-green  { background: #28c840; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3); }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.titlebar-subtitle {
  margin-left: auto;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
}

.window-body {
  padding: 28px 32px;
}

/* ── Fade-in on scroll ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Hero / Terminal ──────────────────────────────────────── */
.section-hero {
  min-height: calc(100vh - var(--menubar-h) - var(--dock-h) - 88px);
  display: flex;
  align-items: center;
}

.section-hero .window {
  width: 100%;
}

.terminal-body {
  padding: 22px 28px 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
}

.term-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.term-prompt {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.term-path { color: var(--green); }

.term-cmd {
  color: var(--text);
}

.term-output {
  padding: 6px 0 12px 0;
  color: var(--text-muted);
}

.term-output p { margin-bottom: 2px; }

.term-green  { color: var(--green); font-weight: 600; }
.term-yellow { color: var(--yellow); font-weight: 600; }

.blink {
  animation: blink 1.1s step-end infinite;
  color: var(--text);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #0070e0; transform: translateY(-1px); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: rgba(48,209,88,0.15);
  color: var(--green);
  border: 1px solid rgba(48,209,88,0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-download svg { width: 16px; height: 16px; }
.btn-download:hover { background: rgba(48,209,88,0.25); transform: translateY(-1px); }
[data-theme="light"] .btn-download { background: rgba(26,127,55,0.12); color: #1a5e28; border-color: rgba(26,127,55,0.25); }
[data-theme="light"] .btn-download:hover { background: rgba(26,127,55,0.2); }

.btn-secondary {
  padding: 10px 22px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.13); transform: translateY(-1px); }

/* ── Hero Split Layout ────────────────────────────────────── */
.hero-split {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.hero-profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 32px;
  min-width: 220px;
  flex-shrink: 0;
}

.hero-avatar {
  width: 190px; height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-avatar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-top: 4px;
}

.hero-avatar-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
  font-family: var(--font);
}

.hero-avatar-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font);
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.hero-link:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.hero-link svg { width: 13px; height: 13px; }

.hero-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.hero-terminal-side {
  flex: 1;
  padding: 22px 28px 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  overflow: hidden;
}

@media (max-width: 680px) {
  .hero-split { flex-direction: column; }
  .hero-divider { width: auto; height: 1px; }
  .hero-profile-panel { padding: 24px 24px 16px; min-width: unset; }
  .hero-avatar { width: 120px; height: 120px; }
  .hero-terminal-side { padding: 16px 18px 20px; font-size: 12px; }
}

/* ── About ────────────────────────────────────────────────── */
.about-body {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -1px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-info { flex: 1; }

.about-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.about-role {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.about-bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.chip:hover { transform: translateY(-2px); opacity: 0.85; }
.chip svg { width: 14px; height: 14px; }

.chip-blue  { background: rgba(10,132,255,0.18);  color: var(--accent);  border: 1px solid rgba(10,132,255,0.25); }
.chip-gray  { background: rgba(255,255,255,0.07); color: var(--text-muted); border: 1px solid var(--border); }
.chip-green { background: rgba(48,209,88,0.15);   color: var(--green);   border: 1px solid rgba(48,209,88,0.3); }
[data-theme="light"] .chip-green { background: rgba(26,127,55,0.12); color: #1a5e28; border-color: rgba(26,127,55,0.25); }

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--purple), transparent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.25);
}

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

.job-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.job-company {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.job-location {
  font-size: 13px;
  color: var(--text-dim);
}

.job-date {
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-bullets {
  padding-left: 18px;
  margin-bottom: 12px;
}
.job-bullets li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Tech Tags ────────────────────────────────────────────── */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11.5px;
  font-family: var(--mono);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(10,132,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(10,132,255,0.2);
}
.tag-green  { background: rgba(48,209,88,0.1);  color: var(--green);  border-color: rgba(48,209,88,0.2); }
.tag-purple { background: rgba(191,90,242,0.12); color: var(--purple); border-color: rgba(191,90,242,0.2); }
.tag-orange { background: rgba(255,159,10,0.12); color: var(--orange); border-color: rgba(255,159,10,0.2); }

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

.project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.project-card:hover {
  background: rgba(255,255,255,0.055);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.project-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10,132,255,0.3), rgba(10,132,255,0.1));
  border: 1px solid rgba(10,132,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-icon svg { width: 22px; height: 22px; color: var(--accent); }

.project-icon-purple {
  background: linear-gradient(135deg, rgba(191,90,242,0.3), rgba(191,90,242,0.1));
  border-color: rgba(191,90,242,0.2);
}
.project-icon-purple svg { color: var(--purple); }

.project-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.project-date {
  font-size: 12px;
  color: var(--text-dim);
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── Skills Terminal ──────────────────────────────────────── */
.skills-terminal {
  font-family: var(--mono);
  font-size: 13.5px;
}

.skill-section {
  margin-bottom: 20px;
}
.skill-section > p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.term-prompt-mini { color: var(--accent); font-weight: 600; margin-right: 4px; }
.term-cmd-static  { color: var(--text); }

.skill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-left: 14px;
}

.skill-pill {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.skill-blue   { background: rgba(10,132,255,0.15);  color: #5eb0ff;  border: 1px solid rgba(10,132,255,0.25); }
.skill-green  { background: rgba(48,209,88,0.12);   color: #5edb80;  border: 1px solid rgba(48,209,88,0.25); }
.skill-orange { background: rgba(255,159,10,0.12);  color: #ffc44a;  border: 1px solid rgba(255,159,10,0.25); }
.skill-pink   { background: rgba(255,55,95,0.12);   color: #ff7a9a;  border: 1px solid rgba(255,55,95,0.25); }

.term-cursor-line {
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Education ────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.edu-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(10,132,255,0.15);
  border: 1px solid rgba(10,132,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.edu-icon svg { width: 20px; height: 20px; color: var(--accent); }

.edu-icon-orange {
  background: rgba(255,159,10,0.15);
  border-color: rgba(255,159,10,0.2);
}
.edu-icon-orange svg { color: var(--orange); }

.edu-card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }

.edu-institution {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 3px;
}

.edu-date {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 20px 0 10px;
}

/* ── Dock ─────────────────────────────────────────────────── */
.dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.dock-track {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(30, 30, 36, 0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.dock-separator {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px 8px;
  align-self: center;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover {
  transform: scale(1.45) translateY(-10px);
}

.dock-item:hover .dock-label { opacity: 1; transform: translateY(-2px); }

.dock-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(60,60,70,0.9), rgba(40,40,50,0.9));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: box-shadow 0.18s;
}

.dock-icon svg {
  width: 24px; height: 24px;
  color: rgba(255,255,255,0.82);
}

.dock-item:hover .dock-icon {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dock-icon-purple { background: linear-gradient(145deg, rgba(120,60,180,0.8), rgba(80,30,140,0.8)); border-color: rgba(191,90,242,0.3); }
.dock-icon-purple svg { color: #e5aaff; }

.dock-icon-green  { background: linear-gradient(145deg, rgba(30,100,60,0.8), rgba(20,70,40,0.8)); border-color: rgba(48,209,88,0.3); }
.dock-icon-green svg { color: #5edb80; }

.dock-icon-orange { background: linear-gradient(145deg, rgba(120,70,20,0.8), rgba(90,50,10,0.8)); border-color: rgba(255,159,10,0.3); }
.dock-icon-orange svg { color: #ffc44a; }

.dock-icon-red    { background: linear-gradient(145deg, rgba(140,40,40,0.8), rgba(100,25,25,0.8)); border-color: rgba(255,69,58,0.3); }
.dock-icon-red svg { color: #ff8a82; }

.dock-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  position: absolute;
  bottom: calc(100% + 8px);
  background: rgba(20,20,26,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.dock-item { position: relative; }

/* ── Active dock indicator ────────────────────────────────── */
.dock-item.active .dock-icon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 680px) {
  /* Menu bar: only Apple + clock */
  .menubar-nav { display: none; }
  .menubar-icon { display: none; }
  .menubar { padding: 0 16px; }
  .menubar-left { gap: 0; }
  .menubar-right { gap: 0; }

  .desktop {
    padding-left: 14px;
    padding-right: 14px;
    gap: 32px;
  }

  .about-body { flex-direction: column; }
  .avatar { width: 80px; height: 80px; font-size: 22px; }
  .about-name { font-size: 22px; }

  .job-header { flex-direction: column; }
  .window-body { padding: 20px 18px; }
  .window-title { font-size: 12px; }

  /* Floating pill dock on mobile */
  .dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
  }

  .dock-track {
    gap: 2px;
    padding: 6px 8px;
    border-radius: 16px;
    justify-content: space-around;
    width: 100%;
  }

  .dock-item { flex: 1; max-width: 52px; }
  .dock-icon { width: 40px; height: 40px; border-radius: 10px; }
  .dock-icon svg { width: 20px; height: 20px; }
  .dock-separator { display: none; }

  .desktop {
    padding-bottom: calc(70px + env(safe-area-inset-bottom) + 16px);
  }
}
