/* Custom styles for Metal Gear Armory */

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

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

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

.reveal.delay-100 {
  transition-delay: 0.1s;
}

.reveal.delay-200 {
  transition-delay: 0.2s;
}

.reveal.delay-300 {
  transition-delay: 0.3s;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: color 0.2s ease;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #1B4332;
}

/* Mobile menu open state */
#mobileMenu.open {
  display: block;
  animation: slideDown 0.3s ease;
}

#mobileMenu.hidden {
  display: none;
}

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

/* Hamburger animation */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Product card hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #5e9569;
}

/* Selection color */
::selection {
  background: #1B4332;
  color: #fafaf7;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Map overlay */
.absolute.inset-0 {
  pointer-events: none;
}

.absolute.inset-0 > a {
  pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
