/* Custom styles for Radiant Homes Cleaning Services */

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

/* Floating card animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

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

.floating-card {
  animation: float1 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;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state and animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Navbar scroll effect */
.nav-scrolled {
  background: rgba(249, 243, 247, 0.95) !important;
  box-shadow: 0 2px 20px rgba(161, 75, 127, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #e8c8db;
  border-radius: 5px;
}

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

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

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

#mobileMenu.open {
  max-height: 400px;
}

/* Print styles */
@media print {
  nav, .floating-card, .floating-card-2, .floating-card-3 {
    display: none;
  }
}
