/* Custom styles for Sugar Shack */

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

/* Navbar transitions */
#navbar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .nav-text {
  color: #1a1a1a;
}

#navbar.scrolled .nav-link {
  color: rgba(26, 26, 26, 0.7);
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.open .mobile-nav-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 1;
}

#mobileMenu .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.menu-btn-active .menu-line:nth-child(3) {
  width: 24px;
  margin-left: 0;
  margin-right: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Selection color */
::selection {
  background: #be185d;
  color: #faf8f5;
}

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

::-webkit-scrollbar-track {
  background: #faf8f5;
}

::-webkit-scrollbar-thumb {
  background: #be185d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9d174d;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #fce7f3 0%, #fef3c7 100%);
}
