/* Custom styles for Bohemian Road */

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

/* Custom selection color */
::selection {
  background-color: #c9a84c;
  color: #0a1628;
}

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

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#navbar.scrolled .font-serif {
  color: #0a1628 !important;
}

#navbar.scrolled a:not(.px-5):not(.px-8) {
  color: #1d3560 !important;
}

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

#mobile-menu.closing {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Menu button animation */
#menu-btn.active #menu-line-1 {
  transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active #menu-line-2 {
  opacity: 0;
}

#menu-btn.active #menu-line-3 {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* Mobile links animation */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Image hover zoom */
img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

  .reveal {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }

  img {
    transition: none;
  }

  #navbar {
    transition: none;
  }

  .group:hover img {
    transform: none;
  }
}

/* Thin scrollbar for webkit */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8943f;
}

/* Subtle card hover effects */
.group {
  transition: transform 0.3s ease;
}

/* Ensure text contrast on all sections */
.text-navy-900 { color: #0a1628; }
.text-navy-800 { color: #0f1f3a; }
.text-navy-700 { color: #162a4a; }
.text-navy-600 { color: #1d3560; }
.text-navy-500 { color: #2a4a7a; }
.text-navy-200 { color: #a8bdd4; }
.text-navy-100 { color: #d0ddef; }
.bg-navy-50 { background-color: #f5f7fa; }
.bg-navy-900 { background-color: #0a1628; }
.bg-navy-800 { background-color: #0f1f3a; }
.bg-navy-700 { background-color: #162a4a; }
.bg-navy-600 { background-color: #1d3560; }

.text-gold-500 { color: #c9a84c; }
.text-gold-400 { color: #d4b965; }
.bg-gold-500 { background-color: #c9a84c; }
.bg-gold-400 { background-color: #d4b965; }
</style>
