/* Royal Violet FX Theme Styles for Rohan Saini Video Editor Portfolio */

/* Smooth scrolling & typography */
html {
  scroll-behavior: smooth;
  background-color: #080612;
}

body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  background-color: #080612;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

/* Custom cinematic scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #080612;
}

::-webkit-scrollbar-thumb {
  background: #221b38;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Category Filter Buttons */
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5a3bd;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.55);
  background-color: rgba(168, 85, 247, 0.12);
}

.filter-btn.active {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.4);
}

/* Video Card Hover Effects */
.video-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Pulse animation */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

/* Top Violet-Pink Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, #9333ea, #a855f7, #ec4899);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Smooth Fade-Up Scroll Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Interactive Before/After Comparison Slider */
.ba-slider-box {
  position: relative;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba-after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 52%);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.35), #a855f7, rgba(236, 72, 153, 0.45));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 15;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 20px rgba(168, 85, 247, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -1px;
}

/* Mouse-Following Spotlight Glow Cards */
.spotlight-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.28s ease, box-shadow 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(168, 85, 247, 0.22),
    rgba(236, 72, 153, 0.09) 42%,
    transparent 74%
  );
  z-index: 2;
}

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

.spotlight-card:hover {
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 12px 34px -8px rgba(147, 51, 234, 0.32), inset 0 1px 0 0 rgba(236, 72, 153, 0.25);
}
