.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 450px;
  overflow: hidden;
}

.slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 3s ease-in-out;
  transform: scale(1.1);
}

.slider .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slider .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: brightness(0.8);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 15px;
  z-index: 2;
}

.slide-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #fff;
  animation: blink-caret 0.7s step-end infinite;
}

.slide-desc {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #fff;
  animation: blink-caret 0.7s step-end infinite;
}

.hero-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background-color: #218838;
}

/* blinking cursor */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: white; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide-title {
    font-size: 1.8rem;
  }
  .slide-desc {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 70vh;
  }
  .slide-title {
    font-size: 1.5rem;
  }
  .slide-desc {
    font-size: 0.95rem;
  }
  .hero-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}
