@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,600,700');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
}

body {
     /* position: relative; */
   /* height: 100vh; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* font-family: 'Raleway', sans-serif; */
    font-weight: 500;
    line-height: 1.5;
    background: #444;
}

#bg-img {
    background-image: linear-gradient(to right bottom, rgba(68, 68, 68, 0.9), rgba(73, 73, 73, 0.9)), url('../img/background.jpg');background-size: cover;
    background-position: top;
    background-attachment: fixed;
    background-size: cover;
}

.portrait-box {
    position: absolute;
    top: 28%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.portrait-box img {
    border: 3px solid #eece1a;
    border-radius: 50%;
}

.portrait-box-mobile img{
    display: none;
}

#home .heading-box {
    position: absolute;
    top: 60%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: -1;
}

h1.heading {
    font-weight: 600;
}

.lg-heading {
    display: block; 
    font-size: 6rem;
    color: #fff;
    margin-bottom: 1rem;
    animation: moveInLeft 1s ease-out;
}

.sm-heading {
    display: block;
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 500;
    animation: moveInRight 1s ease-out;
}

strong.txt-secondary {
    color: #eece1a; 
    font-weight: inherit;
}

.sm-heading,
.social-icons a{
    color: #fff;
   
}

.social-icons a:hover {
    color: #eece1a;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.social-icons {
    font-size: 1.3rem;
    list-style: none;
}

.social-icons li{
    display: inline-block;
    padding: 1.6rem;
}
  
@keyframes moveInLeft {
    0% {
      opacity: 0;
      transform: translateX(-10rem);
    }
    80% {
      transform: translateX(1rem);
    }
    100% {
      opacity: 1;
      transform: translate(0);
    }
}
  
@keyframes moveInRight {
    0% {
      opacity: 0;
      transform: translateX(10rem); 
    }
    80% {
      transform: translateX(-1rem);
    }
    100% {
      opacity: 1;
      transform: translate(0);
    } 
}

#header {
    position: fixed;
    left: 0;
    right: 0;
    height: 10rem;
    padding: 0 2rem;
    background: #333;
    color: #fff;
}

.logo-box {
    position: relative;
    width: 10rem;
    height: 10rem;
    /* line-height: 10rem; */
    font-size: 3rem;
    text-transform: uppercase;
    float: left;
    z-index: 1;
}

.logo-box img {
    width: 100%;
}

#checkbox-toggle {
    display: none;
}

.show-menu-btn,
.show-menu-btn::after,
.hide-menu-btn {
    font-size: 3.5rem;
    transition: 0.4s;
    cursor: pointer;
    display: none;
}

.show-menu-btn::after {
    content:'Menu';
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1rem;
    color: #fff;
}

.show-menu-btn {
    float: right;
}

.show-menu-btn i {
    padding-top: 2.25rem;
}
/******/
.menu {
    float: right;
    line-height: 10rem;
}

.menu li {
    display: inline-block;
}

.menu li a {
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.menu li a.current {
    color: #eece1a;
}
/******/
.menu li a:hover,
.show-menu-btn:hover,
.show-menu-btn:hover::after,
.hide-menu-btn:hover {
    color: #eece1a;
    transition: 0.7s;
}

#home {
    padding: 0 2rem;
}

#home img {
    width: 100%;
    display: inline-block;
    margin: 0 auto 2rem;
}

#home p {
    padding: 0 4rem;
    font-size: 1.6rem;
    text-align: justify;
    line-height: 1.6;
    letter-spacing: 0.2rem;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 2rem;
    background-color: #333;
    text-align: center;
    z-index: 1;
}

.law li {
    display:inline-block;
    padding: 0 2rem;
}

.law a,
.copyright {
    font-size: 1.6rem;
    /* font-weight: 500; */
    text-decoration: none;
    color: #fff;
}

.law a:hover{
    color: #eece1a;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.copyright {
    font-style: italic;
}

@media (max-width:80rem) {
    .show-menu-btn,
    .hide-menu-btn {
        display: block;
    }

    #home .heading-box {
        top: 55%;
    }

    .lg-heading {
        font-size: 4.2rem;
    }

    .sm-heading {
        font-size: 2.2rem;
    }

    .menu {
        position: fixed;
        z-index: 5;
        width: 100%;
        height: 100vh;
        /* background: #34495e; */
        background-image: linear-gradient(to bottom, rgba(51, 51, 51, 1) 10%, rgba(73, 73, 73, 0.9) 90%), url('../img/background.jpg');
        background-size: cover;
        background-position: top;
        background-attachment: fixed;
        top: 0;
        right: -100%;
        padding: 8rem 0;
        text-align: center;
        line-height: normal;
        transition: 0.7s;
    }

    .menu li {
        display: block;
        padding: 2rem 0; 
    }

    .menu .menu-item a {
        font-size: 2rem;
        /* font-weight: 500; */
    }
    
    .portrait-box {
        width: 180px;
        height: 180px;
    }

    .portrait-box-mobile img {
        display: inline-block;
        width: 150px;
        height: 150px;
        border: 3px solid #eece1a;
        border-radius: 50%;
        text-align: center;
    }

    .hide-menu-btn {
        position: absolute;
        top: 4rem;
        right: 4rem;
    }

    #checkbox-toggle:checked ~ #top-nav > .menu {
        right: 0;
    }

    #checkbox-toggle:checked ~ #top-nav .menu-item:nth-child(2) {
        animation: moveInRight 1s ease-out;   
    }

    #checkbox-toggle:checked ~ #top-nav .menu-item:nth-child(3) {
        animation: moveInLeft 1s ease-out;   
    }

    #checkbox-toggle:checked ~ #top-nav .menu-item:nth-child(4) {
        animation: moveInRight 1s ease-out;   
    }

    #checkbox-toggle:checked ~ #top-nav .menu-item:nth-child(5) {
        animation: moveInLeft 1s ease-out;   
    }
}



@media (max-width:60rem) {
    section.desc, section.services {
        flex-direction: column;
    }
    .service {
        margin-bottom: 2rem;
    }
}
/******** General for all pages becides of home ********/

.main {
    width: 90%;
    margin: auto;
    padding-top: 12rem; /* Improtant for the fixed header*/
    overflow: hidden; 
}

/********** About **********/

section.desc {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    
    margin-bottom: 3rem;
}

.bio-img {
    flex-basis: 40%;
    min-width: 150px;
    max-width: 200px;
    border-radius: 50%;
    border: 3px solid #eece1a; 
}

.bio {
    flex-basis: 60%;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: .1rem;
    color: #fff;
}

.text-secondary {
    font-size: 4rem;
    font-weight:inherit;
    text-transform: uppercase;
    color:  #eece1a;
}

section.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    padding-bottom: 10rem; /* Improtant for the fixed footer*/
}

.service {
    align-self: flex-start;
}

.services img,
.service h3 {
    display: inline-block;
}

.services img {
    padding: 0 1rem 1rem 0;
}

.service h3 {
    vertical-align: top;
    font-size: 3rem;
    font-weight: inherit;
}

.service p {
    font-size: 1.8rem;
}

.service {
    flex-basis: 25%;
    padding: 2rem 3%;
    background: #333;
    border-bottom: 3px solid #eece1a;
}

/********** Work **********/

.projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2.5rem;
    justify-items: center;

    padding-top: 5rem;
    padding-bottom: 10rem; /* Improtant for the fixed footer*/
}

.projects img {
    width: 98%;
    border: 3px solid #fff;
}

.projects img a i {
    bottom: 4px;
    left: 2px;
}

.project h3, p {
    color: #fff;
    font-size: 1.6rem;
    padding: 1rem 0;
}

.project h3 {
    font-weight: 600;
    padding-left: 1rem;
    margin-top: 0.2rem; 
    background: #c4c4c4;
    color: #222;
}

.project a {
    text-decoration: none;
}

h3:hover {
    background: #eece1a;
    color: #333;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s; 
}

.projects img:hover {
    opacity: 0.5;
    border: 3px solid #eece1a;
    color: #eece1a;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

@media (max-width: 80rem){
   .projects {
        grid-template-columns: repeat(3, 1fr);
    } 
}

@media (max-width: 60rem){
    .projects {
         grid-template-columns: repeat(2, 1fr);
     } 
}

@media (max-width: 40rem){
    .projects {
         grid-template-columns: repeat(1, 1fr);
     } 
}

/*********** Contact ****************/

#contact .heading-box,
#terms .heading-box {
    text-align: center;
}

#contact {
    width: 70%;
    margin: 0 auto;
}

form {
    margin-top: 4rem;
    padding: 2rem;
    background: #333;
    -webkit-transition: all 4s ease-in-out;
    -moz-transition: all 4s ease-in-out;
    -ms-transition: all 4s ease-in-out;
    -o-transition: all 4s ease-in-out;
    transition: all 4s ease-in-out;
}

.form-control {
    /* width: 600px; */
    width: 100%;
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 2rem;;
}

input {
    height: 4.5rem;
}

form .submit {
    background: #c4c4c4;
    border-color: transparent;
    color: #222;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    width: 50%;
    height: 5rem;
    line-height: 2.5;
    margin-top: 2rem;
    margin-left: 25%;
    cursor: pointer;
    /* -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    -o-transform: translateX(50%);
    transform: translateX(50%); */
}

.submit:hover {
    background: #eece1a;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.contact-form {
    padding-bottom: 10rem;
}
/*************Terms******************/

#terms section {
    padding: 2rem 0;
}

#help {
    padding-bottom: 10rem;
}

:target {
    background: #333;
}

.fa-paper-plane {
    font-size: .85em;
}











