html, body {
  overflow-x: hidden; /* ✅ Prevent misalignment */
}

.visting-home-page {
  position: relative;
  height: 650px;
  width: 100%;
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     
  overflow: hidden;
    background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% 150px; /* height of gradient area at bottom */
  background: #000;
  margin-top: 80px;
  
}

.scape-visting-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 750px;
  width: 100%;
  object-fit: cover;
  z-index: 0;
}

.visting-home-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 610px; /* same as video */
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* gray shade with opacity */
  z-index: 1; /* above video, below text */
  pointer-events: none; /* allow clicks to pass through */
}


.scape-visting-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 50px;
  line-height: 88px;
  letter-spacing: 0;
  color: white; /* or contrast color */
  margin: 0;
}

.scape-visting-name {
  font-family: 'Cerost', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 96px;
  line-height: 88px;
  letter-spacing: 0;
  text-transform:capitalize;
  margin: 0;
  max-width:825px;
  color: white;
}


.visiting-gradient {
  position: absolute;
  width: 104vw;
  height: 150px;    /* adjust as needed */
  z-index: 2;       /* above video, below content */
  /* background: #000; */
  top:500px;
   background: linear-gradient(
    to top, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(255, 255, 255, 0) 100%
  );
   background-repeat: repeat-x;
  background-size: 200% 100%; /* make gradient wider for smooth horizontal movement */
 animation: fogFloat 6s ease-in-out infinite;
  pointer-events: none; 
  transform-origin: center bottom;
left: -2vw;
  overflow: hidden;
}

@keyframes fogFloat {
  0% {
    transform: translateX(0) scaleY(1);
  }
  25% {
    transform: translateX(10px) scaleY(1.1);
  }
  50% {
    transform: translateX(20px) scaleY(1.2);
  }
  75% {
    transform: translateX(10px) scaleY(1.1);
  }
  100% {
    transform: translateX(0) scaleY(1);
  }
}

.visting-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 750px;
  width: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1);
  animation: zoomInImage;
  display: block;
  background-size: cover;
  overflow: hidden;
   animation-name: zoomInImage;
  animation-duration: 2400ms; /* 2.4 seconds */
  animation-delay: 800ms; /* Start after 0.8s */
  animation-timing-function: cubic-bezier(0.53, 0, 0.82, 1); /* smooth easing */
  animation-fill-mode: forwards; /* Keep final state */

}

/* .visting-home-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 610px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 2;
} */

.scape-visting-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  font-family: 'Roboto', sans-serif;
    opacity: 0; /* hidden initially */
  animation: showText 1s ease-in forwards;
  animation-delay: 2s; /* appears after zoom animation */
}

/* 🌟 Animation keyframes */
@keyframes zoomInImage {
  from {
    transform: scale(1.2);
    opacity: 1;
  }
  to {
    transform: scale(1.6); /* smooth zoom-in effect */
    opacity: 0;
  }
}

@keyframes showText {
  from {
    opacity: 0;
    transform: translateY(20px); /* slight lift effect */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 /* monile media query */



 @media (max-width: 992px) {
  .visting-home-page {
    height: 550px;
    margin-top: 0;
  }

  .visting-bg-image,
  .scape-visting-video {
    height: auto;
    width:auto;
  }

  .scape-visting-title {
    font-size: 36px;
  }

  .scape-visting-name {
    font-size: 72px;
  }

  .visiting-gradient {
    top: 350px;
    height: 210px;
    left: -4vw;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .visting-home-page {
    height: 480px;
    /* margin-top: 60px; */
  }

  .visting-bg-image,
  .scape-visting-video {
    height: 480px;
  }

  .scape-visting-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .scape-visting-name {
    font-size: 42px;
    line-height: 1.2;
  }

.visiting-gradient {
    height: 120px;       /* even smaller height for small phones */
    /* top: 380px; */
    top: calc(100% - 119px);
    width: 120vw;        /* slightly wider for smooth animation */
    left: -10vw;         /* center properly */
  }

  .scape-visting-content {
    padding: 0 20px;
  }
}

/* Small Mobile (below 400px) */
@media (max-width: 400px) {
  .scape-visting-title {
    font-size: 20px;
  }

  .scape-visting-name {
    font-size: 32px;
  }

  .visting-home-page {
    height: 420px;
  }

  .visting-bg-image,
  .scape-visting-video {
    height: 420px;
  }

.visiting-gradient {
    height: 120px;      
    /* top: 200px; */
    /* top:unset; */
    bottom:0;
    width: 120vw;        
    left: -10vw;
  }
}