* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-border: #bfdbfe;
  --accent-dark-soft: rgba(180, 132, 61, 0.18);
  --accent-dark-border: rgba(244, 213, 141, 0.18);
  --accent-dark-text: #f4d58d;
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #fef3c7, var(--accent-border));
  color: #1f2937;
  transition: background 0.3s, color 0.3s;
}

body.accent-purple {
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #ede9fe;
  --accent-border: #ddd6fe;
}

body.accent-green {
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: #d1fae5;
  --accent-border: #a7f3d0;
}

body.accent-orange {
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #ffedd5;
  --accent-border: #fed7aa;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 24px 0;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.3s, border 0.3s;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #374151;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s;
}

.nav-links a:hover {
  color: white;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-icon-btn,
.theme-quick-btn {
  width: 42px;
  height: 42px;
  border: 0;
  cursor: pointer;
  color: white;
  background: #111827;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: 0.2s;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.settings-icon-btn:hover,
.theme-quick-btn:hover {
  transform: translateY(-2px);
  background: #374151;
}

.settings-panel {
  position: fixed;
  top: 72px;
  right: 72px;
  z-index: 1000;
  width: 320px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(80, 70, 120, 0.18);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.settings-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.settings-section + .settings-section {
  margin-top: 14px;
}

.settings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #222222;
  font-size: 16px;
  font-weight: 800;
}

.settings-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #e98ab3);
}

.settings-title.with-actions {
  justify-content: space-between;
}

.settings-title.with-actions span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-title.with-actions span::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #e98ab3);
}

.settings-title.with-actions::before {
  display: none;
}

.reset-accent {
  border: 0;
  cursor: pointer;
  color: var(--accent);
  background: rgba(155, 135, 245, 0.12);
  border-radius: 8px;
  padding: 6px 9px;
  transition: 0.18s;
}

.theme-segment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.theme-segment button,
.setting-row {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(155, 135, 245, 0.08);
  color: #7e7893;
  font-weight: 700;
  transition: 0.18s;
}

.theme-segment button {
  cursor: pointer;
  text-align: left;
  padding: 9px 12px;
}

.theme-segment button:hover,
.theme-segment button.active,
.setting-row:hover,
.reset-accent:hover {
  transform: translateY(-1px);
  background: rgba(155, 135, 245, 0.18);
  color: var(--accent);
}

.theme-segment button:active,
.reset-accent:active,
.settings-icon-btn:active,
.theme-quick-btn:active,
.color-dot:active,
.toggle-switch:active {
  transform: scale(0.98);
}

.palette-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(155, 135, 245, 0.08);
}

.color-dot {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 50%;
  transition: 0.18s;
}

.color-dot:hover,
.color-dot.active {
  transform: translateY(-1px) scale(1.06);
  border-color: white;
  box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(80, 70, 120, 0.18);
}

.color-dot.blue {
  background: #2563eb;
}

.color-dot.purple {
  background: #9b87f5;
}

.color-dot.green {
  background: #059669;
}

.color-dot.orange {
  background: #e98ab3;
}

.setting-row {
  margin-top: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-switch {
  width: 42px;
  height: 23px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #d8d3e8;
  position: relative;
  transition: 0.18s;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(80, 70, 120, 0.18);
  transition: 0.18s;
}

.toggle-switch.active {
  background: linear-gradient(135deg, var(--accent), #e98ab3);
}

.toggle-switch.active::before {
  transform: translateX(19px);
}

.page {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero,
.profile-card,
.skills,
.projects,
.timeline,
.notes {
  width: 100%;
  scroll-margin-top: 110px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.profile-card,
.skills,
.projects,
.timeline,
.notes {
  margin-top: 28px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-content,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero h1 span,
h1 span {
  color: var(--accent);
}

.intro {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.links a,
.project-card a {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.2s;
  display: inline-block;
  font-weight: 700;
}

.primary-btn,
.links a,
.project-card a {
  color: white;
  background: var(--accent);
}

.secondary-btn {
  color: var(--accent);
  background: var(--accent-soft);
}

.primary-btn:hover,
.links a:hover,
.project-card a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.secondary-btn:hover {
  background: var(--accent-border);
  transform: translateY(-2px);
}

.hero-tags,
.links,
.skill-list,
.project-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.skill-list span,
.project-tags span {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.avatar-card,
.status-card {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 22px;
}

.avatar-card {
  text-align: center;
}

.avatar-ring {
  width: 146px;
  height: 146px;
  margin: 0 auto 16px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff4d4d,
    #ffb84d,
    #ffff66,
    #5cff8d,
    #4dd2ff,
    #8b5cf6,
    #ff4dd8,
    #ff4d4d
  );
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.28);
  animation: rainbowSpin 8s linear infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
  border: 5px solid white;
}

@keyframes rainbowSpin {
  to {
    transform: rotate(360deg);
  }
}

.avatar-ring .avatar {
  animation: avatarReverseSpin 8s linear infinite;
}

@keyframes avatarReverseSpin {
  to {
    transform: rotate(-360deg);
  }
}

.avatar-card h2 {
  margin: 0 0 8px;
}

.avatar-card p {
  margin: 0;
  color: #4b5563;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.status-card span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 13px;
}

.status-card strong {
  font-size: 17px;
}

.status-card.wide {
  grid-column: 1 / -1;
}

.tag {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.section {
  margin-top: 28px;
}

.section h2,
.section-title h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.about-grid h3 {
  margin-top: 0;
}

ul {
  padding-left: 22px;
  line-height: 1.9;
}

p {
  line-height: 1.8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.project-card {
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  transition: background 0.3s, border 0.3s, transform 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.project-card p {
  color: #4b5563;
}

.timeline-list {
  margin-top: 24px;
  border-left: 3px solid var(--accent-border);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 4px solid white;
  border-radius: 50%;
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.timeline-item h3 {
  margin: 8px 0 8px;
}

.timeline-item p {
  margin-bottom: 0;
  color: #4b5563;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 36px;
  text-align: center;
  color: #4b5563;
}

body.dark {
  background: linear-gradient(135deg, #121212, #24201b);
  color: #e7e2d9;
}

body.dark .navbar,
body.dark .hero,
body.dark .profile-card,
body.dark .skills,
body.dark .projects,
body.dark .timeline,
body.dark .notes {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

body.dark .hero::before {
  background: radial-gradient(circle, rgba(244, 213, 141, 0.16), transparent 65%);
}

body.dark .nav-links a,
body.dark .intro,
body.dark .avatar-card p,
body.dark .status-card span,
body.dark .project-card p,
body.dark .timeline-item p,
body.dark .site-footer {
  color: #cfc7bb;
}

body.dark .tag,
body.dark .hero-tags span,
body.dark .skill-list span,
body.dark .project-tags span {
  color: var(--accent-dark-text);
  background: var(--accent-dark-soft);
  border-color: var(--accent-dark-border);
}

body.dark .secondary-btn {
  color: var(--accent-dark-text);
  background: var(--accent-dark-soft);
}

body.dark .avatar-card,
body.dark .status-card,
body.dark .project-card,
body.dark .timeline-item {
  background: rgba(38, 36, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .timeline-list {
  border-left-color: rgba(244, 213, 141, 0.35);
}

body.dark .timeline-item::before {
  background: var(--accent-dark-text);
  border-color: #1c1c1c;
}

body.dark .timeline-date {
  color: var(--accent-dark-text);
}

body.dark .settings-icon-btn,
body.dark .theme-quick-btn {
  color: #111827;
  background: #facc15;
}

body.dark .settings-panel {
  background: rgba(38, 36, 33, 0.86);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body.dark .settings-title {
  color: #e7e2d9;
}

body.dark .theme-segment button,
body.dark .setting-row {
  color: #cfc7bb;
  background: rgba(244, 213, 141, 0.08);
}

body.dark .theme-segment button:hover,
body.dark .theme-segment button.active,
body.dark .setting-row:hover,
body.dark .reset-accent:hover {
  color: var(--accent-dark-text);
  background: rgba(244, 213, 141, 0.16);
}

body.dark .palette-options {
  background: rgba(244, 213, 141, 0.08);
}

@media (max-width: 860px) {
  .hero,
  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .settings-panel {
    top: 72px;
    left: 50%;
    right: auto;
    width: calc(100vw - 32px);
    max-width: 320px;
    transform: translateX(-50%) translateY(-10px);
  }

  .settings-panel.open {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 16px;
  }

  .hero,
  .profile-card,
  .skills,
  .projects,
  .timeline,
  .notes {
    padding: 24px;
  }

  .hero {
    min-height: auto;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* Visual polish: soft glow background + subtle motion */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite alternate;
}

body::before {
  left: -120px;
  top: 120px;
  background: var(--accent-soft);
}

body::after {
  right: -120px;
  bottom: 80px;
  background: var(--accent-border);
  animation-delay: 1.5s;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(24px, -20px, 0) scale(1.08);
  }
}

.hero,
.profile-card,
.skills,
.projects,
.timeline,
.notes {
  animation: fadeUp 0.7s ease both;
}

.profile-card {
  animation-delay: 0.05s;
}

.skills {
  animation-delay: 0.1s;
}

.projects {
  animation-delay: 0.15s;
}

.timeline {
  animation-delay: 0.2s;
}

.notes {
  animation-delay: 0.25s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero:hover,
.profile-card:hover,
.skills:hover,
.projects:hover,
.timeline:hover,
.notes:hover {
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.avatar-card,
.status-card,
.project-card,
.timeline-item {
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.2s;
}

.avatar-card:hover,
.status-card:hover,
.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.14);
}

.project-card:hover {
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.16);
}

.primary-btn,
.secondary-btn,
.links a,
.project-card a,
.theme-icon-btn,
.palette-icon-btn {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

body.dark::before {
  background: rgba(244, 213, 141, 0.2);
}

body.dark::after {
  background: rgba(124, 58, 237, 0.16);
}

body.dark .hero:hover,
body.dark .profile-card:hover,
body.dark .skills:hover,
body.dark .projects:hover,
body.dark .timeline:hover,
body.dark .notes:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(244, 213, 141, 0.12);
}

body.dark .avatar-card:hover,
body.dark .status-card:hover,
body.dark .project-card:hover,
body.dark .timeline-item:hover {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

body.glow-off::before,
body.glow-off::after {
  display: none;
}

body.ring-off .avatar-ring {
  background: transparent;
  box-shadow: none;
  animation: none;
}

body.ring-off .avatar-ring .avatar {
  animation: none;
}

/* Project detail page */
.project-detail-page {
  max-width: 1100px;
}

.project-hero,
.detail-section {
  width: 100%;
  scroll-margin-top: 110px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
}

.project-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.project-hero > * {
  position: relative;
  z-index: 1;
}

.project-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.project-summary-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid #e5e7eb;
}

.project-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #7e7893;
  font-weight: 700;
}

.project-summary-card strong {
  display: block;
  font-size: 26px;
  color: var(--accent);
}

.detail-section {
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.feature-card {
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.14);
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  color: #4b5563;
}

body.dark .project-hero,
body.dark .detail-section {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

body.dark .project-hero::before {
  background: radial-gradient(circle, rgba(244, 213, 141, 0.16), transparent 68%);
}

body.dark .project-summary-card,
body.dark .feature-card {
  background: rgba(38, 36, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .project-summary-card span,
body.dark .feature-card p {
  color: #cfc7bb;
}

body.dark .project-summary-card strong {
  color: var(--accent-dark-text);
}

@media (max-width: 860px) {
  .project-hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .project-hero,
  .detail-section {
    padding: 24px;
  }
}

/* Notes page */
.notes-page {
  max-width: 1100px;
}

.notes-hero,
.notes-grid-section,
.notes-log-section {
  width: 100%;
  scroll-margin-top: 110px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
}

.notes-hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.notes-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.notes-hero > * {
  position: relative;
  z-index: 1;
}

.notes-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.notes-summary-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid #e5e7eb;
}

.notes-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #7e7893;
  font-weight: 700;
}

.notes-summary-card strong {
  display: block;
  font-size: 24px;
  color: var(--accent);
}

.notes-grid-section,
.notes-log-section {
  margin-top: 28px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.note-card {
  scroll-margin-top: 110px;
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.2s;
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.14);
}

.note-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.note-card h3 {
  margin: 0 0 10px;
}

.note-card p,
.notes-summary-card p {
  color: #4b5563;
}

.note-card ul {
  margin-bottom: 0;
}

body.dark .notes-hero,
body.dark .notes-grid-section,
body.dark .notes-log-section {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

body.dark .notes-hero::before {
  background: radial-gradient(circle, rgba(244, 213, 141, 0.16), transparent 68%);
}

body.dark .notes-summary-card,
body.dark .note-card {
  background: rgba(38, 36, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .notes-summary-card span,
body.dark .notes-summary-card p,
body.dark .note-card p {
  color: #cfc7bb;
}

body.dark .notes-summary-card strong,
body.dark .note-icon {
  color: var(--accent-dark-text);
}

body.dark .note-icon {
  background: var(--accent-dark-soft);
}

@media (max-width: 860px) {
  .notes-hero,
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .notes-hero,
  .notes-grid-section,
  .notes-log-section {
    padding: 24px;
  }
}

/* Article note pages */
.article-page {
  max-width: 980px;
}

.article-hero,
.article-section {
  width: 100%;
  scroll-margin-top: 110px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
}

.article-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.article-section {
  margin-top: 28px;
}

.article-section pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: #111827;
  color: #e5e7eb;
  line-height: 1.7;
}

.article-section code {
  font-family: Consolas, "Courier New", monospace;
}

.article-section p code,
.article-section li code {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.article-card {
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.14);
}

.article-card h3 {
  margin-top: 0;
}

.note-link {
  margin-top: 18px;
  text-decoration: none;
  color: white;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.2s;
  display: inline-block;
  font-weight: 700;
}

.note-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

body.dark .article-hero,
body.dark .article-section {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

body.dark .article-card {
  background: rgba(38, 36, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .article-section p code,
body.dark .article-section li code {
  color: var(--accent-dark-text);
  background: var(--accent-dark-soft);
}

@media (max-width: 860px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .article-hero,
  .article-section {
    padding: 24px;
  }
}

/* Homepage polish */
.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}

.hero-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: #7e7893;
  font-size: 14px;
  font-weight: 700;
}

.about-cards {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.showcase-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid #e5e7eb;
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.2s;
}

.about-card:hover,
.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.14);
}

.about-icon,
.showcase-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.about-card h3,
.showcase-card h3 {
  margin: 0 0 10px;
}

.about-card p,
.showcase-card p {
  margin-bottom: 0;
  color: #4b5563;
}

.skill-cloud span:nth-child(2n) {
  transform: translateY(4px);
}

.skill-cloud span:nth-child(3n) {
  transform: translateY(-3px);
}

.showcase {
  width: 100%;
  scroll-margin-top: 110px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.showcase-card.large {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), var(--accent-soft));
}

body.dark .hero-stats div,
body.dark .about-card,
body.dark .showcase,
body.dark .showcase-card {
  background: rgba(38, 36, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .hero-stats span,
body.dark .about-card p,
body.dark .showcase-card p {
  color: #cfc7bb;
}

body.dark .hero-stats strong,
body.dark .about-icon,
body.dark .showcase-card span {
  color: var(--accent-dark-text);
}

body.dark .about-icon,
body.dark .showcase-card span {
  background: var(--accent-dark-soft);
}

body.dark .showcase-card.large {
  background: linear-gradient(135deg, rgba(38, 36, 33, 0.92), rgba(244, 213, 141, 0.08));
}

@media (max-width: 860px) {
  .hero-stats,
  .about-cards,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .skill-cloud span:nth-child(n) {
    transform: none;
  }
}

@media (max-width: 600px) {
  .showcase {
    padding: 24px;
  }
}

/* Stronger glassmorphism tuning */
.navbar,
.hero,
.profile-card,
.skills,
.showcase,
.projects,
.timeline,
.notes,
.project-hero,
.detail-section,
.notes-hero,
.notes-grid-section,
.notes-log-section,
.article-hero,
.article-section {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 70px rgba(80, 70, 120, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.avatar-card,
.status-card,
.about-card,
.showcase-card,
.project-card,
.timeline-item,
.notes-summary-card,
.note-card,
.project-summary-card,
.feature-card,
.article-card,
.hero-stats div {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 14px 40px rgba(80, 70, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.settings-panel {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 22px 60px rgba(80, 70, 120, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}

.theme-segment button,
.setting-row,
.palette-options {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero::after,
.showcase::after,
.profile-card::after,
.projects::after,
.skills::after,
.timeline::after,
.notes::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 38%);
  opacity: 0.75;
}

.hero,
.profile-card,
.skills,
.showcase,
.projects,
.timeline,
.notes {
  position: relative;
  overflow: hidden;
}

.hero > *,
.profile-card > *,
.skills > *,
.showcase > *,
.projects > *,
.timeline > *,
.notes > * {
  position: relative;
  z-index: 1;
}

body.dark .navbar,
body.dark .hero,
body.dark .profile-card,
body.dark .skills,
body.dark .showcase,
body.dark .projects,
body.dark .timeline,
body.dark .notes,
body.dark .project-hero,
body.dark .detail-section,
body.dark .notes-hero,
body.dark .notes-grid-section,
body.dark .notes-log-section,
body.dark .article-hero,
body.dark .article-section {
  background: rgba(28, 28, 28, 0.48);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
}

body.dark .avatar-card,
body.dark .status-card,
body.dark .about-card,
body.dark .showcase-card,
body.dark .project-card,
body.dark .timeline-item,
body.dark .notes-summary-card,
body.dark .note-card,
body.dark .project-summary-card,
body.dark .feature-card,
body.dark .article-card,
body.dark .hero-stats div {
  background: rgba(38, 36, 33, 0.48);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

body.dark .settings-panel {
  background: rgba(38, 36, 33, 0.56);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .hero::after,
body.dark .showcase::after,
body.dark .profile-card::after,
body.dark .projects::after,
body.dark .skills::after,
body.dark .timeline::after,
body.dark .notes::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 38%);
}

/* Glass transparency adjustment */
.navbar,
.hero,
.profile-card,
.skills,
.showcase,
.projects,
.timeline,
.notes,
.project-hero,
.detail-section,
.notes-hero,
.notes-grid-section,
.notes-log-section,
.article-hero,
.article-section {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(30px) saturate(1.45);
  -webkit-backdrop-filter: blur(30px) saturate(1.45);
}

.avatar-card,
.status-card,
.about-card,
.showcase-card,
.project-card,
.timeline-item,
.notes-summary-card,
.note-card,
.project-summary-card,
.feature-card,
.article-card,
.hero-stats div {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.settings-panel {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
}

body.dark .navbar,
body.dark .hero,
body.dark .profile-card,
body.dark .skills,
body.dark .showcase,
body.dark .projects,
body.dark .timeline,
body.dark .notes,
body.dark .project-hero,
body.dark .detail-section,
body.dark .notes-hero,
body.dark .notes-grid-section,
body.dark .notes-log-section,
body.dark .article-hero,
body.dark .article-section {
  background: rgba(28, 28, 28, 0.34);
  backdrop-filter: blur(30px) saturate(1.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
}

body.dark .avatar-card,
body.dark .status-card,
body.dark .about-card,
body.dark .showcase-card,
body.dark .project-card,
body.dark .timeline-item,
body.dark .notes-summary-card,
body.dark .note-card,
body.dark .project-summary-card,
body.dark .feature-card,
body.dark .article-card,
body.dark .hero-stats div {
  background: rgba(38, 36, 33, 0.34);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

body.dark .settings-panel {
  background: rgba(38, 36, 33, 0.38);
}

/* Surface mode: glass / solid */
.surface-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.surface-segment button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  color: #7e7893;
  background: rgba(255, 255, 255, 0.32);
  font-weight: 700;
  transition: 0.18s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.surface-segment button:hover,
.surface-segment button.active {
  transform: translateY(-1px);
  color: var(--accent);
  background: rgba(155, 135, 245, 0.18);
}

.surface-segment button:active {
  transform: scale(0.98);
}

body.surface-solid .navbar,
body.surface-solid .hero,
body.surface-solid .profile-card,
body.surface-solid .skills,
body.surface-solid .showcase,
body.surface-solid .projects,
body.surface-solid .timeline,
body.surface-solid .notes,
body.surface-solid .project-hero,
body.surface-solid .detail-section,
body.surface-solid .notes-hero,
body.surface-solid .notes-grid-section,
body.surface-solid .notes-log-section,
body.surface-solid .article-hero,
body.surface-solid .article-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.surface-solid .avatar-card,
body.surface-solid .status-card,
body.surface-solid .about-card,
body.surface-solid .showcase-card,
body.surface-solid .project-card,
body.surface-solid .timeline-item,
body.surface-solid .notes-summary-card,
body.surface-solid .note-card,
body.surface-solid .project-summary-card,
body.surface-solid .feature-card,
body.surface-solid .article-card,
body.surface-solid .hero-stats div {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.surface-solid .settings-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 50px rgba(80, 70, 120, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.surface-solid.dark .navbar,
body.surface-solid.dark .hero,
body.surface-solid.dark .profile-card,
body.surface-solid.dark .skills,
body.surface-solid.dark .showcase,
body.surface-solid.dark .projects,
body.surface-solid.dark .timeline,
body.surface-solid.dark .notes,
body.surface-solid.dark .project-hero,
body.surface-solid.dark .detail-section,
body.surface-solid.dark .notes-hero,
body.surface-solid.dark .notes-grid-section,
body.surface-solid.dark .notes-log-section,
body.surface-solid.dark .article-hero,
body.surface-solid.dark .article-section {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.surface-solid.dark .avatar-card,
body.surface-solid.dark .status-card,
body.surface-solid.dark .about-card,
body.surface-solid.dark .showcase-card,
body.surface-solid.dark .project-card,
body.surface-solid.dark .timeline-item,
body.surface-solid.dark .notes-summary-card,
body.surface-solid.dark .note-card,
body.surface-solid.dark .project-summary-card,
body.surface-solid.dark .feature-card,
body.surface-solid.dark .article-card,
body.surface-solid.dark .hero-stats div {
  background: rgba(38, 36, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

body.dark .surface-segment button {
  color: #cfc7bb;
  background: rgba(244, 213, 141, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .surface-segment button:hover,
body.dark .surface-segment button.active {
  color: var(--accent-dark-text);
  background: rgba(244, 213, 141, 0.16);
}

/* Surface mode: soft translucent */
.surface-segment {
  grid-template-columns: 1fr;
}

body.surface-soft .navbar,
body.surface-soft .hero,
body.surface-soft .profile-card,
body.surface-soft .skills,
body.surface-soft .showcase,
body.surface-soft .projects,
body.surface-soft .timeline,
body.surface-soft .notes,
body.surface-soft .project-hero,
body.surface-soft .detail-section,
body.surface-soft .notes-hero,
body.surface-soft .notes-grid-section,
body.surface-soft .notes-log-section,
body.surface-soft .article-hero,
body.surface-soft .article-section {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 22px 64px rgba(80, 70, 120, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
}

body.surface-soft .avatar-card,
body.surface-soft .status-card,
body.surface-soft .about-card,
body.surface-soft .showcase-card,
body.surface-soft .project-card,
body.surface-soft .timeline-item,
body.surface-soft .notes-summary-card,
body.surface-soft .note-card,
body.surface-soft .project-summary-card,
body.surface-soft .feature-card,
body.surface-soft .article-card,
body.surface-soft .hero-stats div {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 14px 40px rgba(80, 70, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

body.surface-soft .settings-panel {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow:
    0 20px 56px rgba(80, 70, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

body.surface-soft.dark .navbar,
body.surface-soft.dark .hero,
body.surface-soft.dark .profile-card,
body.surface-soft.dark .skills,
body.surface-soft.dark .showcase,
body.surface-soft.dark .projects,
body.surface-soft.dark .timeline,
body.surface-soft.dark .notes,
body.surface-soft.dark .project-hero,
body.surface-soft.dark .detail-section,
body.surface-soft.dark .notes-hero,
body.surface-soft.dark .notes-grid-section,
body.surface-soft.dark .notes-log-section,
body.surface-soft.dark .article-hero,
body.surface-soft.dark .article-section {
  background: rgba(28, 28, 28, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

body.surface-soft.dark .avatar-card,
body.surface-soft.dark .status-card,
body.surface-soft.dark .about-card,
body.surface-soft.dark .showcase-card,
body.surface-soft.dark .project-card,
body.surface-soft.dark .timeline-item,
body.surface-soft.dark .notes-summary-card,
body.surface-soft.dark .note-card,
body.surface-soft.dark .project-summary-card,
body.surface-soft.dark .feature-card,
body.surface-soft.dark .article-card,
body.surface-soft.dark .hero-stats div {
  background: rgba(38, 36, 33, 0.58);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

body.surface-soft.dark .settings-panel {
  background: rgba(38, 36, 33, 0.62);
}

/* Mobile experience polish */
@media (max-width: 760px) {
  body {
    background-attachment: fixed;
  }

  .site-header {
    padding: 10px 12px 0;
  }

  .navbar {
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.22);
  }

  .nav-actions {
    position: absolute;
    top: 10px;
    right: 12px;
    gap: 8px;
  }

  .settings-icon-btn,
  .theme-quick-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .settings-panel {
    top: 74px;
    width: calc(100vw - 24px);
    max-width: 360px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .page {
    padding: 28px 12px;
  }

  .hero,
  .project-hero,
  .notes-hero {
    gap: 22px;
  }

  .hero h1,
  .project-hero h1,
  .notes-hero h1,
  .article-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
    letter-spacing: -1px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-btn,
  .secondary-btn,
  .links a,
  .project-card a,
  .note-link {
    padding: 9px 13px;
    font-size: 14px;
  }

  .hero-tags,
  .skill-list,
  .project-tags,
  .links {
    gap: 8px;
  }

  .hero-tags span,
  .skill-list span,
  .project-tags span {
    padding: 7px 11px;
    font-size: 13px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 14px;
  }

  .avatar-ring {
    width: 132px;
    height: 132px;
  }

  .avatar-card,
  .status-card,
  .about-card,
  .showcase-card,
  .project-card,
  .timeline-item,
  .note-card,
  .feature-card,
  .article-card {
    padding: 18px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .timeline-list {
    padding-left: 18px;
  }

  .timeline-item::before {
    left: -28px;
  }

  .site-footer {
    padding: 0 16px 28px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .navbar {
    padding-top: 54px;
  }

  .nav-actions {
    top: 12px;
  }

  .hero,
  .profile-card,
  .skills,
  .showcase,
  .projects,
  .timeline,
  .notes,
  .project-hero,
  .detail-section,
  .notes-hero,
  .notes-grid-section,
  .notes-log-section,
  .article-hero,
  .article-section {
    border-radius: 22px;
    padding: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1,
  .project-hero h1,
  .notes-hero h1,
  .article-hero h1 {
    font-size: 36px;
  }

  .hero-actions,
  .links {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .links a,
  .project-card a,
  .note-link {
    text-align: center;
  }

  .settings-panel {
    top: 66px;
    padding: 14px;
  }

  .surface-segment,
  .theme-segment {
    gap: 7px;
  }

  .palette-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-dot {
    width: 34px;
    height: 34px;
    justify-self: center;
  }

  .timeline-list {
    border-left-width: 2px;
  }

  .timeline-item::before {
    width: 13px;
    height: 13px;
    left: -25px;
    border-width: 3px;
  }
}
