@charset "utf-8";

/* box-sizing */
html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

html, body{
  min-height: 100%;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, em, img, strong, b, u, i, center, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, 
menu, nav, output, section, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, figcaption, figure, 
footer, header, menu, nav, main, section, picture {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button:hover, 
button:focus,
button:active{
  outline: none;
}

/* ======================== */
body {
  position: relative; 
  font-family: 'Barlow', futura, sans-serif;
  color: #333;
  background-color: #fffbf3;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

p {
  font-size: 1.3rem;
  line-height: 1.4;
  color: #333;
  margin-bottom: 1.2rem;
}

.text-link {
  color: #c17474;
}

.text-link:hover,
.text-link:focus,
.text-link:active{
  text-decoration: none;
  color: #fffbf3;
  background-color: #c17474;
}

.highlighted-text {
  color: #c17474;
}

/* Accessibility */
.screen-reader-text {
  position: absolute;
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.screen-reader-text:focus {
  display: block;
  z-index: 7777;
  width: auto;
  height: auto;
  padding: 10px;
  top: 5px;
  left: 5px;
  font-size: .9rem;
  text-decoration: none;
  color: #fffbf3;
  background-color: rgba(0,0,0,0.8);
}

/* Button */
a.link-button,
input[type="submit"] {
  padding: 0.7rem 1.25rem 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: bold;
  -webkit-transition: all 1s ease;
  transition: all .5s ease;
} 

a.link-button {
  color: #fffbf3;
  background-color: #333;
  border-bottom: 4px solid #1a1a1a;
  display: inline-block;
  text-decoration: none;
  margin: 0.625rem 0.5rem 0 0.5rem;
}

a.link-button:hover,
a.link-button:focus,
a.link-button:active,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active{
  background-color: #ee7e7e;
  border-color: #995151;
  color: #fffbf3;
}

a.link-button:hover,
a.link-button:focus,
a.link-button:active {
  border-color: #995151;
}

a.link-button.primary {
  background-color: #ee7e7e;
  border-color: #995151;
}

a.link-button.primary:hover,
a.link-button.primary:focus,
a.link-button.primary:active{
  color: #333;
} 

a.social-icon-links {
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
}

a.social-icon-links svg:hover path,
a.social-icon-links svg:focus path,
a.social-icon-links svg:active path{
  fill: #ee7e7e;
} 

/* SVG path */
svg path {
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
}

/* Header */
header {
  position: fixed;
  z-index: 6666; 
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #fffbf3;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  -webkit-box-shadow: 3px 3px 6px 0 rgba(0,0,0,0.2);
  box-shadow: 3px 3px 6px 0 rgba(0,0,0,0.2);
}

header > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: 0 auto;
}

header svg.header-logo {
  height: 30px;
  width: auto;
}

header svg.header-logo:hover path,
header svg.header-logo:focus path,
header svg.header-logo:active path {
  fill: #ee7e7e;
} 

header nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

nav li:not(:last-child) {
  margin-right: 15px;
  text-align: center;
}

nav li a {
  position: relative;
  padding-bottom: 0.35rem;
  font-size: 0.95rem; 
  text-transform: uppercase;
  line-height: 2.5rem;
  text-decoration: none;
  color: #333;
  -webkit-transition: .5s ease;
  transition: .5s ease;
}

nav svg {
  height: 20px;
}

/* scroll up button */
.scrollup svg {
  height: 20px;
}

.scrollup svg:hover path,
.scrollup svg:focus path,
.scrollup svg:active path{
  fill: #ee7e7e;
}

.scrollup {
  position: fixed;
  right: 20px;
  bottom: 10px;
  display: none;
  z-index: 8888;
}

/* main */
main {
  min-height: 500px; 
  margin-top: 3.5rem;
  margin-bottom: 7rem;
  -webkit-transition: all 1s ease;  
  transition: all 1s ease;
}

.thumb-gallery{
  position: relative;
  width: 95%;
  margin: 3rem auto;
}

.thumb-gallery h1 {
  width: 100%;
  font-weight: bold;
  text-align: center;
  color: #ee7e7e;
}

.thumb-gallery figure {
  position: relative;
  -webkit-transform: scale3d(1,0,1);
          transform: scale3d(1,0,1);
  -webkit-transform-origin: top;
          transform-origin: top;
  -webkit-animation: slideIn .5s 1 forwards;
          animation: slideIn .5s 1 forwards;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  overflow: hidden;
}

@-webkit-keyframes slideIn {
  to{
    -webkit-transform: scale3d(1,1,1);
            transform: scale3d(1,1,1);
  }
}

@keyframes slideIn {
  to{
    -webkit-transform: scale3d(1,1,1);
            transform: scale3d(1,1,1);
  }
}

.thumb-gallery img {
  -webkit-transition: all .5s;
  transition: all .5s;
}

.flex, 
.sub-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between; 
}

.flex > div{
  margin-top: 40px;
} 

.sub-flex-two-col,
.sub-flex-three-col,
.sub-flex-four-col{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between; 
  width: 100%;
}

.sub-flex-two-col > figure {
  width: 49%;
}

.sub-flex-three-col > figure {
  width: 32%;
}

.sub-flex-four-col > figure {
  margin-bottom: 1.5rem;
  width: 24%;
}

.fig-half-width{
  width: 49%;
}

.thumb-gallery figcaption {
  position: absolute;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
    justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
        align-items: center;
  width: 100%;
  height: 100%;
  padding-left: 20px;
  padding-right: 20px; 
  background-color: #333;
  text-align: center;
  will-change: opacity;
  -webkit-transition: all .6s;
  transition: all .6s;
}

.thumb-gallery figcaption.scale {
  height: 0;
  opacity: 0;
}

.thumb-gallery figcaption p {
  width: 90%;
  margin-bottom: 0;
  color: #fffbf3;
  opacity: 0;
  transform: scale(0);
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.thumb-gallery figcaption p span {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  text-transform: initial;
}

/* Thumbnail hover effect */
.thumb-gallery figure.scale:hover img,
.thumb-gallery figure.scale:focus img,
.thumb-gallery figure.scale:active img{
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.thumb-gallery figure.scale:hover figcaption,
.thumb-gallery figure.scale:focus figcaption,
.thumb-gallery figure.scale:active figcaption{
  height: 100%;
  opacity: 1;
  background: rgba(193, 116, 116,.95);
}

.thumb-gallery figure.scale:hover figcaption p,
.thumb-gallery figure.scale:focus figcaption p,
.thumb-gallery figure.scale:active figcaption p{
  opacity: 1;
  transform: scale(1);
}

.single-project-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40vh;
  padding: 20px;
  background-image: url('../img/header-img.jpg');
  background-repeat: no-repeat ;
  background-size: cover;
  background-position: top center;
  text-align: center;
  color: #fffbf3;
}

.single-project-header > h1 {
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  font-weight: bold;
  text-align: center;
}

.single-project-header > p {
  color: #fffbf3;
  margin-bottom: 10px;
}

/* single project header image */
.timerx .single-project-header {
  background-image: url('../img/timerx/timerx-header.jpg');
}

.cheewa .single-project-header {
  background-image: url('../img/cheewa/cheewa-header.jpg');
}

.mintra .single-project-header {
  background-image: url('../img/mintra/mintra-header.jpg');
}

.dusseldorf .single-project-header {
  background-image: url('../img/dusseldorf/dusseldorf-header.jpg');
}

.about .single-project-header {
  height: 60vh;
  background-image: url('../img/about-header.jpg');
}

a.view-live.view-live-fixed, div.view-live-button-wrapper.view-live-fixed {
  -webkit-animation: fixedBottom 1s ease forwards;
          animation: fixedBottom 1s ease forwards;
}

a.view-live.view-live-fixed,
div.view-live-button-wrapper.view-live-fixed a {
  -webkit-box-shadow: 2px 2px 5px 1px rgba(0,0,0,.5);
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,.5);
}

@-webkit-keyframes fixedBottom {
  to {
    position: fixed;
    bottom: 10px;
  }
}

@keyframes fixedBottom {
  to {
    position: fixed;
    bottom: 10px;
  }
}

.project-info {
  width: 90%;
  max-width: 960px;
  margin: 2rem auto;
  text-align: center;
}

.tool {
  margin-top: 2rem;
  font-size: 1.1rem;
}

.img-gallery {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

.img-gallery img {
  margin: 0 auto 2.5rem;
  -webkit-box-shadow: 3px 3px 6px 0 rgba(0,0,0,0.2);
          box-shadow: 3px 3px 6px 0 rgba(0,0,0,0.2);
}

.img-gallery img.img-no-shadow {
  -webkit-box-shadow: none;
          box-shadow: none;
}

.img-gallery img:last-child {
  margin-bottom: 0;
}

.img-gallery > figure > img {
  margin-bottom: 1rem;
}

.img-gallery figcaption {
  margin-bottom: 3rem;
  text-align: center;
}

.single-project-thumb {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.single-project-thumb a {
  display: block;
  width: 23.5%;
  margin-bottom: 1.875rem;
}

.single-project-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 90%;
  max-width: 1500px;
  margin: 50px auto 0;
}

.single-project-footer .view-live-button {
  text-align: center;
  width: 100%;
  margin-bottom: 30px;
}

/* About section */
.about .single-project-header {
  position: relative;
}

.about .intro-content{
  width: 40%;
  position: absolute;
  left: 40%;
  text-align: left;
}

.about .intro-content p, .about .intro-content h1 {
  color: #ffffff;
}

.about .intro-content h1 {
  margin-bottom: 20px;
}

.about .intro-content h1 span {
  color: #ff9999;
}

/* Skills */
.skills{
  width: 95%;
  margin: 3rem auto;
  text-align: center;
}

.skills h1 {
  width: 100%;
  color: #ee7e7e;
}

.skills h3 {
  margin-bottom: 0.5rem;
}

.icon-skills {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
}

.skills .sub-flex-four-col > div {
  width: 24%;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* footer */
footer {
  padding-bottom: 1rem;
  text-align: center;
}

footer p {
  margin-bottom: 5px;
  font-size: 1rem;
}

.fade-in {
  animation: fadein 1.5s;
  -webkit-animation: fadein 1.5s;
  transition: opacity 0.5s;
}

.slideUp {
  animation: slideUp 2.5s;
  -webkit-animation: slideUp 2.5s;
  transition: transform 0.5s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to   {
    opacity: 1;
  }
}

@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to   {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
  }
  to   {
    transform: translateY(0);
  }
}

@-webkit-keyframes slideUp {
  from {
    transform: translateY(10px);
  }
  to   {
    transform: translateY(0);
  }
}

/* Media Queries */
@media only screen and (max-width: 1750px) {
  .about .intro-content {
    width: 50%;
  }
}

@media only screen and (max-width: 1200px) {

  .single-project-thumb a {
    width: 31%;
  }

  .flex > div:nth-child(n+3) {
    margin-top: 23px;
  }

  .thumb-gallery figcaption p {
    font-size: 1.8rem;
  }

  .thumb-gallery figcaption p span {
    font-size: 1rem;
  }

}

@media only screen and (max-width: 1024px) {
  .flex > div{
    margin-top: 20px;
  } 

  .thumb-gallery figcaption p {
    font-size: 1.6rem;
  }

  .thumb-gallery figcaption p span {
    font-size: .8rem;
  }

  .project-info > div:first-child,
  .about section > div:first-child {
    margin-bottom: 1.875rem;
  }
}

@media only screen and (max-width: 800px) {
  main {
    margin-bottom: 5rem;
  }

  .sub-flex-four-col > figure,
  .skills .sub-flex-four-col > div{
    width: 48%;
  }

  .single-project-thumb a {
    width: 48.5%;
  }
}

@media only screen and (max-width: 650px) {
  header svg.header-logo {
    height: 25px;
  }

  .about .single-project-header {
    background-image: url('../img/about-header-small.jpg');
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1.1rem;
  }

  .about .intro-content {
    width: 90%;
    left: 5%;
    bottom: 10px;
  }
}

@media only screen and (max-width: 400px) {
  main {
    margin-bottom: 3.125rem;
  }

  .thumb-gallery figure,
  .flex > figure:first-child,
  .flex > div:nth-child(2) {
    width: 100%;
  }

  .sub-flex figure {
    height: auto;
  }

  .flex figure {
    margin-bottom: 25px;
  }

  .single-project-thumb a {
    width: 100%;
  }

  .skills .sub-flex-four-col > div {
    width: 100%;
  }

  header svg.header-logo {
    height: 25px;
  }

  .single-project .single-project-header {
    height: 35vh;
  }

  a.link-button {
    font-size: 1rem;
  }

  .about .intro-content {
    text-align: right;
  }

}