:root {
  --bg: #061018;
  --surface: #0a1823;
  --surface-2: #0d202d;
  --line: rgba(117, 216, 232, .20);
  --text: #eefbff;
  --muted: #9db8c3;
  --accent: #78e5ee;
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(77, 173, 196, .028) 1px, transparent 1px), linear-gradient(rgba(77, 173, 196, .023) 1px, transparent 1px);
  background-size: 96px 96px;
}

::selection {
  color: #04131c;
  background: var(--accent);
}

.page-glow {
  background: radial-gradient(circle, rgba(66, 193, 218, .12), transparent 64%);
}

.site-header {
  --glass-x: 50%;
  --glass-y: 50%;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 1280px);
  height: 60px;
  border-radius: 9999px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 35%, rgba(255, 255, 255, 0.015) 100%),
    rgba(6, 12, 20, 0.02);
  box-shadow:
    0 12px 30px -8px rgba(0, 0, 0, 0.22),
    0 4px 10px -2px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 8px 16px -8px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px) saturate(190%) contrast(102%) brightness(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(190%) contrast(102%) brightness(1.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 340px at var(--glass-x, 50%) var(--glass-y, 0%),
      rgba(255, 255, 255, 0.12),
      rgba(120, 229, 238, 0.04) 42%,
      transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-header:hover::before {
  opacity: 1;
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  border-radius: 9999px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25) 15%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0.25) 85%,
      transparent);
  pointer-events: none;
  opacity: 0.75;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f3f8fa;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav>a:not(.nav-contact) {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(230, 242, 248, 0.76);
  padding: 6px 0;
  text-shadow: 0 1px 8px rgba(0, 8, 16, 0.6);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.primary-nav>a:not(.nav-contact):hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

.primary-nav>a.is-active,
.primary-nav>a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 16px rgba(120, 229, 238, 0.5);
}

.primary-nav>a.is-active::after,
.primary-nav>a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #78e5ee, #b678ee);
  box-shadow: 0 0 10px rgba(120, 229, 238, 0.7);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #edf6f8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-contact:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(255, 255, 255, 0.12);
  transform: translateY(-0.5px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.hero {
  background: linear-gradient(90deg, rgba(3, 14, 25, .87), rgba(3, 14, 25, .51) 47%, rgba(3, 14, 25, .09) 78%), linear-gradient(0deg, #061018, transparent 29%), url('./assets/ocean-dusk.jpg') 68% center / cover no-repeat;
}

.hero::before {
  display: none;
}

.hero::after {
  background: linear-gradient(90deg, rgba(2, 14, 25, .75), rgba(2, 14, 25, .37) 38%, transparent 72%), linear-gradient(0deg, rgba(3, 12, 22, .72), transparent 36%);
}

.hero-code {
  color: rgba(174, 225, 233, .78);
  text-shadow: 0 2px 12px rgba(0, 7, 14, .7);
}

.hero-code span:first-child {
  color: #c7f7f8;
}

.hero-kicker {
  color: #d5f1f4;
}

.live-line {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(120, 229, 238, .6);
}

.hero-name {
  color: #effbff;
}

.hero-letter {
  background-image: linear-gradient(110deg, #f3ffff 0%, #b7e7ed 30%, #78e5ee 55%, #d5faff 79%, #f3ffff 100%);
  text-shadow: 0 4px 28px rgba(47, 164, 187, .08);
}

.hero-punctuation {
  background-image: linear-gradient(112deg, #92f4f4, #d7ffff, #92f4f4);
}

@keyframes hero-letter-wave {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(120, 229, 238, 0.10));
  }

  29% {
    transform: translateY(-.075em) rotate(-.3deg);
    filter: drop-shadow(0 0 16px rgba(120, 229, 238, 0.25));
  }

  61% {
    transform: translateY(.022em) rotate(.18deg);
    filter: drop-shadow(0 0 10px rgba(120, 229, 238, 0.16));
  }
}

.hero-intro {
  color: #d4e8ed;
}

.hero-telemetry {
  position: absolute;
  z-index: 2;
  top: 163px;
  right: max(48px, calc((100vw - 1280px) / 2));
  width: 218px;
  padding: 16px 17px 15px;
  border-left: 1px solid rgba(120, 229, 238, .8);
  background: rgba(5, 23, 35, .84);
  color: #d1edf2;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-shadow: 0 2px 12px rgba(0, 7, 14, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: hero-rise .9s .5s both;
}

.hero-telemetry span,
.hero-telemetry small {
  display: block;
  color: #a8c4cd;
  font-size: 9px;
}

.hero-telemetry strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .035em;
}

.hero-telemetry small {
  letter-spacing: .04em;
}

.button-primary {
  color: #06141c;
  background: var(--accent);
  box-shadow: 0 0 32px rgba(120, 229, 238, .15);
}

.button-primary:hover {
  background: #b3faff;
}

.text-link {
  color: #d7ebef;
  border-color: rgba(170, 229, 236, .5);
}

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

.hero-scroll i {
  background: linear-gradient(var(--accent), transparent);
}

/* 经验数据特性展示栏 (参考 yideng.ai 悬浮胶囊卡片 + 发光导轨风格) */
.proof-band {
  position: relative;
  z-index: 10;
  padding: 36px 0 24px;
  background: transparent;
  border: none;
}

.proof-track-rail {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 18px;
  margin-bottom: 12px;
}

.proof-track-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(120, 229, 238, 0.45) 15%,
      rgba(192, 132, 252, 0.55) 45%,
      rgba(52, 211, 153, 0.5) 75%,
      rgba(244, 114, 182, 0.4) 92%,
      transparent 100%);
  pointer-events: none;
  opacity: 0.85;
}

.proof-track-node {
  position: relative;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--node-color, #78e5ee);
  box-shadow:
    0 0 10px 2px var(--node-color, #78e5ee),
    0 0 3px #ffffff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.proof-card-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(10, 16, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.55),
    0 4px 16px -2px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.proof-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.28s ease;
}

.proof-item:last-child {
  border-right: none;
}

.proof-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.proof-icon-box {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.3);
  color: var(--icon-color, #78e5ee);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.proof-icon-box svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.proof-item:hover .proof-icon-box {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px -4px rgba(0, 0, 0, 0.4),
    0 0 14px -2px var(--icon-color, #78e5ee);
}

.proof-item:hover .proof-icon-box svg {
  transform: scale(1.06);
}

.proof-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.proof-title {
  margin: 0;
}

.proof-title strong {
  color: #ffffff;
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.proof-title strong span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(220, 240, 248, 0.85);
  margin-left: 2px;
}

.proof-text-title {
  font-size: 18px !important;
  letter-spacing: 0.02em !important;
}

.proof-desc {
  margin: 6px 0 0;
  color: rgba(170, 192, 204, 0.76);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-cli {
  margin-top: 12px;
}

.proof-cli code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #4ade80;
  opacity: 0.88;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.proof-item:hover .proof-cli code {
  opacity: 1;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
  transform: translateX(2px);
}

@media (max-width: 1080px) {
  .proof-card-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2) {
    border-right: none;
  }

  .proof-item:nth-child(1),
  .proof-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 680px) {
  .proof-track-rail {
    display: none;
  }

  .proof-card-box {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .proof-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 18px;
  }

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

.section-label {
  color: var(--accent);
}

.section-title {
  color: #edfaff;
}

/* 头部两列标题排版 */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 36px;
}

.section-subtitle {
  color: rgba(170, 195, 206, 0.78);
  font-size: 14px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0;
}

/* ===================================================
   关于我 / ABOUT BENTO GRID
=================================================== */
.about {
  position: relative;
  padding-top: 100px;
  padding-bottom: 90px;
}

.about-bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px;
  margin-top: 28px;
}

.about-card,
.work-card,
.project-card {
  position: relative;
  border-radius: 20px;
  padding: 28px 28px 30px;
  background: linear-gradient(155deg, rgba(16, 26, 38, 0.72) 0%, rgba(8, 14, 22, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 38px -10px rgba(0, 4, 10, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

.about-card::before,
.work-card::before,
.project-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
      color-mix(in srgb, var(--card-accent, #78e5ee) 18%, transparent),
      transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover::before,
.work-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.about-card:hover,
.work-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 50px -12px rgba(0, 3, 8, 0.7),
    0 0 28px -6px color-mix(in srgb, var(--card-accent, #78e5ee) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.about-card-main {
  grid-row: span 2;
  padding: 34px 32px 32px;
}

.about-hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 750;
  line-height: 1.22;
  margin: 12px 0 18px;
  color: #f1faff;
  letter-spacing: -0.04em;
}

.about-lead {
  position: relative;
  z-index: 1;
  color: #e1f4f8;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 14px;
}

.about-subtext {
  position: relative;
  z-index: 1;
  color: #9cb5bf;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1edf2;
  font-size: 12px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px currentColor;
}

.about-card h3,
.work-card h3,
.project-card h3 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 650;
  color: #f1f8fb;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.about-card p,
.work-card p,
.project-card p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.65;
  color: #9cb3be;
  margin: 0;
}

/* ===================================================
   工作经历 / WORK EXPERIENCE CARDS
=================================================== */
.work-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background: linear-gradient(180deg, #061018 0%, #081722 50%, #061018 100%);
}

.work-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-time-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--card-accent, #38bdf8);
  background: color-mix(in srgb, var(--card-accent, #38bdf8) 10%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--card-accent, #38bdf8) 25%, rgba(255, 255, 255, 0.08));
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.work-role-title {
  position: relative;
  z-index: 1;
  color: #d8edf2;
  font-size: 14px;
  font-weight: 600;
  margin: 2px 0 12px;
  letter-spacing: 0.01em;
}

/* ===================================================
   代表项目 / PROJECTS CARDS
=================================================== */
.projects-section {
  padding-top: 105px;
  padding-bottom: 100px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.project-card .project-tags {
  margin-top: auto;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ===================================================
   联系我 / CONTACT TERMINAL CARD
=================================================== */
.contact-section {
  padding-top: 80px;
  padding-bottom: 110px;
}

.contact-terminal-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(13, 22, 34, 0.85) 0%, rgba(7, 13, 20, 0.95) 100%);
  border: 1px solid rgba(120, 229, 238, 0.22);
  box-shadow:
    0 28px 65px -15px rgba(0, 0, 0, 0.7),
    0 0 35px -10px rgba(120, 229, 238, 0.15),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  isolation: isolate;
}

.contact-terminal-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
      rgba(120, 229, 238, 0.14),
      transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-terminal-card:hover::before {
  opacity: 1;
}

.contact-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.terminal-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.terminal-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: terminal-blink 1.8s infinite;
}

@keyframes terminal-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.contact-terminal-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px 40px 42px;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #ffffff;
}

.contact-left p {
  color: #a3c2cb;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(120, 229, 238, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 18px -4px rgba(120, 229, 238, 0.2);
}

.contact-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(120, 229, 238, 0.1);
  border: 1px solid rgba(120, 229, 238, 0.25);
  color: #78e5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-btn-icon svg {
  width: 20px;
  height: 20px;
}

.contact-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-btn-text small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #78e5ee;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-btn-text strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.btn-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
  color: #78e5ee;
}

@media (max-width: 1024px) {
  .about-bento {
    grid-template-columns: 1fr;
  }

  .about-card-main {
    grid-row: auto;
  }

  .contact-terminal-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .work-cards-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.projects-heading p {
  color: #a8c1c8;
}

.feature-project {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(14, 24, 36, 0.82) 0%, rgba(7, 14, 22, 0.94) 100%);
  box-shadow:
    0 20px 48px -12px rgba(0, 4, 10, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin-bottom: 24px;
}

.feature-project::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .67;
}

.project-topline {
  color: var(--accent);
  background: rgba(45, 120, 145, .055);
}

.project-topline span+span {
  color: #94acb6;
}

.project-text>p,
.ai-detail>p {
  color: #bfd3d8;
}

.project-text ul,
.ai-capabilities span {
  color: #a6bdc5;
}

.project-tags span {
  border-color: rgba(120, 229, 238, .29);
  color: #b5edf1;
  background: rgba(83, 173, 193, .06);
}

.cloud-diagram {
  border-color: rgba(120, 229, 238, .26);
  background: radial-gradient(circle at center, rgba(55, 160, 187, .12), transparent 70%), #07141e;
}

.diagram-title {
  color: var(--accent);
}

.diagram-title span,
.diagram-foot {
  color: #89acb7;
}

.diagram-node {
  border-color: rgba(129, 207, 223, .35);
  background: #0e2632;
  color: #ecfaff;
}

.diagram-node small {
  color: #96c3ca;
}

.diagram-start,
.diagram-end {
  border-color: rgba(120, 229, 238, .74);
  box-shadow: 0 0 22px rgba(79, 196, 219, .12);
}

.diagram-link {
  background: var(--accent);
}

.project-ai {
  background: radial-gradient(circle at 13% 38%, rgba(57, 173, 195, .14), transparent 44%), #0a1924;
}

.ai-symbol,
.ai-statement h3 span,
.ai-capabilities strong {
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border: none;
  margin-top: 36px;
}

.skill-group {
  position: relative;
  border-radius: 20px;
  padding: 26px 26px 28px;
  background: linear-gradient(155deg, rgba(16, 26, 38, 0.72) 0%, rgba(8, 14, 22, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px -8px rgba(0, 4, 10, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

.skill-group::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
      color-mix(in srgb, var(--card-accent, #78e5ee) 18%, transparent),
      transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-group:hover::before {
  opacity: 1;
}

.skill-group:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 22px 48px -12px rgba(0, 3, 8, 0.7),
    0 0 28px -6px color-mix(in srgb, var(--card-accent, #78e5ee) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.skill-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.skill-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent, #78e5ee);
  background: color-mix(in srgb, var(--card-accent, #78e5ee) 10%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--card-accent, #78e5ee) 30%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px -2px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.skill-icon-box svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--card-accent, #78e5ee) 40%, transparent));
}

.skill-group:hover .skill-icon-box {
  transform: scale(1.05);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--card-accent, #78e5ee) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--card-accent, #78e5ee);
}

.skill-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.skill-kicker {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--card-accent, var(--accent));
  margin-bottom: 10px;
  opacity: 0.9;
}

.skill-group h3 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 650;
  color: #f1f8fb;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.skill-group p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.65;
  color: #9cb3be;
  margin: 0;
}

.card-corner-slash {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  overflow: hidden;
  border-bottom-right-radius: inherit;
  z-index: 1;
}

.card-corner-slash::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 62px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)));
  transform-origin: bottom right;
  transform: rotate(-45deg);
  opacity: 0.4;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.skill-group:hover .card-corner-slash::before {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--card-accent, var(--accent)));
}

.project-card {
  position: relative;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(16, 28, 42, 0.72) 0%, rgba(8, 14, 22, 0.88) 100%);
  box-shadow:
    0 12px 32px -8px rgba(0, 4, 10, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.6;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 229, 238, 0.4);
  box-shadow:
    0 22px 48px -12px rgba(0, 3, 8, 0.7),
    0 0 24px -6px rgba(120, 229, 238, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.education-list span {
  color: var(--accent);
}

.education-list p {
  color: #a9c2ca;
}

.contact-section {
  border-color: var(--line);
  background: radial-gradient(circle at 73% 18%, rgba(52, 169, 195, .15), transparent 38%), #071722;
}

.contact-section h2 span,
.contact-mail {
  color: var(--accent);
}

.contact-side p {
  color: #aec6ce;
}

.contact-phone {
  color: #a8c2ca;
}

.site-footer {
  background: #050e16;
}

.footer-inner {
  color: #829fa9;
}

.footer-inner span:first-child {
  color: #e4f8fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 1150px) {
  .hero-telemetry {
    right: 32px;
  }
}

@media (max-width: 900px) {
  .hero-telemetry {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    height: 56px;
    border-radius: 9999px;
  }

  .header-inner {
    padding: 0 16px 0 20px;
  }

  .menu-toggle {
    border-color: rgba(227, 251, 255, .46);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(244, 255, 255, .17), rgba(111, 191, 209, .05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  }

  .primary-nav {
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    border: 1px solid rgba(220, 249, 255, .45);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(32, 65, 80, .82), rgba(5, 25, 38, .91));
    box-shadow: 0 22px 42px rgba(0, 9, 18, .42), inset 0 1px 0 rgba(255, 255, 255, .2);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(3, 15, 26, .94), rgba(3, 15, 26, .70) 43%, transparent 76%), linear-gradient(90deg, rgba(3, 15, 26, .34), transparent 76%);
  }

  .hero::before {
    opacity: .45;
  }

  .timeline-item:hover {
    padding-left: 0;
  }

  .timeline-item:hover::before {
    opacity: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #19313e;
  }

  .primary-nav {
    background: #19313e;
  }

  .hero-telemetry {
    background: #081822;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: #19313e;
  }

  .primary-nav {
    background: #19313e;
  }

  .hero-telemetry {
    background: #081822;
  }
}