@keyframes moveDown {
  to {
    transform: translate(-50%, 80%);
  }
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: moveDown 1s ease-out 5s forwards;
  z-index: 20;
  text-align: center;
  width: 90%;
  max-width: 800px;
}




.heading {
  font-size: 4.5rem;
  font-weight: 700;
  color: white;
  font-family: "Libre Baskerville", "Cairo", serif;
  margin: 0;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Elegant double border */
.heading::before,
.heading::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
}

.heading::before {
  bottom: -12px;
  width: 80%;
  background-color: rgba(255, 255, 255, 0.8);
}

.heading::after {
  bottom: -18px;
  width: 60%;
  background-color: var(--text-color-h2);
}

.heading-description {
  font-size: 1.4rem;
  color: white;
  font-family: "Libre Baskerville", "Cairo", serif;
  margin-top: 30px;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) {
  .heading {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .heading-description {
    font-size: 1rem;
    margin-top: 20px;
  }
}




.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.containter .overlay {
    z-index: 2;
}

.containter .text-overlay {
    z-index: 3;
}