/* ============================================================
   Deep Azure Theme with Sidebar Navigation
   ============================================================ */

/* --- CSS Custom Properties --- */
:root,
:root[data-theme="dark"] {
  --bg-primary: #010308;
  --bg-surface: rgba(4, 9, 18, 0.9);
  --bg-surface-hover: rgba(8, 16, 28, 0.95);
  --bg-elevated: rgba(6, 12, 22, 0.92);
  --border: rgba(26, 117, 255, 0.28);
  --border-light: rgba(26, 117, 255, 0.16);
  --text-primary: #e6edf5;
  --text-secondary: #748cad;
  --text-muted: #435870;
  --accent: #1a75ff;
  --accent-dim: #0052cc;
  --accent-bg: rgba(26, 117, 255, 0.12);
  --accent-border: rgba(26, 117, 255, 0.55);
  --header-bg: rgba(2, 5, 12, 0.95);
  --shadow-lg: 0 0 34px rgba(26, 117, 255, 0.18);
  --sidebar-width: 220px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.2s ease;
  color-scheme: dark;
}






/* Wrapper for the label and title */
.post-nav-info {
  display: flex;
  flex-direction: column; /* Stacks the label on top of the title */
  gap: 0.35rem; /* Adds a clean space between the label and title */
  padding-top: 0.5rem; /* Pushes the text slightly down from the image */
  height: auto; /* Allows the box to grow as tall as it needs to */
}

.post-nav-label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 1px;
}

.post-nav-title {
  display: block;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal; /* Forces long titles to wrap to a new line instead of stretching the box */
}







.post-content figure.post-image-container {
  margin: 2rem auto;
  text-align: center;
}

.post-content figure.post-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #333; 
}

.post-content figcaption.image-caption {
  font-size: 0.85rem !important;
  color: #888 !important;
  margin-top: 0.25rem;
  font-style: italic;
  line-height: 0;
}


.site-main {
            background: 
                linear-gradient(to bottom, rgba(1, 3, 8, 0.9), rgba(1, 3, 8, 0.95)),
                url("/img/assets/background.png") center center / cover fixed !important;
        }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #4d94ff; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.site-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--header-bg);
  border-right: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-border);
  margin-bottom: 0.75rem;
  box-shadow: 0 0 20px rgba(26, 117, 255, 0.2);
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.sidebar-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--accent-bg);
  border-left-color: rgba(26, 117, 255, 0.3);
}

.sidebar-link.active {
  color: var(--accent);
  background: var(--accent-bg);
  border-left-color: var(--accent);
}

.sidebar-link-num {
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 1.4rem;
}

.sidebar-link.active .sidebar-link-num {
  color: var(--accent);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sidebar-social a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-flex;
}

.sidebar-social a:hover { color: var(--accent); }

.sidebar-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 48px;
  padding: 0 1rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar-home {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.mobile-topbar-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 22%, rgba(26, 117, 255, 0.08), transparent 34rem),
    radial-gradient(circle at 25% 70%, rgba(26, 117, 255, 0.04), transparent 28rem),
    var(--bg-primary);
}

@media (max-width: 900px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    top: 48px;
    height: calc(100vh - 48px);
  }
  .sidebar.open { transform: translateX(0); }
  .site-main { margin-left: 0; padding-top: 48px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 3rem 2rem 2rem;
  background:
    linear-gradient(90deg, rgba(1, 3, 8, 0.96) 0%, rgba(1, 3, 8, 0.7) 50%, rgba(1, 3, 8, 0.4) 100%),
    /* Change "center right" to "right 20%" (or "right top") */
    url("/img/assets/new-bg-viper.png") right 20% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent-border);
  background: rgba(26, 117, 255, 0.08);
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-kicker span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f8f8f8;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-prompt, .hero-name { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: #f2f2f2;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
  font-family: var(--font-mono);
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-command {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.hero-command span { color: var(--accent); }
.hero-command b {
  display: inline-block;
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.3rem;
  vertical-align: -0.15rem;
  background: var(--accent);
  animation: cursorBlink 1s steps(1) infinite;
}

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

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
}

.skull-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(circle at 58% 50%, rgba(26, 117, 255, 0.12), transparent 19rem);
  opacity: 0.5;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 117, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 117, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.38;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(26, 117, 255, 0.055) 3px, rgba(26, 117, 255, 0.055) 6px);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero { padding: 2rem 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 200px; order: -1; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 1.25rem 1.5rem; }
  .hero-visual { min-height: 160px; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #1a75ff, #0052cc);
  color: #010308;
  box-shadow: 0 0 24px rgba(26, 117, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4d94ff, #1a75ff);
  color: #010308;
}

.btn-outline {
  background: transparent;
  color: #f2f2f2;
  border-color: var(--accent-border);
}
.btn-outline:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.comment-slash { margin-right: 0.5rem; }

.section-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.featured-section { padding: 2.5rem 0; }

/* ============================================================
   POST CARDS (Homepage)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

.post-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.post-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }

.post-card-inner {
  background: linear-gradient(135deg, rgba(26, 117, 255, 0.08), rgba(0, 0, 0, 0.16)), rgba(4, 9, 18, 0.82);
  border: 1px solid rgba(26, 117, 255, 0.32);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  transition: border-color var(--transition), background var(--transition);
}
.post-card:hover .post-card-inner {
  border-color: var(--accent);
  background: rgba(8, 16, 28, 0.95);
}

.post-card-meta { margin-bottom: 0.5rem; }

.post-card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.78rem;
}

.post-card-readtime { color: var(--text-muted); }

/* ============================================================
   CAPABILITY STRIP
   ============================================================ */
.capability-section { padding: 0 0 3rem; }

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(26, 117, 255, 0.22);
  background: rgba(3, 6, 12, 0.72);
}

.capability-strip div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-right: 1px solid rgba(26, 117, 255, 0.16);
  padding-right: 1rem;
}
.capability-strip div:last-child { border-right: 0; }
.capability-strip svg { color: var(--accent); flex-shrink: 0; margin-bottom: 0.25rem; }
.capability-strip strong { color: var(--accent); font-family: var(--font-mono); font-size: 0.88rem; }
.capability-strip span { color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }

@media (max-width: 900px) {
  .capability-strip { grid-template-columns: repeat(2, 1fr); }
  .capability-strip div:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  .capability-strip { grid-template-columns: 1fr; }
  .capability-strip div { border-right: 0; border-bottom: 1px solid rgba(26, 117, 255, 0.16); padding-bottom: 0.8rem; }
  .capability-strip div:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 100vh;
}

.blog-sidebar {
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--border);
  background: rgba(3, 6, 12, 0.6);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.blog-sidebar-section {
  margin-bottom: 2rem;
}

.blog-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.category-item:hover { color: var(--accent); }
.category-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(26, 117, 255, 0.06);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.tag:hover { color: var(--accent); border-color: var(--accent-border); }

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.rss-link:hover { color: var(--accent); }

.blog-content { padding: 2rem; }

.blog-header { margin-bottom: 1.5rem; }

.blog-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

.blog-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.blog-filters {
  margin-bottom: 1.5rem;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4, 9, 18, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  max-width: 400px;
}
.blog-search svg { color: var(--text-muted); flex-shrink: 0; }
.blog-search input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}
.blog-search input::placeholder { color: var(--text-muted); }

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: rgba(4, 9, 18, 0.6);
}
.blog-post-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
}

.blog-post-link {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.blog-post-cover {
  width: 240px;
  min-height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(26, 117, 255, 0.05);
}
.blog-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-post-card:hover .blog-post-cover img { transform: scale(1.05); }

.blog-post-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.blog-post-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.blog-post-date,
.blog-post-readtime {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-post-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.blog-post-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.blog-post-readmore {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: auto;
  transition: color var(--transition);
}
.blog-post-readmore span {
  display: inline-block;
  transition: transform var(--transition);
}
.blog-post-card:hover .blog-post-readmore span { transform: translateX(4px); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  .blog-content { padding: 1.5rem; }
}

@media (max-width: 600px) {
  .blog-sidebar { grid-template-columns: 1fr; padding: 1rem; }
  .blog-post-link { flex-direction: column; }
  .blog-post-cover { width: 100%; min-height: 140px; }
  .blog-content { padding: 1rem; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post { max-width: 860px; margin: 0 auto; }

.post-header {
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header-meta { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

.post-category-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.post-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-meta svg { color: var(--text-muted); flex-shrink: 0; }

.post-summary {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.post-cover { padding: 1.5rem 2rem; }
.post-cover img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

/* TOC */
.toc-container { padding: 0 2rem 1rem; }
.toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  cursor: pointer;
}
.toc-nav { margin-top: 0.75rem; }
.toc-nav ul { list-style: none; }
.toc-nav ul ul { padding-left: 1.25rem; }
.toc-nav li { margin-bottom: 0.3rem; }
.toc-nav a { font-size: 0.88rem; color: var(--text-secondary); padding: 0.1rem 0; display: inline-block; }
.toc-nav a:hover { color: var(--accent); }

/* Post Content */
.post-content { padding: 2rem; }

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
  font-weight: 600; line-height: 1.3; color: var(--text-primary);
  margin-top: 2.5rem; margin-bottom: 0.75rem;
}
.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.05rem; }

.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: 1.75rem; }
.post-content li { margin-bottom: 0.35rem; }
.post-content li::marker { color: var(--accent); }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(26, 117, 255, 0.08);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent);
}








.post-content pre {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  background: #010308 !important;
}
.post-content pre code {
  display: block;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre;
}

.post-content .highlight { margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); overflow-x: auto; }
.post-content .highlight pre { margin: 0; border: none; border-radius: 0; }
.post-content .highlight .lnt, .post-content .highlight .ln { color: var(--text-muted); padding: 0 0.75rem; user-select: none; }







.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; overflow-x: auto; display: block; }
.post-content thead { background: var(--bg-surface); }
.post-content th, .post-content td { padding: 0.7rem 1rem; border: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
.post-content th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); }

.post-content img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5rem auto; display: block; }.post-content hr { border: none; height: 1px; background: var(--border); margin: 2.5rem 0; }
.post-content strong { font-weight: 600; color: var(--text-primary); }

/* Post Footer */
.post-footer { border-top: 1px solid var(--border); padding: 2rem; }
.post-tags-list { margin-bottom: 1.5rem; }
.tags-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags-wrap .tag { font-size: 0.78rem; padding: 0.2rem 0.6rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-link {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color var(--transition);
}
.post-nav-link:hover { border-color: var(--accent-border); color: inherit; }
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.post-nav-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); line-height: 1.35; }

@media (max-width: 600px) {
  .post-header, .post-content, .post-footer, .post-cover, .toc-container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; grid-column: 1; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.about-header {
  margin-bottom: 2rem;
}

.about-profile {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-border);
  box-shadow: 0 0 28px rgba(26, 117, 255, 0.22);
  flex-shrink: 0;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}

.about-name {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.about-role {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.about-social-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.about-social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.about-social-row a:hover { color: var(--accent); }
.about-social-row svg { flex-shrink: 0; }

.about-section {
  margin-bottom: 2rem;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}
.about-bio strong { color: var(--text-primary); }
.about-bio a { color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-card {
  background: rgba(4, 9, 18, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.about-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.about-card-title svg { flex-shrink: 0; color: var(--accent); }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(26, 117, 255, 0.1);
}
.about-list-item:last-child { border-bottom: none; }

.about-list-primary {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.about-list-secondary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .about-profile { flex-direction: column; text-align: center; }
  .about-social-row { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-page { padding: 1.5rem 1.25rem 3rem; }
}

/* ============================================================
   SCROLLBAR & SELECTION
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(26, 117, 255, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26, 117, 255, 0.5); }

::selection { background: rgba(26, 117, 255, 0.32); color: var(--text-primary); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .sidebar, .hero-visual, .toc-container, .post-nav, .capability-section { display: none !important; }
  .site-main { margin-left: 0; }
  body { background: white; color: #1a1a1a; }
}











/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-layout {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.project-post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(4, 9, 18, 0.6);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-post-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-post-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.project-post-cover {
  width: 100%;
  height: 260px; /* Taller image box for bigger cards */
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-post-card:hover .project-post-cover img {
  transform: scale(1.05);
}

.project-post-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Make the single project page wider (1100px vs standard 860px) */
.single-post.project-single {
  max-width: 1100px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

