/* ============================================
   林一 · UI/UX 设计作品集
   style.css — 深色液态玻璃风格
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #121212;
  --color-glass: rgba(255, 255, 255, 0.04);
  --color-glass-hover: rgba(255, 255, 255, 0.08);
  --color-glass-strong: rgba(255, 255, 255, 0.06);

  --color-accent: #7C5DC1;
  --color-accent-light: #9B7FD4;
  --color-accent-glow: rgba(124, 93, 193, 0.25);

  --gradient-accent: #7C5DC1;
  --gradient-accent-alt: #6B4DAE;
  --gradient-warm: #9B7FD4;
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(124, 93, 193, 0.10) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(155, 127, 212, 0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 40% 80%, rgba(124, 93, 193, 0.06) 0%, transparent 50%);

  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.65);
  --color-text-tertiary: rgba(255, 255, 255, 0.4);
  --color-text-light: rgba(255, 255, 255, 0.85);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, 'Times New Roman', serif;

  --max-width: 1120px;
  --nav-height: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-slow: 0.8s;
  --duration-base: 0.4s;
  --duration-fast: 0.2s;

  --glass-blur: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Glass mixin ---- */
.glass {
  background: var(--color-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));

  border-radius: var(--radius-md);
}

/* ---- Section ---- */
.section {
  padding: 120px 0;
  position: relative;
}

.section--dark {
  background: var(--color-bg);
}

.section__header {
  margin-bottom: 60px;
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  position: relative;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--color-text-light);
}

.section__desc {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: rgba(255, 255, 255, 0.5);
  color: #0a0a0a;
  font-weight: 600;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 93, 193, 0.30);
}

.btn--outline {
  background: var(--color-glass);
  color: var(--color-text-secondary);

  backdrop-filter: blur(var(--glass-blur));
}

.btn--outline:hover {

  color: var(--color-text);
  background: var(--color-glass-hover);
  transform: translateY(-2px);
}

/* ============================================
   NAVIGATION — Glass bar
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}

.nav--scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav__menu {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
  transition: width var(--duration-base) var(--ease-out);
}

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

.nav__link:hover::after {

.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  width: 100%;
}
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO — Immersive dark + glass orbs
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.5) 35%,
    rgba(10, 10, 10, 0.1) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}


.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__content {
  padding: 40px 0;
  max-width: 600px;
}
.hero__greeting {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.hero__name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero__title-role {
  font-weight: 500;
  color: var(--color-text);
}

.hero__title-divider {
  color: var(--color-text-tertiary);
  opacity: 0.3;
}

.hero__title-location {
  color: var(--color-text-tertiary);
}

.hero__tagline {
    
    
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-tertiary);
  margin-bottom: 28px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
}

.hero__meta-item svg {
  opacity: 0.4;
  flex-shrink: 0;
}

.hero__meta-item--status {
  color: var(--color-text-secondary);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #51cf66;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-tertiary), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================
   ABOUT
   ============================================ */.about__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.about__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.85) 30%,
    rgba(10, 10, 10, 0.55) 55%,
    rgba(10, 10, 10, 0.2) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.about > .container {
  position: relative;
  z-index: 2;
}


.about {
  position: relative;
  overflow: hidden;
}
.about__intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.about__intro-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.about__stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  flex: 1;
}

.about__stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.about__stat-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.about__stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Cards grid */
.about__body {
  position: relative;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.about__card {
  background: var(--color-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
}

.about__card:hover {
  background: var(--color-glass-hover);
  transform: translateY(-3px);
}

.about__card--wide {
  grid-column: 1 / -1;
}

.about__card-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
}

.about__card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.about__card-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

.about__card-text + .about__card-text {
  margin-top: 12px;
}

/* ============================================
   WORK / PROJECTS — Glass cards
   ============================================ */
.work {
  padding-top: 60px;
  padding-bottom: 40px;
}

.work .section__header {
  margin-bottom: 32px;
}

.work__wrapper {
  position: relative;
  padding: 0 24px;
}

.work__grid {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}
.work__grid::-webkit-scrollbar {
  display: none;
}

.work__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  transform: translateY(-50%);
  opacity: 0;
}

.work__wrapper:hover .work__arrow {
  opacity: 1;
}

.work__arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.work__arrow--left {
  left: 4px;
}

.work__arrow--right {
  right: 4px;
}

@media (max-width: 640px) {
  .work__arrow {
    width: 36px;
    height: 36px;
  }

  .work__arrow--left {
    left: 2px;
  }

  .work__arrow--right {
    right: 2px;
  }
}

.work__card {
  flex: 0 0 calc(50vw - 48px);
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--color-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
}

.work__card:hover {
  background: var(--color-glass-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.work__image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background: var(--color-bg-alt);
}

.work__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work__card:hover .work__image img {
  transform: scale(1.06);
}

.work__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  padding: 24px;
}

.work__card:hover .work__overlay {
  opacity: 1;
}

.work__info {
  text-align: center;
  color: var(--color-text-light);
  transform: translateY(16px);
  transition: transform var(--duration-base) var(--ease-out);
}

.work__card:hover .work__info {
  transform: translateY(0);
}

.work__info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.work__info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.work__tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.work__meta {
  flex-shrink: 0;
  padding: 16px 20px;
}

.work__category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.work__title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  color: var(--color-text-light);
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skills__card {
  background: var(--color-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
}

.skills__card:hover {
  background: var(--color-glass-strong);
  transform: translateY(-4px);
}

.skills__card-visual {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.skills__card-icon {
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.25);
}

.skills__card-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: -0.03em;
}

.skills__card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.skills__tag-group {
  margin-bottom: 14px;
}

.skills__tag-group:last-of-type {
  margin-bottom: 20px;
}

.skills__tag-group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.skills__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills__tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  transition: all var(--duration-fast) ease;
}

.skills__tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.skills__tag[data-level="5"] { color: rgba(255,255,255,0.85); }
.skills__tag[data-level="4"] { color: rgba(255,255,255,0.65); }
.skills__tag[data-level="3"] { color: rgba(255,255,255,0.45); }

.skills__card-inline {
  display: none;
}

.skills__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, rgba(255, 255, 255, 0.5));
  flex-shrink: 0;
}

.skills__tool-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}


/* ============================================
   EXPERIENCE / TIMELINE — Glass
   ============================================ */
.experience .section__header {
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03));
}

.timeline__item {
  position: relative;
  padding: 0 0 32px 64px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
  box-shadow: 0 0 0 3px var(--color-bg);
}

.timeline__content {
  background: var(--color-glass);

  border-radius: var(--radius-md);
  padding: 24px 28px;
  backdrop-filter: blur(var(--glass-blur));

}

.timeline__content:hover {

}

.timeline__date {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 6px 0 2px;
  color: var(--color-text-light);
}

.timeline__company {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.timeline__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-tertiary);
}

/* ============================================
   CONTACT
   ============================================ */
.contact__inner {
  text-align: center;
}

.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.contact__email {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
  transition: all var(--duration-fast) ease;
  position: relative;
  display: inline-block;
  padding: 0 4px;
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.contact__email:hover {
  color: var(--color-text-light);
}

.contact__email:hover::after {
  transform: scaleX(1);
}

.contact__social {
  display: flex;
  gap: 16px;
}

.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-glass);

  color: var(--color-text-tertiary);
  transition: all var(--duration-base) var(--ease-out);
  backdrop-filter: blur(var(--glass-blur));
}

.contact__social-link:hover {
  background: var(--color-glass-hover);

  color: var(--color-text);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.contact__note {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  padding: 10px 24px;
  background: var(--color-glass);

  border-radius: 100px;
  backdrop-filter: blur(var(--glass-blur));
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;

}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-glass);

  color: var(--color-text-tertiary);
  transition: all var(--duration-base) var(--ease-out);
}

.footer__top:hover {
  background: var(--color-glass-hover);

  color: var(--color-text);
  transform: translateY(-3px);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-up,
.reveal-scale {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal-up.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}



.skills__card-visual {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.skills__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* ---- Misc classes ---- */
.nav__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.theme-toggle__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 7px;
  transition: opacity var(--duration-base) var(--ease-out);
}
.theme-toggle__sun { opacity: 0; }
.theme-toggle__moon { opacity: 1; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--duration-fast) ease;
  padding: 4px 6px;
  border-radius: 4px;
}
.lang-toggle:hover { color: rgba(255, 255, 255, 0.8); }
.lang-toggle__zh[data-lang-active="true"],
.lang-toggle__en[data-lang-active="true"] { color: #fff; }
.lang-toggle__divider { color: rgba(255, 255, 255, 0.2); font-weight: 400; }
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
}
.music-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}
.music-toggle__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  transition: opacity var(--duration-base) var(--ease-out);
}
.music-toggle__off { opacity: 1; }
.music-toggle__on { opacity: 0; }
.contact__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 24px;
  border-radius: 12px;
  transition: all var(--duration-fast) ease;
}
.contact__phone:hover { color: var(--color-text-light); background: rgba(255, 255, 255, 0.1); }
.contact__phone svg { width: 42px; height: 42px; flex-shrink: 0; opacity: 0.4; }
.contact__wechat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 24px;
  border-radius: 12px;
  transition: all var(--duration-fast) ease;
}
.contact__wechat:hover { color: var(--color-text-light); background: rgba(255, 255, 255, 0.1); }
.contact__wechat svg { width: 42px; height: 42px; flex-shrink: 0; opacity: 0.4; }
@media (max-width: 900px) {
  .work__card {
    flex: 0 0 calc(70vw - 48px);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__meta {
    justify-content: center;
  }
  .hero__actions {
    justify-content: center;
  }
  .about__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about__stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .skills__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .work__card {
    flex: 0 0 calc(85vw - 48px);
  }
  .section {
    padding: 80px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--duration-base) var(--ease-out);
    pointer-events: none;

  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__toggle {
    display: flex;
  }

  .about__stats {
    gap: 12px;
    flex-wrap: wrap;
  }

  .about__stat {
    padding: 12px 16px;
  }
  .about__stat-num {
    font-size: 1.6rem;
  }

  .about__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .skills__card {
    padding: 24px;
  }

  .contact__social {
    gap: 12px;
  }

  .contact__social-link {
    width: 48px;
    height: 48px;
  }

  .hero__scroll {
    display: none;
  }

  .timeline__item {
    padding: 0 0 28px 52px;
  }

  .timeline__content {
    padding: 20px;
  }
}

/* ============================================
   Extra: reduce-motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ---- Section background accents ---- */
.about {
  background: radial-gradient(ellipse at 0% 50%, rgba(124, 93, 193, 0.05) 0%, transparent 60%),
              var(--color-bg);
}

.skills {
  background: radial-gradient(ellipse at 80% 0%, rgba(155, 127, 212, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 100%, rgba(124, 93, 193, 0.04) 0%, transparent 50%),
              var(--color-bg);
}

.contact {
  background: radial-gradient(ellipse at 50% 0%, rgba(155, 127, 212, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 100%, rgba(124, 93, 193, 0.03) 0%, transparent 50%),
              var(--color-bg);
}

/* ============================================
   PROJECT MODAL — Fullscreen glass overlay
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);

  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.modal.open .modal__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: scale(1.05);
}

.modal__content {
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar */
.modal__content::-webkit-scrollbar {
  width: 4px;
}

.modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.modal__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* ---- Modal Project Image ---- */
.modal__image {
  width: 100%;
  display: block;
  border-radius: 0;
}

/* ---- Modal Project Header ---- */
.modal__header {
  padding: 28px 32px 0;
}

.modal__category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.modal__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal__summary {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  line-height: 1.6;
}

/* ---- Modal Meta Info ---- */
.modal__info {
  padding: 24px 32px 32px;
}

.modal__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);

  border-radius: 12px;
}

.modal__meta-item label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.modal__meta-item span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.modal__desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

/* ---- Tools tags ---- */
.modal__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal__tool {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(124, 93, 193, 0.1);

  border-radius: 100px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .modal {
    padding: 0;
  }

  .modal__panel {
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .modal__header {
    padding: 24px 20px 0;
  }

  .modal__title {
    font-size: 1.3rem;
  }

  .modal__info {
    padding: 20px;
  }

  .modal__meta {
    grid-template-columns: 1fr;
  }

  .modal__close {
    top: 12px;
    right: 12px;
  }
}

/* ============================================
/* ============================================ 
   IMAGE PREVIEW — Fullscreen lightbox with zoom 
   ============================================ */
.preview {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.preview.open {
  display: block;
}

.preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.preview__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.preview__close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: scale(1.05);
}

/* ---- Stage: zoomable image container ---- */
.preview__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview__stage.dragging {
  cursor: grabbing;
}

.preview__image {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---- Toolbar ---- */
.preview__toolbar {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 100px;
}

.preview__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.preview__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.preview__level {
  min-width: 48px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .preview__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .preview__image {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .preview__toolbar {
    bottom: 20px;
    padding: 4px 6px;
  }

  .preview__btn {
    width: 32px;
    height: 32px;
  }
}
