/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}
#bg-image {
    width: 100vw;
    position: fixed;
    height: 100vh;
    z-index: -1;
    background-image: url('/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1,
h2,
h4,
h5,
h6 {
    color: #454B4D;
}

a {
    color: #D86068;
    text-decoration: none;
    transition: .3s;
}

a:hover {
    color: #F5DBDA;
}

pre {
    background: #F0F0F0;
    margin: 1rem 0;
    border-radius: 2px;
}

blockquote {
    border-left: 10px solid #eee;
    margin: 0;
    padding: 0 2rem;
}

/* Utility Classes */
.wrapper {
}
.section {
    padding: 5rem 0 5rem 3rem;
    min-height: 100vh;
}
.section .container {
    width: 80%;
}
.text-center {
    text-align: center;
}

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

.text-left {
    text-align: left;
}
.highlight{
    position: relative;
    padding: 0 0.2rem;
    z-index: 1;
    display: inline-block;
}
.highlight:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(245, 219, 219,1);
    display: block;
    width:100%;
    height: 1.3rem;
    z-index: -1;
}

.shirleytan {
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
}
.experience,.education,.portfolio {
    background: rgba(255,255,255,1);
}
.skills {
    background: rgba(245, 219, 219,1);
}
.contact,.footer {
    background: rgba(245, 219, 219,0.9);
}

/* Menu Settings */
.main-nav {
    position: fixed;
    top: 5rem;
    right: 3rem;
    z-index: 999;
}
.main-nav ul {
    text-align: right;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: block;
    letter-spacing: normal;
}
.main-nav ul li a.active {
    color: #9C2542;
}
.main-nav ul li a {
    display: block;
    line-height: 45px;
    color: #666;
    transition: 0.3s;
}

/*Active dropdown nav item */
.main-nav ul li:hover > a {
    opacity: 0.5;
}

/* Active on Hover */
.main-nav li:hover > ul {
    display: block;
}

.nav-toggle {
    position: relative;
    display: none;
}
.nav-toggle span {
    width: 1.5rem;
    height: 2px;
    background: #666;
    display: block;
    border-radius: 1px;
    position: absolute;
}
.nav-toggle span:nth-child(1) {
    top: 0;
}
.nav-toggle span:nth-child(2) {
    top: 0.55rem;
}
.nav-toggle span:nth-child(3) {
    top: 1.1rem;
}
/* Typography */
h1.title {
    font-weight: 200;
    font-size: 3.5rem;
    color: #9C2542;
    border-bottom: 1px solid #9C2542;
    display: inline-block;
    padding-right: 4rem;
    line-height: 1.2;

}
h2.sub-title {
    font-weight: 300;
    font-size: 1.5rem;
    color: #D86068;
    line-height: 1.2;
}
h3.sub-title {
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.2;
}
#to-start {
    border-right: 1px solid #9C2542;
    border-bottom: 1px solid #9C2542;
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(45deg);
    transform-origin: left bottom;
}
.education-listing, .experience-listing, .skills-listing {
    margin-bottom: 4rem;
}
.education-listing:last-child, .experience-listing:last-child, .skills-listing:last-child {
    margin-bottom: 0;
}
ul.listing li {
    list-style-type: none;
    position: relative;
}
ul.listing li:before {
    content: "—";
    display: block;
    position: absolute;
    top: 0;
    left: -2rem;
}

.footer p{
    margin: 0;
    padding: 2rem 0;
}

textarea {
    width: 98%;
}

.pure-form input[type=text],
.pure-form input[type=email],
.pure-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #9C2542;
    box-shadow: none;
    color: #666;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
.pure-form input[type=text]:focus,
.pure-form input[type=email]:focus,
.pure-form textarea:focus {
    border-bottom: 1px solid #666;
    color: #9C2542;
}

.skill .skill-title {
    font-weight: 300;
}

.skill .skill-icon {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}
.skill .skill-icon svg{
    fill: none;
    stroke: #666;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation-direction: normal;
    -webkit-animation: rline 1s linear forwards;
    animation: rline 1s linear forwards;
}
.skills-wrapper .skill p {
    opacity: 0;
}
.skills-listing.play .skill .skill-icon svg{
    animation-direction: normal;
    -webkit-animation: line 1.5s linear forwards;
    animation: line 1.5s linear forwards;
}
.skills-listing.play .skill p{
    opacity: 1;
}

@-webkit-keyframes line {
    0% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes line {
    0% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
@-webkit-keyframes line {
    0% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes rline {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 300;
    }
}
@-webkit-keyframes rline {
    0% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.contact {
    min-height: calc(100vh - 91px);
}
.contact ul {
    margin: 0.83em 0 0;
    padding: 0;
}
.contact ul li{
    list-style-type: none;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-weight: 300;
}
.contact ul li img {
    display: inline-block;
    margin-right: 1rem;
    width: 32px;
}
.contact ul li a {
    display: flex;
    align-items: center;
    color: #666;
    transition: .3s;
}
.contact ul li a:hover {
    opacity: 0.5;
}

.projects-listing {
    margin-top: 1.5rem;
}
.projects-listing .project {
    margin-right: 4rem;
}
.projects-listing .project-box {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    margin-bottom: 4rem;
}
.projects-listing .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    transition: 0.3s;
    background-color: rgba(0,0,0,0.3);
    mix-blend-mode: color;
    cursor: pointer;
}
.projects-listing .project-box:hover .project-overlay {
    background-color: rgba(0,0,0,0.9);
}
.projects-listing .project-info{
    padding: 0;
    margin: 0;
    position: absolute;
    width:100%;
    text-align: center;
    bottom: 0;
    background-color: rgba(245, 219, 219,1);
    height: 0;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.projects-listing .project-info p{
    margin: 0;
}
.projects-listing .project-box:hover .project-info {
    height: 33.3333%;
    opacity: 0.9;
}

.projects-listing .project-box:after{
    content: "";
    display: block;
    padding-bottom: 56%;
}

.project-modal {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255,.85);
    opacity: 0;
    display: none;
    transition: .3s;
    z-index: 1001;
    padding-bottom: 4rem;
    overflow-y: scroll;
}
.slick-dots {
    bottom: 0.5rem;
}
.project-modal.show {
    display: block;
    animation: fadeIn .3s linear forwards;
}
.project-modal .modal-close {
    position: fixed;
    margin-top: 3.5rem;
    cursor: pointer;
    width: 4rem;
    height: 4rem;
}
.project-modal .modal-close:before{
    content: "";
    top: 0;
    right: 0;
    transform: rotate(45deg);
    transform-origin: left;
    width: 2.5rem;
    height: 2px;
    background: #666;
    display: block;
    border-radius: 1px;
    position: absolute;
}
.project-modal .modal-close:after{
    content: "";
    top: 0;
    transform: rotate(-45deg);
    transform-origin: right;
    right: 0.65rem;
    width: 2.5rem;
    height: 2px;
    background: #666;
    display: block;
    border-radius: 1px;
    position: absolute;
}
.gallery {
    margin-top: 4rem;
}
.slick-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
}
.slick-prev,
.slick-next{
    width: 10%;
    height: 100%;
    z-index: 1;
}
.slick-prev:before,
.slick-next:before,
.slick-prev:after,
.slick-next:after {
    content: "";
    opacity: 1;
    background-color: #666;
    display: block;
    width: 1rem;
    height: 2px;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
    position: absolute;
    top: 50%;
}
.slick-next:after{
    transform: rotate(45deg);
    transform-origin: right;
}
.slick-next:before{
    transform: rotate(-45deg);
    transform-origin: right;
    top: calc(50% - 1px);
}
.slick-prev:after{
    transform: rotate(-45deg);
    transform-origin: left;
    right: 0;
}
.slick-prev:before{
    transform: rotate(45deg);
    transform-origin: left;
    top: calc(50% - 1px);
    right: 0;
}
.slick-dots li.slick-active button:before {
    color: #9C2542;
}
.slick-dots li:hover {
    color:#666;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
body.modal-open {
    overflow: hidden;
}
body.modal-open .main-nav {
    right: calc(3rem + 15px);
}
body.modal-open .section {
    padding-right: 15px;
    filter: blur(10px);
}

@media only screen and (max-width: 768px) {
    .section {
        padding: 2rem 2rem 4rem;
    }
    .section .container {
        width: 100%;
    }

    .projects-listing .project {
        margin-right: 2rem;
    }
    .projects-listing .project-box {
        margin-bottom: 2rem;
    }
}
@media only screen and (max-width: 568px) {
    h1.title {
        font-size: 2.5rem;
        padding-right: 2rem;
    }
    h2.sub-title {
        font-weight: 300;
        font-size: 1.25rem;
        line-height: 1.5;
    }
    h3.sub-title {
        font-weight: 300;
        font-size: 1rem;
    }
    p{
        font-size: 0.9375rem;
    }
    .skill .skill-icon svg {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .skill .skill-icon {
        margin-bottom: 0;
    }
    .main-nav {
        top: 2rem;
    }
    .nav-toggle {
        display: block;
        z-index: 1000;
    }
    ul.navigation {
        width: 50vw;
        height: 100vh;
        position: fixed;
        background-color: rgba(255,255,255,1);
        left: auto;
        right: 0;
        top: 0;
        padding: 8rem 0;
        display: none;
        flex-direction: column;
        justify-content: space-around;
        text-align: center;
        box-shadow: 0px 0px 3px rgba(0,0,0,0.1);
    }
    .main-nav ul li {
        text-align: center;
    }
    .projects-listing .project {
        margin-right: 1rem;
    }
    .projects-listing .project-box {
        margin-bottom: 1rem;
    }
    .nav-toggle.show span:nth-child(1) {
        top: 0;
        transform: rotate(45deg);
        transform-origin: left;
    }
    .nav-toggle.show span:nth-child(2) {
        top: 0;
        transform: rotate(-45deg);
        transform-origin: right;
        left: -0.35rem;
    }
    .nav-toggle.show span:nth-child(3) {
        opacity: 0;
    }
    .slick-dots {
        bottom: -2rem;
    }
    .slick-next {
        right: -2rem;
    }
    .slick-prev {
        left: -2rem;
    }
}

