/* Custom styles for Hiks Fashions of New York */

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

/* Selection color */
::selection {
  background-color: #7ed1a8;
  color: #0d1b2a;
}

/* Navbar transition */
#navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.06);
}

#navbar:not(.scrolled) {
  background-color: rgba(240, 250, 244, 0.8);
}

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

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(126, 209, 168, 0.15);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #2d9d6a;
}

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

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

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

.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; }

/* Image hover zoom */
img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7ed1a8;
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7ed1a8;
}

/* Form success animation */
#formSuccess {
  animation: fadeIn 0.4s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  img { transition: none; }
  .group:hover img { transform: none; }
}
