:root {
  --bg-primary: #f5f6fa;
  --bg-alt: #ebedf5;
  --bg-card: #ffffff;
  --accent: #5a52e0;
  --accent-secondary: #00a886;
  --accent-warm: #e85555;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --divider: #dde0ea;
  --shadow-accent: rgba(108, 99, 255, 0.06);
  --gold: #c8960c;
  --tag-skill-color: #5a52e0;
  --tag-skill-bg: rgba(90, 82, 224, 0.08);
  --tag-skill-border: rgba(90, 82, 224, 0.25);
  --tag-skill-hover-bg: rgba(90, 82, 224, 0.14);
  --tag-project-color: #00a886;
  --tag-familiar-color: #6b7280;
  --card-border: rgba(0, 0, 0, 0.06);
  --font-serif: 'Noto Serif SC', 'Georgia', serif;
  --font-sans: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-label: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Grotesk', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0f0f17;
  --bg-alt: #12121f;
  --bg-card: #16162a;
  --accent: #6c63ff;
  --accent-secondary: #00d4aa;
  --accent-warm: #ff6b6b;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --divider: #2a2a40;
  --shadow-accent: rgba(108, 99, 255, 0.08);
  --gold: #ffd700;
  --tag-skill-color: #b8b4ff;
  --tag-skill-bg: rgba(108, 99, 255, 0.08);
  --tag-skill-border: rgba(108, 99, 255, 0.3);
  --tag-skill-hover-bg: rgba(108, 99, 255, 0.18);
  --tag-project-color: #7aecc8;
  --tag-familiar-color: #8888a0;
  --card-border: rgba(255, 255, 255, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
}

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

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Section Header ── */

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

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.divider {
  height: 1px;
  max-width: 120px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
}

/* ── Reveal Animations ── */

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

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

.reveal-fade-left {
  transform: translateX(-30px);
}

.reveal-fade-right {
  transform: translateX(30px);
}

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

.reveal-width {
  transform: scaleX(0);
  transform-origin: center;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) scaleX(1);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Section ── */

.section--hero {
  flex-direction: column;
  text-align: center;
  gap: 60px;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

[data-theme="dark"] #matrix-canvas {
  opacity: 0.18;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero__line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 1px;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.15em;
}

.hero__motto {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-style: italic;
  max-width: 600px;
  min-height: 1.6em;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__motto.visible {
  opacity: 1;
}

.hero__motto .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

.hero__actions {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero__resume-link {
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 30px;
  border: 1px solid var(--accent);
  background: var(--tag-skill-bg);
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.hero__resume-link:hover {
  background: var(--tag-skill-hover-bg);
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--shadow-accent);
  transform: translateY(-2px);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.hero__arrow {
  font-size: 1.2rem;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 0.7; }
}

/* ── About Section ── */

.section--about {
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: url('Img/my.png') center center / cover no-repeat;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.1);
  z-index: 0;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 246, 250, 0.55);
  z-index: 1;
}

[data-theme="dark"] .about-overlay {
  background: rgba(15, 15, 23, 0.6);
}

.about-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--shadow-accent), 0 0 80px rgba(108, 99, 255, 0.06);
  flex-shrink: 0;
  z-index: 3;
  position: relative;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-radial {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.about-radial-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 150px;
  max-width: 200px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: opacity 0.5s ease, box-shadow 0.3s ease;
  opacity: 0;
  white-space: nowrap;
}

[data-theme="dark"] .about-radial-card {
  background: rgba(22, 22, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-radial-card.revealed {
  opacity: 1;
}

.about-radial-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .about-radial-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about-radial-card__label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.about-radial-card__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin-bottom: 6px;
}

.about-radial-card__value {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

.about-evaluation {
  max-width: 680px;
  margin: 0 auto;
}

.about-evaluation p {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--text-primary);
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.8em;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* ── Skills Section ── */

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.15s);
}

.skill-group.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skill-group__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.skill-group__divider {
  height: 1px;
  background: linear-gradient(90deg, var(--divider), transparent);
  margin-bottom: 16px;
  width: 0;
  transition: width 0.8s ease;
  transition-delay: calc(var(--i, 0) * 0.15s + 0.2s);
}

.skill-group.revealed .skill-group__divider {
  width: 100%;
}

.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 24px;
  font-family: var(--font-label);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--tag-skill-border);
  background: var(--tag-skill-bg);
  color: var(--tag-skill-color);
  transition: all 0.25s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--tag-skill-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-accent);
}

.skill-tag--familiar {
  border-color: var(--divider);
  background: rgba(107, 114, 128, 0.06);
  color: var(--tag-familiar-color);
}

.skill-tag--familiar:hover {
  background: rgba(107, 114, 128, 0.12);
  box-shadow: 0 4px 16px var(--shadow-accent);
}

.skill-group__familiar-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 12px;
  margin-bottom: 8px;
  font-style: italic;
}

/* ── Projects Section ── */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
  border-radius: 16px 0 0 16px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-accent);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.project-card__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-card__period {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.project-card__role {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.project-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

.project-card__divider {
  height: 1px;
  background: var(--divider);
  margin: 16px 0;
}

.project-card__desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-card__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.project-card__highlights li {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-primary);
  padding-left: 24px;
  position: relative;
}

.project-card__highlights li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-size: 0.8rem;
  top: 2px;
}

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

.project-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--accent-secondary);
  background: rgba(0, 168, 134, 0.08);
  color: var(--tag-project-color);
  transition: all 0.25s ease;
}

.project-tag:hover {
  background: rgba(0, 168, 134, 0.15);
  transform: translateY(-1px);
}

/* ── Awards Section ── */

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.award-card--national::before {
  background: var(--gold);
}

.award-card--provincial::before {
  background: var(--accent);
}

.award-card--school::before {
  background: var(--accent-secondary);
}

.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-accent);
}

.award-card--national {
  border-color: rgba(200, 150, 12, 0.15);
}

.award-card--national:hover {
  box-shadow: 0 8px 30px rgba(200, 150, 12, 0.08);
}

.award-card__icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.award-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.award-card__level {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.award-card--national .award-card__level {
  background: rgba(200, 150, 12, 0.12);
  color: var(--gold);
  border: 1px solid rgba(200, 150, 12, 0.25);
}

.award-card--provincial .award-card__level {
  background: var(--tag-skill-bg);
  color: var(--tag-skill-color);
  border: 1px solid var(--tag-skill-border);
}

.award-card--school .award-card__level {
  background: rgba(0, 168, 134, 0.1);
  color: var(--tag-project-color);
  border: 1px solid rgba(0, 168, 134, 0.25);
}

.award-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Story / Timeline Section ── */

.story-summary {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 60px;
}

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

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
  transform: translateX(-50%);
  transform-origin: top;
  height: 0;
  transition: height 1.5s ease;
}

.timeline.active .timeline__line {
  height: 100%;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item__year {
  width: 50%;
  text-align: right;
  padding-right: 32px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}

.timeline-item__dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--divider);
  transform: translateX(-50%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
}

.timeline-item.revealed .timeline-item__dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--shadow-accent);
}

.timeline-item__event {
  width: 50%;
  padding-left: 32px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.philosophy {
  max-width: 700px;
  margin: 80px auto 0;
  text-align: center;
}

.philosophy__keywords {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.philosophy__keyword {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.2s);
}

.philosophy__keyword.revealed {
  opacity: 1;
  transform: translateY(0);
}

.philosophy__detail {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Certificates & Upcoming Section ── */

.certs-block {
  margin-bottom: 50px;
}

.certs-block__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 0.12s);
}

.cert-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.cert-item__check {
  color: var(--accent-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.upcoming-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-accent);
}

.upcoming-card__icon {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.upcoming-card__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.upcoming-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.upcoming-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 134, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 168, 134, 0); }
}

/* ── Contact Section ── */

.section--contact {
  flex-direction: column;
}

.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.contact__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 0.15s);
  cursor: pointer;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease;
}

.contact-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.contact-row:hover {
  background: rgba(108, 99, 255, 0.04);
}

.contact-row__label {
  font-family: 'SimSun', '宋体', 'Noto Serif SC', 'Georgia', serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 48px;
}

.contact-row__text {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-row__copy-hint {
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: auto;
  white-space: nowrap;
}

.contact-row:hover .contact-row__copy-hint {
  opacity: 0.6;
}

.contact-row.copied .contact-row__copy-hint {
  opacity: 1;
  color: var(--accent-secondary);
}

.contact-row.copied .contact-row__copy-hint::after {
  content: '';
}

.contact-row.copied .contact-row__text {
  color: var(--accent-secondary);
}

.contact__motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 500px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 20px;
}

.contact__copyright {
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .section {
    padding: 80px 24px;
  }

  .section--about {
    padding: 0;
    min-height: auto;
  }

  .about-layout {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
  }

  .about-avatar {
    width: 130px;
    height: 130px;
    position: relative;
  }

  .about-radial {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .about-radial-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .project-card {
    padding: 24px;
  }

  .timeline-item__year {
    width: 30%;
    font-size: 0.82rem;
    padding-right: 20px;
  }

  .timeline-item__event {
    width: 70%;
    padding-left: 20px;
    font-size: 0.9rem;
  }

  .timeline-item__dot {
    left: 30%;
  }

  .timeline__line {
    left: 30%;
  }

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

@media (max-width: 480px) {
  .about-avatar {
    width: 100px;
    height: 100px;
  }

  .about-radial-card {
    max-width: 260px;
    padding: 10px 16px;
  }

  .hero__name {
    font-size: 2.8rem;
  }

  .project-card__header {
    flex-direction: column;
  }
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(245, 246, 250, 0.9),
    rgba(245, 246, 250, 0.3)
  );
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .navbar {
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 23, 0.9),
    rgba(15, 15, 23, 0.3)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(245, 246, 250, 0.95),
    rgba(245, 246, 250, 0.6)
  );
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 23, 0.95),
    rgba(15, 15, 23, 0.6)
  );
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar__brand {
  font-family: 'SimSun', '宋体', 'Noto Serif SC', 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

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

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  font-family: 'SimSun', '宋体', 'Noto Serif SC', 'Georgia', serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border: none;
  background: none;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.04em;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.4s ease, left 0.4s ease;
}

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

.navbar__link:hover::after {
  width: 60%;
  left: 20%;
}

.navbar__link.active {
  color: var(--accent);
}

.navbar__link.active::after {
  width: 60%;
  left: 20%;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar__links {
    gap: 2px;
  }

  .navbar__link {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .navbar__brand {
    font-size: 0.9rem;
  }

  .navbar__link {
    font-size: 0.72rem;
    padding: 5px 7px;
  }
}

/* ── Theme Toggle ── */

.theme-toggle {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px var(--shadow-accent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--shadow-accent);
  transform: scale(1.08);
}

.theme-toggle__icon--sun,
.theme-toggle__icon--moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.section--alt {
  transition: background-color 0.4s ease;
}

.info-card,
.project-card,
.award-card,
.upcoming-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}
