/* || VARIABLES
***************/
/* || FONTS
***********/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Corben:wght@400;700&display=swap");
/* || GENERAL
*************/
* {
  font-family: Poppins, Helvetica, sans-serif;
}

body, html {
  margin: 0;
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

span {
  font-family: inherit;
}

img {
  max-width: 100%;
}

.hide {
  display: none;
}

.text-center {
  text-align: center;
}

.bg-light {
  background-color: #F7F5ED;
}

section, .section {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
}
section p, .section p {
  font-size: 1.2em;
  color: #333;
  line-height: 1.8;
  font-weight: 300;
}

.wrapper {
  margin: 0 auto;
  width: 86%;
  padding: 0 7%;
  display: inline-block;
}

.segment-navy {
  background-color: #161A32;
}
.segment-navy * {
  color: #F7F5ED;
}

.segment-brown {
  background-color: #392111;
}
.segment-brown * {
  color: #F7F5ED;
}

.segment-red {
  background-color: #890E0E;
}
.segment-red * {
  color: #F7F5ED;
}

.segment-light {
  background-color: #F7F5ED;
}

h2 {
  font-family: Corben, Poppins, Helvetica, sans-serif;
  font-size: 2.3em;
  font-weight: 400;
  color: #444;
  line-height: 1.3;
  text-align: center;
  padding-top: 60px;
}

h3 {
  font-family: Corben, Poppins, Helvetica, sans-serif;
  font-size: 1.9em;
  font-weight: 400;
  color: #444;
  line-height: 1.1;
  text-align: center;
}

.subhead {
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 1em;
  letter-spacing: 2px;
  line-height: 1.65;
  text-transform: uppercase;
  text-align: center;
  padding: 35px 0 0;
  font-weight: 400;
}

a {
  font-family: inherit;
  color: #444;
  text-decoration-style: dotted;
  text-decoration-color: #AAA;
  display: inline;
  line-height: 1.1;
  transition: all 0.12s ease;
}
a:hover {
  cursor: pointer;
  color: #19627C;
  text-decoration-color: #19627C;
}

.cta-list {
  display: block;
  text-align: center;
  margin-bottom: 60px;
}

.cta {
  background-color: #19627C;
  padding: 20px 50px;
  margin: 30px 20px 0 0;
  border-radius: 50px;
  color: #FFF;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
}
.cta:hover {
  background-color: #0A4251;
  color: #FFF;
}

.cta.cta--outline {
  background-color: initial;
  color: #808080;
  border: 1px solid #808080;
}
.cta.cta--outline:hover {
  background-color: #EAE7DF;
}

@media screen and (min-width: 768px) {
  .cta-list {
    margin-bottom: 90px;
  }
}
@media screen and (min-width: 992px) {
  h2 {
    font-size: 2.7em;
  }
  h3 {
    font-size: 2.2em;
  }
}
@media screen and (min-width: 1200px) {
  .wrapper {
    max-width: 1200px;
  }
}
/* || NAVIGATION
****************/
nav {
  background-color: #F7F5ED;
  width: 100%;
  padding: 25px 0;
  position: fixed;
  z-index: 20;
}
nav .wrapper {
  display: block;
}

#navbar {
  display: flex;
  justify-content: space-between;
}

.nav_links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 167px;
  z-index: 10;
}
.nav_links a {
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #777;
  font-size: 1em;
  transition: all 0.2s ease;
  position: relative;
}
.nav_links a:before {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 0px;
  height: 4px;
  margin: 5px 0 0;
  transition: all 0.2s ease;
  transition-duration: 0.2s;
  opacity: 1;
  background-color: #19627C;
}
.nav_links a:nth-child(1):before {
  transform: rotate(1deg);
}
.nav_links a:nth-child(2):before {
  transform: rotate(-2deg);
}
.nav_links a:hover {
  color: #000;
  cursor: pointer;
}
.nav_links a:hover:before {
  left: 0;
  width: 93%;
  opacity: 1;
}
.nav_links a:last-child {
  display: none;
}

.email_alert {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email .email_alert:before {
  content: "";
  width: 0px;
  height: 0px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #CCC;
  margin: 0 0 0 -13px;
  z-index: 5;
  opacity: inherit;
}

.email .email_alert:after {
  content: "Email copied!";
  position: absolute;
  z-index: 10;
  padding: 10px 1px;
  margin: 8px 0 0 -47px;
  display: block;
  width: 100px;
  border-radius: 3px;
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 0.8em;
  font-weight: 400;
  text-align: center;
  line-height: 0.5;
  border: 1px solid #CCC;
  color: #AAA;
  background-color: #F7F5ED;
  opacity: inherit;
}

#logo {
  opacity: 0;
  max-height: 45px;
  max-width: 45px;
  align-items: center;
  position: absolute;
  left: calc(50% - 22px);
  top: 10px;
}
#logo img {
  width: 100%;
  transition: transform 0.2s ease;
}
#logo img:hover {
  transform: scale(1.2);
}

#nav_contact {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 55px;
  z-index: 10;
}
#nav_contact a {
  color: #777;
  font-size: 1em;
  transition: all 0.2s ease;
}
#nav_contact a:hover {
  color: #000;
}

@media screen and (min-width: 480px) {
  #logo {
    opacity: 0.7;
    transition: transform 0.3s ease-out, opacity 0.5s ease;
  }
  #logo:hover {
    opacity: 1;
  }
}
@media screen and (min-width: 768px) {
  nav > div {
    margin: 0 30px;
  }
  #nav_links {
    max-width: 230px;
  }
  #nav_links a:last-child {
    display: block;
  }
}
/* || INTRO
***********/
#intro {
  background-image: linear-gradient(rgba(247, 245, 237, 0.85), #F7F5ED), url("../images/mait.webp");
  background-repeat: no-repeat;
  background-size: auto 105%;
  background-position: right 85% bottom 0;
  transition: background-position 0.8s ease;
}

h1 {
  font-family: Corben, Poppins, Helvetica, sans-serif;
  font-size: 2em;
  font-weight: 500;
  color: #444;
  line-height: 1;
  text-align: center;
  padding-top: 60px;
  transition: font-size 0.3s ease;
}
h1 #name {
  display: block;
  margin: 10px 0 15px;
  font-size: 1.3em;
  font-family: inherit;
}
h1 #name a {
  display: inline;
  line-height: 1.1;
}

@media screen and (min-width: 950px) and (min-height: 580px) {
  #intro {
    background-image: url("../images/mait.png");
    background-position: right -20px bottom;
  }
  #intro .section {
    align-items: flex-start;
  }
  h1 {
    text-align: left;
    font-size: 2.6em;
  }
  h1 #name {
    margin: 15px 0 25px;
  }
}
@media screen and (min-width: 1200px) {
  h1 {
    font-size: 3.1em;
  }
}
/* || WORK
**********/
#work section {
  min-height: 400px;
  text-align: center;
  padding: 40px 0 100px;
}
#work h2 {
  padding: 0;
  margin-bottom: 0;
}

.project {
  text-decoration: none;
  width: 100%;
  margin-top: 60px;
  display: block;
}
.project:hover .project_info {
  margin-bottom: 25px;
}
.project:hover .project_stripe {
  bottom: -300px;
}
.project:hover .project_button .fa {
  color: #19627C;
}
.project:hover h3 {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.project_block {
  position: relative;
  height: 535px;
  overflow: hidden;
  background-color: #F7F5ED;
  border-radius: 15px;
}

.project_info {
  margin: 10px 0 40px;
  padding: 0 25px;
  transition: all 0.3s ease;
}
.project_info h3 {
  margin: 0;
}
.project_info .subhead {
  color: #444;
  margin: 0;
}

.project_img {
  padding: 0 15px 0 20px;
  z-index: 10;
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.project_stripe {
  transition: all 0.3s ease;
  transform: skewY(-20deg);
  height: 500px;
  width: 100%;
  position: absolute;
  bottom: -350px;
  z-index: 5;
}
.project_stripe.navy {
  background-color: #161A32;
}
.project_stripe.brown {
  background-color: #392111;
}
.project_stripe.red {
  background-color: #890E0E;
}

.project_button {
  position: relative;
  z-index: 10;
  margin-top: -35px;
}
.project_button .fa {
  color: #222;
  font-size: 4.5em;
  transition: all 0.2s ease;
}
.project_button .circle-bg {
  margin: -60px auto 0;
  border-radius: 100px;
  display: block;
  height: 45px;
  width: 45px;
  background-color: #FFF;
}

@media screen and (min-width: 768px) {
  #work h2 {
    margin-bottom: 40px;
  }
  .project {
    height: 400px;
    width: 660px;
    margin: 20px auto 40px;
    position: relative;
  }
  .project:hover .project_info {
    margin: 0 0 50px;
  }
  .project:hover .project_stripe {
    bottom: -330px;
  }
  .project:hover .project_img {
    margin-top: 250px;
  }
  .project:hover .project_button .fa {
    color: #19627C;
  }
  .project:hover h3 {
    text-decoration: underline;
    text-decoration-style: dotted;
  }
  .project_block {
    height: 400px;
    width: 660px;
    margin: 0 auto;
    display: flex;
    align-items: center;
  }
  .project_block * {
    text-align: left;
  }
  .project_info {
    margin: 0 0 50px;
    padding: 0 0 0 70px;
    width: 270px;
  }
  .project_img {
    margin-top: 300px;
    transition: all 0.3s ease;
    width: 390px;
    max-width: 100%;
  }
  .project_img img {
    max-width: 300px;
  }
  .project_stripe {
    bottom: -345px;
    transform: skewY(-25deg);
  }
  .project_button {
    right: -35px;
    top: 50%;
    position: absolute;
  }
}
@media screen and (min-width: 992px) {
  #work section {
    padding: 80px 0 100px;
  }
  .project, .project_block {
    width: 750px;
  }
}
/* || ABOUT
***********/
#about section {
  padding: 100px 0 80px;
  max-width: 485px;
  margin: 0 auto;
}

#about_img {
  text-align: center;
}

#about_info {
  text-align: left;
}
#about_info h2 {
  padding: 0;
}
#about_info .fa {
  padding-left: 10px;
}

@media screen and (min-width: 992px) {
  #about section {
    padding: 130px 0 110px;
    max-width: 800px;
    flex-direction: row;
    min-height: initial;
  }
  #about_img {
    width: 229px;
    margin-bottom: 80px;
  }
  #about_info {
    width: 75%;
    margin-left: 100px;
  }
  #about_info h2 {
    text-align: left;
    margin-top: 0;
  }
}
@media screen and (min-width: 1200px) {
  #about section {
    max-width: 1050px;
    flex-direction: row;
  }
  #about_img {
    margin-bottom: 0;
  }
}
/* || WHAT I'M ENJOYING
***********************/
#enjoying section {
  padding: 100px 0;
  min-height: initial;
}
#enjoying section h2 {
  padding: 0;
  margin-top: 0;
}

#enjoying .enjoying_item {
  text-align: center;
  color: #333;
  margin-top: 50px;
}
#enjoying .enjoying_item a {
  text-decoration: none;
}
#enjoying .enjoying_item a:hover .enjoying_item--title {
  color: #19627C;
  text-decoration-color: #19627C;
}
#enjoying .enjoying_item img {
  max-width: 150px;
  margin: 0 auto;
  width: 100%;
  transition: all 0.1s ease;
}
#enjoying .enjoying_item img:hover {
  max-width: 170px;
  width: 170px;
  margin-top: -3px;
}
#enjoying .enjoying_item .enjoying_item--category {
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 15px 0 0;
}
#enjoying .enjoying_item .enjoying_item--title {
  font-style: italic;
  font-size: 1.2em;
  margin: 8px 0 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #AAA;
}

@media screen and (min-width: 768px) {
  #enjoying_container {
    display: flex;
  }
  #enjoying .enjoying_item {
    text-align: center;
    color: #333;
    margin-top: 50px;
    width: 33.3333%;
  }
  #enjoying .enjoying_item img {
    max-width: 165px;
    margin: 0 auto;
  }
}
@media screen and (min-width: 992px) {
  #enjoying section {
    padding: 130px 0;
  }
}
/* || FOOTER
************/
footer {
  background-color: #F7F5ED;
  position: relative;
  z-index: 100;
  text-align: center;
}
footer h2 {
  padding: 80px 0 0;
}
footer h2 a {
  line-height: 1.1;
}
footer section > a {
  margin: 20px auto 0;
  opacity: 0.7;
  transition: all 0.2s ease;
  width: 80px;
}
footer section > a:hover {
  transform: scale(1.1) rotate(-10deg);
  opacity: 1;
}
footer .nav_links {
  margin: 50px auto 110px;
}
footer .email .email_alert:before {
  margin: 67px 0 0 -5px;
  position: absolute;
  left: 50%;
}
footer .email .email_alert:after {
  font-size: 0.3em;
  margin: 14px 0 0 -52px;
  left: 50%;
}
