/* ============================================================
   DEVLOGR — MAIN STYLESHEET
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-alt: #0c0e17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #e9ebf3;
  --text-dim: #9aa0b4;
  --text-faint: #666c85;

  --violet: #7c5cff;
  --cyan: #00d9ff;
  --pink: #ff5ec4;
  --green: #3ddc97;
  --amber: #ffb454;

  --grad-main: linear-gradient(135deg, var(--violet), var(--cyan) 60%, var(--pink));
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 217, 255, 0.1));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 10px; }

::selection { background: var(--violet); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BACKGROUND FX
   ============================================================ */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}

.blob-1 { width: 480px; height: 480px; background: var(--violet); top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { width: 420px; height: 420px; background: var(--cyan); top: 30%; right: -12%; animation-delay: -6s; }
.blob-3 { width: 380px; height: 380px; background: var(--pink); bottom: -12%; left: 20%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gradient-text {
  background: var(--grad-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-main);
  background-size: 200% auto;
  color: #05060a;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(0, 217, 255, 0.55); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); background: rgba(0, 217, 255, 0.06); }

.btn-block { width: 100%; justify-content: center; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.empty-state {
  color: var(--text-faint);
  font-style: italic;
  padding: 24px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pill-live { background: rgba(61, 220, 151, 0.14); color: var(--green); }
.pill-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-faint); }

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(7, 8, 13, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding var(--transition);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-main);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--cyan); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0 40px;
}

.hero-inner { max-width: 880px; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin-bottom: 26px;
  min-height: 1.8em;
}
.hero-type-prefix { color: var(--text-dim); }
.typewriter { color: var(--cyan); border-right: 2px solid var(--cyan); padding-right: 4px; animation: blink 0.9s step-end infinite; }

@keyframes blink { 50% { border-color: transparent; } }

.hero-desc {
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 46px; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-faint); margin-top: 2px; }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--surface-border);
  border-radius: 20px;
}
.scroll-indicator span {
  display: block;
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee-section { padding: 26px 0; border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); overflow: hidden; }
.marquee { position: relative; }
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 8px 20px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  white-space: nowrap;
  background: var(--surface);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */

.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.03), transparent); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--violet);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-dim); font-size: 1rem; }
.section-cta { text-align: center; margin-top: 50px; }

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }

.about-card { padding: 34px 28px; text-align: center; }
.about-avatar-ring {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad-main);
}
.about-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.about-card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 6px; }
.about-role { color: var(--cyan); font-size: 0.88rem; margin-bottom: 16px; }
.about-meta { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 6px; }
.about-meta a { color: var(--text-dim); border-bottom: 1px dashed var(--surface-border); }
.about-meta a:hover { color: var(--cyan); }

.about-text { padding-top: 8px; }
.about-text p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 26px; }
.about-highlights { display: flex; flex-wrap: wrap; gap: 12px; }
.highlight-pill {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.9rem;
  transition: var(--transition);
}
.highlight-pill:hover { transform: translateY(-3px); border-color: var(--violet); background: rgba(124, 92, 255, 0.08); }

/* ============================================================
   SKILLS
   ============================================================ */

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card { padding: 26px; transition: transform var(--transition), border-color var(--transition); position: relative; overflow: hidden; }
.skill-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover { transform: translateY(-6px); border-color: rgba(0, 217, 255, 0.35); }
.skill-card:hover::before { opacity: 1; }
.skill-card-title { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 16px; position: relative; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.skill-tag {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
}

/* ============================================================
   PROJECTS
   ============================================================ */

.project-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text); border-color: rgba(124, 92, 255, 0.5); }
.tab-btn.active { color: #05060a; background: var(--grad-main); border-color: transparent; }
.tab-count {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}
.tab-btn.active .tab-count { background: rgba(0, 0, 0, 0.25); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.5s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-grid-compact { grid-template-columns: repeat(3, 1fr); }

.project-card {
  padding: 26px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 24px 48px -20px rgba(124, 92, 255, 0.35);
}

.project-badge {
  position: absolute; top: -10px; right: 18px;
  background: var(--grad-main);
  color: #05060a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px -4px rgba(124, 92, 255, 0.6);
}
.project-badge-fork { right: auto; left: 18px; background: rgba(255, 255, 255, 0.1); color: var(--text-dim); box-shadow: none; }

.project-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.project-name { font-family: var(--font-head); font-size: 1.15rem; }
.project-owner { font-size: 0.75rem; color: var(--text-faint); font-family: var(--font-mono); }

.project-desc { color: var(--text-dim); font-size: 0.92rem; min-height: 44px; margin-bottom: 14px; }

.project-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.topic-chip { font-size: 0.72rem; color: var(--violet); background: rgba(124, 92, 255, 0.1); padding: 3px 9px; border-radius: 999px; }

.project-meta { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-faint); margin-bottom: 16px; flex-wrap: wrap; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lang-color, var(--violet)); box-shadow: 0 0 8px var(--lang-color, var(--violet)); }

.project-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--surface-border); }
.project-updated { font-size: 0.76rem; color: var(--text-faint); }
.project-link { font-size: 0.85rem; font-weight: 600; color: var(--cyan); }
.project-link:hover { text-decoration: underline; }
.project-live-link {
  display: inline-block; margin-top: 10px;
  font-size: 0.8rem; font-weight: 600; color: var(--green);
}

/* Working On — Timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--violet), var(--cyan)); opacity: 0.35; }
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-dot {
  position: absolute; left: -26px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0.06); }
}
.timeline-card { padding: 22px 26px; }
.timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.timeline-top h4 { font-family: var(--font-head); font-size: 1.05rem; }
.timeline-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 14px; }

/* ============================================================
   ARTICLES
   ============================================================ */

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.article-card { overflow: hidden; display: block; transition: transform var(--transition), border-color var(--transition); }
.article-card:hover { transform: translateY(-6px); border-color: rgba(255, 94, 196, 0.4); }

.article-cover { height: 160px; background-size: cover; background-position: center; }
.article-cover-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
}
.article-cover-placeholder span {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.article-card-body { padding: 22px; }
.article-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tag-chip { font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; background: rgba(0, 217, 255, 0.1); color: var(--cyan); }
.article-card-body h3 { font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 8px; line-height: 1.3; }
.article-card-body p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; }
.article-meta { display: flex; gap: 6px; font-size: 0.76rem; color: var(--text-faint); }

/* ============================================================
   ARTICLE SINGLE PAGE
   ============================================================ */

.page-header { padding-bottom: 40px; }
.page-title { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 14px; }

.tag-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag-chip-filter {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid var(--surface-border); color: var(--text-dim);
  transition: var(--transition);
}
.tag-chip-filter:hover { border-color: var(--cyan); color: var(--text); }
.tag-chip-filter.active { background: var(--grad-main); color: #05060a; border-color: transparent; font-weight: 600; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--surface-border); color: var(--text-dim);
  font-size: 0.9rem;
}
.page-btn:hover { border-color: var(--cyan); }
.page-btn.active { background: var(--grad-main); color: #05060a; border-color: transparent; font-weight: 700; }

.article-container { max-width: 780px; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--text-dim); font-size: 0.9rem; }
.back-link:hover { color: var(--cyan); }

.article-title { font-family: var(--font-head); font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.15; margin: 14px 0 18px; }
.article-byline { display: flex; gap: 8px; color: var(--text-faint); font-size: 0.88rem; margin-bottom: 30px; }

.article-hero-cover { width: 100%; height: 340px; border-radius: var(--radius-lg); background-size: cover; background-position: center; margin-bottom: 40px; }

.article-body { font-size: 1.06rem; color: var(--text-dim); line-height: 1.85; }
.article-body h1, .article-body h2, .article-body h3 { font-family: var(--font-head); color: var(--text); margin: 34px 0 16px; line-height: 1.3; }
.article-body h1 { font-size: 1.9rem; }
.article-body h2 { font-size: 1.55rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: var(--radius-md); margin: 24px 0; }
.article-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 3px solid var(--violet);
  padding: 4px 0 4px 20px;
  color: var(--text);
  font-style: italic;
  margin: 24px 0;
}
.article-body code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
}
.article-body pre {
  background: #0d0f18;
  border: 1px solid var(--surface-border);
  padding: 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 22px 0;
}
.article-body pre code { background: none; padding: 0; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }

.related-section { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--surface-border); }
.related-section h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 24px; }
.related-section .article-grid { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { position: relative; padding: 90px 0 30px; border-top: 1px solid var(--surface-border); overflow: hidden; margin-top: 60px; }
.footer-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: var(--grad-main);
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
}
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; margin-bottom: 60px; position: relative; }
.footer-tagline { color: var(--text-faint); font-size: 0.88rem; margin-top: 10px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand { margin-bottom: 4px; }

.footer-links h4, .footer-cta h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan); }

.footer-cta p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 18px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; border-top: 1px solid var(--surface-border);
  font-size: 0.82rem; color: var(--text-faint);
}
.footer-admin-link { opacity: 0.5; transition: opacity 0.25s; }
.footer-admin-link:hover { opacity: 1; color: var(--cyan); }

/* ============================================================
   404
   ============================================================ */

.not-found {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px; padding: 20px;
}
.not-found-code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; }
.not-found h1 { font-family: var(--font-head); font-size: 1.6rem; }
.not-found p { color: var(--text-dim); margin-bottom: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .project-grid-compact, .article-grid, .related-section .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 8, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: 10px 24px 26px;
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-140%);
    transition: transform var(--transition);
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 60px 0 50px; }
  .hero-stats { gap: 28px; }

  .skills-grid { grid-template-columns: 1fr; }
  .project-grid, .project-grid-compact, .article-grid, .related-section .article-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
