/* header.css */
.is-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 24px 0 rgb(0 0 0 / 15%);
  background-color: #ffffff !important;
  animation: 500ms ease-in-out 0s normal none 1 running fadeInDown;
  z-index: 999;
}

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

@keyframes fadeInDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

/* Improve focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #9D6381;
  outline-offset: 2px;
}

/* Fix for dropdown positioning */
.relative > div > .absolute {
  left: 0;
  right: auto;
  /* top:70% */
}

/* Mobile menu improvements */
@media (max-width: 768px) {
  .max-h-screen {
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
}

/* Dropdown z-index fix */
.z-50 {
  z-index: 50;
}

/* Ensure dropdowns appear below navbar */
.top-full {
  top: 100%;
}