@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Oswald:wght@700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

p {
    font-size: 1.4rem;
    color: #006064;
    text-align: left;
    line-height: 1.9rem;
}

h2 {
    font-size: 2rem;
    color: #006064;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    color: #006064;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: center;

}

/*start header*/
#header {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: auto;
}

#header .header {
    min-height: 8vh;
    background-color: rgb(31, 30, 30, 0.24);
    transition: .3s ease background-color;
}

#header .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 0 10px
}

#header .nav-list ul {
    list-style: none;
    position: absolute;
    background-color: rgb(31, 30, 30);
    width: 100vw;
    height: 100vh;
    left: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow-x: hidden;
    transition: .5s ease left;
}

#header .nav-list ul.active {
    left: 20%;
}

#header .nav-list ul a {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: .2rem;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    padding: 20px;
    display: block;
}

#header .nav-list ul a::after {
    content: attr(data-after);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: rgb(240, 248, 255, 0.021);
    font-size: 10rem;
    letter-spacing: 50px;
    z-index: -1;
    transition: .3s ease letter-spacing;
}

#header .nav-list ul li:hover a::after {
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: initial;
}

#header .nav-list ul li:hover a {
    color: rgb(93, 138, 168);
}

#header .hamburger {
    height: 60px;
    width: 60px;
    display: inline-block;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transform: scale(.8);
    margin-right: 20px;
}

#header .hamburger::after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 3px solid white;
    animation: hamburger_pulse 1s ease infinite;
}

#header .hamburger .bar {
    height: 2px;
    width: 30px;
    position: relative;
    background-color: white;
    z-index: -1;
}

#header .hamburger .bar::after,
#header .hamburger .bar::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    background-color: white;
    transition: .3s ease;
    transition-property: top, bottom;
}

#header .hamburger .bar::after {
    top: 8px;
}

#header .hamburger .bar::before {
    bottom: 8px;
}

#header .hamburger.active .bar::before {
    bottom: 0;
}

#header .hamburger.active .bar::after {
    top: 0;
}

/*end header*/

/* home section */
#home {
    background-image: url(./img/building.jpg);
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}

#home::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .7;
    z-index: -1;
}

#home .home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    justify-content: flex-start;

}

#home h1 {
    display: block;
    width: fit-content;
    font-size: 5rem;
    position: relative;
    color: rgb(93, 138, 168);
}

#home h2 {
    display: block;
    width: fit-content;
    font-size: 2rem;
    position: relative;
    color: gray;
}

#home h3 {
    display: block;
    width: fit-content;
    font-size: 2rem;
    position: relative;
    color: gray;
    text-align: left;
    line-height: 1.9rem;
}

#home .logo {
    max-width: 150px;
    max-height: 150px;
    position: absolute;
    right: 100px;
    bottom: 100px;
    transition: width 2s, height 4s;
}

/* end of home */

/* start services section */
#services .services {
    flex-direction: column;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 0;
}

#services .service-top {
    max-width: 500px;
    margin: 0 auto;
}

#services .service-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

#services .service-item-electricity h2 {
    color: white;
}

#services .service-item-electricity p {
    color: white;
}

#services .service-item-plumbing h2 {
    color: white;
}

#services .service-item-plumbing p {
    color: white;
}

#services .service-item-security h2 {
    color: white;
}

#services .service-item-security p {
    color: white;
}

#services .service-item-maintenance h2 {
    color: white;
}

#services .service-item-maintenance p {
    color: white;
}

#services .service-item-electricity {
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(./img/Electrician.png);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#services .service-item-security {
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(./img/Home-Security.jpg);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#services .service-item-plumbing {
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(./img/plumbing.png);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#services .service-item-maintenance {
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(./img/maintenance.jpg);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#services .service-item-electricity::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    opacity: .9;
    z-index: -1;
}

#services .service-item-security::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    opacity: .9;
    z-index: -1;
}

#services .service-item-plumbing::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    opacity: .9;
    z-index: -1;
}

#services .service-item-maintenance::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    opacity: .9;
    z-index: -1;
}

/* end of services */

/* about us section*/
#about .about {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

#about .about-header h1 {
    margin-bottom: 50px;
}

#about .about-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#about .about-text p {
    color: white;
}

#about .text-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}

#about .text-info {
    padding: 30px;
    flex-basis: 50%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

#about .about-img {
    flex-basis: 50%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

#about .about-img::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    opacity: .7;
}

#about .about-img img {
    transition: .3s ease transform;
}

#about .text-item:hover .about-img img {
    transform: scale(1.1);
}

/*end of about section*/

/*clients section*/

#clients .clients {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

#clients .clients hr {
    width: 40%;
    height: 5px;
    border: none;
    background: linear-gradient(60deg, #29323c 0%, #485563 100%);
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

#clients .client-items {
    width: 400px;
}

#clients .client-item {
    width: 80%;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 30px;
    margin: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 18px 0 #0000002c;
    justify-content: center;
    flex-direction: column;
    transition: .3s ease box-shadow;
}

#clients .client-item:hover {
    box-shadow: 0px 0px 5px 0 #0000002c;
}

#clients .client-item .client-img {
    width: 70px;
    margin: 0 auto;
    margin-bottom: 10px;
}

#clients .client-info h2 {
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: none;
}

#clients .text {
    font-size: 2rem;
    color: #006064;
    font-weight: 500;
    text-transform: none;
    padding-left: 30px;
    padding-top: 30px;
}

/*end of clients sections*/

/*team section*/
.team ul {
	padding-top: 20px; 
    position: relative;
}

.team li {
    float: left; 
    text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
   
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

/*draw the connectors*/

.team li::before, .team li::after{
	content: '';
	position: absolute; top: 0; right: 50%;
	border-top: 1px solid #ccc;
	width: 50%; height: 20px;
}
.team li::after{
	right: auto; left: 50%;
	border-left: 1px solid #ccc;
}

/*remove left-right connectors from elements without 
any siblings*/
.team li:only-child::after, .team li:only-child::before {
	display: none;
}

/*Remove space from the top of single children*/
.team li:only-child{ padding-top: 0;}

/*Remove left connector from first child and 
right connector from last child*/
.team li:first-child::before, .team li:last-child::after{
	border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.team li:last-child::before{
	border-right: 1px solid #ccc;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
}
.team li:first-child::after{
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}

/*add downward connectors from parents*/
.team ul ul::before{
	content: '';
	position: absolute; top: 0; left: 47.5%;
	border-left: 1px solid #ccc;
	width: 0; height: 20px;
}

.team li a{
	border: 1px solid #ccc;
	padding: 5px 10px;
	text-decoration: none;
	font-family: arial, verdana, tahoma;
	font-size: 1.5rem;
    font-weight: 500;
	display: inline-block;
    color: #006064;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
#team .text {
    font-size: 2rem;
    color: #006064;
    font-weight: 500;
    text-transform: none;
    padding-left: 30px;
    padding-top: 30px;
}

/*end team section*/

/*values section*/
#values .values {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

#values .values-items {
    width: 400px;
}

#values .values-item {
    width: 80%;
    padding: 20px;
    text-align: center;
    border-radius: 60px;
    padding: 30px;
    margin: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 18px 0 #0000002c;
    justify-content: center;
    flex-direction: column;
    transition: .3s ease box-shadow;
}

#values .values-item:hover {
    box-shadow: 0px 0px 5px 0 #0000002c;
}

#values .icon {
    width: 70px;
    margin: 0 auto;
    margin-bottom: 10px;
}

#values .values-item h2 {
    font-size: 2rem;
    font-weight: 500;
    text-transform: none;
}

/*end values section*/

/*strategy section*/
#strategy .strategy {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

#strategy .info {
    padding: 30px;
    height: 100%;
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#strategy .info p {
    font-size: 2rem;
}

#strategy .strat-img {
    flex-basis: 50%;
    height: 300px;
    position: relative;
}

/*end strategy section*/

/* contact section */
#contacts .contacts {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

#contacts .contact-items {
    width: 400px;
}

#contacts .contact-item {
    width: 80%;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 30px;
    margin: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 18px 0 #0000002c;
    justify-content: center;
    flex-direction: column;
    transition: .3s ease box-shadow;
}

#contacts .contact-item:hover {
    box-shadow: 0px 0px 5px 0 #0000002c;
}

#contacts .icon {
    width: 70px;
    margin: 0 auto;
    margin-bottom: 10px;
}

#contacts .contact-info h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #006064;
}

#contacts .contact-info h2 {
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: none;
}

/* end of contact*/

/*start footer*/
#footer {
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
}

#footer .footer {
    min-height: 150px;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 10px;
}

#footer .brand h1 {
    font-size: 2rem;
    padding-bottom: 20px;
    text-transform: uppercase;
    color: white;
}

#footer .social-icon {
    display: flex;
    margin-bottom: 20px;
}

#footer .social-item {
    height: 50px;
    width: 50px;
    margin-bottom: 0 5px;
}

#footer .social-item img {
    filter: grayscale(1);
    transition: .3s ease filter;
}

#footer .social-item img:hover {
    filter: grayscale(0);
}

#footer p {
    color: white;
    font-size: 1.3rem;
}

/* end of footer*/

/*key frames*/
@keyframes hamburger_pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/*end key frames*/

/*media query for tablet */
@media only screen and (min-width:768px) {
    h1.section-title {
        font-size: 6rem;
    }

    /*home*/
    #home h1 {
        font-size: 7rem;
    }

    #home h2 {
        font-size: 2rem;
    }

    #home h3 {
        font-size: 2rem;
    }

    /*end home*/

    /*services*/
    #services .service-bottom .service-item-electricity {
        flex-basis: 45%;
        margin: 2.5%
    }

    #services .service-bottom .service-item-plumbing {
        flex-basis: 45%;
        margin: 2.5%
    }

    #services .service-bottom .service-item-security {
        flex-basis: 45%;
        margin: 2.5%
    }

    #services .service-bottom .service-item-maintenance {
        flex-basis: 45%;
        margin: 2.5%
    }

    /*end service*/

    /*about */
    #about .text-item {
        flex-direction: row;
    }

    #about .text-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    #about .text-item {
        height: 400px;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }

    #about .about-text .text-info {
        height: 100%;
    }

    #about .about-text .about-img {
        height: 100%;
    }

    /*end about*/

    /*values*/
    #values .values {
        flex-direction: column;
        padding: 100px 0;
        align-items: center;
        justify-content: center;
        min-width: 20vh;
    }

    #values .values-items {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0;
    }

    #values .values-item {
        width: 30%;
        margin: 0;
        flex-direction: column;
    }

    #values .values-item .icon {
        height: 100px;
        width: 100px;
    }

    #values .values-item .icon img {
        object-fit: contain;
    }

    #values .values-item .values-text {
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    /*end values*/

    /*strategy*/
    #strategy .strategy {
        flex-direction: row;
    }

    #strategy .info {
        height: 400px;
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #strategy .strat-img {
        height: 100%;
    }

    /*end strategy*/

    /*clients section*/
    #clients .clients {
        flex-direction: column;
        padding: 100px 0;
        align-items: center;
        justify-content: center;
        min-width: 20vh;
    }

    #clients .client-items {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin: 20%;
    }

    #clients .client-item {
        width: 30%;
        margin: 0;
        flex-direction: column;
    }

    #clients .client-item .client-img {
        width: 100%;
        height: 100%;       
        object-fit: contain;
    }

    #clients .client-item .client-info {
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    /*end clients*/

    /*team*/
    #team .team {
        flex-direction: column;
        padding: 100px 0;
        align-items: center;
        justify-content: center;
        min-width: 20vh;
    }

    #team .team-items {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0;
    }

    #team .team-item {
        width: 30%;
        margin: 0;
        flex-direction: column;
    }

    #team .team-item .img {
        height: 100px;
        width: 100px;
        object-fit: contain;
    }

    #team .team-item .team-info {
        width: 100%;
        text-align: center;
        padding: 20px;
    }
    /*end team*/

    /*contact*/
    #contacts .contacts {
        flex-direction: column;
        padding: 100px 0;
        align-items: center;
        justify-content: center;
        min-width: 20vh;
    }

    #contacts .contact-items {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0;
    }

    #contacts .contact-item {
        width: 30%;
        margin: 0;
        flex-direction: row;
    }

    #contacts .contact-item .icon {
        height: 100px;
        width: 100px;
    }

    #contacts .contact-item .icon img {
        object-fit: contain;
    }

    #contacts .contact-item .contact-info {
        width: 100%;
        text-align: left;
        padding: 20px;
    }

    /*end contact*/
}

/*end media query for tablet*/

/*media query for desktop*/
@media only screen and (min-width: 1200px) {

    /*header*/
    #header .hamburger {
        display: none;
    }

    #header .nav-list ul {
        position: initial;
        display: block;
        height: auto;
        width: fit-content;
        background-color: transparent;
    }

    #header .nav-list ul li {
        display: inline-block;
    }

    #header .nav-list ul a::after {
        display: none;
    }

    /*end header*/

    #home .logo {
        max-width: 200px;
        max-height: 200px;
    }

    /*services */
    #services .service-bottom .service-item-electricity {
        flex-basis: 22%;
        margin: 1.5%;
    }

    #services .service-bottom .service-item-plumbing {
        flex-basis: 22%;
        margin: 1.5%;
    }

    #services .service-bottom .service-item-security {
        flex-basis: 22%;
        margin: 1.5%;
    }

    #services .service-bottom .service-item-maintenance {
        flex-basis: 22%;
        margin: 1.5%;
    }

    /*end of services*/

}

/*end desktop media query*/