/* Custom Styles for Lisa's Red Carpet Experience */

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

/* Selection color */
::selection {
  background-color: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Reveal animations - progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply animation on devices that support it and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu animation */
#mobileMenu {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu lines animation */
#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: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar background transition */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-display {
  color: #1e293b;
}

/* Button hover effects */
a[href^="tel:"],
a[href^="mailto:"] {
  text-decoration: none;
}

/* Form focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .animate-bounce {
    animation: none;
  }
}

/* Print styles */
@media print {
  nav,
  #backToTop,
  button {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .bg-gradient-to-br,
  .bg-gradient-to-t {
    background: #fff !important;
    color: #000 !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .bg-teal-600 {
    background-color: ButtonText;
  }
  
  .text-teal-600 {
    color: ButtonText;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) {
  .group:hover .group-hover\:scale-110 {
    transform: none;
  }
  
  .group:hover .group-hover\:opacity-100 {
    opacity: 0;
  }
}
