/* ==========================================================================
   CSS Variables - Dark Geek Theme
   Aesthetic: Minimal, dark, geeky, cyberpunk vibes
   ========================================================================== */
:root {
  --bg: #0d0f12;
  --surface: rgba(20, 24, 30, 0.7);
  --section-alt: rgba(28, 34, 43, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 240, 255, 0.35);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  --glass-blur: blur(24px) saturate(160%);
  --text-primary: #f2f5f8;
  --text-secondary: #9ea6b0;
  --text-muted: #6b737f;
  --accent: #00f0ff;
  --accent-light: rgba(0, 240, 255, 0.1);
  --accent-hover: #5df7ff;
  --warm: #ffcf0d;
  --warm-light: rgba(255, 207, 13, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Animated Background
   ========================================================================== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blobs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  z-index: 1;
}

.bg-blobs__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-blobs__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.25), transparent);
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.bg-blobs__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 136, 62, 0.15), transparent);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
}

.bg-blobs__orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.1), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(60px, -40px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 60px) scale(0.95);
  }
  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/* ==========================================================================
   Glass Utility
   ========================================================================== */
.glass {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border: 1px solid var(--glass-border);
}

/* ==========================================================================
   PRTS / Arknights Tactical Styling Utilities
   ========================================================================== */
.prts-edge {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.prts-edge::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  pointer-events: none;
}

.prts-angle-corner {
  position: relative;
}

.prts-angle-corner::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
}

.prts-angle-corner::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
}

.prts-stripe {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 207, 13, 0.15),
    rgba(255, 207, 13, 0.15) 8px,
    transparent 8px,
    transparent 16px
  );
}

.prts-sub-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prts-grid-panel {
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 16px 16px;
}

.glass-card {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Section Title
   ========================================================================== */
.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 16px;
}

.about__divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  margin: 0 auto 48px;
  border-radius: 2px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition:
    background 0.3s,
    box-shadow 0.3s;
  background: transparent;
}

.navbar--scrolled {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(10, 14, 20, 0.75);
  box-shadow: 0 1px 0 var(--border);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  background: var(--accent);
  color: var(--bg) !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.navbar__logo:hover {
  background: var(--text-primary);
  transform: translateY(-1px);
}

.navbar__logo-text {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

@media (max-width: 767px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(10, 14, 20, 0.9);
    padding: 80px 32px 32px;
    gap: 8px;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid var(--border);
  }
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--warm);
  transition: width 0.3s;
}

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

.navbar__link:hover::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__overlay {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(88, 166, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(240, 136, 62, 0.05) 0%,
      transparent 50%
    ),
    var(--bg);
  pointer-events: none;
}

.hero__scanlines {
  display: none;
}

.hero__content {
  position: relative;
  text-align: center;
  animation: fadeUp 1s ease-out;
  width: 100%;
  max-width: 700px;
}

.hero__terminal {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.hero__terminal:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.hero__terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.hero__terminal-dots {
  display: flex;
  gap: 8px;
}

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

.hero__terminal-dot--red {
  background: #ff5f56;
}

.hero__terminal-dot--yellow {
  background: #ffbd2e;
}

.hero__terminal-dot--green {
  background: #27c93f;
}

.hero__terminal-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
}

.hero__terminal-body {
  padding: 32px;
}

.hero__avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.hero__avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s;
  border: 2px solid var(--border);
}

.hero__avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.hero__avatar-ring {
  display: none;
}

.hero__name {
  font-size: clamp(28px, 5vw, 48px);
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
  font-family: var(--font-sans);
}

.hero__prompt {
  font-size: 14px;
  color: var(--warm);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.hero__name-text {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-sans);
}

.hero__cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stat-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}

.hero__stat-value {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.hero__stat-value.online {
  color: #3fb950;
}

.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  font-family: var(--font-mono);
}

.hero__tagline-icon {
  color: var(--warm);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: color 0.2s;
}

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

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 100px 24px;
  position: relative;
}

.about__container {
  max-width: 800px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-prefix {
  color: var(--text-muted);
  font-size: 14px;
}

.section-suffix {
  color: var(--text-muted);
  font-size: 14px;
}

.about__code-block {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
  box-shadow: var(--glass-shadow);
}

.about__code-block:hover {
  border-color: var(--glass-border-hover);
}

.about__code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.about__code-file {
  font-size: 12px;
  color: var(--text-muted);
}

.about__code-lang {
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 8px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.theme-inner .about__code-lang {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  animation: codeLangFlash 2s ease-in-out infinite;
}

@keyframes codeLangFlash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.about__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about__confession {
  margin-top: 32px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s;
}

.about__confession:hover {
  border-color: var(--glass-border-hover);
}

.about__confession-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.about__confession-label {
  font-size: 12px;
  color: var(--warm);
  font-family: var(--font-mono);
}

.about__confession-body {
  padding: 20px;
}

.about__confession-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
}

.about__confession-sign {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  text-align: right;
}

/* ==========================================================================
   Experience
   ========================================================================== */
.experience {
  padding: 100px 24px;
  position: relative;
}

.experience__container {
  max-width: 720px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  position: relative;
  display: flex;
  padding-left: 40px;
  padding-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

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

.timeline__dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(88, 166, 255, 0.3);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.2);
}

.timeline__line {
  position: absolute;
  left: 7px;
  top: 22px;
  width: 2px;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    var(--glass-border-hover),
    var(--border)
  );
}

.timeline__card {
  flex: 1;
}

.timeline__period {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--warm);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline__company {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   Skills
   ========================================================================== */
.skills {
  padding: 100px 24px;
  position: relative;
}

.skills__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skills__card {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.skills__card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.skills__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.skills__card-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.skills__card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.skills__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.skill__name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.skill__level {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
}

.skill__bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  border-radius: 4px;
  transition: width 1.2s ease-out;
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.3);
}

.skill__fill.animated {
  width: var(--skill-level);
}

/* ==========================================================================
   Education
   ========================================================================== */
.education {
  padding: 100px 24px;
  position: relative;
}

.education__container {
  max-width: 720px;
  margin: 0 auto;
}

.education__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.education__item {
  display: flex;
  gap: 20px;
  padding: 28px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.education__item:hover {
  border-color: var(--glass-border-hover);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.education__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  flex-shrink: 0;
  color: var(--accent);
  border: 1px solid var(--glass-border);
}

.education__info {
  flex: 1;
}

.education__period {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--warm);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.education__school {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.education__degree {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.education__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
  padding: 100px 24px;
  position: relative;
}

.projects__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  border-color: var(--glass-border-hover);
}

.project-card__body {
  padding: 24px;
}

.project-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-card__tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.project-card__links {
  display: flex;
  gap: 16px;
}

.project-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

.project-card__link:hover {
  color: var(--accent);
}

/* ==========================================================================
   Friends Links
   ========================================================================== */
.friends {
  padding: 100px 24px;
}

.friends__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.friends__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.friends__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  background: var(--surface);
  border: var(--border-raw);
  border-radius: 2px;
  font-family: var(--font-serif);
}

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

.friends__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.friends__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friends__name {
  font-size: 15px;
  color: var(--text-primary);
}

.friends__desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: 100px 24px;
  position: relative;
}

.contact__container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact__intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  text-align: left;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.contact__card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(88, 166, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.contact__icon {
  color: var(--accent);
  flex-shrink: 0;
}

.contact__card:hover .contact__icon {
  color: var(--accent);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact__text {
  font-size: 13px;
  color: var(--text-muted);
}

.contact__outro {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.contact__outro-text {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact__outro-sub {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
}

.contact__outro-sub::before {
  content: "> ";
  color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(10, 14, 20, 0.5);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer__text {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Theme Variations - 里我 · 割裂故障特效
   ========================================================================== */
.theme-inner {
  --accent: #a78bfa;
  --accent-light: rgba(167, 139, 250, 0.12);
  --accent-hover: #c4b5fd;
  --warm: #f472b6;
  --warm-light: rgba(244, 114, 182, 0.12);
  --glass-border-hover: rgba(167, 139, 250, 0.3);
}

.hero--inner .hero__bg {
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(167, 139, 250, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(244, 114, 182, 0.08) 0%,
      transparent 50%
    ),
    var(--bg);
}

.theme-inner .about__divider {
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.theme-inner .skill__fill {
  background: linear-gradient(90deg, var(--accent), var(--warm));
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.theme-inner .quiz-enter-btn {
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.theme-inner .quiz-nav-btn.submit {
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.theme-inner .back-to-top:hover {
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.2);
}

/* ===================================================================
   里我 · CRT 扫描线叠加层
   =================================================================== */
@keyframes scanlineMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(4px);
  }
}

.hero--inner::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanlineMove 8s linear infinite;
}

/* ===================================================================
   里我 · 噪点/静态噪声
   =================================================================== */
.inner-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===================================================================
   里我 · Glitch 文字特效
   =================================================================== */
@keyframes glitchText {
  0% {
    clip-path: inset(0 0 80% 0);
    transform: translate(-2px, 2px);
  }
  10% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(2px, -1px);
  }
  20% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(-1px, 1px);
  }
  30% {
    clip-path: inset(60% 0 20% 0);
    transform: translate(1px, -2px);
  }
  40% {
    clip-path: inset(80% 0 0 0);
    transform: translate(-2px, 1px);
  }
  50% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(2px, 2px);
  }
  60% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(-1px, -1px);
  }
  70% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(1px, 1px);
  }
  80% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(-2px, -2px);
  }
  90% {
    clip-path: inset(0 0 90% 0);
    transform: translate(2px, 1px);
  }
  100% {
    clip-path: inset(0 0 80% 0);
    transform: translate(-2px, 2px);
  }
}

@keyframes glitchSkew {
  0% {
    transform: skew(0deg);
  }
  10% {
    transform: skew(1deg);
  }
  20% {
    transform: skew(-0.5deg);
  }
  30% {
    transform: skew(0deg);
  }
  40% {
    transform: skew(-1deg);
  }
  50% {
    transform: skew(0.5deg);
  }
  60% {
    transform: skew(0deg);
  }
  70% {
    transform: skew(1.5deg);
  }
  80% {
    transform: skew(-1deg);
  }
  90% {
    transform: skew(0deg);
  }
  100% {
    transform: skew(0deg);
  }
}

.theme-inner .section-title {
  position: relative;
  animation: glitchSkew 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.theme-inner .section-title::before,
.theme-inner .section-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.theme-inner .section-title::before {
  color: #ff0040;
  z-index: -1;
  animation: glitchText 2s infinite linear alternate-reverse;
}

.theme-inner .section-title::after {
  color: #00e5ff;
  z-index: -2;
  animation: glitchText 3s infinite linear alternate-reverse;
  animation-delay: 1s;
}

/* ===================================================================
   里我 · 终端错误输出
   =================================================================== */
.hero__terminal-errors {
  margin-top: 16px;
  text-align: left;
  border-top: 1px solid rgba(167, 139, 250, 0.2);
  padding-top: 12px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.hero--inner .hero__terminal-errors {
  max-height: 200px;
}

.hero__error-line {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  opacity: 0;
  animation: errorFadeIn 0.5s ease forwards;
}

.hero__error-line--warn {
  color: #fbbf24;
}

.hero__error-line--error {
  color: #f87171;
}

.hero__error-line--info {
  color: var(--accent);
}

.hero__error-line--corrupt {
  color: var(--accent);
  opacity: 0.6;
}

@keyframes errorFadeIn {
  to {
    opacity: 1;
  }
}

/* ===================================================================
   里我 · 卡片边框故障闪烁
   =================================================================== */
@keyframes borderGlitch {
  0%,
  100% {
    border-color: var(--glass-border-hover);
  }
  10% {
    border-color: #ff0040;
  }
  20% {
    border-color: var(--glass-border-hover);
  }
  30% {
    border-color: #00e5ff;
  }
  40% {
    border-color: var(--glass-border-hover);
  }
  50% {
    border-color: #ff0040;
  }
  60% {
    border-color: var(--glass-border-hover);
  }
  70% {
    border-color: var(--glass-border-hover);
  }
  80% {
    border-color: #00e5ff;
  }
  90% {
    border-color: var(--glass-border-hover);
  }
}

.theme-inner .glass-card,
.theme-inner .skills__card,
.theme-inner .education__item,
.theme-inner .project-card,
.theme-inner .contact__card,
.theme-inner .about__code-block,
.theme-inner .about__confession {
  opacity: 1;
  animation: borderGlitch 8s ease-in-out infinite;
}

/* ===================================================================
   里我 · 乱码浮动
   =================================================================== */
@keyframes corruptSlide {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  to {
    transform: translateX(100vw);
    opacity: 0;
  }
}

.hero__corrupt-line {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 300px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero--inner .hero__corrupt-line {
  animation: corruptSlide 12s linear infinite;
}

.hero--inner .hero__corrupt-line:nth-child(4) {
  bottom: 100px;
  animation-delay: -4s;
  animation-duration: 15s;
  color: #f472b6;
  opacity: 0.3;
}

/* ===================================================================
   里我 · 时间线闪烁
   =================================================================== */
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
  }
  25% {
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
  }
  75% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  }
}

.theme-inner .timeline__dot {
  animation: dotPulse 4s ease-in-out infinite;
}

/* ===================================================================
   里我 · 头像毛刺
   =================================================================== */
@keyframes avatarGlitch {
  0%,
  100% {
    filter: none;
  }
  5% {
    filter: hue-rotate(90deg) brightness(1.2);
  }
  10% {
    filter: none;
  }
  15% {
    filter: hue-rotate(-90deg) contrast(1.5);
  }
  20% {
    filter: none;
  }
  80% {
    filter: none;
  }
  85% {
    filter: hue-rotate(180deg) saturate(2);
  }
  90% {
    filter: none;
  }
}

.theme-inner .hero__avatar {
  animation: avatarGlitch 6s ease-in-out infinite;
}

/* ==========================================================================
   Project Card Visual Icons
   ========================================================================== */
.project-card__visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card__visual-icon {
  color: var(--accent);
  opacity: 0.6;
}

/* ==========================================================================
   Quiz - 表里的我 · 认知选择页
   ========================================================================== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  background: rgba(10, 14, 20, 0.85);
  padding: 24px;
  overflow-y: auto;
}

.quiz-overlay .bg-blobs {
  z-index: 0;
}

.quiz-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  text-align: center;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.quiz-title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.quiz-prefix {
  color: var(--accent);
  font-family: var(--font-mono);
  margin-right: 8px;
}

.quiz-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quiz-skip-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.quiz-skip-btn:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.quiz-progress-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.quiz-parts-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-part-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.quiz-part-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.quiz-part-btn.done {
  color: var(--text-secondary);
  border-color: var(--glass-border-hover);
}

.quiz-part-btn:hover {
  border-color: var(--glass-border-hover);
}

.quiz-part-label {
  display: none;
}

@media (min-width: 600px) {
  .quiz-part-label {
    display: inline;
  }
}

.quiz-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.quiz-body::-webkit-scrollbar {
  width: 4px;
}

.quiz-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.quiz-part-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.quiz-part-prefix {
  color: var(--warm);
  font-weight: 600;
}

.quiz-question {
  margin-bottom: 28px;
}

.quiz-question-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quiz-q-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(88, 166, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.quiz-q-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.quiz-q-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--warm);
  background: var(--warm-light);
  border: 1px solid rgba(240, 136, 62, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}

.quiz-options.multi {
  gap: 6px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border-hover);
}

.quiz-option.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--text-primary);
}

.quiz-option-marker {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.quiz-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.25s;
}

.quiz-radio.checked {
  border-color: var(--accent);
  color: var(--accent);
}

.quiz-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: transparent;
  transition: all 0.25s;
}

.quiz-checkbox.checked {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.quiz-option-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  width: 20px;
  flex-shrink: 0;
}

.quiz-option.selected .quiz-option-value {
  color: var(--accent);
}

.quiz-option-label {
  flex: 1;
  line-height: 1.4;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.quiz-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
}

.quiz-nav-btn:hover:not(:disabled) {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.quiz-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quiz-nav-btn.primary {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.quiz-nav-btn.primary:hover:not(:disabled) {
  background: rgba(88, 166, 255, 0.2);
}

.quiz-nav-btn.submit {
  background: linear-gradient(135deg, var(--accent), var(--warm));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.quiz-nav-btn.submit:hover:not(:disabled) {
  opacity: 0.9;
}

/* ==========================================================================
   Quiz Result
   ========================================================================== */
.quiz-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 0;
}

.quiz-result-glass {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  animation: fadeUp 0.8s ease-out;
}

.quiz-result-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.quiz-result-heading {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.quiz-result-heading .inner {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-result-heading .outer {
  background: linear-gradient(135deg, var(--warm), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.quiz-score-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

.quiz-score-divider {
  font-size: 24px;
  color: var(--text-muted);
}

.quiz-score-total {
  font-size: 24px;
  color: var(--text-secondary);
}

.quiz-score-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

.quiz-result-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.quiz-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.quiz-retry-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
}

.quiz-retry-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.quiz-enter-btn {
  padding: 10px 32px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.quiz-enter-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(88, 166, 255, 0.2);
  color: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  z-index: 999;
  box-shadow: var(--glass-shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(88, 166, 255, 0.35);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(88, 166, 255, 0.2);
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1023px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__text {
    font-size: 14px;
  }

  .about__confession {
    padding: 32px 24px;
  }

  .about__confession-line {
    left: 24px;
  }

  .about__confession-text,
  .about__confession-sign {
    padding-left: 24px;
  }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 767px) {
  .navbar__links--open {
    right: 0;
  }

  .navbar__link {
    display: block;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .navbar__link:last-child {
    border-bottom: none;
  }

  .navbar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar__overlay--visible {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .navbar__overlay {
    display: block;
    position: fixed;
    inset: 0;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s,
      visibility 0.3s;
  }

  .hero__name {
    letter-spacing: 4px;
  }

  .hero__subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 26px;
  }

  .about {
    padding: 64px 20px;
  }

  .about__confession {
    padding: 24px 16px;
  }

  .about__confession-line {
    left: 16px;
  }

  .about__confession-text,
  .about__confession-sign {
    padding-left: 16px;
  }

  .experience {
    padding: 64px 20px;
  }

  .skills {
    padding: 64px 20px;
  }

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

  .skills__card {
    padding: 24px;
  }

  .education {
    padding: 64px 20px;
  }

  .education__item {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .projects {
    padding: 64px 20px;
  }

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

  .contact {
    padding: 64px 20px;
  }

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

  .timeline__item {
    padding-left: 32px;
    padding-bottom: 36px;
  }

  .back-to-top {
    bottom: 24px;
    right: 24px;
  }
}

/* ==========================================================================
   Cinematic Transition (Ethereal Fog Mode) — Smooth Crossfade Rewrite
   ========================================================================== */
.app--cinematic-blur main,
.app--cinematic-blur .navbar,
.app--cinematic-blur .footer,
.app--cinematic-blur .back-to-top {
  filter: blur(36px) saturate(50%);
  opacity: 0.18;
  pointer-events: none;
  transition:
    filter 2.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: filter, opacity;
}

.cinematic-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, rgba(20, 12, 30, 0.96) 0%, rgba(6, 8, 12, 0.99) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
  overflow: hidden;
}

.cinematic-overlay.is-entered {
  opacity: 1;
}

.cinematic-overlay.is-leaving {
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cinematic-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  height: 8em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* All lines stacked, only one is-active at a time → crossfade */
.cinematic-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--text-primary);
  text-shadow:
    0 0 18px var(--glow-color, rgba(167, 139, 250, 0.5)),
    0 0 48px var(--glow-color, rgba(167, 139, 250, 0.25));
  opacity: 0;
  filter: blur(14px);
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
  pointer-events: none;
}

.cinematic-text.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.cinematic-text.is-past {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(-18px) scale(1.02);
}

/* Mysterious Floating Dust Particles */
.cinematic-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.cinematic-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #d4c4ff;
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.6px);
  box-shadow: 0 0 14px rgba(212, 196, 255, 0.6);
  animation: cinemaFloat 9s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes cinemaFloat {
  0%   { transform: translateY(30px) scale(0.6); opacity: 0; }
  20%  { opacity: 0.4; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-120px) scale(1.1); opacity: 0; }
}

.cinematic-awaken {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinematic-awaken.is-active {
  opacity: 1;
}

.cinematic-pulse-glow {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4c4ff, transparent);
  box-shadow: 0 0 12px rgba(212, 196, 255, 0.7);
  animation: cinemaPulseLine 2s infinite cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cinemaPulseLine {
  0%, 100% { width: 40px; opacity: 0.35; }
  50%      { width: 180px; opacity: 1; }
}

/* ==========================================================================
   Inner Hero — Fragments to Discover (Dark Archive Room)
   ========================================================================== */
.inner-hero {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #06070b;
  color: var(--text-primary);
  isolation: isolate;
}

/* Deep fog layer (always there) */
.inner-hero__fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(167, 139, 250, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(244, 114, 182, 0.06), transparent 45%),
    linear-gradient(180deg, #0a0710 0%, #06070b 100%);
  pointer-events: none;
  z-index: 0;
}

/* Flashlight cone: covers EVERYTHING in darkness EXCEPT around cursor */
.inner-hero__flashlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    circle 260px at var(--mx) var(--my),
    transparent 0%,
    rgba(6, 7, 11, 0.35) 30%,
    rgba(6, 7, 11, 0.78) 60%,
    rgba(6, 7, 11, 0.95) 100%
  );
  transition: background 80ms linear;
  mix-blend-mode: multiply;
}

/* HUD */
.inner-hero__hud-top {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.inner-hero__hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.inner-hero__progress {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.inner-hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Title block (dim, gets lit by cursor) */
.inner-hero__title-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.inner-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.15);
}

.inner-hero__title-sub {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.inner-hero__sectors {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.sector-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0.6;
}

.st-roots { border-color: rgba(52, 211, 153, 0.25); color: #34d399; }
.st-pulse { border-color: rgba(239, 68, 68, 0.25); color: #ef4444; }
.st-maze  { border-color: rgba(99, 102, 241, 0.25); color: #6366f1; }
.st-soil  { border-color: rgba(245, 158, 11, 0.25); color: #f59e0b; }

/* HUD Bottom block containing restart & hints */
.inner-hero__hud-bottom {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.inner-reset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.inner-reset-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.inner-reset-btn.continue-btn {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--accent);
  color: var(--text-primary);
  font-size: 13px;
  padding: 12px 28px;
  font-weight: 500;
  animation: corePulse 2s ease-in-out infinite;
}

.inner-reset-btn.continue-btn:hover {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
  color: #06070b;
}

/* Category individual glowing */
.fragment.frag-roots:hover, .fragment.frag-roots.is-opened {
  border-color: #34d399;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.35);
}
.fragment.frag-pulse:hover, .fragment.frag-pulse.is-opened {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}
.fragment.frag-maze:hover, .fragment.frag-maze.is-opened {
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}
.fragment.frag-soil:hover, .fragment.frag-soil.is-opened {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

/* Cursor exploration hint */
.inner-hero__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  pointer-events: none;
  animation: hintPulse 2.4s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.85; }
}

/* Continue button (appears after all opened) */
.inner-hero__continue {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  animation: continueRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.2s, box-shadow 0.2s;
}

.inner-hero__continue:hover {
  background: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}

@keyframes continueRise {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Fragments scattered */
.inner-hero__fragments {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.fragment {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(20, 14, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, color 0.3s, box-shadow 0.4s ease;
  animation: fragFloat 6s ease-in-out infinite;
}

.fragment:nth-child(odd)  { animation-duration: 7s; animation-delay: -1.5s; }
.fragment:nth-child(even) { animation-duration: 5.5s; animation-delay: -3s; }

@keyframes fragFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 8px)); }
}

.fragment:hover {
  opacity: 1;
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.25),
    0 0 28px rgba(167, 139, 250, 0.45);
  z-index: 6;
}

.fragment.is-opened {
  border-color: rgba(167, 139, 250, 0.45);
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.85;
}

.fragment.is-locked {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.25);
  filter: blur(0.3px);
}

.fragment.is-locked:hover {
  opacity: 0.4;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
}

.fragment.is-core {
  background: rgba(60, 20, 50, 0.8);
  border-color: rgba(244, 114, 182, 0.3);
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.fragment.is-core:not(.is-locked) {
  border-color: var(--warm);
  color: var(--text-primary);
  box-shadow: 0 0 40px rgba(244, 114, 182, 0.5);
  animation: corePulse 2.4s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 28px rgba(244, 114, 182, 0.35); }
  50%      { box-shadow: 0 0 52px rgba(244, 114, 182, 0.75); }
}

.fragment__id {
  color: var(--accent);
  opacity: 0.7;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.fragment__title {
  color: inherit;
}

.fragment__icon {
  display: flex;
  align-items: center;
  opacity: 0.6;
}

/* Modal */
.fragment-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFade 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fragment-modal__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: rgba(18, 14, 28, 0.95);
  border: 1px solid var(--accent);
  box-shadow: 0 0 64px rgba(167, 139, 250, 0.35);
  padding: 28px 32px;
  font-family: var(--font-mono);
  animation: modalRise 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.fragment-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.fragment-modal__title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  margin-top: 4px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.fragment-modal__close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fragment-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--accent);
}

.fragment-modal__body {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-primary);
  white-space: pre-wrap;
  margin: 0;
  padding: 8px 0;
  letter-spacing: 0.02em;
}

.fragment-modal__foot {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

/* Responsive: shrink fragments and re-position on mobile */
@media (max-width: 640px) {
  .fragment {
    font-size: 10px;
    padding: 8px 10px;
    gap: 6px;
  }
  .fragment__title { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .inner-hero__title { font-size: 16px; letter-spacing: 0.25em; }
  .inner-hero__hud-top { top: 72px; width: 92%; }
  .fragment-modal__card { padding: 22px 20px; }
  .fragment-modal__title { font-size: 18px; }
  .fragment-modal__body { font-size: 13px; }
}

/* ==========================================================================
   Deep Sea Scroll Parallax — Sub-aquatic Downstream Redesign
   ========================================================================== */
.deep-sea-flow-content {
  position: relative;
  background: linear-gradient(180deg, #06070b 0%, #030407 40%, #010203 100%);
  color: var(--text-primary);
  width: 100%;
}

/* Floating Depth HUD */
.deep-sea-depth-hud {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  background: rgba(4, 5, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 12px;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: depthGaugeFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes depthGaugeFadeIn {
  from { opacity: 0; transform: translate(20px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

.depth-title {
  writing-mode: vertical-lr;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.depth-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.depth-bar {
  position: relative;
  width: 2px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
}

.depth-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--warm), var(--accent));
  box-shadow: 0 0 8px var(--accent);
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Abyssal card style overrides in theme-inner */
.theme-inner .project-card {
  position: relative;
  background: rgba(13, 10, 24, 0.4);
  border: 1px solid rgba(167, 139, 250, 0.15);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-inner .project-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    0 0 0 1px rgba(167, 139, 250, 0.1),
    0 12px 36px rgba(167, 139, 250, 0.25);
}

/* Floating overlay text on wreckage cards */
.project-card__abyssal-glow {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: 0.05em;
  position: absolute;
  top: 12px;
  right: 12px;
  text-align: right;
  max-width: 60%;
  line-height: 1.4;
  pointer-events: none;
  transition: opacity 0.3s;
}

.project-card:hover .project-card__abyssal-glow {
  opacity: 0.55;
  color: var(--warm);
}

/* Animate wreckage floating slowly */
.theme-inner .about__code-block,
.theme-inner .skills__card,
.theme-inner .project-card,
.theme-inner .education__item {
  animation: wreckageFloating 10s ease-in-out infinite alternate !important;
}

.theme-inner .skills__card:nth-child(even),
.theme-inner .project-card:nth-child(even) {
  animation-delay: -5s !important;
  animation-duration: 12s !important;
}

@keyframes wreckageFloating {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
  100% {
    transform: translateY(6px) rotate(-0.4deg);
  }
}

@media (max-width: 900px) {
  .deep-sea-depth-hud {
    right: 12px;
    padding: 10px 6px;
  }
  .depth-bar {
    height: 80px;
  }
}

/* ==========================================================================
   B612 Star Console (ARG Terminal) Design
   ========================================================================== */
.inner-terminal-trigger-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 48px;
  width: 100%;
}

.inner-reset-btn.console-btn {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: 12px;
  transition: all 0.3s;
}

.inner-reset-btn.console-btn:hover,
.inner-reset-btn.console-btn.is-active {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  color: #06070b;
}

/* Abyssal Shell Screen */
.abyssal-console {
  width: 100%;
  max-width: 760px;
  background: #030508;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 4px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 197, 94, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: consoleSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes consoleSlideIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.abyssal-console__header {
  background: #05080c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #22c55e;
  letter-spacing: 0.1em;
}

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

.pulse-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: dotBreathe 1.5s infinite alternate;
}

@keyframes dotBreathe {
  0%   { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.abyssal-console__screen {
  padding: 20px;
  min-height: 250px;
  max-height: 480px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #22c55e;
  text-shadow: 0 0 4px rgba(34, 197, 94, 0.35);
  line-height: 1.6;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-image: radial-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 0);
  background-size: 4px 4px;
}

/* Custom Scrollbar for Terminal */
.abyssal-console__screen::-webkit-scrollbar {
  width: 4px;
}
.abyssal-console__screen::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.3);
}

.console-line {
  word-break: break-all;
  white-space: pre-wrap;
}

/* Command shell input */
.abyssal-console__form {
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.prompt {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(167, 139, 250, 0.3);
}

.console-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #22c55e;
  font-family: inherit;
  font-size: inherit;
}

/* Hidden postcard letter styling */
.console-letter {
  margin-top: 20px;
  background: rgba(13, 10, 24, 0.85);
  border: 1px solid var(--accent);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.25);
  color: var(--text-primary);
  animation: cardFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.letter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.letter-body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 2;
  text-align: left;
  letter-spacing: 0.05em;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

/* Clue footer under skills card */
.skills__inner-footer {
  margin-top: 24px;
  text-align: center;
}

.skills__clue {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(239, 68, 68, 0.55);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
  animation: alertPulse 3s ease-in-out infinite;
}

@keyframes alertPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; color: rgba(239, 68, 68, 0.95); }
}

/* ==========================================================================
   Ghost Entries — deeply hidden
   ========================================================================== */
.navbar__glitch-link {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0;
  color: #1a1a1a;
  opacity: 0;
  cursor: default;
  padding: 2px 4px;
  margin-left: 12px;
  user-select: none;
}

.navbar__glitch-link:hover {
  color: rgba(239, 68, 68, 0.3);
  opacity: 0.3;
  cursor: pointer;
}

.footer__glitch-btn {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
}

.footer__glitch-btn:hover {
  opacity: 1;
  color: var(--warm);
  text-decoration: underline;
}

/* ==========================================================================
   Hidden Clue — Hero terminal faint hint
   ========================================================================== */
.hero__hidden-clue {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  opacity: 0;
  text-align: left;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.03);
  transition: opacity 3s ease;
  user-select: none;
}

.hero:hover .hero__hidden-clue,
.hero__terminal:hover .hero__hidden-clue {
  opacity: 0.08;
}

/* ==========================================================================
   Access Denied Overlay
   ========================================================================== */
.access-denied-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.access-denied-dialog {
  width: 100%;
  max-width: 520px;
  background: #08090a;
  border: var(--border-hard);
  padding: 32px;
  font-family: var(--font-mono);
}

.access-denied-log {
  font-size: 13px;
  line-height: 1.8;
  color: #ef4444;
  white-space: pre-wrap;
  margin: 0 0 24px 0;
}

.access-denied-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.access-denied-btn {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: var(--border-raw);
  background: transparent;
  color: var(--text-muted);
}

.access-denied-btn.proceed {
  color: var(--accent);
  border-color: var(--accent);
}

.access-denied-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* ==========================================================================
   Quiz Countdown
   ========================================================================== */
.quiz-countdown {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  text-align: center;
  margin-top: 24px;
  animation: countdownPulse 0.7s step-end infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   Inner Mode Music Player (NeteaseMiniPlayer v2) Styles
   ========================================================================== */
.inner-music-deck {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.15);
  background: rgba(4, 12, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 243, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-width: 320px;
}

.deck--closed {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(4, 12, 24, 0.75);
  border-color: rgba(0, 243, 255, 0.2);
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.deck--closed:hover {
  border-color: rgba(0, 243, 255, 0.5);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.25);
  width: 150px;
  border-radius: 24px;
  padding: 0 16px;
  justify-content: flex-start;
}

.deck-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.03), transparent 70%);
  z-index: 0;
}

.deck-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: #00f3ff;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  outline: none;
  height: 100%;
}

.disc-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.15);
  color: #00f3ff;
  transition: all 0.3s ease;
}

.deck-toggle-btn:hover .disc-wrapper {
  background: rgba(0, 243, 255, 0.15);
  border-color: #00f3ff;
  transform: scale(1.05);
}

.disc--spinning .disc-icon {
  animation: disc-rotate 4s linear infinite;
}

@keyframes disc-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.deck-toggle-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: glitch-micro-blink 4s infinite;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00f3ff;
  box-shadow: 0 0 8px #00f3ff;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.deck--open {
  width: 300px;
  padding: 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.deck--open .deck-toggle-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: auto;
  height: auto;
}

.deck-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  width: 100%;
}

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

.deck-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  padding-bottom: 8px;
}

.deck-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cyan-glow-text {
  color: #00f3ff;
  filter: drop-shadow(0 0 4px rgba(0, 243, 255, 0.5));
}

.deck-header-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

.deck-header-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #00f3ff;
  opacity: 0.6;
  letter-spacing: 0.12em;
}

.player-mount-zone {
  min-height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .inner-music-deck {
    left: 16px;
    bottom: 80px;
  }
}


