.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* put images behind text */
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1; /* explicitly set */
}

.hero-slide.active {
  opacity: 1;
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 5; /* bring text above slides */
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-content-slide.active {
  display: block;
  opacity: 1;
}

/* Headings and buttons */
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero h1 span {
  display: block;
  color: var(--accent, #f59e0b);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.cta-buttons .btn {
  margin: 5px;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-primary {
  background: var(--primary, #2563eb);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary, #7c3aed);
  color: #fff;
}

/* Optional overlay */
.custom-solution-overlay {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(30, 41, 59, 0.85);
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 10; /* ensure overlay above images */
}

.custom-solution-overlay.active {
  opacity: 1;
  pointer-events: auto;
}





/*slider next section */
.features-slider section {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.features-slider section.active {
    opacity: 1;
    position: relative;
}
