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

:root {
  --orange: #e85d04;
  --orange-light: #f48c06;
  --white: #ffffff;
  --cream: #fffaf5;
  --dark: #1a1a1a;
  --dark-2: #2d2d2d;
  --gray: #666666;
  --line: rgba(232, 93, 4, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--dark);
  background: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232, 93, 4, 0.1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
}

.dark-page .site-nav,
.about-page .site-nav,
.ai-page .site-nav {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 800;
}

.dark-page .logo,
.about-page .logo,
.ai-page .logo,
.dark-page .nav-links a,
.about-page .nav-links a,
.ai-page .nav-links a {
  color: var(--white);
}

.logo span,
.nav-links a.active,
.nav-links a:hover {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 2rem);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: rgba(26, 26, 26, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-menu-item {
  position: relative;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(232, 93, 4, 0.22);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 3.2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  color: rgba(26, 26, 26, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  background: rgba(232, 93, 4, 0.1);
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: '▾';
  color: var(--orange);
  font-size: 0.68rem;
}

.dark-page .language-menu summary,
.about-page .language-menu summary,
.ai-page .language-menu summary {
  color: var(--white);
}

.language-options {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 120;
  display: grid;
  min-width: 8.8rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 45px rgba(26, 26, 26, 0.14);
}

.language-options a,
.dark-page .language-options a,
.about-page .language-options a,
.ai-page .language-options a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--dark);
  font-size: 0.82rem;
}

.language-options a::after {
  display: none;
}

.language-options a.active,
.language-options a:hover {
  background: rgba(232, 93, 4, 0.1);
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(-45deg, #fff5eb, #ffe8d6, #fff, #ffecd2);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.hero-tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(232, 93, 4, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-content h1 {
  display: grid;
  gap: 0.02em;
  max-width: min(100%, 720px);
  margin-bottom: 1.1rem;
  color: var(--dark);
  font-size: clamp(2.35rem, 3.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-content {
  min-width: 0;
}

.hero-content .highlight {
  display: block;
  color: var(--orange);
}

.hero-content p {
  max-width: 640px;
  margin-bottom: 2rem;
  color: var(--gray);
  font-size: 1.14rem;
  line-height: 1.85;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: min(100%, 480px);
  aspect-ratio: 4 / 5;
  border: 6px solid var(--white);
  border-radius: 10px;
  object-fit: cover;
  object-position: 62% 50%;
  box-shadow: 0 38px 92px rgba(26, 26, 26, 0.24);
}

.shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shape-1 {
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.3), rgba(244, 140, 6, 0.1));
  animation: morph 8s ease-in-out infinite, float-1 6s ease-in-out infinite;
}

.shape-2 {
  bottom: -100px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(255, 200, 150, 0.4), rgba(232, 93, 4, 0.15));
  animation: morph 10s ease-in-out infinite reverse, float-2 8s ease-in-out infinite;
}

.shape-3 {
  top: 40%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.2), transparent);
  animation: morph 12s ease-in-out infinite, float-3 10s ease-in-out infinite;
}

.shape-4 {
  top: 20%;
  right: 20%;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 180, 100, 0.3), transparent);
  animation: morph 9s ease-in-out infinite reverse, float-1 7s ease-in-out infinite reverse;
}

.grid-lines,
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.1), transparent);
  animation: scan-line 8s linear infinite;
}

.grid-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.grid-line:nth-child(2) { top: 40%; animation-delay: 2s; }
.grid-line:nth-child(3) { top: 60%; animation-delay: 4s; }
.grid-line:nth-child(4) { top: 80%; animation-delay: 6s; }

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.42;
  animation: rise 12s linear infinite;
}

.particle:nth-child(odd) {
  width: 5px;
  height: 5px;
  opacity: 0.32;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.55rem;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--orange-light);
  box-shadow: 0 10px 30px rgba(232, 93, 4, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
}

.section-header p {
  max-width: 720px;
  margin: 0.8rem auto 0;
  color: var(--gray);
}

.experience-section,
.projects-section,
.dark-page {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--white);
}

.experience-section {
  position: relative;
  overflow: hidden;
}

.experience-section::before,
.dark-grid-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(232, 93, 4, 0.15) 0%, transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(244, 140, 6, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.experience-section > .container,
.dark-grid-header > .container {
  position: relative;
  z-index: 1;
}

.experience-section .section-title,
.projects-section .section-title,
.dark-page .section-title {
  color: var(--white);
}

.exp-grid,
.skills-grid,
.projects-grid,
.contact-grid,
.post-grid,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.exp-card,
.skill-card,
.project-card,
.contact-card,
.post-card,
.summary-card,
.timeline-card,
.content-section,
.cert-card,
.plain-card {
  border: 1px solid rgba(232, 93, 4, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(26, 26, 26, 0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.exp-card,
.project-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.exp-card-inner,
.skill-card,
.project-card,
.contact-card,
.post-card,
.summary-card,
.timeline-card,
.content-section,
.cert-card,
.plain-card {
  padding: 1.5rem;
}

.exp-card:hover,
.skill-card:hover,
.project-card:hover,
.contact-card:hover,
.post-card:hover,
.cert-card:hover,
.plain-card:hover {
  border-color: rgba(232, 93, 4, 0.5);
  box-shadow: 0 20px 55px rgba(232, 93, 4, 0.16);
  transform: translateY(-5px);
}

.timeline {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: 30px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), var(--orange-light), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 86px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 18px;
  width: 24px;
  height: 24px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 0 22px rgba(232, 93, 4, 0.55);
  transition: transform 0.25s, box-shadow 0.25s;
}

.timeline-item:hover::before {
  transform: scale(1.18);
  box-shadow: 0 0 34px rgba(232, 93, 4, 0.82);
}

.experience-section .timeline-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  backdrop-filter: blur(12px);
  transition: transform 0.35s, border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.experience-section .timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.18), transparent 34%);
  opacity: 0;
  transition: opacity 0.35s;
}

.experience-section .timeline-card > * {
  position: relative;
  z-index: 1;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(232, 93, 4, 0.8);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(232, 93, 4, 0.18);
  transform: translateX(10px);
}

.timeline-item:hover .timeline-card::before {
  opacity: 1;
}

.exp-header,
.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exp-title,
.timeline-title,
.skill-card h3,
.project-card h3,
.post-card h3 {
  color: var(--dark);
  font-size: 1.16rem;
  font-weight: 800;
}

.exp-card .exp-title,
.project-card h3,
.experience-section .timeline-title {
  color: var(--white);
}

.exp-company,
.timeline-company,
.post-card p,
.project-card p,
.skill-card p {
  color: var(--gray);
}

.exp-card .exp-company,
.exp-desc,
.project-card p {
  color: rgba(255, 255, 255, 0.72);
}

.experience-section .timeline-company {
  color: var(--orange-light);
  font-weight: 700;
}

.timeline-summary,
.timeline-list {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.timeline-summary {
  margin-bottom: 0.95rem;
}

.timeline-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.timeline-list li {
  position: relative;
  padding-left: 1.25rem;
}

.timeline-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.timeline-list a {
  color: rgba(255, 255, 255, 0.86);
}

.timeline-list a:hover {
  color: var(--orange-light);
}

.exp-date,
.timeline-date,
.post-date {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
}

.experience-section .timeline-date {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  white-space: nowrap;
}

.exp-tags,
.tags,
.project-tags,
.post-tags,
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.exp-tag,
.tag,
.project-tag,
.post-tag,
.topic {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(232, 93, 4, 0.28);
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.skills-section,
.cert-section,
.summary-section,
.edu-section {
  background: var(--cream);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.path-card {
  display: block;
  min-height: 210px;
}

.path-card > span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 900;
}

.path-card h3 {
  margin-bottom: 0.75rem;
}

.number-list {
  counter-reset: item;
}

.contact-section {
  background: linear-gradient(-45deg, #fff5eb, #ffe8d6, #fff, #ffecd2);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.contact-card {
  display: block;
  color: var(--dark);
  text-align: center;
}

.contact-card svg,
.project-icon,
.cert-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  color: var(--orange);
}

.contact-card h4,
.cert-card h4 {
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-weight: 800;
}

.cert-card h3 {
  margin: 0.65rem 0 0.4rem;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.cert-card p {
  color: var(--gray);
  line-height: 1.7;
}

.contact-card p {
  color: var(--gray);
  overflow-wrap: anywhere;
}

.contact-cta {
  margin-top: 3rem;
  text-align: center;
}

.contact-email {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--orange);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.page-header,
.resume-header {
  padding: 9rem 2rem 5rem;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--white);
  text-align: center;
}

.dark-grid-header {
  position: relative;
  overflow: hidden;
}

.dark-grid-header .shape {
  opacity: 0.55;
}

.page-header h1,
.resume-header h1 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
}

.page-header p,
.resume-header p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.14rem;
}

.about-page {
  color: var(--dark);
}

.world-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.54)),
    url('/assets/img/about/adventure-mountain.jpg') center center / cover no-repeat;
}

.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 2rem;
  color: var(--white);
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.about-hero p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.about-page .content-wrapper {
  padding-bottom: 0;
}

.content-section {
  max-width: 920px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.content-section:first-child {
  margin-top: -5rem;
}

.content-section h2 {
  margin-bottom: 1.25rem;
  color: var(--orange);
  font-size: 1.8rem;
  font-weight: 800;
}

.content-section h3 {
  margin: 1.2rem 0 0.5rem;
}

.content-section p,
.content-section li {
  color: var(--gray);
  line-height: 1.9;
}

.content-section p + p,
.content-section ul + p {
  margin-top: 0.8rem;
}

.adventure-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem 4rem;
}

.adventure-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(232, 93, 4, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(26, 26, 26, 0.18);
  backdrop-filter: blur(18px);
}

.adventure-card h2 {
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
}

.adventure-card p {
  max-width: 780px;
  margin-bottom: 1.8rem;
  color: var(--gray);
  font-size: 1.08rem;
  line-height: 1.85;
}

.adventure-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 18px 55px rgba(26, 26, 26, 0.16);
}

.content-section ul,
.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.about-intro-section .summary-card {
  text-align: left;
}

.about-intro-section .summary-card p {
  color: var(--gray);
}

.resume-images {
  display: grid;
  gap: 1rem;
}

.resume-actions {
  margin-bottom: 1.5rem;
  text-align: center;
}

.resume-images img {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.blog-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--white);
}

.blog-page .post-grid {
  padding-bottom: 5rem;
}

.post-card {
  display: block;
  color: var(--dark);
}

.dark-page .post-card,
.blog-page .post-card {
  background: rgba(255, 255, 255, 0.92);
}

.post-card h3 {
  margin: 0.4rem 0 0.65rem;
  line-height: 1.35;
}

.article-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 9rem 2rem 5rem;
}

.article-header {
  margin-bottom: 2.2rem;
}

.article-header h1 {
  color: var(--dark);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
}

.article-desc,
.article-meta {
  margin-top: 1rem;
  color: var(--gray);
}

.article-content {
  color: #333333;
  font-size: 1.03rem;
  line-height: 1.9;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2rem 0 1rem;
  color: var(--dark);
  font-weight: 800;
}

.article-content p,
.article-content pre,
.article-content blockquote,
.article-content table {
  margin-bottom: 1.15rem;
}

.article-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #1f2937;
  color: #f8fafc;
}

.article-content code {
  padding: 0.12rem 0.28rem;
  border-radius: 5px;
  background: rgba(232, 93, 4, 0.1);
  color: #ba4a00;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-content blockquote {
  padding-left: 1rem;
  border-left: 4px solid var(--orange);
  color: var(--gray);
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.article-tail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.post-nav a,
.post-nav span {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--orange);
}

.archive-list {
  display: grid;
  gap: 0.8rem;
}

.archive-year {
  margin: 2rem 0 1rem;
  color: var(--orange);
  font-size: 1.8rem;
  font-weight: 800;
}

footer {
  padding: 2rem;
  color: rgba(255, 255, 255, 0.56);
  background: var(--dark);
  text-align: center;
}

.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 50% 40% 60%; }
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 25px) rotate(-3deg); }
  66% { transform: translate(20px, -15px) rotate(3deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.1); }
}

@keyframes scan-line {
  0% { opacity: 0; transform: translateX(-100%); }
  10%, 90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10%, 90% { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 45px rgba(26, 26, 26, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .dark-page .nav-links a,
  .about-page .nav-links a,
  .ai-page .nav-links a {
    display: block;
    padding: 0.75rem;
    color: var(--dark);
  }

  .language-menu-item {
    padding: 0.45rem 0.65rem 0.25rem;
    border-left: 0;
    border-top: 1px solid rgba(232, 93, 4, 0.16);
  }

  .language-menu {
    width: fit-content;
  }

  .language-options {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 13rem;
    margin-top: 0.5rem;
  }

  .hero-container,
  .exp-grid,
  .skills-grid,
  .path-grid,
  .projects-grid,
  .contact-grid,
  .post-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .hero-container {
    text-align: center;
  }

  .hero-tag,
  .section-tag,
  .btn-group {
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    width: min(100%, 320px);
    aspect-ratio: 4 / 5;
  }

  .timeline {
    max-width: 720px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-item::before {
    left: 8px;
  }

  .timeline-item:hover .timeline-card {
    transform: translateX(4px);
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .container,
  .hero-container,
  .article-shell {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .about-hero h1,
  .page-header h1,
  .resume-header h1 {
    font-size: 2.75rem;
  }

  .btn,
  .btn-group {
    width: 100%;
  }

  .exp-header,
  .timeline-header,
  .post-nav {
    grid-template-columns: 1fr;
    display: grid;
  }
}
