/* Custom styles beyond Tailwind */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
#navbar {
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.nav-scrolled {
  backdrop-filter: blur(12px);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #1b3a70;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4a037;
}

/* Selection color */
::selection {
  background: #d4a037;
  color: #0a1628;
}

/* Image loading placeholder */
img {
  background-color: #0f2140;
}

/* Prevent FOUC on hero */
.hero-bg {
  will-change: background-position;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-bounce {
    animation: none;
  }
}
