/* Custom styles for Five31 */

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

/* Nav scroll state */
nav.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Floating card animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.floating-card-1 { animation: float1 4s ease-in-out infinite; }
.floating-card-2 { animation: float2 5s ease-in-out infinite 0.5s; }
.floating-card-3 { animation: float3 3.5s ease-in-out infinite 1s; }

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* Nav link hover underline animation */
nav a:not(.inline-flex):not(button):not(.mobile-link) {
  position: relative;
}
nav a:not(.inline-flex):not(button):not(.mobile-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C0603C;
  border-radius: 1px;
  transition: width 0.25s ease;
}
nav a:not(.inline-flex):not(button):not(.mobile-link):hover::after {
  width: 100%;
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FBF8F1;
}
::-webkit-scrollbar-thumb {
  background: #D4B47A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C0603C;
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E7844' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #C0603C;
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .floating-card-1,
  .floating-card-2,
  .floating-card-3 {
    display: none;
  }
}
