/* Custom styles for Hot Desert Landscaping */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D1B2A;
}
::-webkit-scrollbar-thumb {
  background: #1e4a6f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #40E0D0;
}

/* Selection */
::selection {
  background: rgba(64, 224, 208, 0.3);
  color: #f0f4f8;
}

/* Navbar transitions */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(5, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(64, 224, 208, 0.1);
}

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

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: translateY(6px);
}

/* Mobile links */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Service cards */
.service-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(64, 224, 208, 0.08);
}

/* Gallery items */
.gallery-item {
  height: 240px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-item {
    height: 300px;
  }
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 224, 208, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(64, 224, 208, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1) !important;
}

/* Button hover glow */
button:hover,
a:hover {
  transition: all 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(64, 224, 208, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}
