/* ===== CUSTOM STYLES FOR BEYOND THE VEIL ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
  background: #a81c35;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8c182e;
}

/* Selection */
::selection {
  background: #fce7eb;
  color: #76172b;
}

/* Floating card animations */
.floating-card {
  animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 7s ease-in-out infinite;
}

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

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

/* Service cards */
.service-card {
  border: 1px solid rgba(232, 221, 214, 0.5);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(118, 23, 43, 0.12);
}

/* Gallery items */
.gallery-item {
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(circle at center, transparent 0%, rgba(118, 23, 43, 0.1) 100%);
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.5s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal.revealed {
    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; }
}

/* Navbar transitions */
.nav-scrolled {
  background: rgba(253, 248, 245, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(44, 36, 32, 0.08);
}

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

/* Button hover glow */
button[type="submit"]:hover {
  box-shadow: 0 8px 30px rgba(168, 28, 53, 0.3);
}

/* Print styles */
@media print {
  header, footer, #contact-form, .floating-card, .floating-card-2 {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
