/* ============================================================
   PRIVACY BANNER
   ============================================================ */
.privacy-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(0, 212, 255, 0.9));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  display: none;
}
.privacy-banner.show {
  display: block;
}
.privacy-banner a {
  color: #fff;
  text-decoration: underline;
}
body.has-banner {
  padding-top: 40px;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  opacity: 1 !important;
  transform: none !important;
}
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  background-size: 200% 200%;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--primary);
  margin-bottom: 24px;
  min-height: 2em;
  text-shadow:
    0 0 20px var(--primary-glow),
    0 0 40px var(--primary-glow);
}
.hero-title .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero-location {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-location svg {
  vertical-align: -2px;
  margin-right: 4px;
}
.hero-summary {
  max-width: 700px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Contact chips */
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}
.chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.chip.private-info {
  border-color: var(--accent);
  color: var(--text-muted);
  font-style: italic;
  pointer-events: none;
}
.chip.private-info.revealed {
  border-color: var(--primary);
  color: var(--text-secondary);
  font-style: normal;
  pointer-events: auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
}
.scroll-indicator svg {
  color: var(--text-muted);
}
@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.section-header .num {
  color: var(--primary);
  font-size: 0.9rem;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.skill-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  perspective: 800px;
}
.skill-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-4px) rotateX(2deg);
}
.skill-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.skill-card:hover::after {
  opacity: 0.15;
}
.skill-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  font-family: var(--font-mono);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: all 0.3s;
}
.skill-tag:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}
.skill-card.green h3 {
  color: var(--secondary);
}
.skill-card.green .skill-tag {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.15);
}
.skill-card.green .skill-tag:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 8px var(--secondary-glow);
}
.skill-card.purple h3 {
  color: var(--accent);
}
.skill-card.purple .skill-tag {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.15);
}
.skill-card.purple .skill-tag:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.skill-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
}

/* ============================================================
   LANGUAGES
   ============================================================ */
.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
}
.lang-item label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.lang-item label span:last-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.lang-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.lang-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
}
.lang-bar-fill.mandarin {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px var(--primary-glow);
}
.lang-bar-fill.english {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Language pill: clickable to switch UI language */
.lang-item {
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}
.lang-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.lang-item[aria-pressed="true"] {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 12px var(--primary-glow);
}
.lang-item[aria-pressed="true"] label span:first-child {
  color: var(--primary);
  font-weight: 600;
}
.lang-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* i18n content switching */
body[data-active-lang="en"] [data-i18n][lang="zh"] {
  display: none !important;
}
body[data-active-lang="zh"] [data-i18n][lang="en"] {
  display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  opacity: 1 !important;
  transform: none !important;
}
