/* Custom styles for The Mix Nutrition */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background-color: #a11c38;
  color: #fefdfc;
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(254, 253, 252, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(161, 28, 56, 0.08);
}

.navbar-scrolled .logo-text {
  color: #841d34 !important;
}

.navbar-scrolled .nav-link {
  color: #841d34 !important;
}

.navbar-scrolled .nav-link:hover {
  color: #db4264 !important;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .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; }
}

/* Mobile menu transitions */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Image loading placeholder */
img {
  background-color: #fce7eb;
}

/* Subtle hover lift on cards */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
  background: #e28680;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c02747;
}
