/* Custom styles for Richardson Hood L website */

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

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-250 { animation-delay: 0.25s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.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; }

/* Navbar styles */
#navbar.scrolled {
  background: rgba(249, 240, 250, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(74, 25, 66, 0.08);
}

#navbar.scrolled .nav-link {
  color: #4A1942 !important;
}

#navbar.scrolled .nav-link:hover {
  color: #F5A623 !important;
}

#navbar.scrolled .font-serif {
  color: #4A1942 !important;
}

#navbar.scrolled .text-plum-500 {
  color: #7c3aed !important;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobileMenu.open .mobile-nav-link {
  animation: fade-in-up 0.5s ease-out forwards;
}

#mobileMenu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

.menu-line.active:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-line.active:nth-child(2) {
  opacity: 0;
}

.menu-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* Service card hover effects */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5A623, #E8911A);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

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

/* Selection color */
::selection {
  background: #F5A623;
  color: #4A1942;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-card {
    padding: 1.5rem;
  }
}
