@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* ============================================================
   THEME VARIABLES — LIGHT MODE
   ============================================================ */
:root {
  /* Nord Color Palette */
  --nord0: #242933;
  --nord1: #2e3440;
  --nord2: #3b4252;
  --nord3: #434c5e;
  --nord4: #d8dee9;
  --nord5: #e5e9f0;
  --nord6: #eceff4;
  --nord7: #8fbcbb;
  --nord8: #88c0d0;
  --nord9: #81a1c1;
  --nord10: #5e81ac;
  --nord11: #bf616a;
  --nord12: #d08770;
  --nord13: #ebcb8b;
  --nord14: #a3be8c;
  --nord15: #b48ead;

  --bg: var(--nord6);
  --bg-alt: var(--nord5);
  --text: var(--nord0);
  --subtext: var(--nord3);

  --accent: var(--nord9);
  --accent2: var(--nord8);
  --accent-glow: rgba(129, 161, 193, 0.3);

  --button-bg: var(--nord10);
  --button-bg-hover: var(--nord9);
  --button-text: var(--nord6);

  --shadow: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(236, 239, 244, 0.7);
  --glass-border: rgba(129, 161, 193, 0.2);

  /* Layout helpers */
  --max-width: 1100px;
  --radius-lg: 24px;
  --radius-sm: 12px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   THEME VARIABLES — DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--nord0);
    --bg-alt: var(--nord1);
    --text: var(--nord6);
    --subtext: var(--nord4);

    --accent: var(--nord8);
    --accent2: var(--nord7);
    --accent-glow: rgba(136, 192, 208, 0.25);

    --button-bg: var(--nord9);
    --button-bg-hover: var(--nord8);
    --button-text: var(--nord0);

    --shadow: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(46, 52, 64, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

/* ============================================================
   GLOBAL RESETS
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: 
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Inline links */
a.inline-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

a.inline-link:hover {
  color: var(--accent2);
  border-color: var(--accent2);
}

p {
  color: var(--subtext);
}

section {
  padding: 100px 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 10%;
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-left {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  transition: all 0.3s ease;
}

.nav-left:hover {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links a {
  margin-left: 32px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 0;
  color: var(--subtext);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.highlight::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.6;
}

.hero-avatar {
  width: 240px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto 40px;
  box-shadow: 
    0 20px 50px var(--shadow),
    0 0 30px var(--accent-glow);
  transition: transform 0.5s ease;
}

.hero-avatar:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;

  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;

  display: inline-block;
  margin-top: 10px;
  cursor: pointer;

  border: 1px solid transparent;
  box-shadow: 0 10px 20px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  background: var(--button-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.button:active {
  transform: translateY(-1px);
}

/* ============================================================
   HERO STATS
   ============================================================ */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
  font-size: 18px;
  flex-wrap: wrap;
}

.hero-stats span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-preview {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.about-img img {
  width: 260px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px var(--shadow);
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

/* ============================================================
   FEATURE-PROJECTS SECTION
   ============================================================ */
.featured-projects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
  background: var(--glass-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px var(--shadow);

  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;

  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--accent-glow) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 40px var(--shadow),
    0 0 20px var(--accent-glow);
  border-color: var(--accent);
}

.project-card:hover::before {
  opacity: 1;
}

.project-icon {
  width: 56px;
  height: 56px;
  z-index: 1;
}

.icon-mask {
  width: 100%;
  height: 100%;
}

.project-card h3 {
  font-size: 22px;
  z-index: 1;
}

.project-card p {
  font-size: 16px;
  line-height: 1.6;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  z-index: 1;
}

.project-tags span {
  background: var(--bg-alt);
  color: var(--subtext);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
  background: var(--accent);
  color: var(--button-text);
  border-color: transparent;
}

.projects-more {
  text-align: center;
  margin-top: 60px;
}

/* ============================================================
   WORKING ON SECTION
   ============================================================ */
.working-on {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px 120px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.work-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;

  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.4s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 15px 30px var(--shadow),
    0 0 20px var(--accent-glow);
  border-color: var(--accent);
}

.work-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.work-tags span {
  background: var(--bg-alt);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid var(--glass-border);
}

.work-card p {
  font-size: 15px;
  line-height: 1.7;
}

.footer {
  background: var(--nord1);
  padding: 50px 0 30px;
  margin-top: 80px;
  color: var(--subtext);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
}

@media (prefers-color-scheme: light) {
  .footer {
    background: var(--nord4);
  }
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.footer-col p {
  margin: 6px 0;
  font-size: 15px;
}

.footer-col a {
  text-decoration: none;
  color: var(--subtext);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  width: 100%;
  margin: 40px auto 0;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--subtext);
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */

.timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.timeline-header .section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.timeline-header .section-subtitle {
  font-size: 18px;
  color: var(--subtext);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.timeline-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.timeline {
  position: relative;
  margin: 60px auto;
  max-width: 900px;
  padding: 0 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 25px var(--accent);
  border-radius: 4px;
}

.repo-link {
  display: inline-block;
  margin-top: 14px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s ease;
}

.repo-link:hover {
  background: var(--button-bg-hover);
}

.repo-date {
  padding: 4px 10px;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 4px var(--shadow);
  opacity: 0.85;
}

.repo-title {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.repo-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.repo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(129, 161, 193, 0.35);
}

.checkpoint {
  width: 50%;
  padding: 28px 0;
  position: relative;
}

.checkpoint > div {
  background: var(--bg-alt);
  border: 2px solid var(--accent2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 6px 20px var(--shadow);
}

.checkpoint > div * div {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.checkpoint h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 10px;
}

.checkpoint p {
  color: var(--subtext);
  font-size: 16px;
  line-height: 1.55;
}

.checkpoint::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 12px var(--accent),
    0 0 24px var(--accent2);
}

.checkpoint:nth-child(odd) {
  left: 0;
  text-align: left;
  padding-right: 40px;
}
.checkpoint:nth-child(odd)::before {
  right: -7px;
}

.checkpoint:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 40px;
}
.checkpoint:nth-child(even)::before {
  left: -7px;
}

@media (max-width: 768px) {
  .timeline {
    padding: 0 10px;
  }
  .timeline::before {
    left: 20px;
  }
  .checkpoint {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
  }
  .checkpoint:nth-child(even),
  .checkpoint:nth-child(odd) {
    left: 0;
    text-align: left;
  }
  .checkpoint::before {
    left: 14px;
    right: auto;
  }
}

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

.about-hero {
  padding: 120px 20px 80px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
}

.about-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-hero-photo img {
  width: 260px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--shadow);
}

.about-hero-text {
  max-width: 580px;
}

.about-hero-text .hero-title {
  margin-bottom: 20px;
  font-size: 42px;
}

.about-hero-text .hero-subtitle {
  font-size: 20px;
  color: var(--accent2);
  margin-bottom: 22px;
}

.about-hero-text .hero-body {
  margin-bottom: 18px;
  color: var(--subtext);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 850px) {
  .about-hero {
    text-align: center;
  }
  .about-hero-inner {
    flex-direction: column;
  }
  .about-hero-photo img {
    margin-bottom: 20px;
  }
}

.about-text {
  max-width: 600px;
}

.about-large {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-values {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.value-card {
  background: var(--bg-alt);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px var(--shadow);
}

.value-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.about-focus {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.focus-card {
  background: var(--bg-alt);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px var(--shadow);
  text-align: center;
}

.focus-card .focus-icon {
  width: 50px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(129, 161, 193, 0.35));
}

.about-timeline {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.about-timeline-list {
  list-style: none;
  padding-left: 0;
}

.about-timeline-list li {
  margin-bottom: 10px;
  color: var(--subtext);
}

.about-timeline {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.about-path-timeline {
  position: relative;
  margin: 60px auto;
  max-width: 900px;
  padding: 0 40px;
}

.about-path-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  border-radius: 6px;
}

.about-path-timeline .checkpoint {
  width: 50%;
  padding: 28px 0;
  position: relative;
}

.checkpoint-inner {
  border: 1px solid rgba(136, 192, 208, 0.1);
}

.about-path-timeline .checkpoint:nth-child(odd) .checkpoint-inner {
  border-right: 4px solid var(--accent);
  border-left: none;
}

.about-path-timeline .checkpoint:nth-child(even) .checkpoint-inner {
  border-left: 4px solid var(--accent);
  border-right: none;
}

.about-path-timeline .checkpoint .repo-date {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 4px var(--shadow);
}

.about-path-timeline .checkpoint h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent2);
}

.about-path-timeline .checkpoint p {
  color: var(--subtext);
  line-height: 1.6;
}

.about-path-timeline .checkpoint::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 14px var(--accent),
    0 0 28px var(--accent2);
}

.about-path-timeline .checkpoint.left {
  left: 0;
  padding-right: 40px;
}
.about-path-timeline .checkpoint.left::before {
  right: -7px;
}

.about-path-timeline .checkpoint.right {
  left: 50%;
  padding-left: 40px;
}
.about-path-timeline .checkpoint.right::before {
  left: -7px;
}

@media (max-width: 850px) {
  .about-path-timeline {
    padding: 0 10px;
  }
  .about-path-timeline::before {
    left: 24px;
    transform: translateX(0);
  }
  .about-path-timeline .checkpoint,
  .about-path-timeline .checkpoint.left,
  .about-path-timeline .checkpoint.right {
    width: 100%;
    left: 0;
    padding-left: 50px;
    padding-right: 0;
  }
  .about-path-timeline .checkpoint::before,
  .about-path-timeline .checkpoint.left::before,
  .about-path-timeline .checkpoint.right::before {
    left: 18px;
    right: auto;
  }
  .about-path-timeline .checkpoint:nth-child(odd) .checkpoint-inner,
  .about-path-timeline .checkpoint:nth-child(even) .checkpoint-inner {
    border-left: 4px solid var(--accent);
    border-right: none;
  }
}

@media (max-width: 600px) {
  .about-path-timeline {
    padding: 0 20px;
  }
  .about-path-timeline .checkpoint-inner {
    padding: 18px;
  }
  .about-path-timeline .checkpoint h2 {
    font-size: 18px;
  }
}

/* ============================================================
   TOOLKIT LIST
   ============================================================ */

.toolkit-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.toolkit-list li {
  background: var(--bg-alt);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px var(--shadow);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 900px) {
  .hero-title {
    font-size: 34px;
  }
  .about-preview {
    text-align: center;
    justify-content: center;
  }
  .about-img img {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 20px;
    font-size: 16px;
    margin-top: 30px;
  }
  .hero-stats span {
    font-size: 22px;
  }
  .navbar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 20px;
  }
  .nav-links a {
    margin-left: 12px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-avatar {
    width: 150px;
  }
  .blog-container {
    padding-top: 80px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .blog-item-inner {
    padding: 20px;
  }
  .prose h1 {
    font-size: 32px;
  }
  .prose h2 {
    font-size: 24px;
  }
  .prose p, .prose ul, .prose ol {
    font-size: 16px;
  }
  .prose pre {
    padding: 16px;
    margin: 20px 0;
  }
  #progress-bar-container {
    top: 0;
    height: 3px;
  }
}

/* ============================================================
   BLOG STYLES
   ============================================================ */

#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1002;
  display: none;
}

#progress-bar {
  height: 4px;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent-glow);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glow {
  0% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow); }
  100% { box-shadow: 0 0 5px var(--accent-glow); }
}

.glow-effect {
  animation: glow 3s infinite ease-in-out;
}

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.blog-header {
  text-align: center;
  margin-bottom: 60px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-header p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.blog-item {
  cursor: pointer;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(136, 192, 208, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px var(--shadow), 0 0 15px rgba(129, 161, 193, 0.3);
  border-color: var(--accent);
}

.blog-item-inner {
  padding: 35px;
  box-sizing: border-box;
  width: 100%;
}

.blog-item .post-meta {
  margin-bottom: 12px;
}

.date-chip {
  background: var(--bg);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(136, 192, 208, 0.2);
}

.blog-item h2 a {
  font-size: 26px;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.blog-item p {
  margin: 18px 0;
  line-height: 1.6;
  font-size: 16px;
  color: var(--subtext);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tag-chip {
  background: rgba(136, 192, 208, 0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-item:hover .tag-chip {
  background: var(--accent);
  color: var(--button-text);
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--subtext);
  font-weight: 500;
  padding: 8px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-5px);
}

.post-header {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(136, 192, 208, 0.15);
  padding-bottom: 20px;
}

.post-header .post-meta {
  color: var(--subtext);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.prose {
  width: 100%;
  max-width: 100%;
  padding-bottom: 60px;
  font-family: var(--font-sans);
}

.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-mono);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.5em;
  line-height: 1.8;
  color: var(--text);
  font-size: 18px;
  opacity: 0.9;
}

.prose code {
  background: var(--bg-alt);
  padding: 3px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.prose pre {
  background: #0B0E14 !important;
  padding: 40px 24px 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 40px 0;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.prose pre::before {
  content: "•••";
  position: absolute;
  top: 12px;
  left: 20px;
  color: var(--subtext);
  font-size: 18px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.prose pre code {
  background: none !important;
  padding: 0;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
}

.prose strong {
  color: var(--text);
  font-weight: 800;
}

.prose a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.prose a:hover {
  color: var(--accent2);
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 45px auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px var(--shadow);
}

.prose div[align="center"] {
  text-align: center;
}

@media (max-width: 768px) {
  .blog-container {
    padding: 100px 15px 60px;
  }
  .blog-header h1 {
    font-size: 32px;
  }
  .blog-item-inner {
    padding: 25px;
  }
  .blog-item h2 a {
    font-size: 22px;
  }
  .blog-item p {
    font-size: 15px;
  }
  .prose h1 {
    font-size: 32px;
  }
  .prose h2 {
    font-size: 24px;
    margin: 30px 0 15px;
  }
  .prose p, .prose ul, .prose ol {
    font-size: 16px;
  }
  .prose pre {
    padding: 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
  }
  .prose ul, .prose ol {
    margin-left: 20px;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 90px 12px 50px;
  }
  .blog-header h1 {
    font-size: 28px;
  }
  .blog-item-inner {
    padding: 20px;
  }
  .blog-item h2 a {
    font-size: 20px;
  }
  .prose h1 {
    font-size: 28px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose p, .prose ul, .prose ol {
    font-size: 15px;
  }
  .prose pre {
    padding: 12px;
    margin-left: -12px;
    margin-right: -12px;
  }
  .prose pre code {
    font-size: 12px;
  }
  .prose img {
    margin: 30px auto;
  }
}
