/* Custom styles for Dixie Donuts */

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

/* Custom selection color */
::selection {
  background-color: #8B1A4D;
  color: white;
}

/* Float animation for hero card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Hero animation */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* Navbar scroll state */
.nav-scrolled {
  background-color: rgba(255, 251, 245, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(139, 26, 77, 0.08);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile link animation */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

/* Fade up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #8B1A4D, #e0457a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle hover lift for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(139, 26, 77, 0.12);
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #8B1A4D;
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8B1A4D;
}
