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

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

/* Custom navbar height */
#navbar {
  padding-top: 0;
}

/* Prevent content jump from fixed navbar */
#hero {
  padding-top: 0;
}

/* Float animation for decorative cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scroll reveal base — always visible by default for progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animate only when JavaScript is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Service card hover lift */
.service-card {
  will-change: transform;
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Navbar scrolled state */
#navbar.scrolled {
  background: rgba(250, 245, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(123, 45, 139, 0.08);
}

/* Nav links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F5A623;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile link */
.mobile-link {
  display: block;
}

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

/* Selection color */
::selection {
  background: #e8d2eb;
  color: #4a1756;
}

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

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

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

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