@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500&family=Noto+Serif+SC:wght@300;400&display=swap");

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

body {
  background: #050505;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow: hidden;
}

nav {
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: center;
  gap: 8vw;
  z-index: 1000;
}

nav a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.45;
}

.hero {
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  font-size: clamp(90px, 11vw, 180px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.chinese-name {
  margin-top: 28px;

  font-family: "Noto Serif SC", serif;
  font-size: clamp(22px, 1.8vw, 34px);
  font-weight: 300;
  letter-spacing: 0.35em;

  color: #8a8a8a;
}

.line {
  width: 130px;
  height: 2px;
  background: #777;
  margin-top: 56px;
}

.resume-btn {
  margin-top: 40px;

  background: transparent;
  border: 1px solid #444;

  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;

  padding: 14px 32px;
  border-radius: 999px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.resume-btn:hover {
  border-color: white;
  transform: translateY(-2px);
}

.resume-btn {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 768px) {
  nav {
    top: 36px;
    gap: 28px;
  }

  nav a {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(58px, 16vw, 90px);
  }

  .chinese-name {
    font-size: 18px;
    margin-top: 20px;
  }
}

footer {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 40px;
}

footer a {
  color: #666;
  font-size: 50px;
  transition: all 0.2s ease;
}

footer a:hover {
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  footer a {
    font-size: 32px;
  }
}
/* about me page */
.page h1 {
  font-size: clamp(4rem, 7vw, 6rem);
  text-align: center;
  margin-top: 150px;
  margin-bottom: 100px;
  line-height: 1;
}

.page.about-page {
  display: block;
  width: min(1100px, 88%);
  max-width: 1100px;
  height: auto;
  margin: 140px auto 0;
  padding: 0 0 90px;
  text-align: left;
}

.about-page .about-header {
  margin-bottom: 72px;
  text-align: center;
}

.about-page .about-header > p {
  margin: 16px 0 0;
  color: #aaa;
  font-size: 17px;
  line-height: 1.6;
}

/* Alternating two-column layout */
.about-page .about-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: 96px;
}

.about-page .about-row-reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.about-page .about-row-reverse > .about-copy {
  grid-column: 2;
  grid-row: 1;
}

.about-page .about-row-reverse > :last-child {
  grid-column: 1;
  grid-row: 1;
}

.about-page .about-copy {
  min-width: 0;
}

.about-page h2 {
  margin: 0 0 22px;
  color: #f0f0f0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-page .about-copy p,
.about-page .about-turning-point p {
  margin: 0 0 20px;
  color: #b8b8b8;
  font-size: 17px;
  line-height: 1.85;
}

.about-page .about-copy p:last-child {
  margin-bottom: 0;
}

/* Original photo proportions */
.about-page .about-photo {
  min-width: 0;
  margin: 0;
}

.about-page .about-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-page .about-photo figcaption {
  margin-top: 12px;
  color: #999;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

/* Two golf memories, with a smaller portrait */
.about-page .about-golf-photos {
  display: grid;
  gap: 28px;
}

.about-page .about-golf-portrait {
  width: 68%;
}

.about-page .about-event-photo {
  width: 85%;
  justify-self: center;
}

/* A quieter break between photo sections */
.about-page .about-turning-point {
  max-width: 760px;
  margin: 0 auto 96px;
  padding: 48px 0;
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
}

.about-page .about-project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #666;
  color: #eee;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-page .about-project-link:hover {
  color: #fff;
  border-color: #fff;
}

.about-page .about-project-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.about-page .about-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page.about-page {
    margin-top: 120px;
    padding-bottom: 60px;
  }

  .about-page .about-header {
    margin-bottom: 44px;
  }

  .about-page .about-row,
  .about-page .about-row-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 64px;
  }

  .about-page .about-row-reverse > .about-copy,
  .about-page .about-row-reverse > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .about-page .about-copy p,
  .about-page .about-turning-point p {
    font-size: 16px;
  }

  .about-page .about-turning-point {
    margin-bottom: 64px;
    padding: 32px 0;
  }

  .about-page .about-event-photo {
    width: 100%;
  }
}

html:has(body.about-body) {
  height: auto;
  overflow-y: auto;
}

body.about-body {
  display: block;
  position: static;
  height: auto;
  min-height: 100vh;
  max-height: none;
  overflow-y: auto;
}

body.about-body .about-page {
  position: static;
  height: auto;
  max-height: none;
  overflow: visible;
}


/* career page */
.career-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.career-tabs {
  display: flex;
  gap: 80px;
  margin-top: -40px;
  margin-bottom: 80px;
}

.career-tab {
  position: relative;
  background: none;
  border: none;
  color: #777;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  padding-bottom: 12px;
}

.career-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 0;
  height: 1px;
  background: white;

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.career-tab:hover,
.career-tab.active {
  color: white;
}

.career-tab:hover::after,
.career-tab.active::after {
  width: 100%;
}

.career-content {
  display: none;
  text-align: center;
  animation: fadeUp 0.35s ease;
}

.career-content.active {
  display: block;
}


.career-content h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* education page */
.education-info {
  text-align: left;
}

.education-year {
  color: #777;
  font-size: 18px;
  margin-bottom: 18px;
}

.education-info h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.education-degree {
  color: #cfcfcf;
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 30px;
}

.education-info ul {
  list-style-position: outside;
  padding-left: 20px;
}

.education-info li {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 8px;
}
/* Work experience page */
.work-info {
  text-align: left;
}

.work-year {
  color: #777;
  font-size: 18px;
  margin-bottom: 18px;
}

.work-info h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.work-company {
  color: #cfcfcf;
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 30px;
}

.work-info ul {
  list-style-position: outside;
  padding-left: 20px;
}

.work-info li {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* project page */
.project-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-tabs {
  display: flex;
  gap: 80px;
  margin-top: -40px;
  margin-bottom: 80px;
}

.project-tab {
  position: relative;
  background: none;
  border: none;
  color: #777;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  padding-bottom: 12px;
}

.project-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 0;
  height: 1px;
  background: white;

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.project-tab:hover,
.project-tab.active {
  color: white;
}

.project-tab:hover::after,
.project-tab.active::after {
  width: 100%;
}

.project-content {
  display: none;
  text-align: center;
  animation: fadeUp 0.35s ease;
}

.project-content.active {
  display: block;
}


.project-content h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

/* PROJECT CARDS AND POPUP */

/* Enable scrolling on the Projects page */
body.projects-body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.projects-body.project-open {
  overflow: hidden;
}

/* Background behind the fixed navigation */
.projects-body nav::before,
.about-body nav::before {
  content: "";
  position: absolute;
  inset: -48px 0 -20px;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    #050505 65%,
    rgba(5, 5, 5, 0)
  );
  pointer-events: none;
}

.projects-body .project-page {
  padding-bottom: 80px;
}

.projects-body .project-content {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.projects-body .project-tabs {
  max-width: 90%;
  justify-content: center;
  flex-wrap: wrap;
}

/* Two-column project layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

/* Clickable card */
.project-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;

  background: #080808;
  color: #fff;
  border: 1px solid #292929;
  border-radius: 12px;

  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;

  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.project-card:hover {
  border-color: #666;
  transform: translateY(-4px);
}

/* Cyber Sprint cover */
.cyber-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  min-height: 240px;
  aspect-ratio: 16 / 9;
  padding: 28px;

  border: 1px solid #273735;
  border-radius: 7px;

  background:
    linear-gradient(
      rgba(137, 205, 189, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(137, 205, 189, 0.05) 1px,
      transparent 1px
    ),
    #0c1715;

  background-size: 32px 32px;
}

.cyber-cover-label,
.cyber-cover-caption {
  color: #a1bbb4;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.cyber-cover-title {
  color: #e4f3ed;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

/* Card description */
.project-card-info {
  padding: 20px 6px 8px;
}

.project-card-info h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-card-info p {
  color: #aaa;
  font-size: 15px;
  line-height: 1.7;
}

.project-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

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

.project-tags span {
  padding: 5px 10px;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-size: 12px;
  line-height: 1.5;
}

.project-card-link {
  font-size: 13px;
  white-space: nowrap;
}

/* Project popup */
.project-modal {
  position: fixed;
  inset: 0;

  width: min(960px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;

  background: #080808;
  color: #fff;
  border: 1px solid #303030;
  border-radius: 14px;

  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;

  opacity: 0;
  transform: translateY(20px) scale(0.98);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.project-modal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);

  transition:
    background 0.25s ease,
    backdrop-filter 0.25s ease;
}

.project-modal.is-visible::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.project-modal-inner {
  padding: 44px;
}

/* Back button */
.project-close {
  display: inline-block;
  margin-bottom: 36px;
  padding: 4px 0;

  background: none;
  border: none;
  color: #aaa;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.project-close:hover {
  color: #fff;
}

/* Popup text */
.project-eyebrow {
  margin-bottom: 18px;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.project-modal h2 {
  margin: 0 0 24px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.project-description {
  max-width: 760px;
  margin: 28px 0 32px;
  color: #bbb;
  font-size: 16px;
  line-height: 1.85;
}

/* Project photos */
.project-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.project-photos figure {
  min-width: 0;
  margin: 0;
}

.project-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;

  background: #111;
  border: 1px solid #292929;
  border-radius: 8px;
}

.project-photos figcaption {
  margin-top: 10px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

/* PDF download */
.project-button {
  display: inline-block;
  padding: 13px 22px;

  border: 1px solid #777;
  border-radius: 999px;
  color: #fff;

  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.project-button:hover {
  background: #fff;
  color: #050505;
}

/* Keyboard navigation */
.project-card:focus-visible,
.project-close:focus-visible,
.project-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

/* Mobile */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .projects-body .project-tabs {
    gap: 20px;
    flex-wrap: wrap;
  }

  .projects-body nav::before, 
  .about-body nav::before {
    top: -36px;
  }

  .cyber-cover {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .project-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .project-modal-inner {
    padding: 26px 22px;
  }

  .project-photos {
    grid-template-columns: 1fr;
  }

  .project-description {
    font-size: 15px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-button,
  .project-modal,
  .project-modal::backdrop {
    transition: none;
  }

  .project-card:hover,
  .project-modal {
    transform: none;
  }

  .projects-body .project-content {
    animation: none;
  }
}

/* Switch between the project list and project details */
.project-page[hidden],
.project-detail-view[hidden] {
  display: none;
}

.project-page,
.project-detail-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.project-page.view-transitioning,
.project-detail-view.view-transitioning {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* Full project view within projects.html */
.project-detail-view {
  width: min(1000px, 88%);
  margin: 140px auto 0;
  padding-bottom: 80px;
}

.project-back {
  display: inline-block;
  margin-bottom: 42px;
  padding: 6px 0;

  background: none;
  border: none;
  color: #aaa;
  font: inherit;
  font-size: 14px;
  cursor: pointer;

  transition: color 0.2s ease;
}

.project-back:hover {
  color: #fff;
}

.project-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.project-detail-view h2 {
  margin-bottom: 24px;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.project-detail-view .project-description {
  max-width: 800px;
  margin-top: 30px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .project-detail-view {
    margin-top: 120px;
    padding-bottom: 50px;
  }

  .project-back {
    margin-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-page,
  .project-detail-view {
    transition: none;
  }

  .project-page.view-transitioning,
  .project-detail-view.view-transitioning {
    transform: none;
  }
}

/* Larger project date */
.project-detail-view .project-eyebrow {
  font-size: 16px;
  color: #bbb;
  letter-spacing: 0.04em;
}

/* More visible back button */
.project-detail-view .project-back {
  padding: 11px 18px;
  margin-bottom: 36px;

  background: #111;
  border: 1px solid #555;
  border-radius: 8px;

  color: #eee;
  font-size: 15px;
  font-weight: 500;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.project-detail-view .project-back:hover {
  background: #202020;
  border-color: #aaa;
}

.project-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
}

/* University App card thumbnail */
.university-thumbnail {
  object-fit: contain;
  background: #111;
}

.university-thumbnail-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  aspect-ratio: 16 / 9;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
}

.university-thumbnail-group img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center 45%;
}

/* Three design screens */
.university-photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.university-photos img {
  height: auto;
  aspect-ratio: auto;
}

@media (max-width: 768px) {
  .university-photos {
    grid-template-columns: 1fr;
  }
}

/* Pitches project thumbnail */
.pitches-thumbnail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden;
  border-radius: 7px;
  background: #111;
  text-align: left;
}

.pitches-thumbnail-label {
  color: #999;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.pitches-thumbnail-title {
  color: #f5f5f5;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pitches-thumbnail-types {
  color: #888;
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* Download links */
.pitches-download-heading {
  margin: 40px 0 18px;
  font-size: 20px;
  font-weight: 500;
}

.pitches-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wine-files-heading {
  margin: 40px 0 18px;
  font-size: 20px;
  font-weight: 500;
}

.wine-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fraud-files-heading {
  margin: 40px 0 18px;
  font-size: 20px;
  font-weight: 500;
}

.fraud-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.spellbound-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0d0d0d;
  border: 1px solid #242424;
  box-sizing: border-box;
}

.spellbound-thumbnail span {
  color: #eee;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.spellbound-thumbnail small {
  color: #888;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Skills page */
body.skills-body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.skills-body nav::before {
  content: "";
  position: absolute;
  inset: -48px 0 -20px;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    #050505 65%,
    rgba(5, 5, 5, 0)
  );
  pointer-events: none;
}

.skills-page {
  width: min(800px, 86%);
  margin: 0 auto;
  padding-bottom: 70px;
}

.skills-page h1 {
  margin-bottom: 70px;
}

.skills-intro {
  text-align: center;
  color: #999;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 60px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.skills-column {
  display: contents;
}

.skill-group {
  width: 100%;
  min-width: 0;
}

.skill-group h2 {
  color: #ddd;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: left;
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid #262626;
}

.skill-item {
  margin-bottom: 32px;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 13px;
}

.skill-label h3 {
  min-width: 0;
  color: #ccc;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.skill-label span {
  flex-shrink: 0;
  color: #999;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.skill-bar {
  position: relative;
  height: 8px;
  background: #1b1b1b;
  border-radius: 2px;
  isolation: isolate;
}

.skill-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 18px,
    #050505 18px,
    #050505 21px
  );
  pointer-events: none;
}

.skill-fill {
  position: relative;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #606060 0%,
    #b8b8b8 65%,
    #f5f5f5 100%
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transform-origin: left;
  animation: skill-charge 1.2s cubic-bezier(0.22, 1, 0.36, 1)
    var(--delay, 0ms) both;
  transition: box-shadow 0.3s ease;
}

.skill-fill::before {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 2px;
  height: 12px;
  z-index: 3;
  background: #fff;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.5);
}

.skill-item:hover .skill-label h3 {
  color: #fff;
}

.skill-item:hover .skill-fill {
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.skills-note {
  margin-top: 60px;
  color: #888;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

@keyframes skill-charge {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .skills-page {
    width: 86%;
    padding-bottom: 48px;
  }

  .skills-page h1 {
    margin-bottom: 48px;
  }

  .skills-grid {
    gap: 52px;
  }

  .skills-intro {
    margin-bottom: 40px;
    font-size: 15px;
  }

  .skill-group h2 {
    font-size: 19px;
  }

  .skill-label h3 {
    font-size: 16px;
  }

  .skills-body nav::before {
    top: -36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-fill {
    animation: none;
  }

  .skill-fill,
  .skill-label h3 {
    transition: none;
  }
}

body.skills-body {
  height: auto;
  min-height: 100vh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}
/*mobile version fix*/
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .career-tabs,
  .project-tabs {
    gap: 28px;
    margin-top: -20px;
    margin-bottom: 50px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .career-tab,
  .project-tab {
    font-size: 18px;
    padding-bottom: 10px;
    white-space: nowrap;
  }

  .project-tab {
    font-size: 16px;
  }

  .career-content,
  .project-content {
    width: 90%;
    margin: 0 auto;
  }

  .education-info {
    width: 100%;
    text-align: left;
  }

  .education-year {
    font-size: 16px;
  }

  .education-info h2 {
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.05em;
  }

  .education-degree {
    font-size: 1rem;
    line-height: 1.5;
  }

  .education-info li {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .project-content h2 {
    font-size: 2.2rem;
  }
}