/*
Portfolio Stylesheet
by @KeelyRetzloff


    ||   Table of Contents    ||
    ||   I. Variables         ||
    ||   II. General Styles   ||
    ||   III. Nav Menu        ||
    ||   IV. Home             ||
    ||   V. About             ||
    ||   VI. Portfolio        ||
    ||   VII. Contact         ||
    ||   VIII. Footer         ||
    ||   IX. Media Queries    ||


*/

/* I. Variables*/
:root{
    --navy: #234a6c;
    --beige: #f2ece9;
    --red: #ce4141;
    --lightblue: #b3c9d5;
}

/*II-a. General Styles*/
body {
    background-color: var(--navy);
    font-family: soleil, sans-serif;
    font-style: normal;
    font-weight: 300;
    
}

* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a, a:focus, a:visited {
    color: var(--beige);
}

a:hover {
    color: var(--red);
    background-color: transparent;
}

h3.external:after {
    content: url(images/assets/externalicon.svg);
    padding-left: 5px;
}

h1,
h2,
h3,
h5 {
    font-family: grad, serif;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 2px;
}

.header-container h1{
    display: flex;
    flex-wrap: wrap;
    letter-spacing: 2px;
}
span.serif {
    font-family: grad, serif;
    font-style: normal;
    font-weight: 300;
    text-transform:uppercase;
    width: 100%;
}

span.sans {
    font-family: soleil, helvetica, sans-serif;
    font-style: normal;
    font-weight: 600;
    text-transform:uppercase;
    width: 100%;
}

h2 {
    font-size: 2.8em;
}

h2 span {
    letter-spacing: .1em;
    font-size: 1em;
}

h2 span.sans {
    font-size: 1.05em;
}

h3 {
    margin: auto;
    padding: 5px 0;
    font-size: 1.4em;
    letter-spacing: 1px;
    color: var(--beige);
}

p {
    text-align: center;
}

#about p {
    text-align: left;
}

img {
    display: block;
    margin: auto;
    width: 100%;
    object-fit: cover;
}

[data-scroll] {
  transition: opacity 1.5s;
}
[data-scroll="in"] {
  opacity: 1;
}
[data-scroll="out"] {
  opacity: 0;
}

/* II-b. section styles*/
#home, #about, #portfolio, #contact {
    margin: auto;
}

#portfolio #portfoliotitle {
    color: var(--navy);
}

#about {
    background: var(--navy);
    margin-bottom: 50px;
}

#about #aboutmetitle {
    color: var(--beige);
}

#contact {
    background: var(--lightblue);
    padding-bottom: 50px;
}

#contact #contacttitle {
    color: var(--navy);
}

#home {
    padding-top: 0;
    padding-bottom: 0;
}

#aboutmetitle::after, #portfoliotitle::after, #contactitle::after {
    content: "";
    position: absolute;
    bottom: auto;
    margin-top: 65px;
    left: 32%;
    width: 35%;
    height: 1px;
    border-bottom: solid 4px var(--red);   
}


#aboutmetitle[data-scroll="in"]::after, #portfoliotitle[data-scroll="in"]::after {
    animation: grow 3s linear;
}

#aboutmetitle[data-scroll] {
    opacity: 0;
}

#aboutmetitle[data-scroll="in"] {
    transition: opacity 1.5s;
    opacity: 1;
}

/* scroll with page animation
#aboutmetitle::after {
    animation: grow .3s linear;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

#portfoliotitle::after {
    animation: grow .3s linear;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s + .3s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
} */

@keyframes grow {
    0% {
        width: 20%;
        left:40%;
    }

    100% {
        width: 35%;
        left: 32%;
    }
}
/*III. Nav Menu styles*/
nav ul.nav li a {
    color: var(--navy);
    transition: all .5s;
    padding: 10px 20px;
    position: relative;
    text-decoration: none;
    outline: none;
}

.navbar-toggler span.icon-bar {
    width: 26px;
    height: 1px;
    display: block;
    transition: all 0.2s;
    background: var(--navy);
  }

.navbar-toggler .top-bar {
    transform: rotate(45deg);
    transform-origin: 10% 10%;
    margin-top: -5px;
  }
  .navbar-toggler .middle-bar {
    opacity: 0;
  }
  .navbar-toggler .bottom-bar {
    transform: rotate(-45deg);
    transform-origin: 10% 90%;
    margin-top: 12px;
  }

  .navbar-toggler.collapsed .top-bar {
    transform: rotate(0);
  }
  .navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    margin-top: 5px !important;
  }
  .navbar-toggler.collapsed .bottom-bar {
    transform: rotate(0);
    margin-top: 5px;
  }

.sticky {
    background-color: var(--navy);
    -webkit-transition: all ease .4s;
    transition: all ease .4s;
}

nav.navbar.sticky button.navbar-toggler span.icon-bar {
    background: var(--beige);
}

nav.sticky ul.nav li a {
    color: var(--beige);
    transition: all .5s;
}

.nav li a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 5%;
    width: 0;
    height: 2px;
    opacity: 0;
    background-color: var(--red);
  }

  .nav li a:hover::after {
  opacity: 1;
  width: 90%;
  transition: all 0.5s ease;
  }

  .nav li a:focus{
    border: none;
  }

  .nav li a.active::after {
      transition: none;
      width: 90%;
      opacity: 1;
  }

nav.navbar{
    text-align: center;
    float: none;
    padding: 0 5%;
    margin: 0;
}

#logo {
    width: 70px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

nav button.navbar-toggler span {
    color: var(--beige);
}

.navbar-toggler:focus {
    box-shadow: none;
}

nav.sticky button.navbar-toggler span{
    color: var(--beige);
}
/* IV. Home section styles*/
.loaded #home .container::before {
    animation: fadeIn ease-in 1s forwards;
}
 
@keyframes fadeIn {
  60% {
    opacity: 0;
  }
   
  100% {
    opacity: 1;
  }
}

#home .container::before {
    content: "";
    background:url(images/headercover.jpg) #f2ece9f2 center right fixed no-repeat;
    background-blend-mode:screen;
    background-size: cover;
    opacity: 0;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
    position: absolute;
    top:0;
    left:0;
    margin:auto;  
}

.cover {
    background:#f2ece9f2;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    object-fit: cover;
    position: relative;
    top:0;
    left:0;
    margin:auto;
    z-index: 3;
}

.cover-portfolio {
    background:#f2ece9d8 url(images/portfoliotexture.jpg) center center no-repeat fixed;
    background-blend-mode:screen;
    min-height: 2500px;
    height: 100%;
    max-width: 2400px;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
    position: relative;
    margin:auto;
}


#hello {
    margin: auto;
    padding: 20px 0 12rem 0;
    width: 100%;
}

.header-container {
    padding: 11.5vh 0;
}

.container {
    text-align: center;
}

.container-cover {
    position: relative;
    top: 0;
    left: 0;
    z-index: 6;
}

h1 span {
    font-size: 5.5rem;
    line-height: .80em;
    letter-spacing: 3px;
}

h1 span.second-header {
    margin-bottom: 30px;
}

h2.center {
    font-weight: 400;
    font-size: 1.75rem;
    margin: 15px 0 10px;
}

.center {
    color: var(--navy);
    position: relative;
    top: 5rem;
    padding: 81px 5px;
    width: 100%;
    margin: auto;
}

.header-container h1 span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    border-bottom: solid 4px var(--red);
}

button.discover {
    border: double 5px var(--lightblue);
    font-family: grad, serif;
    font-style: italic;
    font-size: 1.35rem;
    background: none;
    color: #234a6c;
    padding: 8px 30px;
    width: auto;
    margin-bottom: 20px;
}

a button.discover:hover {
    background: var(--lightblue);
    transition: all ease-in-out .5s;
}

a:hover + div.arrow-down.center {
    padding-top: 15px;
}

.arrow-down {
    padding-top: 45px;
    max-width: 35px;
    transition: all 1s ease;
}

/*V. About section styles*/
#aboutmetitle {
    width: 100%;
    padding: 1.5em 5px 0 5px;
}

#about .pic {
    margin: 15px auto;
    width: 100%;
    border: double 5px var(--beige);
}

.about {
    margin: auto;
    font-size: 120%;
    line-height: 180%;
    text-align: center;
    color: var(--beige);
    display: flex;
}

ul.flex-table {
    list-style-type: none;
    font-size: 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 12px;
    color: var(--beige);
}

#about ul.flex-table li.flex-cell p {
    text-align: center;
}

.about .btn {
   border: solid 2px var(--lightblue);
   margin: 0 auto 10px;
}

.about .btn:hover {
    background-color: var(--lightblue);
    border: solid 2px var(--navy);
}

/* VI. Portfolio styles*/
#portfoliotitle {
    padding: 20px 5px 100px 5px;
    margin: auto;
    width: 100%;
}

.portfolio {
    width: 100%;
    max-width: 550px;
    padding: 0;
}

.container-portfolio {
    padding: 0;
}

#portfolio div.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-template-rows:  repeat(auto-fit, 1fr);
    padding-bottom: 50px;
}

.grid-item{
    border:solid 3px var(--lightblue);
    box-shadow: 1px 1px 8px 1px var(--lightblue);
    background:white;
}

.grid-item h3.projecttitle {
    color: var(--navy);
    margin: 1% 4% 0;
    text-align: left;
}

.grid-item h5 {
    text-align: left;
    margin: 0 4% 6%;
    font-size: 1em;
    font-family: soleil, sans-serif;
    font-weight: 100;
    text-decoration: none;
    color: var(--lightblue);
    letter-spacing: 0;
}

.grid-item a {
    text-decoration: none;
}

.grid-item .img-container {
    width: 92%;
    margin-top: 5%;
    height: 300px;
    overflow: hidden;
    display: inline-block;
    border: double 5px var(--lightblue);
}

.grid-item:hover h5 {
    color: var(--navy);
    transition: all 1s;
}

.grid-item:hover .img-container img{
    transform:scale(1.075);
    transition: all 1s ease;
}

.grid-item .img-container img {
    width: 100%;
    max-width: 500px;
    height:100%;
    overflow: hidden;
    transition: all 1s ease;
    transform-origin: center;
    
}
/*VII. Contact styles*/
#contacttitle {
    padding: 20px 50px 0 50px;
    margin: auto;
    width: 100%;
}
#contact .pic {
    max-width: 500px;
}

#contact .contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact {
    color: var(--navy);
}

#contact a {
    color: var(--navy);
    font-family:grad, serif;
    font-style: italic;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.text {
    padding: 0 5em;
    width: 100%;
    margin: auto;
}

#contact .container form label {
    text-align: left;
    margin: 10px auto;
    display: block;
}

form input {
    color: var(--navy);
    background: var(--beige);
    margin: 8px 0;
    padding: 6px;
    border: none;
    font-size: 1em;
    width: 100%;
    display: flex;
}

form .btn {
    margin: 16px auto 0;
    width: 40%;
    display: block;
}

form textarea {
    width: 100%;
    height: 100px;
    margin: 8px 0;
    padding: 6px;
    border: none;
    color: var(--navy);
    background-color: var(--beige);
    resize: none;
}

.btn {
    margin: 25px auto;
    font-family: grad, serif;
    font-style: italic;
    color: var(--lightblue);
    font-size: 1.2rem;
    background: var(--navy);
    padding: 10px 30px;
    border: double 5px var(--lightblue);
    transition: all 1s;
}

.btn:hover {
    background: var(--lightblue);
    color: var(--navy);
    text-decoration: none;
    border: double 5px var(--navy);
    transition: all .9s;
}

/* VIII. Footer styles */
.header,
.footer {
    padding: 0 15px;
}

.footer {
    padding: 30px 0;
    color: var(--beige);
    background-color: var(--navy);
    height: 145px;
}

footer span.watermark {
    font-family: beloved-script, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.1em;
    padding: 0 8px;
    display: inline-block;
    position: relative;
    bottom:2px;
    left: 0;
}

.socialmedia {
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 0 auto 15px;
    padding: 0;
}

.socialmedia>a {
    margin: 5px;
    padding: 10px;
}

.socialmedia li {
    list-style-type: none;
    margin: 0 10px;
}


/* IX. Responsive Media Queries */
@media screen and (max-width: 600px) {

    #hello span.sans, #hello span.serif {
        font-size: 2em;
    }

    #contact .pic {
        padding: 0 10px;
    }

    .socialmedia li img {
        width: 25px !important;
        height: 25px;
    }

    .socialmedia li {
        margin: 0 15px;
    }

}
@media screen and (max-width: 768px) {
    nav.navbar {
        padding: 1%;
    }
    #logo {
        width: 50px;
    }

    #home {
        min-height: 600px;
    }
    .cover::before {
        background-position: center;
    }
    .container {
        min-width: 100%;
    }
    .cover {
        animation:none;
        background-size: cover;
        background-position: center;
    }

    .center, #hello {
        padding: .5em;
    }
    #hello span {
        font-size: 2.5em;
    }

    h2.center {
        font-size: 1.5em;
    }

    button.discover {
        width: 91%;
        font-size: 1.2em;
    }

    .arrow-down {
        width: 45px;
    }

    .about {
        flex-wrap: wrap-reverse;
    }

    .about div.biocontainer {
        margin-bottom: 1.5em;
    }

    .about div.piccontainer {
        margin-bottom: 1em;
        margin-top: 2em;
    }

    .about .btn {
        width: 100%;
    }

    ul.flex-table li {
        width: 33%;
    }

    ul.flex-table li img {
        width: 40px;
    }
    
     #portfoliotitle, #contacttitle {
        padding: 1.5em .4em;
    }

    .grid-item {
        margin: 2% 3%;
    }

    .navbar-toggler {
        padding-right: 0;
    }

    .formcontainer form {
        margin: 0 1%;
    }

    form .btn {
        width: 100%;
    }

    .socialmedia li img {
        width: 32px;
    }
    #aboutmetitle::after, #portfoliotitle::after, #contactitle::after {
    width:40%;
    left:30%;
    margin-top: 75px;
    }
}

@media screen and (max-width: 900px) {
    .about .piccontainer, .about .biocontainer {
        margin: 0 1em;
    }
    #contact .contact {
        flex-wrap: wrap;
    }
    #contact .piccontainer, #contact .formcontainer {
        width: 100%;
    }
}

@media screen and (min-width: 900px) {
    .about .piccontainer, .about .biocontainer {
        margin: 2.5rem;
    }
    #contact .piccontainer, #contact .formcontainer {
        width: 50%;
    }
}

@media screen and (max-width: 991px) {
    ul.nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        height: 50vh;
        padding-left: 0;
    }

    nav #navbarToggler.show {
        background-color: var(--beige);
        transition: all .1s ease;
    }

    nav.sticky #navbarToggler.show {
        transition: all .1s ease;
        background-color: transparent;
    }

    ul.nav li {
        padding: 12px 0;
      
    }
    nav.sticky ul.nav li {
        background-color: none;
    }
}

@media screen and (min-width: 769px) {

    img {
        display: block;
        margin: auto;
    }
    .container {
        max-width: 1800px;
        width: 100%;
        padding: 0 5%;
    }
    .container-cover {
        height: 100%;
    }
    
    #logo {
        display: block;
        width: 70px;
        padding: 15px 0;
    }
    .icon {
        max-width: 40px;
        padding: 5px;
    }
    #hello,
    #aboutmetitle,
    #portfoliotitle,
    #contacttitle {
        padding: 130px 0 20px 0;
        margin: auto;
        width: 95%;
        max-width: 700px;
    }
    #hello {
        padding-bottom: 0;
        padding-top: 0;
    }
    #portfoliotitle {
        padding-bottom: 100px;
    }
    .center {
        position: relative;
        top: 130px;
        padding: 10px 5px;
        margin: auto;
    }
    .about {
        max-width: 100%;
        align-items: center;
        flex-direction: row;
        padding: 0 15px;
    }
    .about .piccontainer, .about .biocontainer {
    width: 50%;
    }
    .about p {
        padding-bottom: 20px;
    }
    ul.flex-table li.flex-cell {
        padding: 12px;
        font-size: .95em;
    }
    .portfolio {
        margin: auto;
        width: 100%;
        max-width: 1800px;
    }
   .cover-portfolio {
        min-height: 1500px;
        max-width: 1800px;
        width: 100%;
        overflow: hidden;
        position: relative;
        margin:auto;
    }
    .grid-item {
        margin: 10px;
    }
    form {
        margin: auto;
        padding: 4% 10%;
        width: 100%;
    }
    form input {
        margin: 5px 0;
        width: 100%;
        padding: 6px;
        display: flex;
    }
    form textarea {
        width: 100%;
        height: 130px;
        margin: auto;
        padding: 8px 6px;
    }
    form .btn {
        margin: 16px auto;
        display: flex;
    }
}
