*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}
body{
    max-width: 100%;
    overflow-x: hidden;
}

.hero-row{
    min-height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.5),rgba(4,9,30,0.5)),url(images/Banner-Srvices.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    background-color: #3b3c3d;
}
nav img{
    width: 100px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.nav-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: #B6121F;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 20px 0 40px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin: 0 10px;
}
.hero-btn i{
    padding-right: 5px;
    font-size: 20px;
}
.hero-btn:hover{
    border: 1px solid #B6121F;
    background: #B6121F;
    transition: 1s;
}
nav .fa{
    display: none;
}
.menu-logo{
    display: none;
}

.row{
    padding: 6%;
}
/* Services Section */

.services-row h2{
    padding-bottom: 10px;
    font-size: 1.5rem;
}
.services-row p{
    color: #3b3c3d;
}
.services-row{
    text-align: center;
    background-color: #f7f7f7;
}
.col-container{
    margin-top: 5%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-basis: 31%;
    color: #3b3c3d;
}
.col-1,.col-2, .col-3{
    display: flex;
    flex-direction: column;
    width: 40rem;
}
.col-1-image{
    border-radius: 10px;
    min-height: 40vh;
    background-image: url(images/pipe-v-5.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
.col-1, .col-2{
   margin-bottom: 60px;
}
.col-2-image{
    border-radius: 10px;
    min-height: 40vh;
    background-image: url(images/SDAC-29.png);
    background-position: center;
    background-size: cover;
    position: relative;
}
.col-3-image{
    border-radius: 10px;
    min-height: 40vh;
    background-image: url(images/Backflow-1.jpeg);
    background-position: center;
    background-size: cover;
    position: relative;
    justify-self: center;
}
h3{
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 20px 0;
    color: black;
}
.col-1 p, .col-2 p, .col-3 p{
    margin-bottom: 40px;
}
.services-list{
    text-align: left;
    padding: 0 20px;
}
.services-list li{
    padding-bottom: 18px;
}
/* .moreText{
    display: none;
} */
.moreText {
    display: block;  /* Ensure it takes up space when opened */
    max-height: 0;   /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;  /* Initially transparent */
}

.moreText.show {
    max-height: 900px;  /* Adjust based on content size */
    opacity: 1;
}




.link{
    text-decoration: none;
    color: #2C7E97;
}

/* Footer  Section*/

.footer-logo{
    width: 60px;
    margin: 0 13px;
}
.footer{
    background-color: #3b3c3d;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 2% 6%;
}
.footer-links ul{
    margin-left: -50px;
}
.footer-links ul li{
    flex: 1;
    text-align: right;
    padding-bottom: 20px;
}
.footer-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.footer-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}
.footer-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: #B6121F;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.footer-links ul li:hover::after{
    width: 100%;
}

.icons-container{
    width: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.icons-container{
    color: #fff;
}

.icons .fa{
    color: #B6121F;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    font-size: 20px;
}

@media (min-width: 800px) and (max-width: 1080px) {
    .icons-container{
        width: 70%;
    }
}
@media (max-width: 400px) {
    .hero-row{
        min-height: 70vh;
    }
}

@media (max-width: 800px) {
    .text-box h1{
        font-size: 20px;
    }
    .text-box p{
        font-size: 14px;
    }
    .hero-btn{
        margin: 10px 10px;
    }
    .nav-links ul li{
        display: block;
        border-bottom: 1px solid #fff;
        padding: 20px;
    }
    .nav-links ul{
        margin: 80px 20px 0 20px;
    }
    .nav-links {
        position: fixed;
        background-color: #3b3c3d;
        right: -100vw; /* Hide menu initially */
        width: 100vw; /* Cover entire screen width */
        height: 100vh;
        top: 0;
        z-index: 2;
        transition: right 0.5s ease-in-out;
        text-align: left;
        overflow-y: hidden;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .fa-bars {
        display: block;
    }
    .fa-times {
        display: block;
        position: absolute;
        top: 20px;
        right: 30px;
    }
    .menu-logo-container{
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .menu-logo{
        display: block;
    }
    .show-menu {
        right: 0;
    }
    .nav-links ul li::after{
        height: 0px;
    }
    .moreText.show {
        max-height: 1010px;  /* Adjust based on content size */
    }
    /* Services Section */

    .row{
        flex-direction: column;
    }
    .services p{
        font-size: 14px;
    }
    .services-list{
        padding: 0 5px;
    }
    .services-list ul{
        padding-left: 20px;
    }

    /* Footer Section */

    .footer-links ul{
        margin-left: 0;
    }
    .icons-container{
        flex-direction: column;
        padding: 20px 0;
    }
    .footer-links ul li a{
        font-size: 14px;
    }
    .icons-container p{
        font-size: 14px;
        padding-top: 10px;
    }
}