/* start global rules */
*{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: 'Open Sans', sans-serif;
    font-family: 'Work Sans', sans-serif;
}
:root{
    --main-color:#10cab7;
    --second-color:#777;
    --special-color:#e7e6e6;
    --back-color: #eee;
    --main-duration: 0.5s;
    --padding-sections: 70px;
}

.container{
    /* background-color: red; */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* small screen */
@media (min-width: 768px) {
    .container{
        width: 750px;
    }
}

/* medium screen */
@media (min-width: 992px) {
    .container{
        width: 970px;
    }
}

/* large screen */
@media (min-width: 1200px) {
    .container{
        width: 1170px;
    }
}

.special{
    text-align: center;
    height: 180px;
}
.special h1{
    font-size: 100px;
    letter-spacing: -3px;
    color: var(--special-color);
    margin: 0;
    font-weight: 800;
}
.special p{
    color: var(--second-color);
    font-size: 20px;
    margin: -30px;
    text-align: center;
}

/* small screen */
@media (max-width: 767px) {
    .special h1{
        font-size: 60px;
    }
    .special p{
        margin: -20px;
    }
}
/* end global rules */


/* start header */
header{
    padding: 20px;
}
header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header img{
    width: 60px;
}

header .bar{
    width: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
header .bar span{
    border-bottom: 2px black solid;
    width: 25px;
    height: 2px;
    padding-bottom: 5px;
}
header .bar span:nth-child(2){
    width: 15px;
    transition: var(--main-duration);
}
header .bar:hover span{
    width: 25px;
}

header .main ul {
    list-style: none;
    background-color: var(--back-color);
    margin: 0;
    padding: 0;
    position: absolute;
    right: 15px;
    top: calc(100% + 15px);
    width: 200px;
    display: none;
    transition: var(--main-duration);
    z-index: 1;
}
header .main ul li{
    padding: 15px;
    transition: var(--main-duration);
}
header .main ul li:not(:last-child){
    border-bottom: #ddd solid 1px;
}
header .main ul a{
    color: black;
    text-decoration: none;
}
header ul li:hover{
    padding-left: 25px;
    cursor: pointer;
}
header ul::before{
    content: "";
    position: absolute;
    border-color: transparent transparent var(--back-color);
    border-style: solid ;
    border-width: 15px;
    right: 0;
    top: -25px;
}
.menu:hover ul{
    display: block;
}
/* end header */

/* start landing */
.landing{
    background-image: url(https://raw.githubusercontent.com/ElzeroWebSchool/HTML_And_CSS_Template_One/main/images/landing.jpg);
    background-size: cover;
    height: calc(100vh - 64px);
    position: relative;
}
.landing h1{
    margin: 0;
    color: var(--main-color);
    font-size: 50px;
}
.landing-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% ,-50%);
    text-align: center;
    width: 320px;
}
.landing p{
    line-height: 1.8;
    font-size: 18px;
}
/* end landing */

/* start feature */
.feature{
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    background-color: var(--back-color);
}
.feature .container{
    display: grid;
    grid-template-columns: repeat(auto-fill , minmax(300px , 1fr));
    gap: 20px;
}
.feat{
    padding: 20px;
}
.feature i{
    color: var(--main-color);
    font-size: 50px;
}
.feature h3{
    font-weight: 800;
}
.feature p{
    line-height: 1.8;
    color: var(--second-color);
    font-size: 17px;
}
/* end feature */

/* start services */
.services{
    padding-top: var(--padding-sections);
    padding-bottom: var(--padding-sections);
}
.serv-cols{
    display: grid;
    grid-template-columns: repeat(auto-fill , minmax(300px , 1fr));
    gap: 25px;
}
.raw{
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}
.raw i{
    color: var(--main-color);
    font-size: 35px;
}
.raw h3{
    margin: 0;
}
.raw p{
    color: var(--second-color);
    line-height: 1.6;
    font-weight: 300;
}
.col-img{
    width: 250px;
    height: fit-content;
    position: relative;
    margin-left: 80px;
}
.col-img img{
    width: 250px;
}
.col-img::before{
    content: "";
    position: absolute;
    background-color: #2c4755;
    height: calc(100% + 100px);
    width: 110px;
    top: -50px;
    right: -50px;
    z-index: -1;
}

/* small screen */
@media (max-width: 1199px) {
    .col-img{
        display: none;
    }
}
@media (max-width: 767px) {
    .raw{
        flex-direction: column;
        text-align: center;
    }
}
/* end services */

/* start portfolio */
.portfolio{
    background-color: var(--back-color);
    padding-bottom: var(--padding-sections);
    padding-top: var(--padding-sections);
}
.port-col{
    background-color: white;
}
.port-col img{
    width: 100%;
}
.port-col h3{
    margin: 0;
}
.port-col p{
    color: var(--second-color);
    line-height: 1.6;
}
.port-info{
    padding: 20px;
}
/* end portfolio */

/* start about */
.about{
    padding-top: var(--padding-sections);
    padding-bottom: calc(var(--padding-sections) + 70px);
}
.ab-sec{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(300px , 1fr));
    padding-top: 50px;
}
.ab-img{
    height: 350px;
    width: 250px;
    position: relative;
}
.ab-img img{
    width: 100%;
    height: 100%;
}
.ab-img::after{
    content: "";
    position: absolute;
    background-color: var(--special-color);
    height: calc(100% + 80px);
    width: 100px;
    top: -40px;
    left: -30px;
    z-index: -1;
}
.ab-img::before{
    content: "";
    position: absolute;
    right: -130px;
    top: -40px;
    height: 290px;
    width: 100px;
    border-bottom: 70px solid var(--main-color);
    border-left: 80px solid var(--main-color);
    z-index: -1;
}
.ab-info hr{
    border-color: var(--main-color);
    width: 50%;
    display: inline-block;
}
.ab-info p{
    line-height: 1.8;
}
.ab-info :first-child{
    font-weight: 700;
    padding-bottom: 50px;
}
.ab-info :last-child{
    color: var(--second-color);
}

/* small screen */
@media (max-width: 991px) {
    .ab-img::before, .ab-img::after{
        display: none;
    }
    .ab-sec{
        text-align: center;
    }
    .ab-img{
        margin: 0px auto 50px;
    }
    .ab-sec{
        padding-top: 0;
    }
}
/* end about */

/* start contact */
.contact{
    background-color: var(--back-color);
    padding-top: var(--padding-sections);
    padding-bottom: var(--padding-sections);
}
.cont-info{
    text-align: center;
}
.cont-info h2{
    font-weight: 800;
    color: #2c4755;
    font-size: 35px;
    margin: 0 0 18px;
}
.cont-info a{
    font-size: 35px;
    font-weight: 800;
    text-decoration: none;
    color: var(--main-color);
}
.cont-info i{
    margin-left: 10px;
}
@media (max-width: 550px) {
    .cont-info h2,.cont-info a{
        font-size: 25px;
    }
}
/* end contact */

/* start footer */
.footer{
    background-color: #2c4755;
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-weight: 400;
    font-size: 18px;
}
.footer span{
    color: var(--main-color);
    font-weight: 700;
}