/* Custom styles beyond Tailwind */

html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Mobile menu animation */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#menu-toggle.active #bar1 {
  transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active #bar2 {
  opacity: 0;
}
#menu-toggle.active #bar3 {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* Subtle hover underline for links */
a:not(.group):hover {
  text-decoration: none;
}

/* Selection color */
::selection {
  background: rgba(74, 191, 146, 0.25);
  color: #D8F5E8;
}

/* Image hover zoom */
aspect-\[4\/5\] img,
aspect-\[4\/3\] img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #060D1A;
}
::-webkit-scrollbar-thumb {
  background: rgba(74, 191, 146, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 191, 146, 0.5);
}
