/* Custom styles for Tea 86 */

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

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

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

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    transition: none;
  }
  .group img {
    transition: none;
  }
}

/* Mobile link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  transition: color 0.2s ease;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #4a937a;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Hero card floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(var(--rotate, 2deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--rotate, 2deg));
  }
}

/* Custom selection color */
::selection {
  background: #4a937a;
  color: #f4fbf8;
}
