/* Custom styles for Red Dog Apparel Co. */

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

/* Marquee animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Mobile menu transitions */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* Hamburger animation */
#menuLine1.open {
  transform: translateY(4px) rotate(45deg);
}

#menuLine2.open {
  opacity: 0;
}

#menuLine3.open {
  transform: translateY(-4px) rotate(-45deg);
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* 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; }

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

::-webkit-scrollbar-track {
  background: #1A1412;
}

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

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

/* Selection color */
::selection {
  background: #7B1E2D;
  color: #FDF8F6;
}

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

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7B1E2D;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header scroll state */
header.scrolled {
  background: rgba(253, 248, 246, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

header.scrolled .font-serif {
  color: #1A1412 !important;
}

header.scrolled nav a:not(.bg-burgundy) {
  color: rgba(26, 20, 18, 0.7) !important;
}

header.scrolled nav a:not(.bg-burgundy):hover {
  color: #7B1E2D !important;
}

/* Print styles */
@media print {
  header, #backToTop, .animate-marquee {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
