div#company-roots:before {
  content: "";
  position: absolute;
  top: 50px;
  left: 6vw;
  right: 0;
  bottom: 50px;
  background-image: url(../common/logobg.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 80% 50%;
  z-index: -1;
}
/* Video Section */
.vid-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.vid-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Who We Are Section */
.who-we-are {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 80vh;
  align-items: center;
}
.who-we-are,
.our-values,
.what-we-do {
  margin-bottom: 100px;
}
.who-we-are .image,
.who-we-are .text {
  width: 50%;
}
.who-we-are .image {
  height: 100%;
}

/* .who-we-are .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */
.who-we-are .image {
  width: 50%;
  height: 100%;
  background-image: url(../common/who-we-are.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.who-we-are .text {
  padding: 40px;
}
.who-we-are .text p {
  margin-bottom: 20px;
}
/* Our Values Section */
.section-title {
  width: 100%;
  margin-bottom: 50px;
  font-family: Lato;
  font-size: 42px;
  font-weight: 600;
  line-height: 46.2px;
  text-align: center;
  color: #c6a958;
  text-transform: uppercase;
}

.values-container,
.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 20px;
}

.values-container .value,
.services-container .service {
  flex: 1 1 calc(20% - 20px); /* Adjust for columns */
  text-align: center;
  position: relative;
}

.value {
  background: #e6ded4;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 32px 16px 16px;
  transition: 0.3s ease all;
}
.value h3 {
  color: #af8e45;
  font-family: Lato;
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  padding-bottom: 24px;
}
.value p {
  font-family: Lato;
  font-size: 18px;
  font-weight: 400;
  line-height: 21.42px;
  text-align: center;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}
.our-values .value img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.value:hover {
  background: #af8e45;
  scale: 1.05;
  z-index: 9;
}
.value:hover h3 {
  color: #4f301c;
}
.value:hover img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(28%) saturate(1204%)
    hue-rotate(341deg) brightness(97%) contrast(87%);
}
/* What We Do Section */
.what-we-do {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.what-we-do .text {
  width: 50%;
  padding: 20px;
}

.what-we-do .slider {
  width: 50%;
}

.swiper {
  width: 100%;
  height: 300px;
}
.swiper-button-prev,
.swiper-button-next {
  color: #000;
  background: #fff;
  border: 2px solid #c6a958;
  border-radius: 50%;
  height: 49px !important;
  width: 49px !important;
  transition: 0.5s ease all;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  font-size: 26px !important;
  font-weight: 600 !important;
  color: #c6a958 !important;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #c6a958 !important;
}
.swiper-button-prev:hover:after,
.swiper-button-next:hover:after {
  color: #fff !important;
}
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #c6a958 !important;
}

/* Our Services Section */
.our-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}

.our-services .service {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  flex: 1 1 auto;
  height: 350px;
}

/* First Row */
.our-services .service:nth-child(1) {
  flex: 1.5 1 40%; /* Slightly wider but balanced */
}

.our-services .service:nth-child(2),
.our-services .service:nth-child(3) {
  flex: 1 1 30%; /* Equal size */
}

/* Second Row */
.our-services .service:nth-child(4) {
  flex: 1.2 1 25%; /* Slightly smaller, balanced size */
}

.our-services .service:nth-child(5),
.our-services .service:nth-child(6) {
  flex: 1 1 37.5%; /* Equal size to balance row */
}

.our-services .service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease-in-out;
}

/* Title positioned in the center, moves up slightly on hover */
.our-services .service .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  z-index: 1;
  transition: top 0.3s ease-in-out;
}

/* Overlay slides in from the bottom */
.our-services .service .overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transition: bottom 0.3s ease-in-out;
}

/* Hover Effects */
.our-services .service:hover img {
  transform: scale(1.1); /* Subtle zoom effect */
}

.our-services .service:hover .overlay {
  bottom: 0;
}

.our-services .service:hover .title {
  top: 25%; /* Move title slightly upward */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .our-services .service:nth-child(3n + 1),
  .our-services .service:nth-child(3n + 2),
  .our-services .service:nth-child(3n + 3) {
    flex: 1 1 50%; /* Two columns on smaller screens */
  }
}

@media (max-width: 480px) {
  .our-services .service {
    flex: 1 1 100%; /* Single column on very small screens */
  }
}

.what-we-do {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;

  align-items: center;
}

.what-we-do .text {
  flex: 1 1 50%;
  padding: 40px;
}

.what-we-do .slider {
  flex: 1 1 50%;
}

.swiper {
  width: 100%;
  height: 75vh;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .who-we-are {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    align-items: center;
    flex-direction: column-reverse;
  }
}
@media (max-width: 768px) {
  .what-we-do {
    flex-direction: column;
  }

  .what-we-do .text,
  .what-we-do .slider {
    flex: 1 1 100%;
  }
  .text p {
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .who-we-are .image,
  .who-we-are .text,
  .what-we-do .text,
  .what-we-do .slider {
    width: 100%;
  }

  .our-values .value,
  .our-services .service {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .our-values .value,
  .our-services .service {
    flex: 1 1 100%;
  }
  .our-services .service .overlay {
    align-items: flex-end;
    padding-bottom: 32px;
  }
}

div#company-roots {
  display: flex;
  justify-content: flex-start;
  height: 100vh;
  position: relative;
}
@media (max-width: 768px) {
  div#company-roots {
    height: 75vh;
  }
  #containSVG {
    top: 25%;
  }
}

#thirdOrbits {
  opacity: 1;
}
span.scrolldown {
  position: absolute;
  bottom: 0;
}

/*Text Slider */
.text-slider-container {
  position: absolute;
  z-index: 1;
  width: 100%;
  text-align: left;
  padding-left: 5%;
  color: white;
  text-transform: uppercase;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.5;
  overflow: hidden;
  height: 60px;
}

.text-slider-wrapper {
  display: flex;
  flex-direction: column;
}

.text-slider-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}
@media (max-width: 768px) {
  .text-slider-slide,
  .text-slider-container {
    height: 120px;
  }
}
