.markdown-container img {
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.markdown-container h2 {
  font-weight: bold;
}
.markdown-container ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.before-after-container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 66.4%;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
}

.before-image, .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.after-image {
  clip-path: inset(0 50% 0 0);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  cursor: col-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.slider-handle:hover {
  width: 2px;
  background: white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slider-handle:hover::before {
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.before-label, .after-label {
  position: absolute;
  top: 15px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  opacity: 0.8;
}

.before-label {
  left: 15px;
}

.after-label {
  right: 15px;
}

@media (max-width: 768px) {
  .before-after-slider {
    padding-bottom: 66.4%;
  }
  
  .slider-handle::before {
    width: 10px;
    height: 10px;
  }
  
  .slider-handle:hover::before {
    width: 12px;
    height: 12px;
  }
  
  .before-label, .after-label {
    top: 12px;
    padding: 3px 8px;
    font-size: 10px;
  }
  
  .before-label {
    left: 12px;
  }
  
  .after-label {
    right: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  body, .bg-white {
    background-color: #1a1a1a;
  }
  .text-black, .text-gray-900, h1, h2, h3, h4, .bg-white .card-content, .bg-white div {
    color: #f8f8f8;
  }
  footer, footer .text-gray-600 {
    color: #f8f8f8;
  }
  .shadow-md {
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1), 0 1px 3px rgba(255, 255, 255, 0.06);
  }
  .bg-white.p-4.rounded.shadow-md.transition-colors.duration-200:hover {
    background-color: #333333;
  }
  a.text-black:hover {
    background-color: #4a4a4a;
    color: #f8f8f8;
  }
  button.text-black {
    background-color: #4a4a4a;
    color: #f8f8f8;
  }
  .markdown-container #mtj-slider {
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1), 0 1px 3px rgba(255, 255, 255, 0.06);
  }
  
  .slider-handle {
    background: rgba(200, 200, 200, 0.9);
  }
  
  .slider-handle:hover {
    background: rgba(220, 220, 220, 1);
  }
  
  .slider-handle::before {
    background: rgba(200, 200, 200, 1);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .slider-handle:hover::before {
    background: white;
  }
}

@keyframes pulsate {
  0% { transform: scale(1.7); opacity: 0.75; }
  50% { transform: scale(2.2); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0.75; }
}

#scroll-down-btn i {
  animation: pulsate 1.5s linear infinite;
}
