/* Media queries for small screens */
@media (max-width: 600px) {

    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f4f4f4;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .modal-content {
        width: 90%;
    }
    .about-section {
        display: flex;
        flex-direction: column; /* Stack items vertically on mobile */
        justify-content: center;
        align-items: center;
        
        }
    .about-section2 {
flex-direction: column; /* Stack items vertically on mobile */

}

.image-background h1{
    align-items: normal;
}


    /* Header */
    #header {
        background-color: rgba(237, 234, 230, 0.95);
        color: #006980;
        padding: 10px 20px;
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 10px; /* Adjust padding for mobile */
        width: 100%; /* Ensure header fits within the viewport */
        box-sizing: border-box; /* Include padding in the width */
        overflow: hidden; /* Prevent horizontal scrolling */
    }

    #header img {
        height: 50px;
        max-height: 50px;
        width: auto;
    }

    .header-text h1 {
        font-size: 1.2em;
        margin: 0;
    }

    .header-text p {
        font-size: 0.8em;
        margin: 0;
    }

    .header-nav {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .header-nav a {
        color: black;
        text-decoration: none;
        padding: 5px 10px;
        font-size: 0.8em;
        border-radius: 5px;
    }

    .header-nav a:hover {
        text-decoration: underline;
    }

    /* Image background section */
    .image-background {
        display: flex;
        background-image: url('darkpool.jpeg');
        background-position: left;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 550px;
        text-align: left;
        position: relative;
        
        height: 250px;
        
        color: white;
        
        padding: 20px;
       
    }

    .review {
height: 400px;
    }
   
    .image-background h1 {
 /* Increase the margin for more space */
 width: 100%;
font-size: 2.3em; /* Larger size for mobile */


}

.image-background h2 {
padding-top: 1em;
font-size: 0.7em;
color: white;
}

    .cta-button {
        background-color: rgba(237, 234, 230);
        color: black;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.3s ease, transform 0.3s ease;
        
    }

    .cta-button:hover {
        background-color: #006980;
        color: white;
        transform: scale(1.05);
    }

    /* Sections */
    .section {
        
        padding: 20px;
        margin: 10px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 100%;
        font-size: 0.5em;
    }

    .section2{
    background-image: url('cleanpool.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ensure the background image covers the section */
    
    min-width: 50%; /* Ensure it fits within the viewport */
    
    margin-left: -1em;
    margin-bottom: 2em;
    border-radius: 30px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
    min-height: 200px; /* Ensure a minimum height is set */
    
}

.section3 {
max-width: 90%; /* Ensure it takes up the full width of the viewport */
margin-top: 20px; /* Add margin to separate from the text */
height: auto; /* Adjust height automatically */
padding: 20px; /* Adjust padding if needed */
min-height: 300px; /* Set a minimum height */
width: 100%; /* Ensure full width on mobile */
margin-left: 5px;
}




    .section h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .section p {
        font-size: 1em;
        color: black;
        line-height: 1.5;
    }

    .service-image {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
        margin: 20px 0;
    }

    .about-text {
        margin-top: 30px;
    }

    .about-text2 {
flex: 2; /* Make this section take up more space compared to the image */
flex-direction: column;
max-width: 600px;
margin: 20px;
margin-top: 10px;
margin-left: 5px;
width:100%; margin: right;
text-align: left;
}
    .about-text2 p {
font-size: .9em;
line-height: .8;
text-align: left;
line-height: 1.25;
}
.about-text2 h2 {
font-size: 2.2em;
margin-bottom: 1em;
text-align: center;

}
    /* Footer */
    #footer {
        background-color: #00bcd477;
        color: white;
        text-align: center;
        padding: 10px;
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    /* Pop-up modal styling */
    #popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        justify-content: center;
        align-items: center;
    }

    #quote-modal {
        width: 100%;
        height: 80%;
        margin-top: 20%;
    }
    #popup-fade {
        opacity: 1;
        transition: opacity 2s ease-in-out;
    }

    #popup-fade.fade-out {
        opacity: 0;
    }

    #header {
        flex-direction: column;
    }

    .header-text h1 {
        font-size: 1em;
    }

    .header-text p {
        font-size: 0.7em;
    }

    .header-nav {
        justify-content: center;
        gap: 5px;
    }

    .reviews-section {
        width: 100%;
        max-width: 80%;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
        text-align: center;
        font-size: 25px;
      
    }

    .review {
    height: 40%;
    }
   

   

.image-background h5 {
font-size: 0.7em;
}

}