/* Custom styles for Maryland Virginia Conference */

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

/* Base reveal animation - progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS is enabled and user prefers motion, apply hidden state then reveal */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled.revealed .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion - disable animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .animate-bounce {
    animation: none;
  }
  .animate-pulse {
    animation: none;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(26, 26, 46, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #2d2d52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #363662;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e8554a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

/* Form success animation */
#form-success:not(.hidden) {
  animation: fadeIn 0.4s ease;
}

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

/* Card hover glow */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Hero text shadow for readability */
header h1,
header p {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
