/* Custom styles for Confidential Bail Bonds */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: #3A3A3A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Selection color */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer animation for decorative elements */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulse animation for status indicator */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

/* Form input focus glow */
input:focus, textarea:focus {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
