.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: var(--z-progress);
  transition: width 80ms linear;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0.6rem 1.4rem;
}

.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding-bottom: 4px;
  transition: color var(--transition-fast);
  z-index: 1;
}

.nav a:hover {
  color: var(--color-text);
}

.nav a.is-active {
  color: var(--color-text);
}

.nav__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-accent);
  transition: transform var(--transition-base), width var(--transition-base);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-4);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulseDot 2s ease-in-out infinite;
}

.badge--featured {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-violet-soft);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--color-violet);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  margin: 0;
}

.badge--featured svg {
  width: 13px;
  height: 13px;
}

.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 220ms ease;
  transform-style: preserve-3d;
}

.status-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green { background: #22c55e; }

.status-card__name {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.status-card__body {
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.status-card__body > * {
  opacity: 0;
  animation: bootLineIn 350ms ease forwards;
}

.status-card__body > *:nth-child(1) { animation-delay: 0.2s; }
.status-card__body > *:nth-child(2) { animation-delay: 0.7s; }
.status-card__body > *:nth-child(3) { animation-delay: 1.15s; }
.status-card__body > *:nth-child(4) { animation-delay: 1.7s; }
.status-card__body > *:nth-child(5) { animation-delay: 2.1s; }
.status-card__body > *:nth-child(6) { animation-delay: 2.5s; }
.status-card__body > *:nth-child(7) { animation-delay: 2.9s; }

.status-line {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.status-line--success {
  color: var(--color-success);
  font-weight: 600;
}

.prompt {
  color: var(--color-violet);
  margin-right: 0.4em;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-4);
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.status-name {
  color: var(--color-text);
  font-weight: 600;
}

.status-meta {
  margin-left: auto;
  color: var(--color-text-faint);
  font-size: 0.8rem;
}

.status-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--color-text-faint);
  font-size: 0.8rem;
}

.status-stats strong {
  color: var(--color-text);
}

.cursor {
  display: inline-block;
  color: var(--color-accent);
  animation: blink 1s steps(1) infinite;
}

.avatar-frame {
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

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

.about__bio {
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-bottom: var(--space-3);
}

.proficiency-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.proficiency-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.proficiency-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.proficiency-card__icon svg {
  width: 22px;
  height: 22px;
}

.proficiency-card__icon--blue { background: var(--color-accent-soft); color: var(--color-accent); }
.proficiency-card__icon--violet { background: var(--color-violet-soft); color: var(--color-violet); }
.proficiency-card__icon--orange { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.proficiency-card__icon--green { background: rgba(52, 211, 153, 0.12); color: var(--color-success); }

.proficiency-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.proficiency-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-diagram {
  width: 100%;
  height: 100%;
  padding: var(--space-3);
}

.project-card__media--placeholder {
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-4);
  border-bottom-style: dashed;
}

.project-card__body {
  padding: var(--space-5);
  flex: 1;
}

.project-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

.project-card__body p {
  color: var(--color-text-muted);
}

.project-card__footer {
  padding: 0 var(--space-5) var(--space-5);
  display: flex;
  gap: var(--space-3);
}

.project-card--empty {
  border-style: dashed;
}

.edu-exp-col__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

.edu-exp-col__heading svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.entry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.entry-card__period {
  font-family: var(--font-mono);
  color: var(--color-violet);
  font-size: 0.82rem;
}

.entry-card__title {
  font-size: 1.15rem;
  margin-block: var(--space-1);
}

.entry-card__org {
  color: var(--color-accent);
  font-size: 0.92rem;
}

.entry-card__list {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  padding-left: 1.1rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.entry-card__list--roles li {
  font-size: 0.92rem;
}

.entry-card__list--roles strong {
  color: var(--color-text);
  font-weight: 600;
}

.tech-group__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.tech-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.tech-badge:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.tech-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-badge__dot--blue { background: var(--color-accent); }
.tech-badge__dot--violet { background: var(--color-violet); }
.tech-badge__dot--orange { background: #fb923c; }
.tech-badge__dot--green { background: var(--color-success); }

.honor-card__media {
  flex: 0 0 180px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.honor-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.honor-card__body {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.honor-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-gold-soft);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.honor-card__icon svg {
  width: 22px;
  height: 22px;
}

.honor-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.honor-card__meta {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 0.8rem;
}

.honor-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.back-to-top {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base), border-color var(--transition-fast), background var(--transition-fast);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-alt);
  transform: translateY(-3px);
}

.resume-card {
  margin-top: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.resume-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.resume-card__icon svg {
  width: 26px;
  height: 26px;
}

.resume-card__info {
  flex: 1;
  min-width: 200px;
}

.resume-card__info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.resume-card__info p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.resume-card__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
}

.contact__email:hover {
  border-color: var(--color-accent);
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact__links a:hover {
  color: var(--color-text);
}

.project-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-gallery__track::-webkit-scrollbar {
  display: none;
}

.project-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 11, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
  z-index: 2;
}

.project-gallery__nav:hover {
  background: rgba(8, 11, 19, 0.85);
}

.project-gallery__nav svg {
  width: 18px;
  height: 18px;
}

.project-gallery__nav--prev {
  left: var(--space-3);
}

.project-gallery__nav--next {
  right: var(--space-3);
}

.project-gallery__dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.project-gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.project-gallery__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}