/* Custom styles for Brad Bradley Solutions */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0F;
}
::-webkit-scrollbar-thumb {
  background: #3A1848;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5B2C6F;
}

/* Selection color */
::selection {
  background: rgba(245, 176, 65, 0.3);
  color: #fff;
}

/* Float animation for hero cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scroll line animation */
@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header scroll state */
.header-scrolled {
  background: rgba(13, 13, 15, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91, 44, 111, 0.3);
}

/* Mobile menu animation */
.mobile-link {
  display: block;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #F5B041;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a1a1e inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* Subtle gradient border on hover for cards */
article.group:hover {
  box-shadow: 0 0 40px rgba(245, 176, 65, 0.05);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
