/* Parallax Hero Styles */
.parallax-hero {
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay to darken the image */
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for parallax effect */
  background-image: url('https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: transform;
  z-index: -1;
}

/* Parallax effect on scroll */
@media (min-width: 768px) {
  .parallax-bg {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
  }
  
  .parallax-content {
    position: relative;
    z-index: 1;
  }
}

/* Overlay gradient for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 0;
}

/* Content styling for dark background */
.parallax-hero .text-gray-900 {
  color: #ffffff !important;
}

.parallax-hero .text-gray-500 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.parallax-hero .bg-white {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.parallax-hero .text-blue-600 {
  color: #60a5fa !important; /* Lighter blue for better contrast on dark bg */
}

.parallax-hero .bg-blue-100 {
  background-color: rgba(96, 165, 250, 0.3) !important;
  color: #ffffff !important;
}

.parallax-hero .text-blue-800 {
  color: #ffffff !important;
}
