.main-content {
}

.service-type .btn {
  border-radius: 0;
}

/* Carousel section styling */
.carousel-item img {
  height: 700px; /* or whatever height you want */
  object-fit: cover; /* crop instead of stretch */
}

/* Parallax section styling */
.parallax {
  background-image: url('https://www.rpskypool.com/assets/images/services/tiles-pool-chemicals.jpg'); /* Replace with your own */
  min-height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.overlay {
  background: rgba(0, 0, 0, 0.4);
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.card-img {
  height: 250px; /* Pick a size that works for your design */
  object-fit: cover;
  width: 100%;
}

.about {
  margin-top: 5rem;
  text-align: center;
}

.services {
  margin-top: 5rem;
  height: 40rem;

  background-color: #1d2934;
  color: white;
  padding: 10rem 0;
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.service-img {
  width: 50%;
  height: 80%;
}

.service-type {
  background-color: #1d2934;
  color: white;
  text-align: center;
  border: none;
  border-radius: 0;
}

.service-type .card-body {
  text-align: center;
}

.pool-type-section {
  margin-top: 5rem;
  text-align: center;
}

.accessories-section {
  text-align: center;
  margin-top: 5rem;
}

.accessories-wrapper {
  margin-top: 5rem;
}

.accessories-wrapper > div {
  display: flex;
}

.accessories-wrapper .card {
  display: flex;
  flex-direction: column;
}

.accessories-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}


.accessories-type {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers horizontally */
  border: none;
}

.accessories-img {
  width: 30%;
  height: 30%;
}

.parallax-section {
  margin-top: 5rem;
}

.portfolio-section {
  margin-top: 5rem;
  text-align: center;
}

.featured-projects {
  margin-top: 5rem;
  text-align: center;
}



/* pool type hoover styles */

.pool-type .card {
  overflow: hidden; /* Prevents zoomed image from spilling out */
  border: none;
  transition: transform 0.3s ease;
  border-radius: 0;
}

.pool-type .card img {
  height: 250px; /* Keep images uniform */
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.pool-type .card .card-img-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pool-type .card h5 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.pool-type a {
  text-decoration: none;
}

.pool-type:hover .card img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.pool-type:hover .card .card-img-overlay {
  opacity: 1;
}

/* end of pool-type hoover styles */

/* service images hoover styles */
.service-img {
  width: 150px; /* adjust as needed */
  height: 150px;
  object-fit: cover;
  border-radius: 50%; /* makes sure they are perfectly circular */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto; /* center in card */
}

.service-type:hover .service-img {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.4);
}

/* end of service images hoover styles */