/* ===== CUSTOM STYLES ===== */

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

/* Scroll-reveal base styles (progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(38, 11, 40, 0.95) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* Selection color */
::selection {
  background: #bb8ed4;
  color: #260b28;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

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

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

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

/* Button press effect */
button:active,
a:active {
  transform: scale(0.98) !important;
}

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

/* Print styles */
@media print {
  nav, #mobileMenu, .scroll-reveal, footer {
    display: none;
  }
}
