/* Custom styles for Andy Clark Pro Shop */

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

/* Geometric rotation utility */
.rotated-45 {
  transform: rotate(45deg);
}

/* Scroll reveal animations - progressive enhancement, only when JS runs */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0c1e0c;
}
::-webkit-scrollbar-thumb {
  background: #2d6e2d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d8b3d;
}

/* Selection color */
::selection {
  background: #3d8b3d;
  color: #fefdf8;
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #5aad5a;
  outline-offset: 2px;
}

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

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease;
}

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

/* Subtle hover lift for cards */
.group:hover {
  transform: translateY(-2px);
}

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