/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
    max-width: 1170px;
    margin: 0px auto;
    padding: 0px 15px;
}
li {
    list-style-type: none;
}
section .h2-title {
    font-size: 33px;
    line-height: 42px;
    color: #292f36;
    font-weight: normal;
    text-transform: uppercase;
    border-left: 10px solid #e1e6ea;
    padding-left: 14px;
    margin-bottom: 56px;
    margin-top: 80px;
}
a:link, a:active, a:visited {
    text-decoration: none;
}
body {
    font-family: Roboto, sans-serif;
}
body > section {
    display: block;
}
img {
    max-width: 100%;
}
span {
    font-weight: bold;
}
input, textarea {
    outline: none;
}

/* Header */
header {
    background-color: #1d2126;
}
header .container {
    display: flex;
    justify-content: space-between;
    padding: 26px 15px;
    line-height: 30px;
    
}
header h1 {
    height: 30px;
}
header ul {
    height: 30px;
}
header ul li {
    height: 30px;
    display: inline-block;
    margin: 0px 15px;
}
header ul li a.active {
    color: #23b7a4 ;
}
header ul li a:hover {
    border: 2px solid #5b6168;
}
header ul li a {
    color: #a4aead;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 30px;
    display: inline-block;
    padding: 0px 12px;
    border: 2px solid transparent;
    border-radius: 4px;
}
/* jumbotron */
#jumbotron {
    background: #39394b url('./images/picture1.jpg') no-repeat center center;
    background-size: cover;
}
#jumbotron .container {
    display: flex;
    align-items: center;
    min-height: 662px;
    position: relative;
}
#jumbotron .container h2 {
    color: #ffffff;
    font-size: 36px;
    line-height: 42px;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 26px;
}
#jumbotron .info {
    max-width: 642px;
}
#jumbotron .container p {
    font-size: 16px;
    line-height: 26px;
    color: #ccd0d7;
}
#jumbotron .info div {
    height: 44px;
    font-size: 0;
    margin-top: 39px;
}
#jumbotron .info div a {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    padding: 17px 32px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    display: inline-block;
    margin-right: 11px;
}
#jumbotron .info div a:hover {
    background-color: #23b7a4;
    border: 2px solid #23b7a4;
}
#jumbotron .info div a.active {
    background-color: #23b7a4;
    border: 2px solid #23b7a4;
}
#jumbotron .dots a {
    width: 13px;
    height: 13px;
    border: 2px solid #ffffff;
    display: inline-block;
    border-radius: 50%;
    margin-left: 9px;
    text-indent: -1000000px;
}
#jumbotron .dots a:hover,
#jumbotron .dots a.active {
    background-color: #ffffff;
}
#jumbotron .dots {
    position: absolute;
    bottom: 31px;
    right: 15px;
}

/* About */
#about {
    display: flex;
}
#about div p {
    font-size: 16px;
    line-height: 26px;
    color: #8d8f92;
    max-width: 620px;
}
#about div p:nth-child(1) {
    margin-bottom: 26px;
}
#about div p:nth-child(2) {
    margin-bottom: 55px
}
#about > div {
    width: 683px;
    margin-right: 30px;
}
#about > div ul li a {
    display: block;
    width: 60px;
    height: 60px;
    text-indent: -100000px;
    background-color: #c8cdd0;
    background-position: center center;
    background-repeat: no-repeat;
}
#about > div ul li a:hover {
    background-color: #d0d5d9;
}
#about > div > ul > li {
    display: inline-block;
    margin-right: 1px;
}
#about > div > ul {
    font-size: 0px;
}
#about > ul {
    width: 457px;
    margin-right: 0px;
}
#about > div > ul > li:nth-child(1) a {
    background-image: url('./images/social/facebook.png');
}
#about > div > ul > li:nth-child(2) a {
    background-image: url('./images/social/twitter.png');
}
#about > div > ul > li:nth-child(3) a {
    background-image: url('./images/social/google.png');
}
#about > div > ul > li:nth-child(4) a {
    background-image: url('./images/social/dribble.png');
}
#about > div > ul > li:nth-child(5) a {
    background-image: url('./images/social/behance.png');
}
#about > ul {
    counter-reset: about-counter;
}
#about > ul > li {
    position: relative;
}
#about > ul > li::before {
    content: counter(about-counter, decimal-leading-zero);
    counter-increment: about-counter;
    display: block;
    width: 50px;
    height: 50px;
    background-color: #23b7a4;
    font-size: 20px;
    color: #ffffff;
    line-height: 50px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}
#about > ul li h3,
#about > ul li p {
    margin-left: 70px;
}
#about > ul li h3 {
    font-size: 18px;
    line-height: 18px;
    color: #292f36;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 17px;
}
#about > ul li p {
    font-size: 16px;
    color: #8d8f92;
    line-height: 26px;
    margin-bottom: 30px;
}
#about-container {
    border-bottom: 1px solid #dde1e4;
}

/* Team */
#partners .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100%;
    height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
#partners > div:hover .social-links {
    display: flex;
    opacity: 1;
}
#partners .social-links li:hover {
    background-color: #4e5a62;
    cursor: pointer;
}
#partners > div:hover .partner-info p {
    color: #ffffff;
    background-color: #3a454d;
}
#partners .social-links li a {
    display: block;
    text-indent: -100000px;
}
#partners .social-links li:nth-child(1) {
    background-image:  url(./images/social/twitter.png);
}
#partners .social-links li:nth-child(2) {
    background-image:  url(./images/social/facebook.png);
}
#partners .social-links li:nth-child(3) {
    background-image:  url(./images/social/linkedin.png);
}
#partners .social-links li {
    width: 50px;
    height: 50px;
    display: inline-block;
    margin-right: 1px;
    background-color: #3a454d;
    background-repeat: no-repeat;
    background-position: center center;
}
#partners .social-links li:last-child {
    margin-right: 0px;
}
#partners .social-links ul {
    font-size: 0px;
}
#partners {
    display: flex;
    justify-content: space-between;
}
#partners > div {
    width: calc((100% - 90px) / 4);
    background-color: #e1e6ea;
    position: relative;
    
}
#partners .partner-info {
    width: 100%;
    font-size: 0px;
}
#partners .partner-info p {
    padding-left: 20px;
    padding-right: 20px;
}
#partners .partner-info p:nth-child(2) {
    font-size: 16px;
    padding-bottom: 11px;
    padding-top: 21px;
    text-transform: uppercase;
    color: #292f36;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
#partners .partner-info p:nth-child(3) {
    font-size: 14px;
    color: #8d8f92;
    padding-bottom: 21px;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
#about > div > ul {
    margin-bottom: 100px;
}
#partners {
    margin-bottom: 100px;
}

/* lovely work */
#lovely-work {
    background-color: #3a454d;
    border-top: 1px solid #3a454d;
    padding-bottom: 60px;
    
}
#lovely-work .h2-title {
    color: #ffffff;
    border-left-color: #4e5a62;
}
#works-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
}
#works-list > div {
    width: calc( (100% - 60px) / 3);
    position: relative;
    margin-bottom: 30px;
}
#works-list .mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(41, 47, 54, 0.5);
    overflow-y: hidden;
    transition: opacity 0.3s ease-in;
}
#works-list .mask p {
    position: absolute;
    bottom: -60px;
    height: 60px;
    display: block;
    width: 100%;
    background-color: #292f36;
    color: #ffffff;
    text-transform: uppercase;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 18px;
    line-height: 60px;
    transition: bottom 0.3s ease-in;
}
#works-list .mask a {
    margin-top: 93px;
    display: block;
    background-image: url('./images/work/add.png');
    background-repeat: no-repeat;
    text-indent: -100000px;
    background-position: center center; 
}
#works-list > div:hover .mask {
    opacity: 1;
}
#works-list > div:hover .mask p {
    bottom: 0;  
}
#show-more-btn {
    text-align: center;
}
#show-more-btn a {
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0px 20px;
    border: 2px solid #ffffff;
    border-radius: 7px;
    margin: 0px auto;
    margin-top: 30px;
}

/* What we do */
#do {
    display: flex;
    flex-wrap: wrap;
}
#do > div {
    width: 262px;
    margin-right: 30px;
    text-align: center;
    margin-bottom: 85px;
    padding-top: 83px;
    background-repeat: no-repeat;
    
}
#do > div p:first-child {
    font-size: 17px;
    text-transform: uppercase;
    color: #292f36;
    margin-bottom: 23px;
    color: #292f36;
}
#do > div p:last-child {
    font-size: 16px;
    line-height: 26px;
    color: #8d8f92;
}
#do > div:nth-child(4n + 1) {
    background-image: url('./images/whatwedo/cogs.png');
    background-position: center top;
}
#do > div:nth-child(4n + 2) {
    background-image: url('./images/whatwedo/pencil.png');
    background-position: center top;
}
#do > div:nth-child(4n + 3) {
    background-image: url('./images/whatwedo/mobile.png');
    background-position: center top;
}
#do > div:nth-child(4n + 4) {
    background-image: url('./images/whatwedo/clock.png');
    background-position: center top;
    margin-right: 0px;
}

/* Features */
#features {
    margin-top: 30px;
    background-color: #3a454d;
    border-top: 1px solid #3a454d;
}
#features .container {
    padding-bottom: 115px;
}
#feature-list {
    display: flex;
    justify-content: space-between;
}
#feature-list > div {
    width: calc( (100% - 60px) / 3);
}
#feature-list img {
    display: block;
    margin-bottom: 54px;
}
#feature-list p:nth-child(2) {
    font-size: 18px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 25px;
}
#feature-list p:nth-child(3) {
    font-size: 16px;
    line-height: 26px;
    color: #dcdfe1;
}
#features .h2-title {
    color: #ffffff;
    border-left-color: #4e5a62;
}

/* stay in touch */
#stay-in-touch .container:last-child {
    display: flex;
    justify-content: space-between;
    position: relative;
}
#stay-in-touch .container:last-child form {
    width: 555px;
    background-color: #ffffff;
}
#contact-info {
    width: calc(100% - 585px);
    
}
#contact-info p:first-child {
    font-size: 20px;
    text-transform: uppercase;
    color: #292f36;
    margin-bottom: 35px;
}
#contact-info p:nth-child(2) {
    font-size: 16px;
    line-height: 26px;
    color: #8d8f92;
    margin-bottom: 25px;
}
#contact-info p:nth-child(3) {
    font-size: 16px;
    line-height: 26px;
    color: #8d8f92;
    margin-bottom: 95px;
}
#map {
    max-width: 100%;
    height: 346px;
    margin: 0px auto;
    background-image: url('./images/stayintouch/map.jpg');
    background-position: center;
    margin-bottom: 60px;
}
form {
    position: absolute;
    right: 0;
    top: -189px;

}
form > div:first-child {
    display: flex;
    
}
form label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: #8d8f92;
    margin-bottom: 10px;
}
form > div:first-child input {
    width: 240px;
    height: 44px;
    border: none;
    background-color: #eaeef1;
    border-radius: 5px;
}
form #form-name{
    margin-right: 15px;
}
form > div,
form button {
    margin: 30px 30px 0px 30px;
}
form textarea {
    resize: none;
    border: none;
    background-color: #eaeef1;
    width: 100%;
    border-radius: 5px;
}
form button {
    padding: 0px 27px;
    height: 44px;
    line-height: 44px;
    text-transform: uppercase;
    font-size: 14px;
    background-color: #23b7a4;
    border: none;
    color: #ffffff;
    border-radius: 7px;
    cursor: pointer;
}

/* footer */
footer {
    background-color: #3a454d;
    height: 95px;
}
footer .container {
    display: flex;
    justify-content: space-between;
}
footer .container p {
    font-size: 14px;
    line-height: 95px;
    color: #ffffff;
}
footer .container ul {
    margin: 30px 0px;
}
footer .container ul li {
    display: inline-block;
    background-repeat: no-repeat;
    width: 35px;
    height: 35px;
    background-position: center bottom 6px;
    
}
footer .container li a {
    display: block;
    text-indent: -10000px;
    
}
footer .container ul li:nth-child(1) {
    background-image: url('./images/social/twitter.png');
}
footer .container ul li:nth-child(2) {
    background-image: url('./images/social/facebook.png');
}
footer .container ul li:nth-child(3) {
    background-image: url('./images/social/skype.png');
}
footer .container ul li:nth-child(4) {
    background-image: url('./images/social/behance.png');
}
footer .container ul li:nth-child(5) {
    background-image: url('./images/social/linkedin.png');
}

/* responsive */
@media screen and (max-width: 1170px) {
    #partners {
        flex-wrap: wrap;
    }
    #partners > div {
        width: calc( (100% - 30px) / 2);
    }
    #jumbotron .container {
        min-height: 460px;
    }
    #jumbotron .info {
        max-width: 100%;
        margin: 0px auto;
    }
    #jumbotron .container .info p,
    #jumbotron .container .info h2,
    #jumbotron .container .info > div {
        text-align: center;
    }
}
@media screen and (max-width: 1100px) {
    #about > div {
        max-width: 50%;
    }
    #about > ul {
        max-width: 50%;
    }
}
@media screen and (max-width: 780px) {
    #works-list > div {
        width: calc( (100% - 30px) / 2);
    }
    #works-list {
        flex-wrap: wrap;
    }
}
    
    











