/* Custom styles for Glass' Lock Shop */

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(250, 240, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(140, 47, 102, 0.08);
}

nav.scrolled .font-display {
  color: #4e1d38 !important;
}

/* Service card hover glow */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Gallery hover */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(78, 29, 56, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Scroll reveal base — progressive enhancement, visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion: disable all custom animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery-item img {
    transition: none;
  }

  .service-card {
    transition: none;
  }
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Back to top button */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
  border-color: #a83d7f !important;
  box-shadow: 0 0 0 4px rgba(168, 61, 127, 0.1) !important;
}

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

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

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

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