:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(10, 18, 31, 0.82);
  --surface: rgba(15, 23, 42, 0.72);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #e7eef8;
  --muted: #9fb0c3;
  --faint: #748299;
  --accent: #48d6c8;
  --accent-2: #f6b93b;
  --accent-3: #ff8a5b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: 1180px;
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(180deg, rgba(9, 16, 27, 0.98), rgba(7, 15, 26, 0.98)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, 0 0;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.32), rgba(7, 17, 31, 0) 18%, rgba(7, 17, 31, 0.2) 100%);
  z-index: -2;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: #fff;
  font-weight: 700;
}

code,
pre {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

canvas#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 88px 0;
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.title-icon {
  color: var(--accent);
  font-size: 0.95rem;
  font-family: "Fira Code", monospace;
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(7, 13, 25, 0.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.nav-container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.1rem;
}

.logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 42px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.72));
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.hero-avatar {
  position: relative;
  width: 126px;
  height: 126px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(72, 214, 200, 0.9), rgba(246, 185, 59, 0.9));
  padding: 2px;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.avatar-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(12, 21, 38, 0.98), rgba(18, 34, 54, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--accent);
  font-size: 1.6rem;
}

.hero-greeting {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 4.8rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.name-char {
  display: inline-block;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  animation: nameFloat 5.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

@keyframes nameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-typewriter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 1.15rem;
  font-family: "Fira Code", monospace;
}

.typewriter-cursor {
  animation: cursorBlink 0.9s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(72, 214, 200, 0.96), rgba(74, 222, 128, 0.9));
  color: #05111d;
}

.btn-outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: wheelMove 1.8s ease-in-out infinite;
}

@keyframes wheelMove {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(10px); opacity: 1; }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.about-text,
.about-info,
.skill-category,
.timeline-card,
.project-card,
.blog-card,
.contact-card,
.article-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text {
  padding: 26px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.info-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  color: var(--muted);
  flex: 0 0 auto;
}

.info-value {
  color: #fff;
  text-align: right;
  font-family: "Fira Code", monospace;
}

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

.skill-category {
  padding: 22px;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-icon,
.project-icon,
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(72, 214, 200, 0.12);
  border: 1px solid rgba(72, 214, 200, 0.18);
  color: var(--accent);
  flex: 0 0 auto;
}

.skill-category h3,
.timeline-title,
.project-card h3,
.blog-card h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: 0;
}

.skill-bar-item + .skill-bar-item {
  margin-top: 14px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(72, 214, 200, 0.95), rgba(246, 185, 59, 0.95));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag,
.tag,
.blog-tag,
.timeline-badge,
.article-tag-full {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #dfe9f5;
  font-size: 0.82rem;
  white-space: nowrap;
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(72, 214, 200, 0.5), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
}

.timeline-item[data-side="left"] {
  padding-right: 28px;
}

.timeline-item[data-side="right"] {
  margin-left: auto;
  padding-left: 28px;
}

.timeline-dot {
  position: absolute;
  top: 26px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(72, 214, 200, 0.12);
}

.timeline-item[data-side="left"] .timeline-dot {
  right: -7px;
}

.timeline-item[data-side="right"] .timeline-dot {
  left: -7px;
}

.timeline-card {
  padding: 22px 22px 20px;
}

.timeline-date {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-family: "Fira Code", monospace;
}

.timeline-title {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.timeline-badge {
  margin-bottom: 12px;
  background: rgba(246, 185, 59, 0.12);
  border-color: rgba(246, 185, 59, 0.2);
  color: #fde7b1;
}

.projects-grid,
.blog-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card,
.blog-card,
.contact-card {
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.project-card:hover,
.blog-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(72, 214, 200, 0.28);
  background: rgba(15, 23, 42, 0.82);
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card-glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 214, 200, 0.16), transparent 70%);
  pointer-events: none;
}

.project-icon {
  margin-bottom: 16px;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.project-tags {
  margin-bottom: 12px;
}

.tag-gold,
.blog-tag,
.article-tag-full {
  background: rgba(246, 185, 59, 0.14);
  border-color: rgba(246, 185, 59, 0.22);
  color: #fbe7b4;
}

.tag-purple {
  background: rgba(72, 214, 200, 0.12);
  border-color: rgba(72, 214, 200, 0.22);
  color: #cef8f4;
}

.tag-blue {
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.22);
  color: #d8f3ff;
}

.tag-green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.22);
  color: #d2ffe0;
}

.tag-orange {
  background: rgba(255, 138, 91, 0.12);
  border-color: rgba(255, 138, 91, 0.22);
  color: #ffd8cc;
}

.tag-cyan {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.22);
  color: #d2fbff;
}

.project-card p:last-child,
.blog-card p:last-child,
.contact-info,
.contact-description {
  margin-bottom: 0;
  color: var(--muted);
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  cursor: pointer;
}

.blog-card-image {
  min-height: 164px;
}

.blog-placeholder-img {
  min-height: 164px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(72, 214, 200, 0.18), rgba(246, 185, 59, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-card-content {
  display: grid;
  gap: 12px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-date {
  color: var(--faint);
  font-size: 0.9rem;
}

.blog-tag {
  background: rgba(72, 214, 200, 0.12);
  color: #d7fbf7;
}

.blog-card h3 {
  font-size: 1.08rem;
}

.blog-read-more {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.contact-content {
  display: grid;
  gap: 20px;
}

.contact-description {
  max-width: 760px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100%;
}

.contact-info {
  display: grid;
  gap: 4px;
}

.contact-label {
  color: var(--faint);
  font-size: 0.86rem;
}

.contact-value {
  color: #fff;
  font-weight: 700;
}

.footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  background: rgba(7, 13, 25, 0.66);
}

.footer-content {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-text,
.footer-copyright {
  color: var(--muted);
  margin: 0;
}

.article-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.article-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.article-modal {
  width: min(920px, 100%);
  max-height: min(84vh, 980px);
  overflow: auto;
  position: relative;
  padding: 30px;
  background: rgba(12, 19, 33, 0.96);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.modal-body {
  padding-top: 12px;
}

.article-header {
  margin-bottom: 24px;
}

.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.article-date,
.article-reading-time {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
}

.article-subtitle {
  margin: 0;
  color: var(--muted);
}

.article-content {
  color: #dbe6f3;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3 {
  margin: 1.8rem 0 0.8rem;
  line-height: 1.3;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1rem 1.4rem;
  padding: 0;
}

.article-content li + li {
  margin-top: 0.4rem;
}

.article-content .article-code,
.article-content pre,
.article-content table {
  width: 100%;
  margin: 1rem 0 1.25rem;
}

.article-code {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  overflow-x: auto;
  color: #f7fbff;
}

.article-table {
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.article-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.article-references {
  color: var(--muted);
}

.article-references li::marker {
  color: var(--accent);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid,
  .blog-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 12px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 13, 25, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 8px;
    transform: none;
  }

  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    width: 100%;
    margin: 0;
    padding: 0 0 0 28px;
  }

  .timeline-dot,
  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot {
    left: 2px;
    right: auto;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .hero-name {
    font-size: 3.4rem;
    gap: 8px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .article-modal {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: min(100%, calc(100% - 28px));
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 28px);
  }

  .hero-avatar {
    width: 104px;
    height: 104px;
  }

  .avatar-placeholder {
    width: 86px;
    height: 86px;
    font-size: 1.35rem;
  }

  .hero-name {
    font-size: 2.7rem;
  }

  .hero-typewriter {
    font-size: 1rem;
  }

  .about-text,
  .skill-category,
  .timeline-card,
  .project-card,
  .blog-card,
  .contact-card {
    padding: 18px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-value {
    text-align: left;
    word-break: break-word;
  }

  .section-title {
    font-size: 1.35rem;
    gap: 10px;
  }

  .article-title {
    font-size: 1.55rem;
  }

  .article-table th,
  .article-table td {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
