
/* Custom Dropdown & Mobile Menu Styles */
.dropdown-container {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0f172a; /* bg-slate-900 */
  border: 1px solid #1e293b; /* border-slate-800 */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 0.75rem;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  z-index: 1000;
  transition: all 0.2s ease-in-out;
}
.dropdown-container:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: #cbd5e1; /* text-slate-300 */
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Styles & Active State */
#mobile-menu-overlay {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  background-color: #0f172a !important; /* Premium dark slate background fallback */
  z-index: 99999 !important; /* Force to top of stack */
}

@media (max-width: 1023px) {
  #mobile-menu-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Sticky Header on Scroll */
header.sticky-header {
  position: fixed !important;
  top: 0 !important;
  background-color: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Form Alert Styles */
.form-alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
}
.form-alert.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.form-alert.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Premium Testimonials Horizontal Carousel --- */
.testimonial-carousel-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  margin: -20px 0;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonial-card {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .testimonial-card {
    width: calc(50% - 10px);
  }
}
@media (min-width: 1024px) {
  .testimonial-card {
    width: calc(33.333% - 13.33px);
  }
}

/* --- Adaptive Subpage Sticky Header --- */
header.bg-white.sticky-header {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}
header.bg-white.sticky-header .dropdown-menu {
  background-color: #0f172a !important; /* Keep high-contrast slate menu */
}

/* --- Cinematic Hero Background Zoom (Ken Burns Effect) --- */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transition: opacity 1.5s ease-in-out, transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transform: scale(1.02);
  opacity: 0;
  will-change: opacity, transform;
}
.hero-bg-slide.active {
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

/* --- Premium Staggered Title Animations --- */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-delay-1 { animation-delay: 0.15s; }
.hero-delay-2 { animation-delay: 0.3s; }
.hero-delay-3 { animation-delay: 0.45s; }
.hero-delay-4 { animation-delay: 0.6s; }


