body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
  transition: background 0.3s ease-in-out;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(6px);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: url("assets/qadari-hero-image.webp") center/cover no-repeat;
  position: relative;
}


.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Responsive Text */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}

/* --- Services Section --- */
.service-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 15px;
}

/* Carousel on mobile */
/* Carousel on mobile (fixed centering) */
@media (max-width: 768px) {
  #servicesCarousel .carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    
  }

  #servicesCarousel .carousel-item {
    flex: 0 0 80%;
    margin-right: 15px;
    scroll-snap-align: center;
  }

  #servicesCarousel .carousel-item:last-child {
    margin-right: 0;
  }

  #servicesCarousel .carousel-control-prev,
  #servicesCarousel .carousel-control-next {
    display: none;
  }
}


/* --- Accessible About Us Section --- */
#about {
  position: relative;
  background-color: #fff !important;
}

#about h2 {
  color: #000;
  font-size: 1.8rem;
  line-height: 1.4;
}

#about p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

#about strong {
  color: #000;
}

/* Accessible button colors */
#about .btn-success {
  background-color: #a5e32d;
  border: 2px solid transparent;
  color: #000;
  transition: all 0.3s ease-in-out;
}

#about .btn-success:hover,
#about .btn-success:focus {
  background-color: #8cc622;
  color: #fff;
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Image styling */
#about img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Responsive layout */
@media (max-width: 768px) {
  #about .col-lg-6:first-child {
    text-align: center;
  }

  #about p {
    padding: 0 15px;
  }

  #about img {
    margin-top: 20px;
  }
}


/*service page css*/

.service-section {
  height: 70vh;
  background: url("assets/service-hero-section.webp") center/cover no-repeat;
  position: relative;
}


.service-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.service-content {
  position: relative;
  z-index: 1;
}

/* Responsive Text */
@media (max-width: 768px) {
  .service-section h1 {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}




/*about us*/


.about-section {
  height: 70vh;
  background: url("assets/about-image-section.webp") center/cover no-repeat;
  position: relative;
}


.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
}

/* Responsive Text */
@media (max-width: 768px) {
  .about-section h1 {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}



/*contact hero section*/



.contact-section {
  height: 70vh;
  background: url("assets/contact-hero-section.webp") center/cover no-repeat;
  position: relative;
}


.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.contact-content {
  position: relative;
  z-index: 1;
}

/* Responsive Text */
@media (max-width: 768px) {
  .contact-section h1 {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}



/*gallery page*/


/*contact hero section*/



.gallery-section {
  height: 70vh;
  background: url("assets/gallery.webp") center/cover no-repeat;
  position: relative;
}


.gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.gallery-content {
  position: relative;
  z-index: 1;
}

/* Responsive Text */
@media (max-width: 768px) {
  .gallery-section h1 {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}



