*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: sans-serif;
    transition: 500ms ease;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}


.dark{
    color: #fff;
    background-color: rgba(19, 19, 19, 0.845);
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    background-color: green;
}

.logoImage{
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 50%;
}

nav ul{
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

nav ul li{
    list-style: none;
}

nav ul li a{
    text-decoration: none;
    font-size: 1.3rem;
    color: #fff;
}

.homeLink{
    position: relative;
}

.homeLink::after{
    content: '';
    position: absolute;
    height: 3px;
    width: 0;
    background-color: #fff;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 15px;
}

.homeLink:hover::after{
    width: 60px;
    transition: 400ms ease;
}

.contactLink{
    position: relative;
}

.contactLink::after{
    content: '';
    position: absolute;
    height: 3px;
    width: 0;
    background-color: #fff;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 15px;
}

.contactLink:hover::after{
    width: 80px;
    transition: 400ms ease;
}

.headerButton{
    height: 40px;
    width: 120px;
    background-color: rgb(7, 246, 7);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.headerButton:hover{
    background-color: rgb(3, 32, 3);
    transition: 500ms ease;
}

#headerDarkButton{
    height: 40px;
    width: 120px;
    background-color: rgb(38, 41, 38);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

#headerDarkButton:hover{
    background-color: rgb(7, 7, 7);
    transition: 500ms ease;
}

.heroSection, .aboutSection{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
}

.heroImage{
    height: 400px;
    width: 450px;
    border-radius: 30px;
    object-fit: cover;
}

.heroTextDiv{
    width: 470px;
}

.heroTextTitle{
    font-size: 2rem;
    margin-bottom: 10px;
}

.heroSubText{
    font-size: 1.3rem;
    margin-bottom: 10px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}


.aboutTitleDiv, .serviceTitleDiv, .teamPageTitleDiv{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.hamMenu{
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
    display: none; 
}

.aboutTitle, .serviceTitle, .teamPage{
    position: relative;
    color: #028e3f;
    font-size: 2rem;
    text-decoration: none;
}

.aboutTitle::after, .serviceTitle::after, .teamPage::after{
    content: '';
    position: absolute;
    height: 3px;
    width: 0;
    background-color: #028e3f;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 15px;
}

.aboutTitle:hover::after{
    width: 150px;
    transition: 400ms ease;
}

.serviceTitle:hover::after{
    width: 200px;
    transition: 400ms ease;
}

.teamPage:hover::after{
    width: 230px;
    transition: 400ms ease;
}
.aboutImage{
    width: 500px;
    height: 300px;
    background-color: #028e3f;
}

.aboutText{
    width: 400px;
}

.serviceSection, .ourTeamSection, .reviews{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 1rem;
    gap: 1rem;
    place-items: center;
}

.serviceCard{
    width: 100%;
    max-width: 350px;
    background-color: #06861b;
    box-shadow: 2px 2px 2px 2px rgb(45, 43, 43);
    border-radius: 15px;
}

.teamCard{
    width: 100%;
    max-width: 350px;
    background-color: #033332;
    box-shadow: 2px 2px 2px 2px rgb(45, 43, 43);
    border-radius: 15px;
}

.reviewCard{
    width: 100%;
    max-width: 350px;
    background-color: #d9d5eb52;
    box-shadow: 2px 2px 2px 2px rgb(45, 43, 43);
    border-radius: 15px;
}

footer{
    height: auto;
    width: 100%;
    background-color: #06861b;
    margin-top: 100px;
    padding: 1.5rem;
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.emailInput{
    height: 50px;
    width: 190px;
    outline: none;
    caret-color: #028e3f;
    border-radius: 5px;
    border: none;
    font-size: 1.2rem;
    padding: 1rem;
}

.subscribeBtn{
    height: 50px;
    width: 100px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    background: #028e3f;
}

.subscribeText{
    font-size: 1.2rem;
    color: #fff;
}

i{
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

i:hover{
    color: rgb(2, 77, 2);
    transition: 400ms ease;
}

h4{
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 1070px){
    header{
        width: 100%;
    }
    .hamMenu{
        display: block;
    }
    .offScreenMenu{
        background-color: green;
        height: 100vh;
        width: 100%;
        max-width: 450px;
        position: fixed;
        top: 0;
        padding-top: 2rem;
        right: -450px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-items: center;
        text-align: center;
        transition: 500ms ease;
    }
    .offScreenMenu ul{
        display: grid;
    }
    .offScreenMenu.active{
        right: 0;
    }

    .hamMenu span{
        height: 5px;
        width: 100%;
        background-color: #fff;
        border-radius: 25px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: .3s ease;
    }

    .hamMenu span:nth-child(1){
        top: 25%;
    }
    .hamMenu span:nth-child(3){
        top: 75%;
    }
    .hamMenu.active span:nth-child(1){
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .hamMenu.active span:nth-child(2){
        opacity: 0;
    }

    .hamMenu.active span:nth-child(3){
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .heroSection{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .heroImage{
        height: 15rem;
        width: 310px;
        object-fit: cover;
        order: 1;
    }

    .heroTextDiv{
        order: 2;
    }
    .heroTextTitle{
    font-size: 1.5rem;
    }

    .heroSubText{
    font-size: 1rem;
    }
    .aboutSection{
        flex-direction: column;
    }

    .aboutImage{
        width: 315px;
        border-radius: 15px;
    }
}