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

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-main);
  background-color: #0b0f17;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glass & Card effects */
.glass-panel {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px -2px rgba(16, 185, 129, 0.15);
}

/* Before / After Image Split Slider */
.ba-slider-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 10;
  background-color: #1e293b;
}

.ba-slider-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider-after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #10b981;
  box-shadow: 2px 0 10px rgba(16, 185, 129, 0.4);
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #10b981;
  border: 3px solid #0f172a;
  border-radius: 50%;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  z-index: 20;
}

/* Modal animation */
.modal-backdrop {
  animation: fadeIn 0.2s ease-out forwards;
}
.modal-content {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.glow-emerald {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.glow-amber {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.glow-indigo {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}