/* ─── Custom Styles for Beijing Lisa Massage Parlor ─── */

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

/* Selection color */
::selection {
  background-color: #7B2D3B;
  color: #fefdfb;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}

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

/* ─── Mobile Menu ─── */
.mobile-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.mobile-link:hover {
  padding-left: 12px;
}

#mobileMenu.open {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

/* ─── Hero ─── */
#hero {
  position: relative;
}

/* ─── Service Cards ─── */
.service-card {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── Floating Cards Animation ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
  animation: float3 3.5s ease-in-out infinite;
}

/* ─── Button Ripple Effect ─── */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Form Styling ─── */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.2;
  }
}

/* ─── Print Styles ─── */
@media print {
  #navbar, #mobileMenu {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}
