* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-title {
  background-color: #000;
  height: 50px;
}

.carousel-section {
  display: flex;
  width: 100vw;
  height: 80vh;
  overflow: hidden; /* hide both scrollbars */
  scroll-behavior: smooth;
  border: 2px solid black;
  scroll-snap-type: x mandatory;
  position: relative;

  /* ✅ BLOCK HORIZONTAL SCROLLING WHILE ALLOWING VERTICAL */
  overscroll-behavior-x: contain; /* prevent left/right scroll chaining */
  overscroll-behavior-y: auto;
  touch-action: pan-y; /* allow vertical scroll, block horizontal gestures */
}


.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  pointer-events: auto; /* ✅ allow links/buttons inside slide to still work */
}

.carousel-section::-webkit-scrollbar {
  display: none;
}


/* Remove hover zoom effect */
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: inherit;
  transition: transform 0.5s ease;
  z-index: 1;
  transform: scale(1);
}

/* Add zoom animation when active */
.carousel-slide.active::before {
  animation: zoomIn 5s ease-in-out forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
}

.carousel-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color:yellow;
}

.carousel-content a {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  background-color: #016e13;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.carousel-content a:hover {
  background-color: #0fb300;
  color:yellow;
}


/* client section */

.client-section {
  background: #f9f9f9;
  padding: 50px 0;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.client-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.client-slider {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollClients 40s linear infinite;
}

.client-slider figure {
  margin: 0;
  flex-shrink: 0;
}

.client-slider img {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: scale 0.5s ease-in-out;
}

.client-slider img:hover {
  scale:120%;
  
}

/* Keyframes for infinite scroll */
@keyframes scrollClients {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}


/* Testimonials section */

.testimonial-section {
  background: #f5f5f5;
  padding: 60px 0;
  overflow: hidden;
}

.testimonial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-title {
  text-align: center;
  margin-bottom: 40px;
}

.testimonial-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.testimonial-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.testimonial-slider {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollTestimonials 60s linear infinite;
}

.testimonial-card {
  flex-shrink: 0;
  width: 350px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.testimonial-card figure {
  display: flex;
  justify-content: center;
}

.testimonial-card img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffd900;
}

/* Auto-scroll animation */
@keyframes scrollTestimonials {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}


/* Our Services Section 2 */
/* -------------------- Services Title Section -------------------- */
.services-title {
  position: relative;
  text-align: center;
  display: inline-block;
  padding: 20px 30px;
  margin: 0 auto 40px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #078930;             /* deep green title text */
  background-color: transparent;
  z-index: 1;
}

.services-title p {
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ✅ Background image behind text */
.services-title .bg-shape {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icons/bg-shape.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
  border-radius: 10px;
}

/* ✅ Green angled lines */
.angled-line {
  position: absolute;
  width: 60px;
  height: 2px;
  background-color: #FCDD09;  /* bright yellow lines */
  z-index: 3;
}

.angled-line::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 60px;
  background-color: #FCDD09;
}

/* Top-left corner line */
.angled-line.top-left {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.angled-line.top-left::after {
  top: 0;
  left: 0;
}

/* Bottom-right corner line */
.angled-line.bottom-right {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.angled-line.bottom-right::after {
  bottom: 0;
  right: 0;
}

/* -------------------- Services Section -------------------- */
.services-section {
  background: #fff;
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #078930;            /* green subtitle */
  font-weight: 500;
}

.services-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.services-slider {
  display: flex;
  gap: 30px;
  animation: scrollServices 60s linear infinite;
  width: max-content;
}

.service-card {
  width: 320px;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  color: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.service-content {
  position: absolute;
  background-color:#016e138c;
  color: #FCDD09;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

.service-content h3 {
  font-size: 1.1rem;
  color: #FCDD09;
  margin-bottom: 10px;
}

.service-content a {
  color: #FCDD09;           /* yellow link accents */
  text-decoration: underline;
}

.service-overlay {
  background-color: rgba(7, 137, 48, 0.85);  /* green overlay with opacity */
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #FCDD09;           /* yellow headings */
}

.service-overlay p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #fff;
}

.service-overlay .btn {
  padding: 8px 16px;
  background-color: #FCDD09;  /* yellow button */
  border-radius: 5px;
  color: #078930;             /* green button text */
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
}

/* Animation for scrolling */
@keyframes scrollServices {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
