/* Custom styles for Captain Jacobsen Cottage */

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(240, 253, 249, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.navbar-scrolled .nav-link {
  color: rgb(21, 46, 85) !important;
}

.navbar-scrolled .nav-text {
  color: rgb(15, 34, 64) !important;
}

.navbar-transparent .nav-text {
  color: rgb(255, 255, 255) !important;
}

.navbar-transparent .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-transparent .menu-line {
  background: white !important;
}

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

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

.mobile-menu-open #mobileMenu {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Float animation for hero card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-float { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .group img { transition: none !important; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(240, 253, 249);
}

::-webkit-scrollbar-thumb {
  background: rgb(189, 245, 230);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(126, 233, 206);
}

/* Selection color */
::selection {
  background: rgb(189, 245, 230);
  color: rgb(10, 22, 40);
}
