/* Custom styles for Twin Islands Campsite */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4fa;
}
::-webkit-scrollbar-thumb {
  background: #1B2A4A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d4a6e;
}

/* Selection color */
::selection {
  background: #C8A96E;
  color: #1B2A4A;
}

/* Navbar transition */
.nav-text {
  transition: color 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Scroll reveal animations (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image hover effect */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #C8A96E;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  nav, #contactForm, #formSuccess, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
