/* Enhanced Hero Section Styling for All Pages */

.enhanced-hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Black and white filter for background image */
.enhanced-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  filter: grayscale(100%) contrast(1.2) brightness(0.8);
  z-index: 1;
}

/* Blue gradient overlay with fade-out effect */
.enhanced-hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(30, 58, 138, 0.85) 0%,
    rgba(59, 130, 246, 0.75) 25%,
    rgba(59, 130, 246, 0.5) 50%,
    rgba(59, 130, 246, 0.25) 75%,
    transparent 100%
  );
  z-index: 2;
}

/* Content styling */
.enhanced-hero-content {
  position: relative !important;
  z-index: 3 !important;
  max-width: 800px !important;
  padding-left: 60px !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.enhanced-hero-title {
  font-size: 4.5rem !important;
  font-weight: 800 !important;
  color: white !important;
  margin: 0 !important;
  text-shadow: 
    3px 3px 0px rgba(0, 0, 0, 0.8),
    6px 6px 10px rgba(0, 0, 0, 0.4),
    0px 0px 20px rgba(255, 255, 255, 0.2) !important;
  letter-spacing: 3px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  font-family: 'Arial Black', 'Helvetica Bold', sans-serif !important;
  position: relative !important;
  display: inline-block !important;
  padding-bottom: 15px !important;
}

/* Professional underline effect for enhanced-hero-title */
.enhanced-hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #60a5fa 20%, 
    #ffffff 50%, 
    #60a5fa 80%, 
    transparent 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.6);
}

/* Legacy support for about-hero classes */
.about-hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  filter: grayscale(100%) contrast(1.2) brightness(0.8);
  z-index: 1;
}

.about-hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(30, 58, 138, 0.85) 0%,
    rgba(59, 130, 246, 0.75) 25%,
    rgba(59, 130, 246, 0.5) 50%,
    rgba(59, 130, 246, 0.25) 75%,
    transparent 100%
  );
  z-index: 2;
}

.about-hero-content {
  position: relative !important;
  z-index: 3 !important;
  max-width: 800px !important;
  padding-left: 60px !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.about-hero-title {
  font-size: 4.5rem !important;
  font-weight: 800 !important;
  color: white !important;
  margin: 0 !important;
  text-shadow: 
    3px 3px 0px rgba(0, 0, 0, 0.8),
    6px 6px 10px rgba(0, 0, 0, 0.4),
    0px 0px 20px rgba(255, 255, 255, 0.2) !important;
  letter-spacing: 3px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  font-family: 'Arial Black', 'Helvetica Bold', sans-serif !important;
  position: relative !important;
  display: inline-block !important;
  padding-bottom: 15px !important;
}

/* Professional underline effect for about-hero-title */
.about-hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #60a5fa 20%, 
    #ffffff 50%, 
    #60a5fa 80%, 
    transparent 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.6);
}

/* Responsive design */
@media (max-width: 1200px) {
  .enhanced-hero-title,
  .about-hero-title {
    font-size: 3.5rem;
    letter-spacing: 2px;
  }
  
  .enhanced-hero-content,
  .about-hero-content {
    padding-left: 40px;
  }
}

@media (max-width: 768px) {
  .enhanced-hero-section,
  .about-hero-section {
    min-height: 300px;
  }
  
  .enhanced-hero-title,
  .about-hero-title {
    font-size: 2.8rem;
    letter-spacing: 1px;
  }
  
  .enhanced-hero-content,
  .about-hero-content {
    padding-left: 20px;
    text-align: center;
    max-width: 100%;
  }
  
  /* Adjust gradient for mobile */
  .enhanced-hero-section::after,
  .about-hero-section::after {
    background: linear-gradient(
      90deg,
      rgba(30, 58, 138, 0.85) 0%,
      rgba(59, 130, 246, 0.75) 40%,
      rgba(59, 130, 246, 0.5) 70%,
      transparent 100%
    );
  }
}

@media (max-width: 480px) {
  .enhanced-hero-title,
  .about-hero-title {
    font-size: 2rem;
  }
  
  .enhanced-hero-content,
  .about-hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Animation effects */
.enhanced-hero-title,
.about-hero-title {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhance the evaporation effect with subtle animation */
.enhanced-hero-section::after,
.about-hero-section::after {
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background: linear-gradient(
      90deg,
      rgba(30, 58, 138, 0.85) 0%,
      rgba(59, 130, 246, 0.75) 25%,
      rgba(59, 130, 246, 0.5) 50%,
      rgba(59, 130, 246, 0.25) 75%,
      transparent 100%
    );
  }
  100% {
    background: linear-gradient(
      90deg,
      rgba(30, 58, 138, 0.9) 0%,
      rgba(59, 130, 246, 0.8) 20%,
      rgba(59, 130, 246, 0.6) 45%,
      rgba(59, 130, 246, 0.3) 70%,
      transparent 95%
    );
  }
}
