﻿html, body { height: 100%;
min-height: 100% }

html {
  	font-size: 100%;
  	overflow-y: scroll;
}

body {
  	font-size: 16px;
  	line-height: 1.42857;
	font-family: 'Roboto', sans-serif;
    letter-spacing: .085em;
    margin: 0;
    padding: 0;
    color: #39474d;
}

h1, h2, h3, h4, h5, h6 {
  	margin: 0;
	line-height: 36px;
    letter-spacing: .1em;
    margin: 0;
}

p {
	font-weight: 300;
	line-height: 25px;
    margin: 0;
}

input, textarea {
  	-webkit-appearance: none;
  	border-radius: 0;
}

img {
	max-width: 100%;
}

/* Selection */
::selection {
  	background: #390404;
  	color: #fff;
  	text-shadow: none;
}

::-moz-selection {
  	background: #390404;
  	color: #fff;
  	text-shadow: none;
}

/* Links */
a {
  	outline: none !important;
}

a, a:link, a:visited {
    color: #187d0a;
    text-decoration: none;
}

a, btn, button {
    transition: 0.5s;
    font-weight: 400;
}

a:hover, a:focus {
    color: #414f56;
}

.container {
    width: 1170px;
	position: relative;
    margin: 0 auto;
}

/* Columns */
.row {
    display: flex;
}

.col-1 {
    flex-basis: 25%;
}

.col-2 {
    flex-grow: 0;
    flex-basis: 50%;
}

.col-3 {
    flex-basis: 75%;
}

.col-4 {
    flex-basis: 100%;
}

h1.pacifico {
    font-family: 'Pacifico', cursive;
}

/* Form Control */
.form-control {
    background-color: #187d0a;
    padding: 10px 10px;
    width: 100%;
    height: auto;
    border: none;
    outline: none;
    border-radius: 2px;
    color: #fff;
    box-sizing: border-box;
}

.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: rgba(255, 255, 255, 0.6);
}
.form-control::-moz-placeholder { /* Firefox 19+ */
    color: rgba(255, 255, 255, 0.6);
}
.form-control:-ms-input-placeholder { /* IE 10+ */
    color: rgba(255, 255, 255, 0.6);
}
.form-control:-moz-placeholder { /* Firefox 18- */
    color: rgba(255, 255, 255, 0.6);
}

.bottom-white {
    width: 115%;
    height: 300px;
    background-color: #fff;
    position: absolute;
    bottom: -240px;
    left: -15px;
    transform: rotate(3deg);
}

.bottom-dark {
    width: 115%;
    height: 300px;
    background-color: #37474f;
    position: absolute;
    bottom: -240px;
    left: -15px;
    transform: rotate(3deg);
}

.bottom-red {
    width: 115%;
    height: 300px;
    background-color: #187d0a;
    position: absolute;
    bottom: -240px;
    left: -15px;
    transform: rotate(3deg);
}

.btn-red {
    background-color: #187d0a;
    padding: 8px 12px;
    border-radius: 2px;
    color: #fff !important;
    text-transform: uppercase;
}

.btn-red:hover {
    background-color: rgba(211, 47, 47, 0.7);
    transition: .5s ease all;
}

.btn-dark {
    background-color: #38474e;
    padding: 8px 12px;
    border-radius: 2px;
    color: #fff !important;
    text-transform: uppercase;
}

.btn-dark:hover {
    background-color: rgba(56, 71, 78, 0.7);
    transition: .5s ease all;
}

.info-white {
    border-top: 1px solid #fff;
    border-radius: 2px;
}

.error-white {
    border-top: 1px solid #fff;
    border-radius: 2px;
}

.error-white::after {
    content: "Wrong input.";
    color: #187d0a;
    font-size: 10px;
}

.error-red {
    border-top: 1px solid #fff;
    border-radius: 2px;
}

.error-red::after {
    content: "Wrong input.";
    color: #fff;
    font-size: 10px;
    position: absolute;
}

/* Section: intro */ 
#intro {
    width: 100%;
    height: 100%;
    background: url('https://gobillydesigns.com/images/intro-bg.jpg');
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 200px 0;
    position: relative;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
}

#intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background-color: #6d18b5;*/
    background-color: #000;
    opacity: .75;
}

#intro .profile-image {
    width: 290px;
    height: 350px;
    border: 8px solid #fff;
    position: relative;
    transition: .5s ease all;
    margin: 0 15px;
    cursor: pointer;
}

#intro .profile-image img {
    position: absolute;
    top: -47px;
    z-index: 1;
}

#intro .profile-image-base {
    width: 290px;
    height: 350px;
    border-right: 8px solid #fff;
    border-top: 8px solid #fff;
    position: absolute;
    bottom: 22px;
    right: -30px;
    transition: .6s ease all;
}

#intro .profile-image-base::before {
    content: "";
    width: 8px;
    height: 15px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
}

#intro .profile-image-base::after {
    content: "";
    width: 15px;
    height: 8px;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fff;
}

/* When Click On Profile Image */
#intro .active > .profile-image-base {
    position: absolute;
    width: 850px !important;
}

#intro .active > .profile-image-base::before {
    height: 100%;
}

#intro .active > .profile-image-base::after {
    width: 100%;
}

#intro .about-me-animated {
    width: 0px;
    transition: .5s ease all;
    opacity: 0;
    padding: 15px;
    box-sizing: border-box;
}

#intro .active > .about-me-animated {
    background-color: #fff;
    width: 850px;
    height: 100%;
    position: absolute;
    top: -25px;
    right: -25px;
    opacity: 1;
    transition: .5s ease all;
}


#intro .active > .about-me-animated h1 {
    font-size: 18px;
    z-index: 4;
    color: #37474f;
    font-weight: 600;
}

#intro .active > .about-me-animated p {
    color: #37474f;
    margin: 0;
    font-size: 12px;
    margin-top:6px;
    margin-left: 14px;
    position: relative;
}

#intro .active > .about-me-animated p::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #37474f;
    position: absolute;
    top: 8px;
    left: -14px;
    border-radius: 50%;
}

#intro .active > .about-me-animated .row {
    width: 530px;
    margin-left: -15px;
    margin-top: 15px;
}

#intro .active > .about-me-animated .row .col-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
    background-color: #37474f;
    margin: 0 15px;
    padding: 10px;
    text-transform: uppercase;
    font-size: 12px;
}

#intro .active > .about-me-animated .row .material-icons {
    color: #fff;
    margin: 0;
}

#intro .active > .about-me-animated .row h4 {
    color: #fff;
}
/**/

#intro .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#intro .content h1 {
    color: #fff;
    font-size: 72px;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.2em;
}

#intro .content p {
    color: #fff;
    margin: 30px 0;
    width: 90%;
}

#intro .lets-talk {
    position: relative;
    width: 300px;
}

#intro .lets-talk .btn-lets-talk {
    position: absolute;
    top: 0px;
    right: 0;
    color: #fff;
    cursor: pointer;
    padding: 8px 10px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    height: 37px;
    max-height: 37px;
    box-sizing: border-box;
}

#intro .lets-talk .btn-lets-talk:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transition: .5s ease all;
}

#intro .form-control {
    padding-right: 85px;
    height: 37px;
}

#intro .material-icons {
    color: #fff;
    cursor: pointer;
    margin-top: 0px;
    margin-bottom: 20px;
}

#intro .scrollToWorks {
    display: flex;
    margin-top: 80px;
    margin-bottom: 20px;
    width: 23px;
    height: 23px;
    background-color: rgba(255, 255, 255, 0);
    padding: 8px;
    border-radius: 50%;
    animation-name: blinkAnimation;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
}

/* Keyframes for animatin */
@keyframes blinkAnimation {
    0%   {background-color: rgba(255, 255, 255, 0);}
    100% {background-color: rgba(255, 255, 255, 0.1);}
}

/* Section: popupInfo */
.popupInfo {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: none;
}

.popupInfo .box-border {
    margin: 50px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.popupInfo .box-border .top {
    height: 0px;
    width: 100%;
    background-color: #187d0a;
    position: fixed;
}

.popupInfo .box-border .bottom {
    height: 0px;
     width: 100%;
    background-color: #187d0a;
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
}

.popupInfo .box-border .left {
    width: 0px;
    height: 100%;
    background-color: #187d0a;
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
}

.popupInfo .box-border .right {
    width: 0px;
    height: 100%;
    background-color: #187d0a;
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
}

.popupInfo .box-border .box-content {
    padding: 40px;   
    height: calc(100% - 100px);   
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
}

/* Section: works */
#works {
    background-color: #fff;
    padding: 20px 0 100px 0;
    position: relative;
    overflow: hidden;
}

#works .right-corner {
    border-top: 8px solid #187d0a;
    border-left: 8px solid #187d0a;
    width: 100px;
    height: 40px;
    position: absolute;
    left: 0;
    margin: 15px 0 0 6px;
}

#works .right-corner::before {
    content: "";
    border-top: 2px solid #187d0a;
    border-left: 2px solid #187d0a;
    position: absolute;
    top: -14px;
    left: -14px;
    width: 112px;
    height: 52px;
}

#works .left-corner {
    border-bottom: 8px solid #187d0a;
    border-right: 8px solid #187d0a;
    width: 100px;
    height: 40px;
    position: absolute;
    right: 0;
    bottom: 0px;
    margin: 0 6px 15px 0;
}

#works .left-corner::before {
    content: "";
    border-bottom: 2px solid #187d0a;
    border-right: 2px solid #187d0a;
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 112px;
    height: 52px;
}

#works h2 {
    font-size: 20px;
    color: #424242;
    font-weight: 700;
}

#works .item {
    padding: 63px;
    display: flex;
    margin-bottom: 10px;
    flex: 1;
}

#works .item .row {
    flex: 1;
}

#works .work-image {
    position: relative;
    margin: 22px 22px 0 0;
}

#works .work-image img {
    border: 8px solid #38474e;
    box-sizing: border-box;
}

#works .work-image .work-image-base {
    width: 100%;
    height: 100%;
    border-right: 8px solid #38474e;
    border-top: 8px solid #38474e;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

#works .work-image .work-image-base::before {
    content: "";
    width: 8px;
    height: 15px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #38474e;
}

#works .work-image .work-image-base::after {
    content: "";
    width: 15px;
    height: 8px;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #38474e;
}

#works .content {
    padding: 10px 0 0 0;
}

#works .content .btn-red, #works .content .btn-dark {
    display: inline-flex;
    margin-top: 25px;
    float: left;
    margin-right: 10px;
}

#works .owl-stage-outer {
    overflow: hidden;
}

#works .owl-dots {
    text-align: center;
}

#works .owl-dots .owl-dot {
    background-color: #37474f;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-flex;
    margin: 0 5px;
}

#works .owl-dots .owl-dot.active {
    background-color: rgba(55, 71, 79, 0.7);
}

/* Section: works */
#what-i-doing {
    background-color: #37474f;
    padding: 20px 0 100px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

#what-i-doing .right-corner {
    border-top: 8px solid #455962;
    border-left: 8px solid #455962;
    width: 100px;
    height: 40px;
    position: absolute;
    left: 0;
    margin: 15px 0 0 6px;
}

#what-i-doing .right-corner::before {
    content: "";
    border-top: 2px solid #455962;
    border-left: 2px solid #455962;
    position: absolute;
    top: -14px;
    left: -14px;
    width: 112px;
    height: 52px;
}

#what-i-doing .left-corner {
    border-bottom: 8px solid #455962;
    border-right: 8px solid #455962;
    width: 100px;
    height: 40px;
    position: absolute;
    right: 0;
    bottom: 0px;
    margin: 0 6px 15px 0;
}

#what-i-doing .left-corner::before {
    content: "";
    border-bottom: 2px solid #455962;
    border-right: 2px solid #455962;
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 112px;
    height: 52px;
}

#what-i-doing h2 {
    font-size: 20px;
    color: #424242;
    font-weight: 700;
    color: #fff;
}

#what-i-doing .boxes {
    display: flex;
    margin: 63px 43px;
}

#what-i-doing .boxes .box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 0;
    padding: 25px;
    border: 2px solid #455962;
    margin: 0 30px;
    height: auto;
}

#what-i-doing .boxes .box h3 {
    text-align: center;
}

#what-i-doing .boxes .box p {
    text-align: center;
    margin: 10px 0;
}

#what-i-doing .boxes .box .content {
    height: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#what-i-doing .boxes .box .icon {
    background-color: #455962;
    padding: 45px 15px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
}

#what-i-doing .boxes .box .icon .material-icons {
    font-size: 4em;
    color: #2f3c43;
}

/* Section: about */
#about {
    background-color: #fff;
    padding: 20px 0 100px 0;
    position: relative;
    color: #39474d;
    overflow: hidden;
}

#about .right-corner {
    border-top: 8px solid #187d0a;
    border-left: 8px solid #187d0a;
    width: 100px;
    height: 40px;
    position: absolute;
    left: 0;
    margin: 15px 0 0 6px;
}

#about .right-corner::before {
    content: "";
    border-top: 2px solid #187d0a;
    border-left: 2px solid #187d0a;
    position: absolute;
    top: -14px;
    left: -14px;
    width: 112px;
    height: 52px;
}

#about .left-corner {
    border-bottom: 8px solid #187d0a;
    border-right: 8px solid #187d0a;
    width: 100px;
    height: 40px;
    position: absolute;
    right: 0;
    bottom: 0px;
    margin: 0 6px 15px 0;
}

#about .left-corner::before {
    content: "";
    border-bottom: 2px solid #187d0a;
    border-right: 2px solid #187d0a;
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 112px;
    height: 52px;
}

#about h2 {
    font-size: 20px;
    font-weight: 700;
    color: #39474d;
}

#about .container .content {
    padding: 63px;
    box-sizing: border-box;
}

#about .container .content p {
    box-sizing: border-box;
}

/* Section: contact */
#contact {
    background-color: #187d0a;
    padding: 20px 0 100px 0;
    position: relative;
    color: #fff;
    overflow: hidden;
}

#contact .right-corner {
    border-top: 8px solid #608d5a;
    border-left: 8px solid #608d5a;
    width: 100px;
    height: 40px;
    position: absolute;
    left: 0;
    margin: 15px 0 0 6px;
}

#contact .right-corner::before {
    content: "";
    border-top: 2px solid #608d5a;
    border-left: 2px solid #608d5a;
    position: absolute;
    top: -14px;
    left: -14px;
    width: 112px;
    height: 52px;
}

#contact .left-corner {
    border-bottom: 8px solid #608d5a;
    border-right: 8px solid #608d5a;
    width: 100px;
    height: 40px;
    position: absolute;
    right: 0;
    bottom: 0px;
    margin: 0 6px 15px 0;
}

#contact .left-corner::before {
    content: "";
    border-bottom: 2px solid #608d5a;
    border-right: 2px solid #608d5a;
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 112px;
    height: 52px;
}

#contact h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

#contact .container .content {
    padding: 55px 53px;
    box-sizing: border-box;
}

#contact .container .content p {
    box-sizing: border-box;
}

#contact .form-control {
    background-color: #5c9c53;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    display: flex;
    margin: 0 auto 25px auto;
    color: #fff;
}

#contact .error {
    margin-top: -24px;
    font-size: 10px;
    margin-bottom: 10px;
    display: block;
}

#contact textarea {
	font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 300;
    height: 150px;
    min-height: 80px;
    max-height: 150px;
}

#contact .col-2 {
    margin: 0 10px;
}

#contact .btn-red {
    background-color: #fff;
    float: right;
    display: table;
    color: #39474d !important;
    font-weight: 400;
}

#contact .btn-red:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

#contact .message-sent {
    background-color: #30d46b;
    padding: 15px 10px;
    color: #fff;
    width: 100%;
    margin-bottom: 15px;
}

#contact .message-not-sent {
    background-color: #9f3434;
    padding: 15px 10px;
    color: #fff;
    width: 100%;
    margin-bottom: 15px;
}

#contact a {
    color: #fff;
    font-weight: 700;
}

#contact .my-mail {
    display: none;
}

/* Section: footer */
#footer {
    background-color: #fff;
    position: relative;
    padding-bottom: 30px;
    color: #39474d;
    overflow: hidden;
}

/* Media Queries */
@media (min-width: 750px) {
    .container {
        width: 750px;
    }
}

@media (max-width: 749px) {
    .container {
        width: 95%;
    }

    .row {
        flex-direction: column;
    }

    .col-1, .col-2, .col-3, .col-4  {
        flex-basis: 100%;
    }

    .hidden-mobile {
        display: none;
    }

    #works .content {
        padding: 15px 0 0 0;
    }

    #works .row {
        padding: 63px 26px;
    }

    #contact form {
        margin-top: 15px;
    }

    #what-i-doing .boxes {
        display: flex;
        flex-direction: column;
        margin: 63px 0px;
    }

    #what-i-doing .boxes .box {
        flex-basis: 100%;
        margin-top: 15px;
    }

    #what-i-doing .boxes .box:first-child {
        margin-top: 0;
    }

    #intro {
        height: auto;
        padding: 80px 0;
    }
    
    #intro .lets-talk {
        margin: 0 auto;
        width: 80%;
    }
    
    #intro .content {
        text-align: center;
    } 
    
    #intro .content p {
        width: 100%;
    }
    
    #intro .scrollToWorks {
        margin: 40px auto;
    }

    #about .container .content {
        padding: 63px 26px;
        box-sizing: border-box;
    }

    #contact .container .content {
        padding: 53px 16px;
        box-sizing: border-box;
    }
}

@media (min-width: 970px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1170px) {
    .container {
        width: 1170px;
    }
}
