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

:root {
  --bg-start: 248, 250, 252;
  --bg-mid: 241, 245, 249;
  --bg-end: 236, 242, 249;
  --text-primary: 15, 23, 42;
  --text-secondary: 71, 85, 105;
  --accent-primary: 99, 102, 241;
  --accent-secondary: 139, 92, 246;
  --accent-tertiary: 168, 85, 247;
    --accent-blue: 59, 130, 246;      
  --accent-purple: 168, 85, 247;    
  --accent-emerald: 16, 185, 129;  
  --surface-light: 255, 255, 255;
  --surface-dark: 30, 41, 59;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

html.theme-transition::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 800px at 50% 40%, rgba(var(--accent-primary), .16), transparent 60%);
  mix-blend-mode: overlay;
  animation: themePulse .45s ease both;
  z-index: 1;
}
@keyframes themePulse {
  from { opacity: .6; }
  to { opacity: 0; }
}

.dark {
  --bg-start: 2, 6, 23;
  --bg-mid: 15, 23, 42;
  --bg-end: 30, 41, 59;
  --text-primary: 248, 250, 252;
  --text-secondary: 148, 163, 184;
  --accent-primary: 129, 140, 248;
  --accent-secondary: 167, 139, 250;
  --accent-tertiary: 196, 181, 253;
  --accent-blue: 96, 165, 250;     
  --accent-purple: 192, 132, 252; 
  --accent-emerald: 52, 211, 153;  
  --surface-light: 51, 65, 85;
  --surface-dark: 15, 23, 42;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: rgb(var(--text-primary));
  background: 
    radial-gradient(circle at 20% 80%, rgba(var(--accent-secondary), 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(var(--accent-primary), 0.06) 0%, transparent 60%),
    linear-gradient(135deg, 
      rgb(var(--bg-start)) 0%,
      rgb(var(--bg-mid)) 55%,
      rgb(var(--bg-end)) 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  opacity: .4;
  z-index: 0;
}

.container-px {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container-px {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-px {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.text-primary {
  color: rgb(var(--text-primary));
}

.text-secondary {
  color: rgb(var(--text-secondary));
}

.border-t-secondary {
  border-top: 1px solid rgba(var(--text-secondary), 0.2);
}

.glass {
  background: rgba(var(--bg-start), 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--text-primary), 0.1);
  box-shadow: 
    0 25px 50px -12px rgba(var(--text-primary), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}

.glass:hover::before {
  left: 100%;
}

.glass:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 35px 60px -12px rgba(var(--text-primary), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(var(--bg-mid), 0.6);
  border: 1px solid rgba(var(--text-secondary), 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.glass-strong {
  background: rgba(var(--bg-start), 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(var(--text-primary), 0.15);
  box-shadow: 
    0 25px 50px -12px rgba(var(--text-primary), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-strong::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--accent-primary), 0.5), 
    rgba(var(--accent-secondary), 0.5), 
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-strong:hover::after {
  opacity: 1;
}

.glass-strong:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 
    0 40px 70px -12px rgba(var(--text-primary), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.glass-strong::before { pointer-events: none; }
.glass-strong::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
}

.dark .glass-strong {
  background: rgba(var(--bg-mid), 0.85);
  border: 1px solid rgba(var(--text-secondary), 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.gradient-text {
  background: linear-gradient(135deg, 
    rgb(var(--accent-primary)) 0%, 
    rgb(var(--accent-secondary)) 50%,
    rgb(var(--accent-tertiary)) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position .6s ease, text-shadow .3s ease, filter .3s ease;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text:hover { background-position: 100% 50%; text-shadow: 0 6px 18px rgba(var(--accent-primary), .25); filter: saturate(1.05); }

.gradient-bg-primary {
  background: linear-gradient(135deg, rgb(var(--accent-primary)), rgb(var(--accent-secondary)));
}

.gradient-bg-secondary {
  background: linear-gradient(135deg, rgb(var(--accent-secondary)), rgb(var(--accent-tertiary)));
}

.gradient-bg-tertiary {
  background: linear-gradient(135deg, rgb(var(--accent-primary)), rgb(var(--accent-tertiary)));
}

.btn-primary {
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, 
    rgb(var(--accent-primary)) 0%, 
    rgb(var(--accent-secondary)) 100%
  );
  background-size: 200% 200%;
  color: white;
  font-weight: 600;
  box-shadow: 
    0 10px 25px -5px rgba(var(--accent-primary), 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 
    0 25px 35px -5px rgba(var(--accent-primary), 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-3px) scale(1.03);
  background-position: 100% 50%;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: rgba(var(--bg-start), 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--text-primary), 0.2);
  box-shadow: 0 10px 15px -3px rgba(var(--text-primary), 0.1);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  color: rgb(var(--text-primary));
  text-decoration: none;
}

.dark .btn-secondary {
  background: rgba(var(--bg-mid), 0.8);
  border: 1px solid rgba(var(--text-secondary), 0.3);
  color: rgb(var(--text-primary));
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(var(--text-primary), 0.15);
  background: rgba(var(--bg-start), 0.95);
}

.dark .btn-secondary:hover {
  background: rgba(var(--bg-mid), 0.9);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

#scroll-progress {
  background: linear-gradient(90deg, rgb(var(--accent-primary)), rgb(var(--accent-secondary)), rgb(var(--accent-tertiary)));
  box-shadow: 0 0 10px rgba(var(--accent-primary), 0.45);
  transition: width .2s ease, box-shadow .3s ease, background .3s ease;
}

#scroll-progress.scrolling {
  box-shadow: 0 0 20px rgba(var(--accent-primary), 0.8);
}

.nav-link {
  color: rgb(var(--text-primary));
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgb(var(--accent-primary));
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: rgb(var(--accent-primary));
}
.nav-link.active::after,
.nav-link[aria-current="page"]::after { width: 100%; }

.floating {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, rgb(var(--accent-primary)), rgb(var(--accent-secondary)));
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  transform: scale(2);
  background: linear-gradient(45deg, rgb(var(--accent-secondary)), rgb(var(--accent-tertiary)));
}

.btn-primary, .btn-secondary {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.btn-primary:hover {
  transform: translateY(-3px) rotateX(6deg) scale(1.03);
}

.btn-secondary:hover {
  transform: translateY(-2px) rotateX(5deg) scale(1.015);
}

.glass-strong {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-strong:hover {
  transform: rotateX(2deg) rotateY(2deg) translateY(-5px);
}

.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

.tilt-element {
  transition: transform 0.3s ease;
}

.tilt-element:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale3d(1.05, 1.05, 1.05);
}

.typing::after {
  content: '|';
  animation: blink 1s infinite;
}

#theme-toggle {
  transition: transform .2s ease, background-color .25s ease, box-shadow .25s ease;
}
#theme-toggle:hover { transform: translateY(-1px) scale(1.05); }
#theme-toggle:active { transform: translateY(0) scale(.98); }
#theme-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(var(--accent-primary), .35); outline: none; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(var(--accent-primary), 0.4); }
  100% { box-shadow: 0 0 40px rgba(var(--accent-secondary), 0.6); }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.8s ease-out;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out, filter .6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    rgba(var(--accent-primary), 0.1),
    rgba(var(--accent-secondary), 0.15),
    rgba(var(--accent-tertiary), 0.1),
    rgba(var(--accent-primary), 0.1)
  );
  animation: rotate 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: rotateX(5deg) rotateY(-5deg) translateY(-15px) scale(1.02);
  box-shadow: 
    0 35px 60px -12px rgba(var(--accent-primary), 0.3),
    0 0 0 1px rgba(var(--accent-secondary), 0.15),
    0 0 50px rgba(var(--accent-primary), 0.1);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.project-tag {
  background: linear-gradient(135deg, 
    rgba(var(--accent-primary), 0.9), 
    rgba(var(--accent-secondary), 0.8)
  );
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.project-tag:hover::before {
  left: 100%;
}

.project-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px -8px rgba(var(--accent-primary), 0.6);
}

.skill-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(var(--text-secondary), 0.2);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--accent-primary)), rgb(var(--accent-secondary)));
  border-radius: 9999px;
  transition: width 1s ease-out;
  width: 0%;
}

.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

input, textarea {
  background: rgba(var(--bg-start), 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--text-primary), 0.1);
  color: rgb(var(--text-primary));
}

.dark input, .dark textarea {
  background: rgba(var(--bg-mid), 0.6);
  border: 1px solid rgba(var(--text-secondary), 0.2);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgb(var(--accent-primary));
  box-shadow: 0 0 0 2px rgba(var(--accent-primary), 0.2);
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, rgb(var(--accent-primary)), rgb(var(--accent-secondary)));
  border-radius: 50%;
  animation: particleFloat 8s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(var(--accent-primary), 0.5);
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1) rotate(360deg);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--accent-primary), 0.3);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@media (max-width: 768px) {
  .container-px {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-6xl {
    font-size: 3rem;
  }
  
  .text-8xl {
    font-size: 4rem;
  }
  
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .project-card:hover,
  .glass-strong:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-5px) scale(1.02);
  }
  
  .custom-cursor {
    display: none;
  }
}


html {
  scroll-behavior: smooth;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-card, .skill-card, .blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .skill-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

header.sticky .glass-strong {
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-start), 0.8),
    rgba(var(--bg-start), 0.6)
  );
  border-color: rgba(var(--text-primary), 0.08);
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.dark header.sticky .glass-strong {
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-mid), 0.7),
    rgba(var(--bg-mid), 0.5)
  );
  border-color: rgba(var(--text-secondary), 0.25);
}

header.sticky.scrolled .glass-strong {
  box-shadow:
    0 12px 30px -12px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.dark header.sticky.scrolled .glass-strong {
  box-shadow:
    0 18px 40px -14px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.nav-link {
  position: relative;
  font-weight: 600;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--accent-primary)), rgb(var(--accent-secondary)));
  border-radius: 2px;
  transition: width .35s cubic-bezier(.22,.61,.36,1), opacity .25s ease;
  opacity: .9;
}
.nav-link:hover::after { width: 100%; }

h1, .h1 { letter-spacing: -0.03em; }
h2, .h2 { letter-spacing: -0.02em; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--text-secondary), .2), transparent);
}

.glass-strong:hover {
  outline: 1px solid rgba(var(--accent-primary), .15);
}

.project-card {
  border: 1px solid rgba(var(--text-primary), 0.08);
}
.dark .project-card {
  border-color: rgba(var(--text-secondary), 0.2);
}

.btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px solid rgba(var(--accent-primary), .35);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}
pre code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }


.blog-hero {
  position: relative;
  margin-top: -3.5rem;
  padding: calc(4rem + 3.5rem) 0 2rem;
  background:
    radial-gradient(55rem 35rem at 10% 10%, rgba(var(--accent-secondary), .12), transparent 60%),
    radial-gradient(60rem 40rem at 90% -10%, rgba(var(--accent-primary), .12), transparent 60%);
}
.blog-hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; height: 90px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--bg-start), .5), transparent 70%);
  z-index: 0;
}
.blog-hero .hero-card {
  border-radius: 1.5rem;
  padding: 2rem;
  background: rgba(var(--bg-start), .85);
  border: 1px solid rgba(var(--text-primary), .08);
  backdrop-filter: blur(16px);
}
.dark .blog-hero .hero-card {
  background: rgba(var(--bg-mid), .6);
  border-color: rgba(var(--text-secondary), .25);
}
.blog-title { font-size: clamp(1.8rem, 3vw + 1rem, 2.75rem); font-weight: 900; letter-spacing: -0.02em; }
.blog-meta { color: rgb(var(--text-secondary)); font-size: .95rem; margin-top: .25rem; }
.blog-container { max-width: 60rem; margin: 0 auto; padding: 2rem 1rem; }
.blog-content { display: grid; gap: 0.75rem; }
.blog-content p { font-size: 1.05rem; line-height: 1.75; color: rgb(var(--text-secondary)); margin: 0.6rem 0; }

.blog-content h2 { margin-top: 1.25rem; margin-bottom: .5rem; font-weight: 800; letter-spacing: -0.02em; }
.blog-content h3 { margin-top: 1rem; margin-bottom: .4rem; font-weight: 700; letter-spacing: -0.01em; }

.blog-content ul, .blog-content ol { padding-left: 1.25rem; margin: .5rem 0 .75rem; }
.blog-content li { margin: .2rem 0; }

.blog-content blockquote {
  border-left: 4px solid rgba(var(--text-secondary), .35);
  background: rgba(var(--bg-start), .5);
  padding: .85rem 1rem;
  margin: 1rem 0;
  border-radius: .75rem;
  color: rgb(var(--text-secondary));
  font-style: italic;
}
.dark .blog-content blockquote {
  background: rgba(var(--bg-mid), .35);
  border-left-color: rgba(var(--text-secondary), .45);
}

.blog-content p code, .blog-content li code {
  background: rgba(148,163,184,.18);
  border: 1px solid rgba(148,163,184,.28);
  color: inherit;
  padding: .15rem .35rem;
  border-radius: .35rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .9em;
}

.blog-content a { color: rgb(var(--accent-primary)); text-decoration: underline dotted; text-underline-offset: 2px; }
.blog-content a:hover { color: rgb(var(--accent-secondary)); }

.blog-content figure { margin: 1rem 0; }
.blog-content figcaption { color: rgb(var(--text-secondary)); }

.blog-content hr { border-color: rgba(var(--text-secondary), .25); margin: 1.25rem 0; }

.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 1rem; }

.code-block { position: relative; background: rgba(15, 23, 42, .7); color: #e2e8f0; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(148,163,184,.18); }
.dark .code-block { background: rgba(2, 6, 23, .7); }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: .6rem .9rem; border-bottom: 1px solid rgba(148,163,184,.18); background: rgba(2,6,23,.45); }
.code-header .lang { font-size: .8rem; color: #94a3b8; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.code-actions { display: flex; gap: .5rem; }
.code-actions button { font-size: .8rem; padding: .4rem .65rem; border-radius: .6rem; border: 1px solid rgba(148,163,184,.28); background: rgba(148,163,184,.08); color: #e2e8f0; cursor: pointer; }
.code-actions button:hover { background: rgba(148,163,184,.18); }
pre { margin: 0; padding: 1rem; overflow: auto; font-size: .92rem; line-height: 1.6; }
.code-output { border-top: 1px solid rgba(148,163,184,.18); background: rgba(2,6,23,.35); padding: .8rem 1rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88rem; color: #cbd5e1; min-height: 2.2rem; }
.code-output .label { color: #7dd3fc; font-weight: 600; margin-right: .5rem; }
.not-found { padding: 2rem; text-align: center; }

