/* ===================================================
   SARATHCHANDRAN S — Design System
   Dark Obsidian + Electric Violet/Cyan
   =================================================== */

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

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --bg-base:        #07070d;
  --bg-surface:     #0e0e1a;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --bg-card-hover:  rgba(255, 255, 255, 0.06);
  --border:         rgba(255, 255, 255, 0.07);
  --border-glow:    rgba(130, 80, 255, 0.4);

  --accent-violet:  #7c3aed;
  --accent-cyan:    #06b6d4;
  --accent-pink:    #ec4899;
  --accent-green:   #10b981;

  --grad-primary:   linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad-hero:      linear-gradient(135deg, #1a0533 0%, #07070d 40%, #001a2c 100%);
  --grad-text:      linear-gradient(90deg, #a78bfa, #22d3ee, #a78bfa);

  --text-primary:   #f1f0ff;
  --text-secondary: #9b99b8;
  --text-muted:     #5a5870;

  --font-head:      'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;

  --shadow-glow:    0 0 40px rgba(124, 58, 237, 0.15);
  --shadow-card:    0 4px 30px rgba(0,0,0,0.4);

  --nav-h:          72px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Custom Cursor ─────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--accent-violet);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s, height 0.2s, border-color 0.2s;
}
body:hover .cursor { opacity: 1; }
.cursor.hover { width: 20px; height: 20px; background: var(--accent-cyan); }
.cursor-ring.hover { width: 52px; height: 52px; border-color: rgba(6, 182, 212, 0.5); }

/* ─── Noise / Grain Overlay ─────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 2px; }

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Navigation ────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 80px);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
  object-fit: contain;
}
.nav-logo-img:hover {
  filter: brightness(0) saturate(100%) invert(44%) sepia(98%) saturate(947%) hue-rotate(235deg) brightness(97%) contrast(98%);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--grad-primary);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  margin-left: 24px;
  padding: 9px 22px;
  background: var(--grad-primary);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: white !important;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-mobile-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Hero Section ──────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) clamp(24px, 8vw, 160px) 80px;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite alternate;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  top: -100px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  top: 40%; right: -40px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  bottom: 0; left: 40%;
  animation-delay: -5s;
}

@keyframes orb-float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-40px) scale(1.05); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 32px;
  animation: fade-up 0.6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-violet);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  animation: fade-up 0.6s 0.1s ease both;
}

.hero-roles {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
  animation: fade-up 0.6s 0.2s ease both;
}

.hero-roles span {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fade-up 0.6s 0.3s ease both;
}
.hero-tag {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.4s ease both;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--grad-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  border: none;
  cursor: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
  padding: 13px 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  animation: fade-up 0.6s 0.8s ease both;
}
.hero-scroll .scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-violet), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ─── Sections ──────────────────────────────────── */
section {
  padding: 100px clamp(24px, 8vw, 160px);
}

/* ─── About Photo ───────────────────────────────── */
.about-photo-strip {
  margin-top: 48px;
}
.about-photo-frame {
  position: relative;
  display: inline-block;
}
.about-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.18), var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-photo:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.28), var(--shadow-card);
}
.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0.5;
}
.about-photo-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}


#about {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.06), transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.social-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-chip:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.social-chip svg { width: 16px; height: 16px; }

.about-skills h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.skills-group {
  margin-bottom: 28px;
}
.skills-group-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c4b5fd;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.skill-tag:hover {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

/* ─── Projects ──────────────────────────────────── */
#projects {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.project-card:hover::before { opacity: 0.04; }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.project-icon {
  width: 48px; height: 48px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.project-arrow {
  opacity: 0;
  color: var(--accent-cyan);
  transition: opacity 0.2s, transform 0.2s;
  font-size: 1.2rem;
}
.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.project-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.project-tech span {
  padding: 3px 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* ─── Blog Preview ──────────────────────────────── */
#blog-preview {
  background: var(--bg-surface);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
  margin-bottom: 48px;
}

.blog-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
}
.blog-preview-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
}

.blog-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.blog-tag {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-tag.tech   { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }
.blog-tag.life   { background: rgba(236,72,153,0.1);  color: #f472b6; border: 1px solid rgba(236,72,153,0.2); }
.blog-tag.travel { background: rgba(16,185,129,0.1);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.blog-tag.finance { background: rgba(245,158,11,0.1);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2);}

.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.section-footer {
  text-align: center;
}

/* ─── Footer ────────────────────────────────────── */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 60px clamp(24px, 8vw, 160px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.7;
}
.footer-links h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Animations ────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Blog Page ─────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 60px) clamp(24px, 8vw, 160px) 60px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: none;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-violet);
  color: var(--text-primary);
  background: rgba(124,58,237,0.1);
}

#blog-list-section { padding: 60px clamp(24px, 8vw, 160px) 100px; }

.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ─── Post Page ─────────────────────────────────── */
.reading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-primary);
  z-index: 600;
  transition: width 0.1s linear;
}

.post-container {
  padding: calc(var(--nav-h) + 60px) clamp(24px, 8vw, 160px) 100px;
  max-width: 800px;
  margin: 0 auto;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 40px;
  transition: color 0.2s, gap 0.2s;
}
.post-back:hover { color: var(--text-primary); gap: 12px; }

.post-header { margin-bottom: 48px; }
.post-header .blog-card-tags { margin-bottom: 20px; }
.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.15;
}
.post-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.post-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.post-body h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 48px 0 16px;
  font-weight: 700;
}
.post-body h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 32px 0 12px;
  font-weight: 600;
}
.post-body p { margin-bottom: 20px; }
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body em { color: #c4b5fd; font-style: italic; }
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(124,58,237,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a78bfa;
}
.post-body blockquote {
  border-left: 3px solid var(--accent-violet);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-body ul { padding-left: 24px; margin-bottom: 20px; }
.post-body li { margin-bottom: 8px; color: var(--text-secondary); }
.post-body li::marker { color: var(--accent-violet); }
.post-body a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Loading state */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px;
}
.spinner {
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-secondary); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(7,7,13,0.97);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 24px;
  }
  nav.nav-open .nav-links a { font-size: 1.1rem; }
  section { padding: 64px 24px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .footer-links { grid-template-columns: 1fr; }
}
