.services {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: url("../../Images/1842/services-bg.png") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: flex-start;
  padding: 80px 20px 60px;
  overflow: hidden;
}

/* Gradient overlay */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.53) 0.17%,
    rgba(0, 0, 0, 0.362719) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.services h2 {
  font-family: 'Cerost';
  font-weight: 400;
  font-size: 55px;
  line-height: 100%;
  text-transform: capitalize;
  color: #fff;
  z-index: 2;
  text-align: center;
  margin-bottom: 60px;
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  z-index: 2;
  /* width: 80%; */
  max-width: 1100px;
  justify-items: center;
}

.service-name {
  position: relative;
  width: 230px;
  height: 180px;
  top: 190px;
  opacity: 1;
  border-radius: 8.75px;
  padding:10px;

  /* Set the transparent border for spacing */
  border: 1px solid transparent;

  /* Background layers:  
     1. Gradient simulating top border only (we mask rest with white)
     2. Semi-transparent white background */
  background:
    linear-gradient(90deg,  #FFAB14) top center no-repeat,
    rgba(255, 255, 255, 0.53);

  /* Size gradient layer to top 4px (thickness of border) */
  background-size: 100% 4px;

  /* Clip the backgrounds so gradient is restricted to border/top */
  background-clip: padding-box, border-box;

  /* Blur behind */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-sizing: border-box;
  display: flex;
  justify-content: center;
   flex-direction: column;       /* Stack children vertically */
  align-items: center;          /* Center children horizontally */
  gap: 10px;                   /* Space between img and text */

  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  opacity: 0; /* start hidden */
  z-index: 2;
  top:0px;
}

.service-name.animated:nth-child(2) {
  animation: slideFromTop 1s ease-out forwards;
}

.service-name.animated:nth-child(3) {
  animation: slideFromBottom 1s ease-out forwards;
}

.service-name.animated:nth-child(4) {
  animation: slideFromTop 1s ease-out forwards;
}

.service-name.animated:nth-child(5) {
  animation: slideFromBottom 1s ease-out forwards;
}

/* Keyframes */
@keyframes slideFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes slideFromBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.service-name img {
width: 58px;
height: 58px;
opacity: 1;
border-radius: 33554400px;
border-width: 1px;
}

.service-name span{
font-family: 'DM Sans';
font-weight: 500;
font-size: 17px;
line-height:22px;
letter-spacing: 0%;
text-align: center;
vertical-align: middle;
width:100%;
min-height:46px;
}

.location{
 position: relative;       /* so you can place it anywhere on the page */
  width: 100%;
  height: 756px;
  /* transform: translateX(-50%) rotate(0deg); rotation and horizontal centering */
  opacity: 1;
  z-index: 10;              /* above background, adjust if needed */
  pointer-events: none;     /* optional: ignore mouse events */
  object-fit: cover;
  display: block;
}

/* top video  */


.video-section {
  position: relative;
  width: 100%;
  padding: 40px 20px; /* space above and below video */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000; /* fallback background */
  overflow: hidden;
  box-sizing: border-box;
   background: url('../../Images/1842/measures.bg.png');
   flex-direction: column;
   gap:30px;
}

.video-section video.location {
  width: 100%;
  height: auto;
  max-width: 1200px; /* optional, to avoid stretching on large screens */
  border-radius: 16px; /* optional rounded corners */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}


@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.5, 1.5);
  }
  100% {
    transform: scale(1, 1);
  }
}

.location-img-wrap { 
  width:calc(100% - 0px);  
  /* height:600px; */
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); overflow:hidden; */
  padding:5px;
}
.location-img-wrap img { 
  width:100%; 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  /* height:100%;
  object-fit: cover;  
  object-position:center 0px;
  animation: zoom-in-zoom-out 20s ease infinite; */
}

.video-section h2{
  font-family: 'Cerost';
font-weight: 400;
font-style:normal;
font-size: 48px;
line-height: 100%;
letter-spacing: 0%;
text-align: center;
vertical-align: middle;
text-transform: capitalize;

}

/* ✅ Responsive Queries */
@media (max-width: 1200px) {
  .services-wrapper {
    /* width: 60%;
    grid-template-columns: repeat(2, 1fr); */
    width:100%;
    grid-template-columns: repeat(4, 0fr);
    gap:15px; justify-content: center;
  }
}

@media (max-width: 992px) {
  .services h2 {
    font-size: 44px;
  }
  .services-wrapper {
    grid-template-columns: repeat(2, 0fr);
    gap:15px;
  }
  .service-name span { font-size:14px; min-height:auto; line-height:20px; }
  .service-name {
    width: 200px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .services h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .services-wrapper {
    grid-template-columns: repeat(1, 0fr);
    gap: 20px;
  }
  .service-name {
    width: 160px;
    height: 140px;
  }
  .service-name img {
    width: 42px;
    height: 42px;
  }
  .service-name span {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .services-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .services h2 {
    font-size: 26px;
  }
  .service-name {
    width: 180px;
    height: 130px;
  }
}

@media (max-width: 400px) {
  .services h2 {
    font-size: 22px;
  }
  .service-name {
    width: 160px;
    height: 120px;
  }
  .service-name img {
    width: 34px;
    height: 34px;
  }
  .service-name span {
    font-size: 12px;
  }
}