/* Custom styles for B Squared Sleep LLC */

/* Smooth focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid #5fb887;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #091826;
}
::-webkit-scrollbar-thumb {
  background: #1e4568;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a9e66;
}

/* Hero parallax-like effect */
#hero {
  perspective: 1px;
}

/* Subtle shimmer on mint elements */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Product card hover lift */
.group:hover {
  transform: translateY(-2px);
  transition: transform 0.4s ease;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

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

/* Noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* Selection color override */
::selection {
  background-color: #3a9e66;
  color: #f0f4f8;
}

/* Ensure all text has proper contrast */
.text-midnight-200 { color: #d4dfe8; }
.text-midnight-300 { color: #a8bdd4; }
.text-midnight-400 { color: #7c9bc0; }

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

/* Print styles */
@media print {
  nav, #mobile-menu-btn, .reveal { display: none; }
  body { background: white; color: black; }
  .bg-midnight-950, .bg-midnight-900 { background: white !important; }
  .text-white, .text-midnight-100, .text-midnight-200 { color: black !important; }
}
