/* Profile Page Styles — align with styles.css theme tokens */
html[data-theme="light"],
html[data-theme="dark"] {
  --text-color: var(--text);
  --text-muted: var(--muted);
  --hover-color: var(--border);
  --accent-color: var(--text);
  --accent-color-dark: var(--muted);
  --font-sans: 'Literata', Georgia, serif;
  --bg-dark: var(--border);
}

.profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  padding: 0.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.profile-header:hover .profile-image {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .profile-image {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.profile-header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: var(--text-color);
}

.profile-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--hover-color);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.2s, background-color 0.2s;
}

.profile-link:hover {
  transform: translateY(-3px);
  background-color: color-mix(in srgb, var(--accent) 18%, var(--hover-color));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .profile-link:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.profile-link .icon {
  font-size: 1.2rem;
}

.profile-link .linkedin-icon {
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.95;
}

.profile-section h2 {
  font-size: 1.65rem;
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 500;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  padding-bottom: 0;
  border: none;
}

.profile-section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 3px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: var(--hover-color);
  border-radius: 0.25rem;
  transition: transform 0.2s;
}

.skill-category li:hover {
  transform: translateX(5px);
}

.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: color-mix(in srgb, var(--text-color) 4%, var(--bg));
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .projects-list {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.project-item {
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
}

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

.project-item:hover {
  background-color: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-left-color: var(--accent);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.project-icon {
  font-size: 1.2rem;
  width: 1.5em;
  text-align: center;
}

.project-title {
  font-size: 1rem;
  margin: 0;
  color: var(--text-color);
  white-space: nowrap;
  font-weight: 500;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-left: 1rem;
}

/* Explicit fg/bg per tag — never inherit page text color on saturated chips */
.project-tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tag-embedded {
  background-color: #9a3412;
  color: #fff7ed;
  border-color: #7c2d12;
}

.tag-android {
  background-color: #bbf7d0;
  color: #14532d;
  border-color: #4ade80;
}

.tag-internship {
  background-color: #fecdd3;
  color: #881337;
  border-color: #fb7185;
}

.tag-product {
  background-color: #1d4ed8;
  color: #ffffff;
  border-color: #1e40af;
}

.tag-fullstack {
  background-color: #6d28d9;
  color: #faf5ff;
  border-color: #5b21b6;
}

.tag-college {
  background-color: #a7f3d0;
  color: #064e3b;
  border-color: #34d399;
}

.tag-research {
  background-color: #e5e7eb;
  color: #111827;
  border-color: #9ca3af;
}

.tag-aiml {
  background-color: #fed7aa;
  color: #7c2d12;
  border-color: #fb923c;
}

.tag-python {
  background-color: #1e40af;
  color: #eff6ff;
  border-color: #1e3a8a;
}

.tag-github {
  background-color: #171717;
  color: #fafafa;
  border-color: #000000;
}

.tag-oss {
  background-color: #0f172a;
  color: #f1f5f9;
  border-color: #1e293b;
}

html[data-theme="dark"] .tag-embedded {
  background-color: #7c2d12;
  color: #ffedd5;
  border-color: #ea580c;
}

html[data-theme="dark"] .tag-android {
  background-color: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
}

html[data-theme="dark"] .tag-internship {
  background-color: rgba(244, 63, 94, 0.22);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.45);
}

html[data-theme="dark"] .tag-product {
  background-color: #1e3a8a;
  color: #dbeafe;
  border-color: #3b82f6;
}

html[data-theme="dark"] .tag-fullstack {
  background-color: #5b21b6;
  color: #ede9fe;
  border-color: #8b5cf6;
}

html[data-theme="dark"] .tag-college {
  background-color: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.45);
}

html[data-theme="dark"] .tag-research {
  background-color: #374151;
  color: #f9fafb;
  border-color: #6b7280;
}

html[data-theme="dark"] .tag-aiml {
  background-color: rgba(234, 88, 12, 0.24);
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.5);
}

html[data-theme="dark"] .tag-python {
  background-color: #172554;
  color: #bfdbfe;
  border-color: #1d4ed8;
}

html[data-theme="dark"] .tag-github {
  background-color: #262626;
  color: #fafafa;
  border-color: #525252;
}

html[data-theme="dark"] .tag-oss {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

/* Dark mode adjustments */
[data-theme="dark"] .profile-link:hover {
  background-color: color-mix(in srgb, var(--accent) 22%, var(--hover-color));
}

[data-theme="dark"] .project-links a {
  background-color: var(--accent-color-dark);
}

/* Timeline Styles */
.timeline {
  position: relative;
  height: 300vh; /* Give enough scroll room */
  margin: 0 auto;
  max-width: 800px;
  overflow: visible;
}

.timeline-container {
  position: sticky;
  top: 50vh; /* Center vertically in viewport */
  transform: translateY(-50%);
  height: 400px;
  margin: 2rem auto;
  perspective: 1000px;
}

/* Timeline Progress */
.timeline-progress {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 200px;
  background-color: var(--hover-color);
}

.timeline-progress::before {
  content: '';
  position: absolute;
  left: -4px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transition: top 0.3s ease;
}

/* Timeline Items */
.timeline-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Timeline Content */
.timeline-content {
  background-color: var(--hover-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.timeline-date {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.timeline-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-image {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hover-color);
}

.tech-label {
  color: var(--accent-color);
  font-weight: 500;
}

.tech-item {
  color: var(--text-muted);
  background-color: var(--hover-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.9rem;
}

/* Progress Indicators */
.timeline-indicators {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hover-color);
  transition: all 0.3s ease;
}

.timeline-indicator.active {
  background-color: var(--accent-color);
  transform: scale(1.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .timeline-container {
    margin: 1rem;
  }

  .timeline-progress,
  .timeline-indicators {
    display: none;
  }

  .timeline-content {
    padding: 1.5rem;
  }
}

/* Dialog Backdrop Styles */
.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

/* Hide scrollbar when dialog is open */
body:has(dialog[open]) {
  overflow: hidden;
}

/* Dialog Styles — match page theme (avoid fixed dark shell + missing CSS vars) */
.project-dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.dialog-content {
  padding: 2rem;
  max-height: calc(90vh - 4rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) var(--border);
}

/* Custom scrollbar for Webkit browsers */
.dialog-content::-webkit-scrollbar {
  width: 8px;
}

.dialog-content::-webkit-scrollbar-track {
  background: var(--bg);
}

.dialog-content::-webkit-scrollbar-thumb {
  background-color: var(--muted);
  border-radius: 4px;
  border: 2px solid var(--bg);
}

/* Keep the footer at the bottom */
.dialog-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* Remove close button styles */
.dialog-close {
  display: none;
}

/* Adjust image display */
.dialog-image {
  width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0;
  background: var(--border);
  padding: 1rem;
  object-fit: contain;
  max-height: 500px;
}

.dialog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-icon {
  font-size: 3rem;
}

.dialog-header h2 {
  font-size: 2rem;
  margin: 0;
  flex-grow: 1;
  color: var(--text);
}

.dialog-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.dialog-description {
  margin: 2rem 0;
  line-height: 1.6;
}

.dialog-description h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.dialog-description h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  color: var(--muted);
}

.dialog-description ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.dialog-description li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.dialog-description p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text);
}

.dialog-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dialog-org-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.dialog-link a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.org-name {
  font-weight: 500;
  opacity: 0.9;
}

.org-url {
  font-size: 0.9rem;
  opacity: 0.7;
}

.dialog-link a:hover .org-name {
  opacity: 1;
}

.dialog-link a:hover .org-url {
  opacity: 0.9;
}

/* PDF Container Styles */
.pdf-container {
  width: 100%;
  margin: 1rem 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 1rem;
}

.pdf-container object {
  border: none;
  display: block;
  width: 100%;
  height: calc(90vh - 15rem);
  min-height: 600px;
  background: var(--border);
  border-radius: 0.5rem;
}

.pdf-container p {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.pdf-container a {
  color: var(--accent-color);
  text-decoration: none;
}

.pdf-container a:hover {
  text-decoration: underline;
}

/* Experience Timeline */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-item {
  background: color-mix(in srgb, var(--text-color) 3.5%, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.1rem;
  transition: background-color 0.25s ease;
}

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

.experience-item:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.experience-header {
  margin-bottom: 0.35rem;
}

.experience-header h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  color: var(--text-color);
}

.duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.description {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 640px) {
  .project-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-tags {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .experience-item {
    padding: 0.75rem 0.85rem;
  }

  .experience-header h3 {
    font-size: 1rem;
  }

  .duration {
    font-size: 0.8rem;
  }

  .description {
    font-size: 0.85rem;
    line-height: 1.2;
  }
}

/* Profile sections inside About tab */
.profile.about-browser__panels {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem 0 2rem;
}

/* Browser window frame (single-page site) */
.about-browser {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-color) 5%, var(--bg));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text-color) 4%, transparent),
    0 24px 64px var(--shadow-color, rgba(26, 26, 26, 0.12)),
    0 4px 16px var(--shadow-color, rgba(26, 26, 26, 0.06));
  overflow: hidden;
  max-width: min(68rem, calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* About sub-tabs only when About is active (Chrome-style “expanded tab” row) */
.about-browser__chrome:not(.about-browser__chrome--about-active) .about-browser__tabstrip--secondary {
  display: none !important;
  visibility: hidden;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-width: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.about-browser__chrome--about-active .about-browser__tabstrip--secondary {
  display: flex !important;
  visibility: visible;
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  animation: about-subtab-expand 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@media (prefers-reduced-motion: reduce) {
  .about-browser__chrome--about-active .about-browser__tabstrip--secondary {
    animation: none;
  }

  .about-browser__pet-track {
    display: none;
  }
}

html[data-theme="dark"] .about-browser {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent),
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 6px 20px rgba(0, 0, 0, 0.35);
}

.about-browser__chrome {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-color) 6%, var(--bg));
}

html[data-theme="dark"] .about-browser__chrome {
  background: color-mix(in srgb, var(--text-color) 10%, var(--bg));
}

.about-browser__titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0.75rem 0.45rem;
  min-height: 2.35rem;
}

/* Pixel pet runs along the fake window title bar (empty strip beside traffic lights) */
.about-browser__pet-track {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
  container-name: browser-pet;
}

.about-browser__pet-mover {
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
  animation: about-browser-pet-patrol 52s ease-in-out infinite;
}

.about-browser__pet-track .viewport-pet__cat {
  position: relative;
  color: var(--accent);
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--border) 85%, transparent));
  animation: viewport-pet-bob 0.48s steps(2, end) infinite;
}

.about-browser__pet-track .viewport-pet__frame {
  display: block;
}

.about-browser__pet-track .viewport-pet__frame--a {
  animation: viewport-pet-walk-a 0.48s linear infinite;
}

.about-browser__pet-track .viewport-pet__frame--b {
  position: absolute;
  left: 0;
  top: 0;
  animation: viewport-pet-walk-b 0.48s linear infinite;
}

/* 100cqw = title-bar track width; 100% (in translate) = mover (cat) width */
@keyframes about-browser-pet-patrol {
  0% {
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  50% {
    transform: translate3d(calc(100cqw - 100%), 0, 0) scaleX(1);
  }
  50.01% {
    transform: translate3d(calc(100cqw - 100%), 0, 0) scaleX(-1);
  }
  100% {
    transform: translate3d(0, 0, 0) scaleX(-1);
  }
}

@keyframes viewport-pet-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes viewport-pet-walk-a {
  0%,
  49.99% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes viewport-pet-walk-b {
  0%,
  49.99% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

.about-browser__traffic {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.about-browser__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--text-color) 18%, transparent);
}

.about-browser__dot--close {
  background: #ff5f57;
}
.about-browser__dot--min {
  background: #febc2e;
}
.about-browser__dot--max {
  background: #28c840;
}

html[data-theme="dark"] .about-browser__dot {
  opacity: 0.92;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.about-browser__tabstrip {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-color) 5%, var(--bg));
}

html[data-theme="dark"] .about-browser__tabstrip {
  background: color-mix(in srgb, var(--text-color) 9%, var(--bg));
}

.about-browser__section-tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 0.75rem 0.5rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-browser__section-tab:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text-color) 5%, transparent);
}

.about-browser__section-tab[aria-selected="true"] {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border);
  border-bottom-color: var(--bg);
  margin-bottom: -1px;
  padding-bottom: calc(0.5rem + 1px);
  position: relative;
  z-index: 2;
  box-shadow: 0 -1px 0 var(--bg);
}

.about-browser__section-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.about-browser__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.45rem 0.65rem 0.55rem;
  background: color-mix(in srgb, var(--text-color) 3.5%, var(--bg));
}

html[data-theme="dark"] .about-browser__toolbar {
  background: color-mix(in srgb, var(--text-color) 7%, var(--bg));
}

.about-browser__nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.about-browser__nav-btn {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: default;
  opacity: 0.4;
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
}

.about-browser__omnibox {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--text-color) 4%, transparent);
}

.about-browser__secure {
  width: 9px;
  height: 7px;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--muted) 75%, var(--border));
  border-radius: 1px;
  position: relative;
  margin-top: 3px;
}

.about-browser__secure::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: 5px;
  height: 4px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 75%, var(--border));
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  margin-bottom: -0.5px;
}

.about-browser__url {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.about-browser__toolbar-end {
  flex-shrink: 0;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  color: var(--muted);
}

.about-browser__menu-icon {
  display: block;
  width: 14px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.about-browser__viewport {
  padding: clamp(0.85rem, 2.2vw, 1.35rem) clamp(0.85rem, 2.5vw, 1.35rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.about-hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(0.35rem, 1.5vw, 0.75rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.about-hero--in-browser {
  padding-top: 0;
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 880px) {
  .about-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(220px, 320px);
    align-items: start;
  }
}

.about-kicker {
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

.about-name {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem 0;
  color: var(--text-color);
}

.about-tagline {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: var(--current-spacing, 1.65);
  color: var(--text-muted);
  margin: 0 0 1.2rem 0;
  max-width: 38rem;
}

.about-meta {
  list-style: none;
  margin: 0 0 1.35rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.about-meta__label {
  display: inline-block;
  min-width: 5.75rem;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.about-hero__photo-card {
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border);
  overflow: hidden;
  background: color-mix(in srgb, var(--text-color) 3%, var(--bg));
  box-shadow: 0 12px 36px var(--shadow-color, rgba(26, 26, 26, 0.1));
}

html[data-theme="dark"] .about-hero__photo-card {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35);
}

.about-hero__photo-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-browser__panels {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.15rem;
}

.about-tabpanel[hidden],
.site-page-panel[hidden] {
  display: none !important;
}

.profile-section.about-panel {
  scroll-margin-top: 1rem;
  padding: 1.25rem 1.15rem;
  margin-bottom: 1.35rem;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-color) 3.2%, var(--bg));
  box-shadow: 0 4px 22px var(--shadow-color, rgba(26, 26, 26, 0.06));
}

html[data-theme="dark"] .profile-section.about-panel {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.profile-section.about-panel:last-of-type {
  margin-bottom: 2.5rem;
}

.profile-section.about-panel h2 {
  margin-top: 0;
}

.about-section-lede {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: -0.2rem 0 1rem 0;
  line-height: 1.55;
  max-width: 40rem;
}

/* Experience timeline — vertical guide inside panel */
.about-timeline {
  position: relative;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 0.15rem;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 85%, var(--border)),
    color-mix(in srgb, var(--accent) 15%, var(--border))
  );
  border-radius: 2px;
  opacity: 0.9;
  pointer-events: none;
}

.about-timeline .experience-item {
  position: relative;
  padding-left: 2.15rem;
  border-bottom-color: var(--border);
}

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

.about-timeline .experience-item::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.28rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  z-index: 1;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.volunteer-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-color) 3%, var(--bg));
  transition:
    border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.volunteer-card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  box-shadow: 0 8px 26px var(--shadow-color, rgba(26, 26, 26, 0.1));
}

.volunteer-card h3 {
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.45rem 0;
  line-height: 1.35;
  color: var(--text-color);
}

.volunteer-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  text-underline-offset: 3px;
}

.volunteer-card h3 a:hover {
  text-decoration-color: var(--accent);
}

.volunteer-card .description {
  margin: 0;
}
