/* client section coding */

#clients{
  width: 100%;
  height: auto;
  /* background-color: royalblue; */
  padding: 20px;
}

#clients .container {
    margin-top: 100px;
    /* width: 100%; */
    padding: 20px;
    /* background-color: tomato; */
}

#clients .container h2 {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 500;
}

    #clients .clients-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        /* background-color: tan; */
        width: 100%;
        padding: 20px;
    }

    .clients-box {
        background-color: #fff;
        border-radius: 16px;
        padding: 20px 15px;
        flex: 1 1 200px; /* grow, shrink, base width */
        max-width: 220px;
        /* display: flex; */
        align-items: center;
        justify-content: center;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
        height: 120px; /* Fixed height for uniform look */
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
        transition: all 0.3s;
    }

    .clients-box:hover{
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        scale:1.02;
    }

    .clients-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        aspect-ratio: 4 / 1;
    }

    /* ✅ Responsive tweaks */
    @/media (max-width: 1024px) {
        .clients-box {
            max-width: 180px;
            height: 100px;
        }
    }

    @/media (max-width: 768px) {
        .clients-box {
            max-width: 140px;
            height: 90px;
        }
    }

    @/media (max-width: 480px) {
        #clients .container h2 {
            font-size: 2rem;
        }

        .clients-box {
            max-width: 100%;
            height: auto;
        }

        .clients-box img {
            height: 60px;
        }
    }


.image-container {
    position: relative;
    display: inline-block;
    text-align: center;
    width:100%;
    height:100%;
    /* background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent); */
    /* background-image: linear-gradient(to right, red , yellow); */
  }

  .image-container img {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    background-size: cover;
    border-radius: 16px;
    filter: grayscale(80%); /* Convert the image to grayscale */
  filter: brightness(0.5); /* Increase brightness to make it lighter */
    background-position: center;

}

  .overlay-text {
    position: absolute;
    top: 50%; /* Adjust this to position the text vertically */
    left: 50%; /* Adjust this to position the text horizontally */
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.6rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: background for better contrast */
    padding: 10px 20px;
    border-radius: 16px;
  }

  #clients .container .image-container .overlay-text h2{
    color: #ffffff;
    /* text-align: center;
    display: flex;
    align-items: center; */
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    /* position: absolute; */
    font-size: 2.6rem;
  }

  #clients .container .image-container .overlay-text  p{
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* margin: 0 auto; */
    /* position: absolute; */
    padding: 10px;
    font-weight: 500;
    font-size: 1.2rem;
}

