@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Staatliches&display=swap');

/*General styles*/

:root {
    --color-1st: #1b262c;
    --color-2nd: #0f4c75;
    --color-4th: #3282b8;
    --color-5th: #fcf9ec;
    --color-6th: #EEE;
}

* {
    transition-duration: 0.5s;
}

body {
    overscroll-behavior: none;
}

a {
    color: #666;
}

a:hover {
    text-decoration: none;
    color: #999;
}

p,
a,
li {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Staatliches', sans-serif;
    margin: 0;
}

h1 {
    color: var(--color-6th);
    font-size: 5em;
    border-bottom: 1px solid var(--color-6th);
}

h2 {
    color: var(--color-1st);
    font-size: 3em;
}

h3 {
    color: var(--color-1st);
    font-size: 3em;
    font-weight: 500;
}

h4 {
    color: var(--color-1st);
    font-size: 2em;
    font-weight: 200;
}

h5 {
    color: var(--color-1st);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

hr {
    margin: 20px 0;
}

hr:nth-of-type(1) {
    margin: 10px 0 20px 0;
}

.container {
    max-width: 1000px;
}

section {
    padding: 30px 0;
}

.subsection {
    padding: 20px 0;
}

#contact>.black-overlay {
    padding: 2rem 0 1rem 0;
}

.black-overlay {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
}

.credit {
    color: #666;
}

.credit:hover {
    color: #999;
}

.see-outside {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.see-outside-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 40px;
    border-radius: 10px;
    margin-left: 5px;
    padding: 5px 10px;
    font-weight: 700;
    color: #555;
    transition: 0.2s linear;
}

.li-text,
.ps-text {
    color: #333;
}

.see-outside-button:hover .li-text {
    color: #2867b2;
}

.see-outside-button:hover .ps-text {
    color: #ec008c;
}

.see-outside-img {
    display: inline-block;
    width: 1.5rem;
    height: auto;
    transform: translateY(-2px);
}

.see-outside-button>span:not(.ps-text):not(.li-text) {
    position: absolute;
    transition: transform .5s;
}

.see-outside-button>span:nth-child(1),
.see-outside-button>span:nth-child(3) {
    height: 1px;
    width: 100%;
    background-color: #666;
    z-index: 5;
}

.see-outside-button>span:nth-child(1) {
    left: 0;
    top: 0;
    transform-origin: right;
}

.see-outside-button:hover>span:nth-child(1) {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s;
}

.see-outside-button>span:nth-child(3) {
    left: 0;
    bottom: 0;
    transform-origin: left;
}

.see-outside-button:hover>span:nth-child(3) {
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s;
}

.see-outside-button>span:nth-child(2),
.see-outside-button>span:nth-child(4) {
    height: 100%;
    width: 2px;
}

.see-outside-button>span:nth-child(2) {
    right: 0;
    top: 0;
    transform: scale(0);
    transform-origin: top;
}

.see-outside-button:hover>span:nth-child(2) {
    transform: scale(1);
    transform-origin: bottom;
    transition: transform .5s;
}

.see-outside-button>span:nth-child(4) {
    transform: scale(0);
    transform-origin: bottom;
    left: 0;
    bottom: 0;
}

.see-outside-button:hover>span:nth-child(4) {
    transform: scale(1);
    transform-origin: top;
    transition: transform .5s;
}

.ps-rims {
    background-color: #ec008c;
}

.li-rims {
    background-color: #2867b2;
}


/*Home section*/

#home {
    height: 100vh;
    background-image: url(images/backgrounds/alex-wong-opt.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
}

#home h2 {
    color: var(--color-6th);
}

#home .credit {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

#home .container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#home-title {
    text-align: center;
    min-width: 50%;
}


/*Navigation styling*/

.nav-lead {
    position: absolute;
    width: 120px;
    right: 2%;
    bottom: 0;
    height: 60px;
    z-index: 100;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chevron {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    border-bottom: 8px solid white;
    border-right: 8px solid white;
    animation-name: chevron_wiggle;
    animation-duration: 1.4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.navbar {
    position: absolute;
    right: 2%;
    top: 100vh;
    width: 120px;
    height: 50vh;
    z-index: 100;
    padding: 0;
    transition-property: none;
}

.fixed {
    position: fixed !important;
    top: 25vh;
}

.nav-button {
    display: none;
    height: 100%;
    width: 50px;
    padding: 0;
    margin: 5px 30px 5px 0;
    padding: 5px 10px 0 10px;
    background-color: #000;
    border: 0;
    border-radius: 20px;
}

.nav-button:focus {
    outline: 0;
}

.nb-top-line,
.nb-mid-line,
.nb-btm-line {
    display: block;
    width: 100%;
    border-top: 3px solid white;
    height: 0;
    margin: 5px 0;
    transition-duration: 0.3s;
}

.nb-top-line.open {
    transform: translateY(8px) rotate(45deg);
}

.nb-mid-line.open {
    width: 0;
}

.nb-btm-line.open {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-wrapper {
    width: 100%;
}

.navbar-nav {
    list-style: none;
    width: 100%;
    padding: 0;
}

.nav-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #EEE;
    height: 10vh;
    padding: 0;
    font-weight: 600;
    width: 120px;
    transition: 0.1s linear;
}

.nav-link:not(.active) {
    color: #EEE !important;
}

.nav-link>span {
    position: absolute;
    width: 80%;
    height: 2px;
    top: 66%;
    background-color: #EEE;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s, background-color .5s;
}

.nav-link:hover {
    color: #111;
}

.nav-link:hover:not(.active)>span {
    transform: scaleX(1);
    transform-origin: left;
}

.active {
    background-color: #FFF;
    color: #111;
    border: 1px solid #000;
}


/*Profile section*/

#about {
    background: rgba(255, 253, 240, 1);
}

#intro {
    padding-left: 0;
    margin-top: auto;
    margin-bottom: auto;
}

#profile-photo {
    width: 80%;
    box-shadow: 5px 5px 5px gray;
    margin: 20px 0;
}

.ph-pillar {
    margin: 20px 0;
    padding: 0 20px;
    text-align: justify;
}

.ph-pillar-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.ph-pillar>p {
    margin-bottom: 1rem;
}


/* About - Strengths */

.strengths {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.str {
    position: relative;
    background: none;
    width: 150px;
    height: 150px;
    margin: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.str a {
    color: black;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: 0.1s;
}

.str-purple a:hover {
    color: rgba(92, 57, 109, 0.7);
}

.str-blue a:hover {
    color: rgba(31, 76, 116, 0.7);
}

.str-red a:hover {
    color: rgba(175, 51, 51, 0.7);
}

.str p {
    font-size: 1.5rem;
}

.str>span {
    position: absolute;
    transition: transform .5s;
}

.str>span:nth-child(1),
.str>span:nth-child(3) {
    height: 2px;
    width: 100%;
    background-color: #666;
    z-index: 5;
}

.str>span:nth-child(1) {
    left: 0;
    top: 0;
    transform-origin: right;
}

.str:hover>span:nth-child(1) {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s;
}

.str>span:nth-child(3) {
    left: 0;
    bottom: 0;
    transform-origin: left;
}

.str:hover>span:nth-child(3) {
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s;
}

.str>span:nth-child(2),
.str>span:nth-child(4) {
    height: 100%;
    width: 3px;
}

.str.str-purple>span:nth-child(2),
.str.str-purple>span:nth-child(4) {
    background-color: rgba(92, 57, 109, 0.5);
}

.str.str-blue>span:nth-child(2),
.str.str-blue>span:nth-child(4) {
    background-color: rgba(31, 76, 116, 0.5);
}

.str.str-red>span:nth-child(2),
.str.str-red>span:nth-child(4) {
    background-color: rgba(175, 51, 51, 0.5);
}

.str>span:nth-child(2) {
    right: 0;
    top: 0;
    transform: scale(0);
    transform-origin: top;
}

.str:hover>span:nth-child(2) {
    transform: scale(1);
    transform-origin: bottom;
    transition: transform .5s;
}

.str>span:nth-child(4) {
    transform: scale(0);
    transform-origin: bottom;
    left: 0;
    bottom: 0;
}

.str:hover>span:nth-child(4) {
    transform: scale(1);
    transform-origin: top;
    transition: transform .5s;
}


/*Profile - Hobbies*/

.hobby {
    margin: 20px 0;
}

.hobby-pic {
    width: 50%;
}


/*Experiences section*/

#experiences {
    background-color: var(--color-6th);
}

.years {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin: 3rem 0;
}

.counter {
    font-size: 8rem;
    font-weight: 900;
}

.company {
    height: 120px;
    width: 120px;
    transition-duration: 0.2s;
    padding: 10px;
}

.company:hover {
    transform: rotate(-2deg);
}

.company img {
    width: 100%;
    height: 100%;
}

.edu {
    margin: 3.5rem 0;
}

.edu-ico,
.edu-title,
.edu-date,
.edu-institution {
    display: flex;
    align-items: center;
}

.edu-ico,
.edu-date {
    justify-content: center;
}

.edu-img {
    height: 40px;
    width: auto;
}

.edu-title {
    font-weight: 700;
}

br.responsive-br {
    display: none;
}


/*Abilities section*/

#skills {
    background: rgba(255, 253, 240, 1);
}

.ability,
.tool,
.language {
    min-width: 48%;
    height: 20px;
}

.ability-label {
    display: inline-block;
    height: 100%;
}

.ability-value {
    height: 100%;
    display: inline-block;
}

.skill-container {
    margin: 2rem 0;
}

.skill {
    display: flex;
    justify-content: space-between;
    padding: 10px 1rem;
}

.skill:hover {
    background-color: #ddd;
}

.skill-label {
    font-size: 1rem;
}

.skill-level {
    height: 1rem;
}

.skill-star {
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 1.5rem;
    height: 1.5rem;
    transition: 0.3s;
    transition-timing-function: ease-out;
}

.skill-star-hovered {
    transform: scale(1.15) rotate(-72deg);
    margin: 0 1px;
}

.skill-on {
    background-image: url('images/star-full.png');
}

.skill-off {
    background-image: url('images/star-empty.png');
}


/*Project section*/

#projects {
    background-color: var(--color-6th);
}

.project {
    margin: 50px 10px;
    overflow: hidden;
    position: relative;
    background: #000;
    transition: 0.05s linear;
    height: 320px;
    box-shadow: 5px 5px 5px gray;
}

.project * {
    transition: 0.2s ease;
}

.project-tile {
    min-height: 100%;
    max-height: 120%;
    width: auto;
    position: relative;
}

.project-info {
    z-index: 2;
    position: absolute;
    top: 15px;
    left: 30px;
    width: 85%;
    color: white;
    opacity: 0;
}

.project-info>h4 {
    font-size: 2.5rem;
    color: #FFF;
}

.white-line {
    width: 10%;
    border-bottom: 3px solid var(--color-6th);
    margin: 1rem 0;
    opacity: 0;
}

.project-info>p {
    transform: translateX(500px);
    color: #FFF;
    font-size: 1.2rem;
}

.project-tile.ks2tile {
    transform: translateY(-220px);
}


/*Projects animations*/

.project:hover .white-line {
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.project:hover .project-tile {
    opacity: 0.2;
    filter: grayscale(100%);
    transform: translate(-20px, 0px);
}

.project:hover .project-tile.ks2tile {
    transform: translate(0px, -250px) !important;
}

.project:hover .project-info {
    opacity: 1;
}

.project:hover .project-info>p {
    transform: translateX(0px);
}


/*Contact section*/

#contact {
    background-color: var(--color-1st);
    background-image: url(images/backgrounds/brandi-redd-opt.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
    height: 80vh;
    min-height: 500px;
}

#contact .container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#contact h2 {
    color: var(--color-6th);
}

#contact hr {
    border-bottom: 1px solid white;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 45%;
    margin: 8rem 0;
    padding: 5px 0;
    color: var(--color-6th);
    transition-duration: 0.2s;
    transition-timing-function: ease;
    opacity: 0.8;
}

.social:hover {
    opacity: 1;
    color: var(--color-6th);
}

.social p {
    position: relative;
    display: inline-block;
    line-height: 32px;
    grid-column: 2;
}

.social_icon {
    display: inline-block;
    grid-column: 1;
    width: 32px;
    height: 32px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.social-underline {
    position: absolute;
    bottom: 0;
    left: 5px;
    height: 1px;
    width: 100%;
    background-color: var(--color-6th);
    transition: transform .5s;
    transform: scaleX(0);
    transform-origin: right;
}

.social:hover .social-underline {
    transform: scaleX(1);
    transform-origin: left;
}

#linkedin {
    background-image: url("images/contact_linkedin.png");
}

#email {
    background-image: url("images/contact_email.png");
}

#footer {
    flex-grow: 1;
}

#footer>p {
    color: #555;
    text-align: center;
}

.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: #000;
    z-index: 300;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Small and medium screens */

@media screen and (max-width: 1250px) {
    #home .credit {
        bottom: 65px;
    }
    .nav-lead {
        width: 100%;
        right: 0;
    }
    .navbar {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: flex-end;
        right: 0;
        width: 100%;
        height: auto;
        background-color: #000;
    }
    .fixed {
        top: 0;
    }
    .nav-button {
        display: block;
    }
    .nav-item {
        display: block;
        width: 100%;
    }
    .nav-link {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hobby-pic {
        width: 70%;
    }
    .edu-img {
        margin-bottom: 10px;
    }
    .edu-title {
        justify-content: center;
        margin-bottom: 10px;
    }
    .edu-title p {
        text-align: center;
    }
    .edu-date {
        justify-content: left;
    }
    .skill {
        width: 100%;
        padding: 10px 0;
    }
    .skill-star {
        width: 1.2rem;
        height: 1.2rem;
    }
    br.responsive-br {
        display: inline;
    }
    .project {
        max-width: 100%;
    }
    .social {
        margin: 3rem 20%;
    }
}

@media screen and (max-width: 400px) {
    .see-outside-button {
        width: 80%;
        margin-top: 10px;
    }
}

@keyframes chevron_wiggle {
    from {
        margin-top: 0;
    }
    50% {
        margin-top: -10px;
    }
    to {
        margin-top: 0;
    }
}