/* Custom Hero Background Styles */

/* Hero section with custom background */
.montavis-hero-section {
  position: relative;
  min-height: 100vh; /* Ensure at least full viewport height */
  padding-bottom: 180px; /* Increased padding to accommodate new content */
  background-color: transparent !important;
  overflow: visible; /* Allow content to overflow for transition effect */
  z-index: 2;
}

/* Hero background image styling - covers entire section and extends below */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Use full height */
  z-index: -1;
  pointer-events: none;
  object-fit: cover; /* Cover the container */
  background-position: 48.2225% 50.6325%; /* Added specific positioning */
  object-position: center top; /* Align from top */
  opacity: 0.55; /* Further reduced opacity for more transparency */
}

/* Make hero section stand out with increased contrast */
.montavis-hero-section .container {
  position: relative;
  z-index: 10;
}

/* Add blue glow to hero area */
.montavis-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(64, 156, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* Fix the hero heading structure */
.hero-heading-container {
  margin-bottom: 40px;
}

.montavis-subheading {
  font-size: var(--font-size-4xl);
  opacity: 0.8;
  font-weight: var(--font-weight-light);
  margin-bottom: 10px;
  color: var(--color-text);
  line-height: 1.2;
}

/* Statistics section styling */
.statistics-section {
  margin-top: 120px; /* Further increased margin-top for even more spacing */
  padding: 40px 0;
  position: relative;
  z-index: 5;
}

/* Remove challenges-heading as it's replaced by montavis-section-heading */
.challenges-heading {
  display: none;
}

/* Dot grid positioning adjustment */
.dot-grid-visible {
  position: absolute;
  z-index: -1; /* Ensure it sits behind content */
  opacity: 0.3; /* Keep it subtle */
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%); /* Center it vertically */
  pointer-events: none;
}

.statistics-heading {
  font-size: var(--font-size-2xl);
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  margin-bottom: 40px;
  text-align: center;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.statistics-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0; /* Added top margin to increase spacing */
}

.statistic-card {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 16px;
  padding: 30px;
  width: calc(50% - 15px);
  max-width: 500px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  text-align: left;
}

.statistic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.statistic-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: 15px;
  line-height: 1;
}

.statistic-description {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Add spacing to prevent overlap with header */
.saas_banner_content_two {
  margin-top: 80px; /* Add top margin to prevent overlap with modern-header */
  position: relative;
  z-index: 10;
}

/* Responsive adjustments for hero section and statistics */
@media (max-width: 992px) {
  .statistics-container {
    gap: 20px;
  }
  
  .statistic-card {
    padding: 25px;
  }
  
  .statistic-number {
    font-size: var(--font-size-4xl);
  }
  
  .challenges-heading {
    font-size: calc(var(--font-size-2xl) + 0.2rem);
    margin-bottom: 40px;
  }
  
  .statistics-section {
    margin-top: 100px;
  }
  
  .saas_banner_content_two {
    margin-top: 70px;
  }
  
  .montavis-subheading {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 768px) {
  .montavis-hero-section {
    padding-bottom: 120px;
  }
  
  .statistics-section {
    margin-top: 80px;
    padding: 20px 0;
  }
  
  .statistics-heading {
    font-size: var(--font-size-xl);
    margin-bottom: 30px;
  }
  
  .statistics-container {
    flex-direction: column;
    align-items: center;
  }
  
  .statistic-card {
    width: 100%;
    max-width: 400px;
  }
  
  .hero-background-image {
    height: 120%; /* Increase height on mobile to ensure full coverage */
    object-position: 75% top; /* Adjust positioning for mobile */
  }
  
  .challenges-heading {
    font-size: var(--font-size-2xl);
    margin-bottom: 35px;
  }
  
  .saas_banner_content_two {
    margin-top: 60px;
  }
  
  .montavis-subheading {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 576px) {
  .montavis-hero-section {
    padding-bottom: 80px;
  }
  
  .statistics-section {
    margin-top: 60px;
  }
  
  .statistic-card {
    padding: 20px;
  }
  
  .statistic-number {
    font-size: var(--font-size-3xl);
    margin-bottom: 10px;
  }
  
  .statistic-description {
    font-size: var(--font-size-base);
  }
  
  .hero-background-image {
    height: 130%; /* Further increase height for small screens */
  }
  
  .challenges-heading {
    font-size: var(--font-size-xl);
  }
  
  .montavis-subheading {
    font-size: var(--font-size-xl);
  }
}
