/* Custom styles for Mast Lounge */

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

/* Marquee animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Scroll reveal base — content is visible by default (progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion — disable animations */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-marquee {
    animation: none;
  }
}

/* Scroll-reveal when JS adds the class (progressive enhancement) */
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Initial state for JS-enhanced reveals (only applied via JS) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 248, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(132, 27, 54, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
  max-height: 400px;
}

/* Custom focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #db4c72;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #f9cfd7;
  color: #1a0a10;
}
