* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #1D1E41 0%, #3a5f7d 45%, #68BEA8 100%);
  background-size: 200% 200%;
  animation: gradientShift 18s ease-in-out infinite;
  color: #1D1E41;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
a { color: #1D1E41; }
a:hover { color: #68BEA8; }

/* ---------- Keyframes ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floatBlob { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(28px,-34px) scale(1.08); } 66% { transform: translate(-22px,22px) scale(0.94); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.28); opacity: 0; } }
@keyframes bounceDown { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(10px); } 60% { transform: translateY(5px); } }
@keyframes blinkCursor { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes shimmerText { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Header / Nav ---------- */
header {
  background: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { font-size: 1.6rem; font-weight: 700; color: #1D1E41; }
.nav-links { display: flex; list-style: none; gap: 2.2rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: #1D1E41;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  display: block;
  text-align: center;
}
.nav-links a:hover { color: #68BEA8; background: rgba(104,190,168,0.1); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1D1E41;
  cursor: pointer;
  padding: 0.4rem;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  z-index: 1200;
  background: linear-gradient(90deg, #68BEA8, #E73B64);
  width: 0;
  border-radius: 0 2px 2px 0;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding-top: 70px;
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1 { top: 12%; left: 8%; width: 280px; height: 280px; background: rgba(104,190,168,0.22); filter: blur(60px); animation: floatBlob 11s ease-in-out infinite; }
.blob-2 { bottom: 10%; right: 6%; width: 340px; height: 340px; background: rgba(231,59,100,0.16); filter: blur(70px); animation: floatBlob 14s ease-in-out infinite reverse; }
.blob-3 { top: 55%; left: 55%; width: 180px; height: 180px; background: rgba(255,255,255,0.08); filter: blur(50px); animation: floatBlob 9s ease-in-out infinite; }
.hero-content { position: relative; z-index: 1; }
.profile-wrap { position: relative; margin-bottom: 2rem; display: flex; justify-content: center; }
.profile-ring-wrap { position: relative; width: 200px; height: 200px; }
.pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid rgba(104,190,168,0.8);
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 8px #68BEA8, 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.profile-img:hover { transform: scale(1.05) rotate(2deg); }
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 700;
  animation: fadeInUp 1s ease, shimmerText 7s linear 1.5s infinite;
  background: linear-gradient(90deg, white 40%, #9fe8d6 50%, white 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  color: #68BEA8;
  font-weight: 500;
  animation: fadeInUp 1s ease 0.3s both;
  min-height: 1.6em;
}
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: #68BEA8;
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blinkCursor 1s steps(1) infinite;
}
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s ease;
}
.social-links a:hover { background: #68BEA8; color: white; }
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #E73B64;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  animation: fadeInUp 1s ease 0.9s both;
  transition: all 0.3s ease;
}
.btn-resume:hover {
  background: #c32d56;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(231,59,100,0.3);
}
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  margin-left: -22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 1.5rem;
  text-decoration: none;
  animation: bounceDown 2.2s infinite;
  z-index: 1;
}
.scroll-down:hover { color: #68BEA8; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-white { background: white; }
.section-gray { background: #f8f9fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #1D1E41;
  margin-bottom: 3rem;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  color: #666;
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-top: -2.2rem;
  margin-bottom: 3rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) var(--rd, 0s), transform 0.7s cubic-bezier(0.22,1,0.36,1) var(--rd, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 4rem;
  align-items: center;
}
.about-text { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.8; color: #666; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: #f8f9fa;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.skill-card.reveal { transition: all 0.6s cubic-bezier(0.22,1,0.36,1) var(--rd, 0s); }
.skill-card:hover {
  border-color: #68BEA8;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(104,190,168,0.2);
}
.skill-card i {
  font-size: 2.2rem;
  color: #68BEA8;
  margin-bottom: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.skill-card:hover i { transform: scale(1.25) rotate(-6deg); }
.skill-card .skill-label { font-size: 1.2rem; font-weight: 600; color: #1D1E41; line-height: 1.4; }

/* ---------- Experience ---------- */
.timeline { max-width: 800px; margin: 0 auto; }
.exp-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-left: 4px solid #68BEA8;
}
.exp-card.reveal { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) var(--rd, 0s); }
.exp-card:hover {
  transform: translateX(8px);
  border-left-width: 8px;
  box-shadow: 0 14px 35px rgba(104,190,168,0.18);
}
.exp-card h3 { color: #1D1E41; font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; font-weight: 700; }
.exp-card h4 { color: #68BEA8; margin-bottom: 0.5rem; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; }
.exp-card .dates { color: #666; margin-bottom: 0.5rem; font-size: clamp(0.9rem, 1.8vw, 1.1rem); font-weight: 500; }
.exp-card ul { list-style: none; padding-left: 1rem; }
.exp-card li { color: #666; margin-bottom: 0.6rem; position: relative; font-size: clamp(0.9rem, 1.8vw, 1rem); line-height: 1.6; }
.exp-card li::before { content: '•'; color: #68BEA8; position: absolute; left: -1rem; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}
.project-card:hover { box-shadow: 0 24px 48px rgba(0,0,0,0.18); }
.project-image {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.project-card:hover .project-image { transform: scale(1.07); }
.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,30,65,0.8) 0%, rgba(29,30,65,0.3) 50%);
}
.project-badges { position: relative; z-index: 2; padding: 20px; width: 100%; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.badge-type { background: rgba(231,59,100,0.9); color: white; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.badge-lang { display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 20px; background: rgba(255,255,255,0.92); color: #1D1E41; font-size: 0.72rem; font-weight: 700; }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-body h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); color: #1D1E41; margin-bottom: 1rem; font-weight: 700; }
.project-body p { color: #666; line-height: 1.7; flex-grow: 1; font-size: clamp(0.95rem, 1.8vw, 1.1rem); }

/* ---------- Knowledge Hub (Blog) ---------- */
.hub-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 90px;
  text-align: center;
  color: white;
}
.hub-hero-inner { position: relative; z-index: 1; }
.hub-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 600;
  color: #9fe8d6; margin-bottom: 1.2rem; font-size: 0.95rem;
}
.hub-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.hub-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; }
.hub-footer { background: #1D1E41; color: rgba(255,255,255,0.75); padding: 2rem 0; text-align: center; }
.hub-footer a { color: #68BEA8; text-decoration: none; }
.hub-footer a:hover { color: #9fe8d6; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}
.blog-empty { grid-column: 1 / -1; text-align: center; color: #888; font-size: 1.05rem; padding: 2rem 0; }
.blog-empty code.inline { background: #eef1f5; padding: 0.1rem 0.4rem; border-radius: 5px; }
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.blog-card.reveal { transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) var(--rd,0s), transform 0.7s cubic-bezier(0.22,1,0.36,1) var(--rd,0s); }
.blog-card.reveal.visible { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease; }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 22px 44px rgba(0,0,0,0.14); }
.blog-cover {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.blog-cover--none {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1D1E41, #68BEA8);
  color: rgba(255,255,255,0.85); font-size: 2.6rem;
}
.blog-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.blog-cat { background: rgba(104,190,168,0.15); color: #2f8a72; padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.blog-date { color: #999; font-size: 0.82rem; }
.blog-body h3 { font-size: 1.35rem; color: #1D1E41; margin-bottom: 0.6rem; font-weight: 700; line-height: 1.35; }
.blog-body p { color: #666; line-height: 1.7; font-size: 1rem; flex-grow: 1; margin-bottom: 1rem; }
.blog-read { color: #E73B64; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.blog-card:hover .blog-read i { transform: translateX(4px); }
.blog-read i { transition: transform 0.3s ease; }

/* ---------- Article page ---------- */
.article-page { padding: 110px 0 60px; min-height: 70vh; background: #fff; }
.article-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.article-back {
  display: inline-flex; align-items: center; gap: 0.5rem; color: #68BEA8; text-decoration: none;
  font-weight: 600; margin-bottom: 1.6rem;
}
.article-back:hover { color: #2f8a72; }
.article-loading { text-align: center; color: #888; padding: 2rem 0; font-size: 1.05rem; }
.article-cover--page { height: 340px; border-radius: 16px; margin-bottom: 1.6rem; }
.article-h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: #1D1E41; line-height: 1.25; margin-bottom: 1.6rem; font-weight: 700; }
.article-content h2, .article-content h3, .article-content h4 { color: #1D1E41; margin: 1.6rem 0 0.7rem; line-height: 1.3; }
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content ul, .article-content ol { padding-left: 1.6rem; margin-bottom: 1.1rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote { border-left: 4px solid #68BEA8; background: #f6faf8; padding: 0.8rem 1.2rem; margin: 1.2rem 0; color: #555; border-radius: 0 8px 8px 0; }
.article-content em { font-style: italic; }
.article-content a { color: #E73B64; }
.article-content .mention { color: #2f8a72; font-weight: 600; background: rgba(104,190,168,0.14); padding: 0.05rem 0.4rem; border-radius: 6px; text-decoration: none; }
.article-content a.mention:hover { background: rgba(104,190,168,0.28); }
.article-content figure { margin: 1.4rem 0; }
.article-content figure.align-center { text-align: center; }
.article-content img { max-width: 100%; border-radius: 10px; display: block; }
.article-content figure.align-center img { margin-left: auto; margin-right: auto; }
.article-content::after { content: ''; display: block; clear: both; }
@media (max-width: 640px) {
  .article-content figure.art-fig { float: none !important; width: 100% !important; margin: 1.2rem 0 !important; }
}
.article-content figcaption { text-align: center; color: #999; font-size: 0.9rem; margin-top: 0.5rem; }
.article-content .embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.4rem 0; border-radius: 10px; overflow: hidden; background: #000; }
.article-content .embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-content .art-details { border: 1px solid #e2e7ee; border-radius: 10px; margin: 1.3rem 0; overflow: hidden; }
.article-content .art-details summary {
  cursor: pointer; padding: 0.9rem 1.2rem; background: #f6faf8; font-weight: 700; color: #1D1E41;
  list-style: none; display: flex; align-items: center; gap: 0.6rem;
}
.article-content .art-details summary::-webkit-details-marker { display: none; }
.article-content .art-details summary::before { content: '\f0da'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #68BEA8; transition: transform 0.2s ease; }
.article-content .art-details[open] summary::before { transform: rotate(90deg); }
.article-content .art-details > div { padding: 1rem 1.2rem; }
.article-content .art-details > div > *:first-child { margin-top: 0; }
.article-content .art-details > div > *:last-child { margin-bottom: 0; }
.article-content .art-file {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 1rem 0;
  padding: 0.85rem 1.4rem; border-radius: 10px; text-decoration: none; font-weight: 600;
  background: #1D1E41; color: #fff; transition: all 0.25s ease;
}
.article-content .art-file:hover { background: #68BEA8; transform: translateY(-2px); }
.article-content .art-file i { font-size: 1.05rem; }
.article-content .art-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 1.1rem 0;
  padding: 0.9rem 1.8rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.05rem;
  background: #E73B64; color: #fff; transition: all 0.25s ease;
}
.article-content .art-btn:hover { background: #c32d56; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(231,59,100,0.25); }
.like-bar { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid #eef1f4; }
.like-btn {
  display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer;
  background: #fff; border: 1.5px solid #e2e7ee; color: #E73B64;
  padding: 0.6rem 1.3rem; border-radius: 50px; font: inherit; font-weight: 700; font-size: 1.05rem;
  transition: all 0.2s ease;
}
.like-btn:hover { border-color: #E73B64; background: #fdf0f4; }
.like-btn.liked { background: #E73B64; color: #fff; border-color: #E73B64; }
.like-btn i { font-size: 1.1rem; }
.like-btn:active { transform: scale(0.94); }
.like-label { color: #999; font-size: 0.95rem; }
/* comments */
.comments { margin-top: 0.5rem; }
.comments-title { font-size: 1.5rem; color: #1D1E41; margin-bottom: 1.4rem; }
.c-form { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.c-form input, .c-form textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid #dfe3e6; border-radius: 10px;
  font: inherit; color: #1D1E41; background: #fff; outline: none;
}
.c-form input:focus, .c-form textarea:focus { border-color: #68BEA8; }
.c-form textarea { min-height: 100px; resize: vertical; }
.c-form button {
  align-self: flex-start; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 50px; background: #1D1E41; color: #fff; font: inherit; font-weight: 600;
  transition: all 0.25s ease;
}
.c-form button:hover { background: #68BEA8; }
.c-status { min-height: 1.2rem; font-weight: 600; font-size: 0.9rem; margin: 0; }
.c-status.ok { color: #2e9e6b; }
.c-status.err { color: #E73B64; }
.c-empty { color: #999; }
.c-list { display: flex; flex-direction: column; gap: 1.2rem; }
.c-item { display: flex; gap: 0.9rem; }
.c-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1D1E41, #68BEA8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.c-body { flex: 1; background: #f8f9fa; border-radius: 12px; padding: 0.9rem 1.1rem; }
.c-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.c-head strong { color: #1D1E41; }
.c-date { color: #aaa; font-size: 0.82rem; }
.c-body p { color: #444; line-height: 1.7; margin: 0; }
.c-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 0.6rem; }
.c-like, .c-reply-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.86rem; font-weight: 600; color: #8a94a3;
  transition: color 0.2s ease;
}
.c-like:hover, .c-reply-btn:hover { color: #E73B64; }
.c-like.liked { color: #E73B64; }
.c-like:active { transform: scale(0.92); }
.c-replies { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.9rem; }
.c-reply-item .c-avatar { width: 34px; height: 34px; font-size: 0.85rem; }
.c-reply-item .c-body { background: #fff; border: 1px solid #eef1f4; }
.c-reply-form { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.8rem; }
.c-reply-form input, .c-reply-form textarea {
  width: 100%; padding: 0.65rem 0.9rem; border: 1px solid #dfe3e6; border-radius: 9px; font: inherit; color: #1D1E41; background: #fff; outline: none;
}
.c-reply-form input:focus, .c-reply-form textarea:focus { border-color: #68BEA8; }
.c-reply-form textarea { min-height: 70px; resize: vertical; }
.c-reply-form button {
  align-self: flex-start; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1.2rem; border-radius: 50px; background: #1D1E41; color: #fff; font: inherit; font-weight: 600; font-size: 0.88rem;
}
.c-reply-form button:hover { background: #68BEA8; }
.c-name-chip { display: inline-flex; align-items: center; gap: 0.6rem; background: #f1f7f5; border: 1px solid #dcece6; padding: 0.6rem 1rem; border-radius: 10px; color: #2f8a72; font-weight: 600; }
.c-name-chip strong { color: #1D1E41; }
.c-name-edit { background: none; border: 0; cursor: pointer; color: #68BEA8; font-size: 0.95rem; display: inline-flex; padding: 0.15rem; }
.c-name-edit:hover { color: #E73B64; }

/* ---------- Article reader ---------- */
.article-cover {
  height: 260px; background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: 18px 18px 0 0;
}
.article-date { color: #68BEA8; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.article-content { color: #333; font-size: 1.08rem; line-height: 1.85; }
.article-content p { margin-bottom: 1.1rem; }
.article-content strong { color: #1D1E41; }
.article-content code.inline {
  background: #eef1f5; color: #c7254e; padding: 0.12rem 0.42rem; border-radius: 5px;
  font-family: 'Courier New', monospace; font-size: 0.92em;
}
.article-content pre {
  background: #282c34; border-radius: 10px; padding: 1.1rem 1.2rem; overflow-x: auto;
  margin: 0; direction: ltr; text-align: left;
}
.article-content pre code {
  font-family: 'Courier New', monospace; font-size: 0.92rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.code-block { position: relative; margin: 1.3rem 0; direction: ltr; }
.code-block .copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12); color: #cdd3de; border: 1px solid rgba(255,255,255,0.18);
  padding: 0.35rem 0.7rem; border-radius: 7px; font: inherit; font-size: 0.8rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: all 0.2s ease;
}
.code-block .copy-btn:hover { background: #68BEA8; color: #fff; border-color: #68BEA8; }
.code-block .copy-btn.copied { background: #2e9e6b; color: #fff; border-color: #2e9e6b; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-card > p { color: #666; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.8; margin-bottom: 1.8rem; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  text-align: left;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #1D1E41; font-weight: 600; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #dfe3e6;
  border-radius: 10px;
  background: white;
  color: #1D1E41;
  font: inherit;
  outline: none;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-status { grid-column: 1 / -1; min-height: 1.4rem; color: #1D1E41; font-weight: 600; text-align: center; margin: 0; }
.form-status.error { color: #E73B64; }
.btn-submit {
  grid-column: 1 / -1;
  justify-self: center;
  border: 0;
  cursor: pointer;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  color: white;
  background: #1D1E41;
  font-weight: 600;
  font: inherit;
  transition: all 0.3s ease;
}
.btn-submit:hover { background: #68BEA8; transform: translateY(-3px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,17,42,0.78); backdrop-filter: blur(8px); }
.modal-box {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  animation: modalIn 0.3s ease;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(29,30,65,0.9);
  color: white;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.modal-close:hover { background: #E73B64; transform: rotate(90deg) scale(1.08); }
.modal-tags { display: flex; align-items: center; gap: 1rem; padding: 18px 70px 18px 22px; }
.modal-type { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 20px; background: #E73B64; color: white; font-size: 0.9rem; font-weight: 600; }
.modal-lang { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 20px; background: rgba(104,190,168,0.16); color: #1D1E41; font-size: 0.82rem; font-weight: 700; }
.modal-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1D1E41; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-body { padding: 2rem; }
.modal-body h2 { color: #1D1E41; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.modal-body p { color: #666; line-height: 1.8; font-size: clamp(1rem, 2vw, 1.12rem); margin-bottom: 1.8rem; }
.modal-link {
  width: fit-content;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  background: #68BEA8;
  color: white;
  transition: all 0.3s ease;
}
.modal-link:hover { background: #5aa896; color: white; transform: translateY(-2px); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 75px;
    right: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2.5rem;
  }
  .nav-links.open { display: flex; }
}
