/* Custom styles — progressive enhancement only (content visible without JS) */

/* Scroll-reveal: default state is VISIBLE */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When JS is active and prefers-reduced-motion is off, add initial hidden state via .reveal-hidden class */
.reveal-hidden.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* Hero reveal animations — also progressive */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Selection color */
::selection {
  background-color: rgba(212, 159, 46, 0.3);
  color: #f0f3f9;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1428;
}
::-webkit-scrollbar-thumb {
  background: #2e3d6a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4c61a3;
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Gold accent line hover */
a.group {
  position: relative;
}
