/* ============================================
   techtalkwith-veeresh — Premium Design System v3
   Base44-inspired · Clean typography · Spacious layout
   ============================================ */

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

:root {
  /* Core palette — Deep navy with warm undertones */
  --bg: #0a0b10;
  --bg-card: rgba(15, 17, 25, 0.8);
  --bg-elevated: rgba(22, 25, 38, 0.9);
  --bg-glass: rgba(10, 11, 16, 0.75);

  /* Text — High contrast for readability */
  --text: #f0f2f7;
  --text-secondary: #9ca3b8;
  --text-muted: #6b7394;

  /* Accent — Vibrant cyan with depth */
  --accent: #0ea5c7;
  --accent-light: #38bdf8;
  --accent-dim: rgba(14, 165, 199, 0.1);
  --accent-glow: rgba(14, 165, 199, 0.2);
  --accent-glow-soft: rgba(14, 165, 199, 0.06);

  /* Semantic */
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;

  /* Borders — Subtle, not harsh */
  --border: rgba(100, 116, 150, 0.1);
  --border-hover: rgba(14, 165, 199, 0.3);

  /* Gradients — Base44-inspired soft radial */
  --gradient-hero: linear-gradient(135deg, #0ea5c7 0%, #34d399 50%, #a78bfa 100%);
  --gradient-card: linear-gradient(160deg, rgba(14,165,199,0.04) 0%, rgba(52,211,153,0.02) 100%);
  --gradient-btn: linear-gradient(135deg, #0ea5c7, #0891b2);
  --gradient-btn-hover: linear-gradient(135deg, #38bdf8, #0ea5c7);

  /* Shadows — Soft, layered */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,0.4), 0 4px 12px rgba(14,165,199,0.1);
  --shadow-glow: 0 0 64px rgba(14,165,199,0.08);
  --shadow-glow-strong: 0 0 80px rgba(14,165,199,0.15);

  /* Radii — Generous, modern */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 100px;

  /* Typography — Clean, modern, Base44-inspired */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-w: 1120px;
  --section-gap: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: #7dd3fc; }

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

/* --- Animated Background — Base44-style soft radial gradients --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(14,165,199,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(167,139,250,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(251,146,60,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(52,211,153,0.04) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================
   HEADER — Clean, minimal, Base44-style
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease-out);
}
.site-title:hover { color: var(--accent-light); }

.terminal-prompt {
  color: var(--green);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-out);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--accent-glow-soft);
}
.site-nav .rss-link { color: var(--amber) !important; }

/* ============================================
   MAIN CONTENT — Spacious, Base44-style
   ============================================ */
.site-content { flex: 1; }
.content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem var(--section-gap);
}

/* ============================================
   NETWORK CANVAS — Interconnected strings
   ============================================ */
.network-canvas,
#network-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ============================================
   HERO — Base44-inspired: clean, spacious, centered
   ============================================ */
.hero {
  text-align: center;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeIn 0.8s var(--ease-out);
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3);
  background: var(--gradient-btn-hover);
  color: #fff;
}
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--accent-light);
  background: var(--accent-glow-soft);
  transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS — Base44-style numbered sections
   ============================================ */
.section {
  margin-bottom: var(--section-gap);
  padding-top: 1rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-header i {
  color: var(--accent);
  font-size: 1.1rem;
}
.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.section-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent 70%);
}

/* ============================================
   POST CARDS — Clean, soft shadows
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-elevated);
}
.post-card:hover::before { opacity: 1; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-card-meta i { font-size: 0.75rem; }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent-light); }

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.post-card-tags .tag,
.tag {
  background: var(--accent-dim);
  color: var(--accent-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ============================================
   POST PAGE — Clean, readable
   ============================================ */
.post-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-map { pointer-events: none; }
.post-header .post-meta,
.post-header .post-title,
.post-header .post-excerpt { position: relative; z-index: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.post-meta i { margin-right: 0.3rem; }

.category-badge {
  background: var(--accent-dim);
  color: var(--accent-light);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}
.category-badge a { color: inherit; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.035em;
}

.post-excerpt {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
}
.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}
.post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
}
.post-content p { margin-bottom: 1.15rem; color: var(--text); }
.post-content ul, .post-content ol { margin-bottom: 1.15rem; padding-left: 1.4rem; }
.post-content li { margin-bottom: 0.45rem; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--gradient-card);
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 1.25rem 0;
}
.post-content img.post-illustration {
  display: block;
  width: 100%;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.post-content img.float-right {
  float: right;
  max-width: 300px;
  margin: 0 0 10px 16px;
}
.post-content figure.post-figure {
  margin: 1.25rem 0;
  clear: both;
}
.post-content figure.post-figure img {
  margin: 0;
}

.post-content code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-light);
}
.post-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.post-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.post-content th, .post-content td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}
.post-content th { background: var(--bg-elevated); font-weight: 600; }

.post-tags {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.post-tags .tag { margin: 0.15rem 0.25rem 0.15rem 0; }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  gap: 0.85rem;
}
.post-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease-out);
  flex: 1;
}
.post-nav a:hover {
  border-color: var(--border-hover);
  color: var(--accent-light);
  background: var(--accent-glow-soft);
}
.post-nav-next { text-align: right; }

/* ============================================
   ABOUT / PORTFOLIO — Spacious, clean
   ============================================ */
.about-hero {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.about-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  box-shadow: var(--shadow-glow), 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.4s var(--ease-out);
}
.about-avatar:hover {
  box-shadow: var(--shadow-glow-strong), 0 12px 40px rgba(0,0,0,0.4);
  transform: scale(1.02);
}
.about-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.035em;
}
.about-info .subtitle {
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.about-info .bio { color: var(--text-secondary); line-height: 1.85; }
.about-info .bio p { margin-bottom: 0.75rem; }

/* Contact links row */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease-out);
}
.contact-links a:hover {
  color: var(--accent-light);
  border-color: var(--border-hover);
  background: var(--accent-glow-soft);
  transform: translateY(-2px);
}

/* Skills */
.skills-section { margin-bottom: 4rem; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
}
.skill-category:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.skill-category h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-list { list-style: none; }
.skill-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.skill-list li:last-child { border-bottom: none; }

/* Experience */
.experience-section { margin-bottom: 4rem; }
.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  backdrop-filter: blur(8px);
}
.experience-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.experience-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.experience-card .company {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.experience-card p { color: var(--text-secondary); line-height: 1.75; }
.experience-card ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.metric {
  color: var(--green);
  font-weight: 600;
}

/* Certifications grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(8px);
}
.cert-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.cert-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cert-card h3 i { color: var(--amber); font-size: 0.85rem; }
.cert-card .cert-issuer {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   CONTACT SECTION — Clean, centered
   ============================================ */
.contact-section {
  text-align: center;
  margin-top: 4rem;
}
.contact-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-elevated);
}
.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s var(--ease-out);
}
.contact-card:hover .contact-card-icon {
  background: var(--accent-glow);
  transform: scale(1.1);
}
.contact-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-card-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}
.contact-card:hover .contact-card-value {
  color: var(--accent-light);
}

/* ============================================
   BENTO GRID — Projects / Open Source
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 1rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-elevated);
}
.bento-card:hover::before { opacity: 1; }

.bento-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 2.25rem;
}
.bento-card--featured .bento-title { font-size: 1.35rem; }
.bento-card--featured .bento-desc { font-size: 0.92rem; line-height: 1.7; }
.bento-card--featured .bento-stats {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bento-card--wide { grid-column: span 2; }

.bento-card--stat {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
}
.bento-card--stat .bento-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.bento-card--stat .bento-stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.bento-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.bento-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.bento-title a { color: inherit; }
.bento-title a:hover { color: var(--accent-light); }

.bento-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.bento-tag {
  background: var(--accent-dim);
  color: var(--accent-light);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 500;
}
.bento-tag--lang {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
}

.bento-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.bento-stats i { margin-right: 0.3rem; color: var(--text-secondary); }

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ============================================
   FOOTER — Clean, minimal
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  margin-top: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-out);
}
.footer-links a:hover {
  color: var(--accent-light);
  background: var(--accent-glow-soft);
}
.footer-links i { margin-right: 0.3rem; }
.footer-text { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   RESUME SUMMARY — Professional summary card
   ============================================ */
.resume-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(8px);
}
.resume-summary p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}
.resume-summary p strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   HIGHLIGHTS — Career achievements grid
   ============================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.highlight-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-elevated);
}
.highlight-card:hover::before { opacity: 1; }
.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
  transition: all 0.3s var(--ease-out);
}
.highlight-card:hover .highlight-icon {
  background: var(--accent-glow);
  transform: scale(1.1);
}
.highlight-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.highlight-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============================================
   RESPONSIVE — Mobile-first adjustments
   ============================================ */
@media (max-width: 900px) {
  :root { --section-gap: 4rem; }
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .about-avatar { margin: 0 auto; width: 200px; height: 200px; }
  .contact-links { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --section-gap: 3rem; }
  .header-inner { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
  .site-nav { gap: 0.2rem; }
  .site-nav a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-links { flex-direction: column; align-items: center; }
  .hero-links a { width: 100%; max-width: 280px; justify-content: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; gap: 1rem; }
  .post-nav-next { text-align: left; }
  .content-inner { padding: 2rem 1rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--featured, .bento-card--wide { grid-column: span 1; grid-row: span 1; }
  .about-info h1 { font-size: 1.75rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SYNTAX HIGHLIGHTING (Monokai)
   ============================================ */
.highlight { background: var(--bg-elevated); }
.highlight pre { background: var(--bg-elevated); }
.highlight .hll { background-color: rgba(6,182,212,0.12); }
.highlight .c { color: #75715e; }
.highlight .err { color: #f87171; }
.highlight .k { color: #67e8f9; }
.highlight .l { color: #a78bfa; }
.highlight .n,
.highlight .nx,
.highlight .py { color: #f8f8f2; }
.highlight .o { color: #f87171; }
.highlight .cm { color: #75715e; }
.highlight .cp { color: #75715e; }
.highlight .c1 { color: #75715e; }
.highlight .cs { color: #75715e; }
.highlight .gd { color: #f87171; }
.highlight .ge { font-style: italic; }
.highlight .gi { color: #34d399; }
.highlight .gs { font-weight: bold; }
.highlight .gu { color: #75715e; }
.highlight .kc { color: #67e8f9; }
.highlight .kd { color: #67e8f9; }
.highlight .kn { color: #f87171; }
.highlight .kp { color: #67e8f9; }
.highlight .kr { color: #67e8f9; }
.highlight .kt { color: #67e8f9; }
.highlight .m { color: #a78bfa; }
.highlight .s { color: #fbbf24; }
.highlight .na { color: #34d399; }
.highlight .nb { color: #f8f8f2; }
.highlight .nc { color: #34d399; }
.highlight .no { color: #67e8f9; }
.highlight .nd { color: #34d399; }
.highlight .ni { color: #f8f8f2; }
.highlight .ne { color: #34d399; }
.highlight .nf { color: #34d399; }
.highlight .nl { color: #f8f8f2; }
.highlight .nn { color: #f8f8f2; }
.highlight .nt { color: #f87171; }
.highlight .nv { color: #f8f8f2; }
.highlight .ow { color: #f87171; }
.highlight .p { color: #e2e8f0; background: transparent; }
.highlight .w { color: #f8f8f2; }
.highlight .mi { color: #a78bfa; }
.highlight .mf { color: #a78bfa; }
.highlight .mh { color: #a78bfa; }
.highlight .mo { color: #a78bfa; }
.highlight .sb { color: #fbbf24; }
.highlight .sc { color: #fbbf24; }
.highlight .sd { color: #fbbf24; }
.highlight .s2 { color: #fbbf24; }
.highlight .se { color: #a78bfa; }
.highlight .sh { color: #fbbf24; }
.highlight .si { color: #fbbf24; }
.highlight .sx { color: #fbbf24; }
.highlight .sr { color: #fbbf24; }
.highlight .s1 { color: #fbbf24; }
.highlight .dl { color: #fbbf24; }
.highlight .ss { color: #fbbf24; }
.highlight .bp { color: #f8f8f2; }
.highlight .vc { color: #f8f8f2; }
.highlight .vg { color: #f8f8f2; }
.highlight .vi { color: #f8f8f2; }
.highlight .il { color: #a78bfa; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .post-card:hover { transform: none; }
  .bento-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .mermaid-expand-btn:hover { transform: none; }
  #network-canvas, .network-canvas, .article-map { display: none; }
}

/* ============================================
   SCROLL REVEAL — Base44-style fade-in
   ============================================ */
.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================
   MERMAID DIAGRAMS — Scrollable + click-to-expand
   ============================================ */
.mermaid-container {
  position: relative;
  margin: 1.5rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease-out);
}
.mermaid-container:hover { border-color: var(--border-hover); }

.mermaid {
  padding: 1.25rem;
  overflow: auto;
  max-height: 60vh;            /* viewport containment for tall flows */
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  border-radius: var(--radius-sm);
}
.mermaid::-webkit-scrollbar { height: 6px; width: 6px; }
.mermaid::-webkit-scrollbar-track { background: transparent; }
.mermaid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.mermaid::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Force SVG to render at its intrinsic size — keeps text readable
   instead of letting Mermaid squish it into a microscopic strip. */
.mermaid svg {
  max-width: none !important;
  min-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Expanded state — remove viewport cap so the full diagram is visible */
.mermaid-container.expanded .mermaid { max-height: none; }

/* Expand/collapse affordance — top-right corner, hover-revealed */
.mermaid-expand-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-out);
  opacity: 0;                  /* hidden until hover / focus */
  font-size: 0.85rem;
  padding: 0;
}
.mermaid-container:hover .mermaid-expand-btn,
.mermaid-expand-btn:focus { opacity: 1; }
.mermaid-expand-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: var(--accent-glow-soft);
  transform: scale(1.05);
}
@media (max-width: 768px) { .mermaid-expand-btn { opacity: 1; } }
@media (hover: none)        { .mermaid-expand-btn { opacity: 1; } }  /* touch / hybrid devices */

/* ============================================
   UTILITIES
   ============================================ */
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
