/* Portfolio – same Photoshop-style dark theme as Markdown Editor */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  transition: background-color 0.3s ease;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background: #0d7acc;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  z-index: 10001;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

.container {
  display: flex;
  height: 100vh;
}

/* ----- Left panel: Navigation ----- */
.controls {
  width: var(--controls-width, 260px);
  min-width: 200px;
  max-width: 480px;
  flex-shrink: 0;
  background: #2b2b2b;
  border-right: 1px solid #1a1a1a;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.panel-header {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  background: #252525;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.panel-title {
  font-size: 11px;
  font-weight: 600;
  color: #bdbdbd;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-sections {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #b8b8b8;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.nav-item:hover {
  background: #323232;
  color: #e0e0e0;
}

.nav-item.active {
  background: #2a4a6a;
  color: #fff;
  border-left-color: #0d7acc;
}

.nav-icon {
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Controls footer & theme */
.controls-footer {
  margin-top: auto;
  padding: 10px 12px 12px;
  background: #252525;
  border-top: 1px solid #1f1f1f;
  flex-shrink: 0;
}

.theme-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.controls-footer .theme-switch-label {
  font-size: 11px;
  color: #a3a3a3;
  min-width: 28px;
}

.controls-footer .theme-switch-label:first-of-type {
  text-align: right;
}

.controls-footer .theme-switch-label:last-of-type {
  text-align: left;
}

/* ----- Panel resizers ----- */
.panel-resizer {
  width: 6px;
  flex-shrink: 0;
  background: #252525;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  cursor: col-resize;
  position: relative;
}

.panel-resizer:hover,
.panel-resizer.resizing {
  background: #0d7acc;
  border-left-color: #0d7acc;
  border-right-color: #0d7acc;
  opacity: 0.8;
}

/* ----- Main content ----- */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  background-image: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(40, 45, 52, 0.6) 0%, transparent 55%),
    linear-gradient(180deg, #222 0%, #1e1e1e 15%, #1e1e1e 100%);
  min-width: 0;
}

.content-toolbar {
  padding: 16px 24px;
  background: #252525;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.content-toolbar--hidden {
  display: none;
}

/* Desktop: use about panel only; hide main content toolbar */
@media (min-width: 769px) {
  .content-toolbar {
    display: none !important;
  }
}

/* Mobile: show toolbar (name/title in main area), hide about panel */
@media (max-width: 768px) {
  .layers-panel {
    display: none !important;
  }
}

.content-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.content-subtitle {
  margin: 0;
  font-size: 12px;
  color: #a3a3a3;
  letter-spacing: 0.03em;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-section {
  display: none;
  width: 100%;
  max-width: 640px;
  padding: 8px 0;
}

.content-section.active {
  display: block;
  animation: sectionFadeIn 0.35s ease;
}

@keyframes sectionFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-heading {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 1.5em;
  font-weight: 600;
  color: #e8e8e8;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(13, 122, 204, 0.4);
}

/* Home section: slightly more prominent hero */
#section-home .section-heading {
  font-size: 1.75em;
  margin-bottom: 12px;
  border-bottom-color: rgba(13, 122, 204, 0.5);
}

#section-home .section-lead {
  font-size: 1.15em;
  color: #e8e8e8;
  font-weight: 500;
}

.section-lead {
  margin: 0 0 12px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.content-section p {
  margin: 0 0 0.75em;
  font-size: 13px;
  line-height: 1.6;
  color: #b8b8b8;
}

.section-intro {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #a0a0a0;
}

.section-hint {
  margin-top: 20px;
  font-size: 11px;
  color: #707070;
}

.section-actions {
  margin: 24px 0 0;
}

.section-actions .btn-panel {
  display: inline-flex;
}

/* Web apps (Home) */
.web-apps-block {
  margin-top: 24px;
}
.web-apps-heading {
  font-size: 13px;
  font-weight: 600;
  color: #b8b8b8;
  margin: 0 0 10px 0;
}
.web-apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.web-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  background: #2b2b2b;
  border: 1px solid #404040;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.web-app-link:hover {
  background: #353535;
  border-color: #0d7acc;
  color: #fff;
}
.web-app-icon {
  font-size: 22px;
  color: #0d7acc;
}
.web-app-link:hover .web-app-icon {
  color: #5ba3e8;
}

/* Timeline (Experience) */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item {
  padding: 14px 0;
  margin: 0 -4px;
  padding-left: 12px;
  padding-right: 4px;
  border-bottom: 1px solid #3d3d3d;
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s ease, border-left-color 0.2s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(13, 122, 204, 0.5);
}

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

.timeline-role {
  font-weight: 600;
  color: #e0e0e0;
  font-size: 13px;
}

.timeline-company {
  font-size: 12px;
  color: #0d7acc;
}

.timeline-date {
  font-size: 11px;
  color: #888;
}

.timeline-desc {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #a0a0a0;
}

.timeline-bullets {
  margin: 10px 0 0;
  padding-left: 1.25em;
  list-style: disc;
  font-size: 12px;
  line-height: 1.55;
  color: #a0a0a0;
}

.timeline-bullets li {
  margin-bottom: 6px;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

.timeline-tags {
  margin-top: 8px;
  font-size: 11px;
  color: #0d7acc;
}

/* Projects */
.project-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  padding: 18px;
  background: #2b2b2b;
  border: 1px solid #404040;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}

.project-card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #a0a0a0;
}

.project-card-tags {
  font-size: 11px;
  color: #0d7acc;
}

.project-card[role="button"] {
  cursor: pointer;
}

.project-card[role="button"]:hover {
  border-color: #0d7acc;
  background: #323232;
  box-shadow: 0 0 0 1px #0d7acc, 0 0 20px rgba(13, 122, 204, 0.25);
}

.project-card[role="button"]:hover .project-card-title {
  color: #fff;
}

.project-card[role="button"]:hover .project-card-tags {
  color: #4da3f6;
}

.project-card[role="button"]:focus-visible {
  outline: 2px solid #0d7acc;
  outline-offset: 2px;
}

/* Project detail (in-section view) */
#projectListViewModel.hidden,
.project-detail-view.hidden {
  display: none !important;
}

.project-detail-view {
  display: block;
  max-width: 640px;
}

.project-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #0d7acc;
  text-decoration: none;
  transition: color 0.15s ease;
}

.project-detail-back .project-detail-back-text {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.project-detail-back:hover .project-detail-back-text {
  text-decoration-color: currentColor;
}

.project-detail-back .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}

.project-detail-title {
  margin-bottom: 20px;
}

.project-detail-block {
  margin-bottom: 20px;
}

.project-detail-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
  font-family: inherit;
}

.project-detail-reason,
.project-detail-uiux,
.project-detail-overview {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #b8b8b8;
}

.project-detail-gallery {
  margin-bottom: 20px;
  position: relative;
}

.project-detail-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #404040;
  background: #1a1a1a;
}

.project-detail-track {
  display: flex;
  transition: transform 0.3s ease;
}

.project-detail-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.project-detail-slide img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.project-detail-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #505050;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.project-detail-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.project-detail-carousel-btn .material-symbols-outlined {
  font-size: 28px;
}

.project-detail-carousel-prev {
  left: 12px;
}

.project-detail-carousel-next {
  right: 12px;
}

.project-detail-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.project-detail-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #505050;
  cursor: pointer;
  font-size: 0;
  transition: background 0.15s ease;
}

.project-detail-dot:hover {
  background: #707070;
}

.project-detail-dot.active {
  background: #0d7acc;
}

/* Before/after comparison slider */
.project-detail-comparison {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #404040;
  background: #1a1a1a;
  cursor: ew-resize;
  user-select: none;
  min-height: 240px;
  aspect-ratio: 16 / 9;
}

.project-detail-comparison-before,
.project-detail-comparison-after {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.project-detail-comparison-before {
  z-index: 0;
}

.project-detail-comparison-after {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s ease-out;
}

.project-detail-comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  z-index: 2;
  cursor: ew-resize;
  background: #0d7acc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.05s ease-out;
}

.project-detail-comparison-handle-grip {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0d7acc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.project-detail-comparison-handle-grip .material-symbols-outlined {
  font-size: 20px;
}

.project-detail-comparison-label {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 2px;
  pointer-events: none;
  z-index: 3;
}

.project-detail-comparison-label-before {
  left: 10px;
}

.project-detail-comparison-label-after {
  right: 10px;
}

.project-detail-comparison-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #707070;
}

.project-detail-comparison-expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #505050;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.project-detail-comparison-expand-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.project-detail-comparison-expand-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Comparison expand modal (full images) */
.comparison-expand-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.comparison-expand-modal.hidden {
  display: none !important;
}

.comparison-expand-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.comparison-expand-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #2b2b2b;
  border: 1px solid #505050;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.comparison-expand-header {
  padding: 12px 16px;
  background: #252525;
  border-bottom: 1px solid #404040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.comparison-expand-title {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
}

.comparison-expand-zoom-hint {
  font-size: 11px;
  color: #888;
}

.comparison-expand-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #b0b0b0;
  cursor: pointer;
  font-family: inherit;
}

.comparison-expand-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.comparison-expand-close .material-symbols-outlined {
  font-size: 22px;
}

.comparison-expand-body {
  padding: 16px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.comparison-expand-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.comparison-expand-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  max-width: 50%;
}

.comparison-expand-cell-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
}

.comparison-expand-zoom-wrap {
  overflow: auto;
  flex: 1;
  min-height: 200px;
  max-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: zoom-in;
  border-radius: 4px;
  border: 1px solid #404040;
  background: #1a1a1a;
}

.comparison-expand-zoom-inner {
  flex-shrink: 0;
}

.comparison-expand-zoom-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  border-radius: 0;
  border: none;
  pointer-events: none;
}

.project-detail-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #3d3d3d;
}

.project-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
}

.project-detail-link .material-symbols-outlined {
  font-size: 18px;
}

/* Tech stack */
.tech-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-group-title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 6px 12px;
  background: #323232;
  border: 1px solid #505050;
  border-radius: 4px;
  font-size: 12px;
  color: #b8b8b8;
  cursor: default;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tech-badge:hover {
  transform: scale(1.06);
  filter: brightness(1.2);
}

/* Education */
.education-block {
  padding: 16px;
  background: #2b2b2b;
  border: 1px solid #404040;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.education-school {
  font-weight: 600;
  color: #e0e0e0;
  font-size: 14px;
}

.education-degree {
  font-size: 12px;
  color: #888;
}

.education-desc {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #a0a0a0;
}

/* Contact */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0d7acc;
  text-decoration: none;
  font-size: 13px;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-icon {
  font-size: 20px;
  color: inherit;
}

.links-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
}

.contact-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 16px;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}

/* Request a quote */
.quote-block {
  margin: 28px 0 24px;
  padding: 20px;
  background: #252525;
  border: 1px solid #404040;
  border-radius: 6px;
}

.quote-heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}

.quote-intro {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #a0a0a0;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #888;
}

.quote-select {
  padding: 8px 32px 8px 10px;
  font-size: 12px;
  font-family: inherit;
  color: #e0e0e0;
  background: #1e1e1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px;
  border: 1px solid #404040;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.quote-select:hover {
  border-color: #555;
}

.quote-select:focus {
  outline: none;
  border-color: #0d7acc;
  box-shadow: 0 0 0 2px rgba(13, 122, 204, 0.3);
}

.quote-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(13, 122, 204, 0.12);
  border: 1px solid rgba(13, 122, 204, 0.4);
  border-radius: 4px;
}

.quote-result-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7eb8e8;
}

.quote-result-value {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.quote-disclaimer {
  margin: 12px 0 0;
  font-size: 11px;
  color: #707070;
}

.btn-panel {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #e0e0e0;
  background: #404040;
  border: 1px solid #505050;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
}

.btn-panel:hover:not(:disabled) {
  background: #4a4a4a;
  border-color: #606060;
  color: #fff;
}

.btn-panel.btn-primary {
  background: #0a69b5;
  border-color: #0a69b5;
  color: #fff;
}

.btn-panel.btn-primary:hover:not(:disabled) {
  background: #0d7acc;
  border-color: #0d7acc;
}

/* ----- Right panel: About ----- */
.layers-panel {
  width: var(--layers-panel-width, 220px);
  min-width: 180px;
  max-width: 420px;
  flex-shrink: 0;
  background: #2b2b2b;
  border-left: 1px solid #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-content {
  padding: 12px 14px;
  font-size: 11px;
  color: #bdbdbd;
  line-height: 1.5;
  flex: 1;
  overflow-y: auto;
}

.about-text {
  margin: 0 0 10px;
}

.about-text strong {
  color: #e0e0e0;
}

.about-fun {
  margin: 12px 0 0;
  font-size: 10px;
  color: #9a9a9a;
  font-style: italic;
}

.about-shortcuts {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #3d3d3d;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.shortcut-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #a0a0a0;
  background: #252525;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shortcut-chip:hover {
  transform: scale(1.03);
  box-shadow: 0 0 14px rgba(13, 122, 204, 0.25);
}

.shortcut-chip .shortcut-keys {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.shortcut-chip .shortcut-label {
  min-width: 0;
  overflow-wrap: break-word;
}

.about-shortcuts kbd {
  display: inline-block;
  padding: 2px 5px;
  min-width: 18px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  background: #353535;
  border: 1px solid #454545;
  border-radius: 4px;
  color: #e0e0e0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* ----- Theme switch (left panel footer) ----- */
.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.theme-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #404040;
  border: 1px solid #505050;
  transition: background 0.2s, border-color 0.2s;
}

.theme-switch:hover .theme-switch-track {
  background: #484848;
  border-color: #606060;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.theme-switch[aria-checked="true"] .theme-switch-thumb {
  transform: translateX(18px);
}

.theme-switch[aria-checked="true"] .theme-switch-track {
  background: #0d7acc;
  border-color: #0d7acc;
}

.theme-switch[aria-checked="true"]:hover .theme-switch-track {
  background: #1a8ae0;
  border-color: #1a8ae0;
}

.theme-switch:focus-visible {
  outline: 2px solid #0d7acc;
  outline-offset: 2px;
  border-radius: 13px;
}

.hidden {
  display: none !important;
}

/* ----- Scrollbars ----- */
.controls,
.content-scroll,
.about-content,
.comparison-expand-body,
.comparison-expand-zoom-wrap {
  scrollbar-width: thin;
  scrollbar-color: #505050 #2b2b2b;
}

.controls::-webkit-scrollbar,
.content-scroll::-webkit-scrollbar,
.about-content::-webkit-scrollbar,
.comparison-expand-body::-webkit-scrollbar,
.comparison-expand-zoom-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.controls::-webkit-scrollbar-track,
.content-scroll::-webkit-scrollbar-track,
.about-content::-webkit-scrollbar-track,
.comparison-expand-body::-webkit-scrollbar-track,
.comparison-expand-zoom-wrap::-webkit-scrollbar-track {
  background: #2b2b2b;
}

.controls::-webkit-scrollbar-thumb,
.content-scroll::-webkit-scrollbar-thumb,
.about-content::-webkit-scrollbar-thumb,
.comparison-expand-body::-webkit-scrollbar-thumb,
.comparison-expand-zoom-wrap::-webkit-scrollbar-thumb {
  background: #505050;
  border-radius: 5px;
  border: 2px solid #2b2b2b;
}

.controls::-webkit-scrollbar-thumb:hover,
.content-scroll::-webkit-scrollbar-thumb:hover,
.about-content::-webkit-scrollbar-thumb:hover,
.comparison-expand-body::-webkit-scrollbar-thumb:hover,
.comparison-expand-zoom-wrap::-webkit-scrollbar-thumb:hover {
  background: #606060;
}

/* ----- Easter egg (Konami code) ----- */
.easter-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #0d7acc;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.easter-toast.easter-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.easter-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10001;
  overflow: hidden;
}

.easter-confetti-piece {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: easterConfettiFall linear forwards;
  opacity: 0.9;
}

@keyframes easterConfettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ----- Focus styles ----- */
.nav-item:focus-visible {
  outline: 2px solid #0d7acc;
  outline-offset: 2px;
}

.contact-link:focus-visible {
  outline: 2px solid #0d7acc;
  outline-offset: 2px;
}

/* ----- Reduced motion: respect prefers-reduced-motion ----- */
@media (prefers-reduced-motion: reduce) {
  body,
  .skip-link,
  .nav-item,
  .theme-switch-track,
  .theme-switch-thumb,
  .project-card,
  .tech-badge,
  .shortcut-chip,
  .easter-toast,
  .project-detail-back .project-detail-back-text {
    transition: none !important;
  }

  .content-section.active {
    animation: none !important;
  }

  .easter-confetti-piece {
    animation: none !important;
  }

  .easter-confetti {
    display: none !important;
  }
}

/* ----- Print: one-column resume-style layout ----- */
@media print {
  .skip-link,
  .controls,
  .layers-panel,
  .panel-resizer,
  .easter-toast,
  .easter-confetti,
  #comparisonExpandModal {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .container {
    display: block;
    height: auto;
    min-height: auto;
  }

  .content-wrapper {
    flex: none;
    width: 100%;
    max-width: none;
    background: #fff;
  }

  .content-toolbar {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 16px 24px;
  }

  .content-title {
    color: #111;
  }

  .content-subtitle {
    color: #555;
  }

  .content-scroll {
    padding: 24px 32px;
    overflow: visible;
    display: block;
    align-items: unset;
    max-height: none;
  }

  .content-section {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    page-break-inside: avoid;
  }

  .content-section h2 {
    page-break-after: avoid;
    color: #111;
  }

  .section-heading,
  .section-lead,
  .content-section p,
  .section-intro,
  .section-hint {
    color: #333;
  }

  .timeline-role,
  .timeline-company,
  .project-card-title {
    color: #111;
  }

  .timeline-date,
  .timeline-tags,
  .project-card-desc,
  .project-card-tags {
    color: #555;
  }

  #projectDetailView {
    display: none !important;
  }

  #projectListViewModel {
    display: block !important;
  }

  .project-card {
    break-inside: avoid;
    background: #f9f9f9;
    border-color: #ddd;
  }

  .tech-badge {
    background: #eee;
    border-color: #ccc;
    color: #333;
  }

  .contact-link {
    color: #0d7acc;
  }

  .btn-panel {
    border-color: #0d7acc;
    color: #0d7acc;
    background: transparent;
  }
}
