/* Custom overrides and utility classes */

/* Ensure smooth rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #243b53;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #eab930;
}

/* Selection color */
::selection {
  background: rgba(234, 179, 8, 0.3);
  color: #f0f4f8;
}

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

/* Image loading placeholder */
img {
  background-color: #1a3a5c;
}

/* Prevent layout shift on hero images */
img[loading="lazy"] {
  contain: layout;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Active nav link state */
.nav-link-active {
  color: #eab930 !important;
}

/* Print styles */
@media print {
  nav, .reveal { display: block !important; opacity: 1 !important; }
  #navbar { position: static !important; }
  .btn-gold, .btn-outline { background: #1a3a5c !important; color: white !important; border: none !important; }
}
