.about-section{
    margin-top: 190px;
}
.drinking-water-img{
    width: 450px;
    margin-left: 90px;
   
}
.gradient-box {
    width: 100%;
    height: 100px; /* Adjust the height as needed */
    background: linear-gradient(to top, #c3c2c2, #8bdbef);
  }
/* Set consistent card height */
.custom-card {
    height: 500px; /* Set medium height */
    max-height: 700px;
    background-color: gray; /* Restrict the card height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the card */
.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Set image height to maintain proportional card height */
.custom-card img {
    height: 450px; /* Adjust image height */
    object-fit: cover; /* Ensure the image fills the space properly */
}

/* Ensure the card body fits within the height */
.custom-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure the card text stays within the height */
.custom-card .card-text {
    margin-top: auto;
    margin-bottom: 10px;
}
/* Custom styling for the card hover effect */
/* Centered image structure */
.centered-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 140px;
    height: 600px;
    overflow: hidden;
    flex-direction: column; /* Ensure items stack vertically */
    opacity: 0.9;
}

/* Content styling */
.content {
    font-family: 'Lobster', cursive; /* Chosen font */
    font-size: 20px; /* Adjust as needed */
    color: white;
    text-align: left;
    max-width: 700px; /* Limit width to fit neatly on the left */
    position: absolute; 
    left: 20px; 
    /* top: 5%; */
    transform: translateY(-50%); /* Adjust for vertical centering */
    z-index: 2; /* Ensure content is above background */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: dark overlay for readability */
    padding: 20px;
    border-radius: 8px; /* Optional: rounded corners */
}

/* Water splash background image */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    z-index: 1; /* Set behind the content */
}


/* Moving bubbles container */
.bubble-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 2;
}

/* Moving bubbles styling */
.floating-bubble {
    position: absolute;
    width: 995px;
    height: auto;
    animation: floatBubble 10s ease-in-out infinite;
    opacity: 0.3;
}

/* Different bubble positions */
.floating-bubble1 { left: 10%; }
.floating-bubble2 { right: 65%; }
.floating-bubble3 { left: 55%; }
.floating-bubble4 { right: 10%; }

/* Bubble animation for upward floating effect */
@keyframes floatBubble {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .background-image {
        width: 100%;
        height: auto;
    }

    .centered-image {
        margin-top: 100px;
        height: 400px;
    }

    .floating-bubble {
        width: 150px; /* Reduced bubble size for smaller screens */
    }

    .heading {
        font-size: 36px; /* Reduced font size for smaller screens */
    }

    .content {
        font-size: 16px;
        margin-top: auto;
        padding: 10px;
    }
}
