*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #1e1e2e;
  --bg2: #252536;
  --bg3: #2a2a3c;
  --bg-elevated: #2e2e42;
  --ink: #cdd6f4;
  --ink2: #bac2de;
  --muted: #9399b2;
  --muted2: #7f849c;
  --border: rgba(205, 214, 244, .1);
  --border2: rgba(205, 214, 244, .06);
  --glass: rgba(30, 30, 46, .82);
  --glass-border: rgba(205, 214, 244, .12);
  --shadow: 0 8px 32px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .2);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .25);
  --radius: 12px;
  --radius-sm: 8px;
  --taskbar-h: 58px;
  --accent: #89b4fa;
  --accent-dim: rgba(137, 180, 250, .15);
  --green: #a6e3a1;
  --red: #f38ba8;
  --yellow: #f9e2af;
  --peach: #fab387;
  --surface-hover: rgba(205, 214, 244, .06);
  --win-titlebar: #181825;
  --win-body: #1e1e2e;
  --scrollbar-thumb: rgba(205, 214, 244, .15);
  --term-bg: #11111b;
  --term-text: #cdd6f4;
  --term-prompt: #a6e3a1;
  --term-accent: #89b4fa;
  --term-green: #a6e3a1;
  --term-yellow: #cba6f7;
  --term-red: #f38ba8;
  --term-cyan: #94e2d5;
  --term-dim: #7f849c
}

[data-theme="light"] {
  --bg: #eff1f5;
  --bg2: #e6e9ef;
  --bg3: #dce0e8;
  --bg-elevated: #ffffff;
  --ink: #4c4f69;
  --ink2: #5c5f77;
  --muted: #7c7f93;
  --muted2: #9ca0b0;
  --border: rgba(76, 79, 105, .1);
  --border2: rgba(76, 79, 105, .06);
  --glass: rgba(239, 241, 245, .85);
  --glass-border: rgba(76, 79, 105, .12);
  --shadow: 0 8px 32px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .15), 0 4px 16px rgba(0, 0, 0, .08);
  --radius: 12px;
  --radius-sm: 8px;
  --accent: #1e66f5;
  --accent-dim: rgba(30, 102, 245, .1);
  --green: #40a02b;
  --red: #d20f39;
  --yellow: #df8e1d;
  --peach: #fe640b;
  --surface-hover: rgba(76, 79, 105, .06);
  --win-titlebar: #e6e9ef;
  --win-body: #eff1f5;
  --scrollbar-thumb: rgba(76, 79, 105, .2);
  --term-bg: #eff1f5;
  --term-text: #4c4f69;
  --term-prompt: #40a02b;
  --term-accent: #1e66f5;
  --term-green: #40a02b;
  --term-yellow: #8839ef;
  --term-red: #d20f39;
  --term-cyan: #179299;
  --term-dim: #9ca0b0
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #11111b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease
}

#boot.done {
  opacity: 0;
  pointer-events: none
}

#lock-screen {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  cursor: pointer;
  transition: opacity .5s ease
}

#lock-screen.visible {
  display: flex
}

#lock-screen.done {
  opacity: 0;
  pointer-events: none
}

.lock-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #89b4fa, #cba6f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1e1e2e;
  box-shadow: 0 4px 24px rgba(137, 180, 250, .3)
}

.lock-name {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5f3ef
}

.lock-time {
  font-family: "Inter", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 200;
  color: rgba(245, 243, 239, .9);
  letter-spacing: -.02em;
  line-height: 1
}

.lock-date {
  font-size: .82rem;
  color: rgba(245, 243, 239, .5);
  letter-spacing: .06em
}

.lock-hint {
  font-size: .72rem;
  color: rgba(245, 243, 239, .3);
  margin-top: 1.5rem;
  animation: bootPulse 2s ease infinite
}

.boot-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #f5f3ef;
  letter-spacing: .06em;
  text-align: center;
  opacity: 0;
  animation: bootIn .8s ease .3s forwards;
  margin-bottom: .6rem
}

.boot-sub {
  font-size: .82rem;
  color: rgba(245, 243, 239, .4);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  animation: bootIn .6s ease .6s forwards;
  margin-bottom: 1.6rem
}

.boot-bar-wrap {
  width: 260px;
  height: 3px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  animation: bootIn .5s ease .8s forwards;
  margin: 0 auto
}

.boot-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #89b4fa, #cba6f7);
  border-radius: 4px;
  transition: width .15s linear
}

#boot.post .boot-main {
  display: none
}

#boot.post .post-screen {
  display: block
}

.post-screen {
  display: none;
  font-family: "JetBrains Mono", "Courier New", monospace;
  color: #5a9a5a;
  background: #000;
  position: absolute;
  inset: 0;
  padding: 24px 30px;
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden
}

.post-screen .post-header {
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: #aaa;
  font-size: 11px
}

.post-screen .post-title {
  font-size: 15px;
  font-weight: 700;
  color: #89b4fa;
  margin-bottom: 4px;
  letter-spacing: .04em
}

.post-screen .post-row {
  display: flex;
  justify-content: space-between;
  color: #5a9a5a
}

.post-screen .post-row .label {
  color: #888
}

.post-screen .post-row .value {
  color: #ccc
}

.post-screen .post-ok {
  color: #5a9a5a;
  font-weight: 600;
  margin-top: 8px
}

.post-screen .post-footer {
  position: absolute;
  bottom: 24px;
  left: 30px;
  right: 30px;
  border-top: 1px solid #333;
  padding-top: 8px;
  font-size: 11px;
  color: #666;
  display: flex;
  justify-content: space-between
}

.boot-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%
}

.boot-progress-wrap {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px
}

.boot-dots {
  display: flex;
  gap: 6px;
  justify-content: center
}

.boot-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transition: background .3s
}

.boot-dots span.active {
  background: #89b4fa
}

@keyframes bootPulse {
  0%,
  100% {
    opacity: .3
  }
  50% {
    opacity: 1
  }
}

.boot-status {
  font-size: .72rem;
  color: rgba(245, 243, 239, .25);
  letter-spacing: .08em;
  min-height: 1.2em;
  opacity: 0;
  animation: bootIn .4s ease 1s forwards;
  text-align: center
}

@keyframes bootIn {
  to {
    opacity: 1
  }
}

#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  transition: background .6s ease
}

.wp-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 50%, #112240 100%);
  transition: background .6s ease
}

.wp-grain {
  display: none
}

#desktop-icons {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(2, 100px);
  gap: 8px;
  height: calc(100% - var(--taskbar-h) - 56px);
  align-content: start;
  z-index: 1
}

.dock-apps-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  transition: width .2s, opacity .2s
}

.dock-apps-wrap.empty {
  width: 0;
  opacity: 0;
  overflow: hidden
}

.d-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
  user-select: none;
  -webkit-user-select: none;
  width: 100px
}

.d-icon:hover {
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px)
}

.d-icon:active {
  background: rgba(255, 255, 255, .22)
}

.d-icon-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s, box-shadow .18s;
  flex-shrink: 0
}

.d-icon:hover .d-icon-img {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25)
}

.d-icon-img svg {
  width: 22px;
  height: 22px
}

.d-icon-label {
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  text-align: center;
  line-height: 1.2
}

[data-theme="light"] .d-icon:hover {
  background: rgba(0, 0, 0, .05)
}

[data-theme="light"] .d-icon-label {
  color: #1e1e2e;
  text-shadow: 0 1px 4px rgba(255, 255, 255, .6)
}

[data-theme="light"] .dark-card {
  background: var(--bg2);
  border-color: var(--border)
}

[data-theme="light"] .dark-card .card-tag {
  color: var(--muted)
}

[data-theme="light"] .dark-card .card-title {
  color: var(--ink)
}

[data-theme="light"] .dark-card .card-desc {
  color: var(--muted)
}

[data-theme="light"] .dark-card .card-num {
  color: var(--ink)
}

[data-theme="light"] .dark-card .pill {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--muted)
}

[data-theme="light"] .dark-card .card-link {
  border: 1px solid var(--border);
  color: var(--muted)
}

[data-theme="light"] .dark-card .card-link:hover {
  border-color: var(--accent);
  color: var(--accent)
}

[data-theme="light"] .dark-card .perf-badge {
  background: rgba(64, 160, 43, .08);
  border-color: rgba(64, 160, 43, .2);
  color: var(--green)
}

[data-theme="light"] .dark-card .collab-badge {
  background: rgba(223, 142, 29, .08);
  border-color: rgba(223, 142, 29, .2);
  color: var(--yellow)
}

[data-theme="light"] .dark-card .hackathon-badge {
  background: rgba(254, 100, 11, .08);
  border-color: rgba(254, 100, 11, .2);
  color: var(--peach)
}

[data-theme="light"] .leadership-card-dark {
  background: var(--bg2);
  border-color: var(--border)
}

[data-theme="light"] .leadership-card-dark .leadership-icon-box {
  background: var(--accent-dim);
  border-color: var(--accent)
}

[data-theme="light"] .leadership-card-dark .leadership-title {
  color: var(--ink)
}

[data-theme="light"] .leadership-card-dark .leadership-desc {
  color: var(--muted)
}

[data-theme="light"] .leadership-card-dark .leadership-tag {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--muted)
}

[data-theme="light"] .cert-card.ms-learn {
  background: var(--bg2);
  border-color: var(--border)
}

[data-theme="light"] .cert-card.ms-learn .cert-name {
  color: var(--ink)
}

[data-theme="light"] .cert-card.ms-learn .cert-issuer {
  color: var(--muted)
}

[data-theme="light"] .ms-stat .num {
  color: var(--accent)
}

.os-window {
  position: absolute;
  background: var(--win-body);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-width: 380px;
  min-height: 200px
}

.os-window.open {
  display: flex
}

.os-window.focused {
  box-shadow: var(--shadow-lg)
}

.win-titlebar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  cursor: default;
  flex-shrink: 0;
  background: var(--win-titlebar);
  border-bottom: 1px solid var(--border)
}

.win-tl {
  display: flex;
  gap: 7px;
  flex-shrink: 0
}

.win-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  padding: 0
}

.win-close {
  background: #ff5f57
}

.win-min {
  background: #febc2e
}

.win-max {
  background: #28c840
}

.win-close:hover {
  filter: brightness(.85)
}

.win-min:hover {
  filter: brightness(.85)
}

.win-max:hover {
  filter: brightness(.85)
}

.win-btn svg {
  width: 8px;
  height: 8px;
  opacity: 1;
  pointer-events: none
}

.win-tl:hover .win-btn svg {
  opacity: 1
}

.os-window.maximized {
  border-radius: 0 !important;
  border: none !important
}

.win-title {
  flex: 1;
  text-align: center;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px
}

.win-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden
}

.win-body::-webkit-scrollbar {
  width: 6px
}

.win-body::-webkit-scrollbar-track {
  background: transparent
}

.win-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px
}

.win-resize-n,
.win-resize-s,
.win-resize-e,
.win-resize-w {
  position: absolute;
  z-index: 2
}

.win-resize-n {
  top: -4px;
  left: 10px;
  right: 10px;
  height: 8px;
  cursor: ns-resize
}

.win-resize-s {
  bottom: -4px;
  left: 10px;
  right: 10px;
  height: 8px;
  cursor: ns-resize
}

.win-resize-e {
  right: -4px;
  top: 10px;
  bottom: 10px;
  width: 8px;
  cursor: ew-resize
}

.win-resize-w {
  left: -4px;
  top: 10px;
  bottom: 10px;
  width: 8px;
  cursor: ew-resize
}

.win-resize-ne {
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
  z-index: 3
}

.win-resize-nw {
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  z-index: 3
}

.win-resize-se {
  bottom: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  z-index: 3
}

.win-resize-sw {
  bottom: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
  z-index: 3
}

.os-window {
  transition: box-shadow .2s, opacity .2s, transform .2s
}

.os-window:not(.open) {
  opacity: 0;
  transform: scale(.94);
  pointer-events: none
}

#taskbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .15), 0 2px 8px rgba(0, 0, 0, .08)
}

#start-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
  padding: 0
}

#start-btn:hover {
  background: var(--surface-hover)
}

#start-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8
}

.task-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px
}

.dock-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .15s;
  position: relative;
  padding: 0;
  flex-shrink: 0
}

.dock-icon:hover {
  background: var(--surface-hover)
}

.dock-icon.active {
  background: var(--accent-dim)
}

.dock-icon:active {
  transform: scale(.92)
}

.dock-icon svg {
  width: 20px;
  height: 20px
}

.dock-indicator {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  transition: width .2s, opacity .2s;
  opacity: 0
}

.dock-icon.open-app .dock-indicator {
  opacity: 1
}

.dock-icon.active .dock-indicator {
  width: 16px;
  border-radius: 2px;
  background: var(--accent)
}

.dock-icon.minimized-app .dock-indicator {
  opacity: .5
}

.dock-icon.minimized-app {
  opacity: .6
}

.task-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  margin-left: 4px;
  flex-shrink: 0
}

#task-clock {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap
}

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

.tray-icons svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6
}

#start-menu {
  position: fixed;
  bottom: calc(var(--taskbar-h) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(.97);
  z-index: 6000;
  width: 460px;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .4);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all .22s ease;
  color: var(--ink)
}

#start-menu.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0) scale(1)
}

.sm-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-hover);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: var(--ink);
  outline: none;
  margin-bottom: 12px
}

.sm-search:focus {
  border-color: var(--accent)
}

.sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px
}

.sm-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
  text-align: left;
  font-family: 'Inter', sans-serif;
  width: 100%
}

.sm-app:hover {
  background: rgba(255, 255, 255, .08)
}

.sm-app-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.sm-app-icon svg {
  width: 16px;
  height: 16px
}

.sm-app-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink)
}

.sm-app-desc {
  font-size: .62rem;
  color: var(--muted);
  margin-top: 1px
}

.sm-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end
}

.sm-shutdown {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted)
}

.sm-shutdown:hover {
  background: rgba(243, 139, 168, .08);
  border-color: rgba(243, 139, 168, .3);
  color: var(--red)
}

#ctx-menu {
  position: fixed;
  z-index: 9000;
  min-width: 200px;
  background: var(--glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  padding: 6px;
  display: none
}

#ctx-menu.visible {
  display: block
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: var(--ink);
  transition: background .12s;
  width: 100%;
  text-align: left
}

.ctx-item:hover {
  background: var(--surface-hover)
}

.ctx-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.6;
  flex: 0 0 16px;
  display: block
}

.ctx-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 8px
}

.term {
  background: var(--term-bg);
  color: var(--term-text);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: .95rem;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: text
}

.term-output {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65
}

.term-output::-webkit-scrollbar {
  width: 5px
}

.term-output::-webkit-scrollbar-thumb {
  background: var(--term-dim);
  border-radius: 3px
}

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

.term-accent {
  color: var(--term-accent)
}

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

.term-yellow {
  color: var(--term-yellow)
}

.term-red {
  color: var(--term-red)
}

.term-cyan {
  color: var(--term-cyan)
}

.term-dim {
  color: var(--term-dim)
}

.term-input-line {
  display: flex;
  align-items: center;
  margin-top: 2px
}

.term-input-line .term-prompt {
  flex-shrink: 0
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--term-text);
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  caret-color: #a6e3a1;
  font-size: .95rem
}

.hero-section {
  text-align: center;
  padding: 3rem 2.5rem 2.5rem
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--muted2)
}

.hero-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  margin-bottom: .8rem
}

.name-hollow {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color .3s
}

.name-hollow:hover {
  color: var(--ink);
  -webkit-text-stroke: 1.5px transparent
}

.name-solid {
  display: block;
  color: var(--ink)
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(.88rem, 1.8vw, 1.1rem);
  color: var(--muted);
  margin-bottom: .4rem
}

.hero-tw {
  font-size: .9rem;
  color: var(--muted);
  min-height: 1.6rem;
  color: var(--accent)
}

.tw-text {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px
}

.hr-div {
  width: 100%;
  height: 1px;
  background: var(--border)
}

.section-tag {
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  margin-bottom: .8rem;
  display: block;
  padding: 0 2rem
}

.about-inner {
  padding: 2rem
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.3rem 1rem;
  text-align: center;
  transition: all .25s
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff
}

.stat-big {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
  line-height: 1;
  transition: color .25s
}

.stat-card:hover .stat-big {
  color: #fff
}

.stat-label {
  font-size: .66rem;
  color: var(--muted);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
  transition: color .25s
}

.stat-card:hover .stat-label {
  color: rgba(255, 255, 255, .7)
}

.about-text h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
  color: var(--ink)
}

.about-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .8rem;
  font-size: .88rem
}

.btn {
  padding: .7rem 1.6rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .18s;
  display: inline-flex;
  align-items: center;
  gap: 7px
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .14)
}

.tab-bar {
  display: flex;
  gap: .3rem;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem
}

.tab-btn {
  padding: .55rem 1.2rem .7rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  margin-bottom: -1px
}

.tab-btn:hover {
  color: var(--ink)
}

.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600
}

.tab-panel {
  display: none;
  padding: 1.5rem 2rem 2rem
}

.tab-panel.active {
  display: block
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .6rem
}

.bento-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: all .22s
}

.bento-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07)
}

.bento-card.featured,
.bento-card.w6 {
  background: var(--bg-elevated);
  border-color: var(--border)
}

.bento-card.featured:hover,
.bento-card.w6:hover {
  border-color: var(--accent)
}

.bento-card.w4 {
  grid-column: span 4
}

.bento-card.w3 {
  grid-column: span 3
}

.bento-card.w2 {
  grid-column: span 2
}

.bento-card.w6 {
  grid-column: span 6
}

.bento-card.featured {
  grid-column: span 4
}

.card-num {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  position: absolute;
  top: -6px;
  right: 1.2rem;
  opacity: .05;
  line-height: 1;
  pointer-events: none
}

.card-tag {
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: .6rem;
  display: block
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--ink)
}

.featured .card-title,
.w4 .card-title,
.w6 .card-title {
  font-size: 1.3rem
}

.card-desc {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
  margin-bottom: .9rem
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .9rem
}

.pill {
  font-size: .6rem;
  padding: .22rem .55rem;
  border-radius: 100px;
  background: rgba(10, 10, 10, .05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500
}

.bento-card:not(.dark-card):hover .pill {
  border-color: var(--accent);
  color: var(--accent)
}

.dark-card .card-tag {
  color: var(--muted)
}

.dark-card .card-title {
  color: var(--ink)
}

.dark-card .card-desc {
  color: var(--muted)
}

.dark-card .card-num {
  color: var(--ink)
}

.dark-card .pill {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--ink)
}

.card-links {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap
}

.card-link {
  font-size: .65rem;
  padding: .25rem .7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 3px
}

.card-link:hover {
  border-color: var(--ink);
  color: var(--ink)
}

.card-link.live {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

.dark-card .card-link {
  border: 1px solid var(--border);
  color: var(--muted)
}

.dark-card .card-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim)
}

.perf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 100px;
  padding: .22rem .65rem;
  font-size: .65rem;
  color: #16a34a;
  font-weight: 600;
  margin-bottom: .7rem
}

.collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(168, 85, 247, .07);
  border: 1px solid rgba(168, 85, 247, .2);
  border-radius: 100px;
  padding: .2rem .6rem;
  font-size: .62rem;
  color: #9333ea;
  font-weight: 600;
  margin-bottom: .6rem
}

.hackathon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 100px;
  padding: .2rem .6rem;
  font-size: .62rem;
  color: #d97706;
  font-weight: 600;
  margin-bottom: .6rem
}

.dark-card .hackathon-badge {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent)
}

.dark-card .perf-badge {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .3);
  color: #6ee7b7
}

.dark-card .collab-badge {
  background: rgba(168, 85, 247, .12);
  border-color: rgba(168, 85, 247, .3);
  color: #d8b4fe
}

.leadership-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: left;
  transition: all .25s
}

.leadership-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-dim)
}

.leadership-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: .8rem
}

.leadership-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(10, 10, 10, .06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s
}

.leadership-card:hover .leadership-icon-box {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2)
}

.leadership-icon-box svg {
  stroke: var(--ink);
  transition: stroke .25s
}

.leadership-card:hover .leadership-icon-box svg {
  stroke: #f5f3ef
}

.leadership-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  transition: color .25s
}

.leadership-card:hover .leadership-title {
  color: var(--accent)
}

.leadership-meta {
  font-size: .7rem;
  color: var(--muted);
  transition: color .25s
}

.leadership-card:hover .leadership-meta {
  color: var(--muted)
}

.leadership-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  transition: color .25s
}

.leadership-card:hover .leadership-desc {
  color: var(--muted)
}

.leadership-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .8rem
}

.leadership-tag {
  font-size: .62rem;
  padding: .22rem .55rem;
  border-radius: 100px;
  background: rgba(10, 10, 10, .05);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .25s
}

.leadership-card:hover .leadership-tag {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--muted)
}

.leadership-card-dark {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--border)
}

.leadership-card-dark:hover {
  background: var(--bg2);
  border-color: var(--accent)
}

.leadership-card-dark .leadership-icon-box {
  background: var(--accent-dim);
  border-color: var(--accent)
}

.leadership-card-dark .leadership-icon-box svg {
  stroke: var(--accent)
}

.leadership-card-dark .leadership-title {
  color: var(--ink)
}

.leadership-card-dark .leadership-meta {
  color: var(--muted)
}

.leadership-card-dark .leadership-desc {
  color: var(--muted)
}

.leadership-card-dark .leadership-tag {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--muted)
}

.skills-section {
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 2rem
}

.skills-section .section-tag {
  color: var(--muted)
}

.skills-section .section-header h2 {
  color: var(--ink)
}

.skills-section .section-header p {
  color: var(--muted)
}

.section-header {
  margin-bottom: 1.5rem;
  padding: 0 2rem
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .3rem;
  line-height: 1;
  color: var(--ink)
}

.section-header p {
  color: var(--muted);
  font-size: .88rem
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--border)
}

.skill-group {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .22s
}

.skill-group:hover {
  background: var(--surface-hover)
}

.skill-group-title {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: 7px
}

.sg-icon {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0
}

.skill-group:hover .sg-icon {
  stroke: var(--accent)
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem
}

.skill-pill {
  font-size: .7rem;
  padding: .26rem .65rem;
  border-radius: 3px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .18s
}

.skill-pill:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px)
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .6rem
}

.cert-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  transition: all .22s
}

.cert-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px)
}

.icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg3);
  transition: all .22s
}

.icon-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  display: block
}

.cert-card:hover .icon-box {
  background: var(--accent);
  border-color: var(--accent)
}

.cert-card:hover .icon-box svg {
  stroke: #fff
}

.icon-box.light {
  background: var(--accent-dim);
  border-color: var(--accent)
}

.icon-box.light svg {
  stroke: var(--accent)
}

.cert-name {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .15rem;
  color: var(--ink)
}

.cert-issuer {
  font-size: .7rem;
  color: var(--muted)
}

.cert-date {
  font-size: .62rem;
  color: var(--muted2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .3rem;
  display: block
}

.cert-card.ms-learn {
  background: var(--bg-elevated);
  border-color: var(--border);
  grid-column: 1/-1;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center
}

.cert-card.ms-learn:hover {
  background: var(--bg2);
  border-color: var(--accent)
}

.cert-card.ms-learn .cert-name {
  color: var(--ink)
}

.cert-card.ms-learn .cert-issuer {
  color: var(--muted)
}

.ms-learn-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .6rem
}

.ms-stat .num {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent)
}

.ms-stat .lbl {
  font-size: .6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em
}

.contact-section {
  text-align: center;
  padding: 3rem 2rem
}

.contact-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: .3rem;
  line-height: .95
}

.contact-hollow {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink)
}

.contact-solid {
  display: block;
  color: var(--ink)
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 100px;
  padding: .35rem .9rem;
  font-size: .75rem;
  color: #16a34a;
  font-weight: 500;
  margin-bottom: 1.5rem;
  background: rgba(34, 197, 94, .05)
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pdot 2s infinite
}

@keyframes pdot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .4)
  }
  50% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0)
  }
}

.contact-section .sub {
  color: var(--muted);
  font-size: .88rem;
  margin: 1.5rem auto 2rem;
  max-width: 400px
}

.contact-btns {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap
}

.contact-btn {
  padding: .7rem 1.4rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .82rem;
  transition: all .22s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif
}

.contact-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5
}

.contact-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px)
}

.exp-card {
  max-width: 680px;
  margin: 0 auto
}

.exp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  padding: .18rem .55rem;
  border-radius: 100px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #4ade80;
  font-weight: 700
}

.exp-status .pulse-dot {
  width: 5px;
  height: 5px
}

.settings-body {
  padding: 1.5rem
}

.settings-section {
  margin-bottom: 1.5rem
}

.settings-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .7rem
}

.theme-options {
  display: flex;
  gap: .6rem
}

.theme-option {
  flex: 1;
  padding: .8rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  text-align: center;
  transition: all .15s
}

.theme-option:hover {
  border-color: var(--muted)
}

.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-dim)
}

.theme-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin: 0 auto .5rem;
  display: flex;
  align-items: center;
  justify-content: center
}

.theme-option-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink)
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem
}

.wallpaper-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  overflow: hidden
}

.wallpaper-thumb:hover {
  border-color: var(--muted);
  transform: scale(1.03)
}

.wallpaper-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent)
}

@media(max-width:768px) {
  .d-icon {
    width: 72px;
    padding: 10px 6px
  }

  .d-icon-img {
    width: 38px;
    height: 38px
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem
  }

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

  .bento-card {
    grid-column: span 1 !important
  }

  .bento-card.featured,
  .bento-card.w4,
  .bento-card.w6 {
    grid-column: span 2 !important
  }

  #taskbar {
    width: calc(100% - 20px);
    border-radius: 14px;
    padding: 5px 8px
  }

  .dock-icon {
    width: 38px;
    height: 38px
  }

  #desktop-icons {
    grid-template-columns: repeat(2, 80px)
  }

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

#shutdown-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity .8s ease
}

#shutdown-screen.visible {
  display: flex;
  opacity: 1
}

#shutdown-screen .shut-text {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: rgba(245, 243, 239, .7);
  letter-spacing: .05em
}

#shutdown-screen .shut-dots {
  display: flex;
  gap: 8px
}

#shutdown-screen .shut-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 243, 239, .15);
  animation: shutPulse 1.5s ease-in-out infinite
}

#shutdown-screen .shut-dots span:nth-child(2) {
  animation-delay: .2s
}

#shutdown-screen .shut-dots span:nth-child(3) {
  animation-delay: .4s
}

@keyframes shutPulse {
  0%,
  100% {
    background: rgba(245, 243, 239, .15);
    transform: scale(1)
  }
  50% {
    background: rgba(245, 243, 239, .6);
    transform: scale(1.3)
  }
}

#off-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  cursor: pointer
}

#off-screen.visible {
  display: flex
}

#off-screen .power-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  position: relative;
  overflow: hidden
}

#off-screen .power-btn:hover {
  border-color: rgba(137, 180, 250, .6);
  background: rgba(137, 180, 250, .08);
  box-shadow: 0 0 40px rgba(137, 180, 250, .15)
}

#off-screen .power-btn svg {
  width: 36px;
  height: 36px;
  stroke: rgba(255, 255, 255, .5);
  fill: none;
  stroke-width: 2;
  transition: stroke .3s
}

#off-screen .power-btn:hover svg {
  stroke: #89b4fa
}

#off-screen .power-label {
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  color: rgba(255, 255, 255, .25);
  letter-spacing: .1em;
  transition: color .3s
}

#off-screen:hover .power-label {
  color: rgba(255, 255, 255, .5)
}

#off-screen .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 280px;
  opacity: .15;
  pointer-events: none
}

#off-screen .wave svg {
  width: 100%;
  height: 100%
}

@keyframes waveMove {
  0% {
    transform: translateX(0)
  }
  100% {
    transform: translateX(-50%)
  }
}

#off-screen .wave {
  animation: waveMove 12s linear infinite
}

/* File Browser Styles */
.fb-toolbar-btn {
  padding: .4rem .6rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all .15s;
}

.fb-toolbar-btn:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--accent);
}

.fb-toolbar-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.fb-action-btn {
  padding: .4rem .7rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 500;
  transition: all .15s;
}

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

.fb-action-btn:active {
  transform: translateY(0);
}

.fb-edit, .fb-delete {
  padding: .3rem .4rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: currentColor;
}

.fb-edit {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.fb-edit:hover {
  background: rgba(59, 130, 246, 0.2);
}

.fb-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.fb-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Notepad Styles */
.notepad-toolbar {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-hover);
}

.notepad-path {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.notepad-actions {
  display: flex;
  gap: .4rem;
}

.notepad-btn {
  padding: .4rem .7rem;
  font-size: .75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  transition: all .15s;
}

.notepad-btn-primary {
  background: var(--accent);
  color: white;
}

.notepad-btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.notepad-btn-secondary {
  background: var(--surface-hover);
  color: var(--ink);
  border: 1px solid var(--border);
}

.notepad-btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
}

/* ============================================
   UNIFIED BUTTON SYSTEM - Theme Aware
   ============================================ */

/* Base Button */
button, a.btn, .btn-like {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: .85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  user-select: none;
}

/* Primary Button - Accent Color */
.btn-primary, button[class*="primary"], #notepad-save, .contact-btn, .btn {
  background: var(--accent);
  color: #fff;
  padding: .6rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.btn-primary:hover, button[class*="primary"]:hover, #notepad-save:hover, .contact-btn:hover, .btn:hover {
  background: var(--accent);
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.btn-primary:active, button[class*="primary"]:active {
  transform: translateY(0);
}

/* Secondary Button - Surface with Border */
.btn-secondary, button[class*="secondary"], #notepad-new, .sm-shutdown {
  background: var(--surface-hover);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: .6rem 1.2rem;
}

.btn-secondary:hover, button[class*="secondary"]:hover, #notepad-new:hover, .sm-shutdown:hover {
  background: var(--bg2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Success Button - Green */
.btn-success {
  background: var(--green);
  color: #000;
  padding: .6rem 1.2rem;
}

.btn-success:hover {
  opacity: .85;
  transform: translateY(-1px);
}

/* Danger Button - Red */
.btn-danger, .fb-delete {
  background: rgba(243, 139, 168, 0.15);
  color: var(--red);
  border: 1px solid rgba(243, 139, 168, 0.3);
  padding: .5rem 1rem;
}

.btn-danger:hover, .fb-delete:hover {
  background: rgba(243, 139, 168, 0.25);
  border-color: var(--red);
  transform: translateY(-1px);
}

/* Ghost Button - Minimal */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: .6rem 1.2rem;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--ink);
  color: var(--ink);
}

/* Small Button */
.btn-sm, button.small, .fb-edit, .fb-delete {
  padding: .4rem .7rem;
  font-size: .75rem;
}

/* Large Button */
.btn-lg {
  padding: .8rem 1.6rem;
  font-size: .95rem;
  font-weight: 600;
}

/* Icon Button */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

/* Context Menu Items */
.ctx-item {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .15s;
  border-radius: 6px;
}

.ctx-item:hover {
  background: var(--surface-hover);
  color: var(--accent);
}

.ctx-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  stroke-width: 2;
}

/* Tab Buttons */
.tab-btn {
  padding: .6rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* File Browser Buttons */
.fb-toolbar-btn {
  padding: .5rem .8rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: .8rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all .15s;
}

.fb-toolbar-btn:hover:not(:disabled) {
  background: var(--bg2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.fb-toolbar-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.fb-edit {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: none;
}

.fb-edit:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Dialog Buttons */
#dialog-create, #dialog-cancel {
  padding: .6rem 1.2rem;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-size: .85rem;
}

#dialog-create {
  background: var(--accent);
  color: #fff;
}

#dialog-create:hover {
  opacity: .9;
  transform: translateY(-1px);
}

#dialog-cancel {
  background: var(--surface-hover);
  color: var(--ink);
  border: 1px solid var(--border);
}

#dialog-cancel:hover {
  background: var(--bg2);
  border-color: var(--accent);
}

/* Taskbar & Start Menu Buttons */
.start-btn, #start-btn {
  padding: .5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all .15s;
  border-radius: 6px;
}

.start-btn:hover, #start-btn:hover {
  background: var(--surface-hover);
  color: var(--accent);
}

/* Theme Option Buttons */
.theme-option {
  padding: .8rem;
  background: var(--bg2);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.theme-option:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Disabled State */
button:disabled, a:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Focus State (Accessibility) */
button:focus-visible, a.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   SMOOTH TRANSITIONS & ANIMATIONS
   ============================================ */

/* Window Animations */
@keyframes slideInWindow {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes minimizeWindow {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.1) translateY(500px);
  }
}

/* Apply to windows */
.window {
  animation: slideInWindow .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.window.minimizing {
  animation: minimizeWindow .4s ease-in forwards;
}

.os-window.closing {
  animation: slideOutWindow .25s ease-in forwards;
}

/* Icon & App Animations */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Desktop Icons */
#desktop-icons > div {
  animation: fadeInUp .4s ease-out backwards;
}

#desktop-icons > div:nth-child(1) { animation-delay: 0s; }
#desktop-icons > div:nth-child(2) { animation-delay: .05s; }
#desktop-icons > div:nth-child(3) { animation-delay: .1s; }
#desktop-icons > div:nth-child(4) { animation-delay: .15s; }
#desktop-icons > div:nth-child(5) { animation-delay: .2s; }
#desktop-icons > div:nth-child(6) { animation-delay: .25s; }
#desktop-icons > div:nth-child(7) { animation-delay: .3s; }
#desktop-icons > div:nth-child(8) { animation-delay: .35s; }
#desktop-icons > div:nth-child(9) { animation-delay: .4s; }
#desktop-icons > div:nth-child(10) { animation-delay: .45s; }
#desktop-icons > div:nth-child(11) { animation-delay: .5s; }

/* Taskbar Animations */
#taskbar {
  animation: slideInUp .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes dockIconOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(.7);
  }
}

#dock-apps > *.entering {
  animation: fadeInScale .3s ease-out backwards;
}

#dock-apps > *.closing {
  animation: dockIconOut .25s ease-in forwards;
  pointer-events: none;
}

#dock-apps > *:nth-child(1) { animation-delay: 0.1s; }
#dock-apps > *:nth-child(2) { animation-delay: 0.15s; }
#dock-apps > *:nth-child(3) { animation-delay: 0.2s; }
#dock-apps > *:nth-child(4) { animation-delay: 0.25s; }
#dock-apps > *:nth-child(5) { animation-delay: 0.3s; }

/* Start Menu Animation */
#start-menu {
  animation: slideInLeft .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#start-menu.visible {
  animation: slideInLeft .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* File Browser Animations */
.fb-item {
  animation: fadeInUp .2s ease-out backwards;
}

.fb-item:nth-child(1) { animation-delay: 0s; }
.fb-item:nth-child(2) { animation-delay: 0.05s; }
.fb-item:nth-child(3) { animation-delay: 0.1s; }
.fb-item:nth-child(4) { animation-delay: 0.15s; }
.fb-item:nth-child(5) { animation-delay: 0.2s; }
.fb-item:nth-child(n+6) { animation-delay: 0.25s; }

/* Terminal Line Animation */
.term-output > div {
  animation: slideInLeft .2s ease-out;
}

/* Dialog Animation */
@keyframes dialogBounce {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.create-dialog {
  animation: dialogBounce .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card Hover Animation */
.bento-card {
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  animation: none;
}

.skill-pill {
  transition: all .2s ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
}

/* Context Menu Animation */
#ctx-menu {
  animation: fadeInScale .2s ease-out;
  transform-origin: var(--ctx-x, 50%) var(--ctx-y, 50%);
}

.ctx-item {
  transition: background .15s ease, color .15s ease;
}

.ctx-item:hover {
  animation: none;
}

/* Notepad Content Animation */
#notepad-content {
  transition: background-color .3s ease, color .3s ease;
}

/* Tab Animations */
.tab-panel {
  animation: fadeInUp .25s ease-out;
}

/* Wallpaper Gradient Transition */
#wp-grad {
  transition: background .8s ease;
}

/* Smooth Color Transitions for Theme */
[data-theme] {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

/* Input Animations */
input, textarea {
  transition: all .15s ease;
}

input:focus, textarea:focus {
  animation: inputFocus .2s ease;
}

@keyframes inputFocus {
  0% {
    border-color: var(--border);
  }
  100% {
    border-color: var(--accent);
  }
}

/* Hover Effects for Interactive Elements */
a, button, [role="button"] {
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin .8s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse .8s ease-in-out infinite;
}

/* Smooth Scrollbar Transitions */
::-webkit-scrollbar-thumb {
  transition: background .2s ease;
}

/* File Actions Hover Animation */
.file-actions {
  animation: fadeInScale .15s ease-out;
}

/* Smooth Opacity Transitions */
.term-output {
  transition: opacity .2s ease;
}

/* Window Drag Animation */
.window.dragging {
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

/* Reduce Motion Respect */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Smooth Backdrop Filter */
.glass {
  transition: backdrop-filter .3s ease, background .3s ease;
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg, var(--bg2) 0%, var(--bg-elevated) 50%, var(--bg2) 100%);
  background-size: 1000px 100%;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce .6s ease infinite;
}
