/* Custom styles for Angelina's Bridal Shop */

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

/* Navbar transition states */
#navbar.scrolled {
  background: rgba(42, 15, 24, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

/* Mobile menu animations */
.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu button animation */
.menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8e3d5a;
}

/* Selection color */
::selection {
  background: #a85574;
  color: white;
}

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

/* Prevent layout shift on form inputs */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Ensure map iframe doesn't overflow */
iframe {
  max-width: 100%;
}

/* Print styles */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
