/* Soilometer Enhanced Styles with Scroll Effects - Optimized Version */

/* ========== Base Variables & Styles ========== */


/* ========== Section Styles ========== */
section {
  padding: 5rem 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.375rem 1.25rem;
  border-radius: 50rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
}

.carousel-item {
  height: 90vh;
  min-height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  padding: 0 15%;
}

.carousel-content {
  max-width: 800px;
}

.carousel-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 5rem 0 !important;
}

.cta-section .display-5 {
  font-weight: 700;
}

.cta-section p {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ========== Button Styles ========== */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #0cb218;
  border-color: #0cb218;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

/* ========== Responsive Media Queries ========== */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .carousel-item {
    height: 70vh;
  }
  
  .carousel-caption {
    padding: 0 12%;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  
  .carousel-item {
    height: 60vh;
  }
  
  .carousel-caption {
    padding: 0 8%;
  }
  
  .cta-section {
    padding: 4rem 0 !important;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .carousel-item {
    height: 50vh;
    min-height: 400px;
  }
  
  .carousel-caption {
    padding: 0 5%;
  }
  
  .carousel-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top:199px;
  }
  
  .carousel-buttons .btn,
  .product-actions .btn {
    width: 100%;
  }
  
  .cta-section {
    background-attachment: scroll;
    padding: 3rem 0 !important;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .carousel-item {
    height: 40vh;
    min-height: 300px;
  }
  
  .carousel-caption {
    padding: 0 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-tag {
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* ========== Utility Classes ========== */
.step-number {
  margin-right: 20px;
  font-weight: 600;
  font-size: 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

  .carousel-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top:199px;
  }

  
    .card-header{font-size: larger;
    font-weight: 700;
    color: green;
    background: ghostwhite;
    }