/* Resets, html and body */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background-color: #1a001e;
    line-height: 1.4;
}

a,
button,
h1,
h2,
h3,
h4,
p,
li,
ul {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #cccccc;
}

/* Everything else */
.career-highlights {
    margin-top: 30px;
}

a {
    color: #d8d837;
    transition: color .3s ease-in-out;
}

a:hover {
    color: #ffff00;
}

h1,
#home h2 {
    font-family: 'Akshar', sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: white;
}

h2 {
    font-size: 30px;
    margin: 0 auto;
}

h2 strong {
    display: block;
}

nav {
    background-color: #472047;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 100%;
    position: sticky;
    top: 0px;
    z-index: 2;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 24px 0 0;
    transition: all ease-in-out .3s;
    font-size: 20px;
    font-family: 'Akshar', sans-serif;
}

nav a:last-of-type {
    margin: 0;
}

nav a:hover,
.active-link {
    color: rgb(240, 103, 255);
    text-decoration: underline;
}

p,
ul li {
    margin-bottom: 8px;
}

ul {
    list-style: disc outside;
    margin: 0 0 20px 20px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-5px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

section {
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    padding: 0 20px;
}

section:not(#home)>div:first-of-type {
    text-align: center;
    padding: 90px 0 40px 0;
}

.reveal {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transition: 1.5s opacity ease;
    padding-bottom: 40px;
}

.reveal.active {
    opacity: 1;
}

.reveal>div:first-of-type {
    flex: 0 2 100%;
}

.reveal img {
    margin: 0 0 20px;
    max-width: 100%;
}

#professional .reveal {
    transform: translateX(-150px);
    transition: 1.5s opacity ease, 1.5s transform ease;
}

#apps .reveal {
    transform: translateX(150px);
    transition: 1.5s opacity ease, 1.5s transform ease;
}

#apps .reveal.active,
#professional .reveal.active {
    transform: translateX(0);
}

#home {
    min-height: 0;
    height: calc(100vh - 60px);
    position: relative;
}

#home::before {
    content: '';
    background: url('img/helloBg2.jpg');
    background-size: auto 100%;
    background-position: center right;
    opacity: 0.2;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

#home div {
    display: flex;
    height: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#home div a {
    margin-top: 10px;
    width: 25px;
    height: 25px;
    border-color: transparent white white transparent;
    border-width: 5px;
    border-style: solid;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    transition: border-color .2s ease-in-out;
}

#home div a:hover {
    border-color: transparent #ed00bb #ed00bb transparent;
}

#home h1,
#home h2 {
    text-transform: none;
    font-size: 28px;
}

#home ul {
    margin: 0 0 30px;
    list-style-type: none;
    position: relative;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

#home ul li {
    position: absolute;
    font-size: 28px;
    opacity: 0;
}

#home ul li:nth-child(1) {
    color: #e79ddc;
    animation: 12s ease-in-out infinite fadeInOne;
}

#home ul li:nth-child(2) {
    color: #d19de7;
    animation: 12s ease-in-out infinite fadeInTwo;
}

#home ul li:nth-child(3) {
    color: #9de7a3;
    animation: 12s ease-in-out infinite fadeInThree;
}

#home ul li:nth-child(4) {
    color: #8182e0;
    animation: 12s ease-in-out infinite fadeInFour;
}

@keyframes fadeInOne {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }
}

@keyframes fadeInTwo {
    25% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeInThree {
    50% {
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    75% {
        opacity: 0;
    }
}

@keyframes fadeInFour {
    75% {
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#professional {
    background-color: #180115;
}

#professional h1 {
    text-shadow: 2px 2px 7px #ff00dd;
}

#professional img:not(a img) {
    box-shadow: 2px 2px 7px #ff4ee7, -2px -2px 7px #ff4ee7;
}

#professional strong {
    color: #ff89ef;
}

#apps {
    background-color: #011803;
}

#apps h1 {
    text-shadow: 2px 2px 7px #37FF00;
}

#apps img {
    box-shadow: 2px 2px 7px #37FF00, -2px -2px 7px #37FF00;
}

#apps strong {
    color: #62C149;
}

#apps h2 strong {
    color: #37FF00;
}

#about {
    background-color: #010b18;
}

#about h1 {
    text-shadow: 2px 2px 7px #006eff;
}

#about h2 {
    margin: 10px 0 30px;
}

#about img:not(a img) {
    border-radius: 50%;
    box-shadow: 2px 2px 14px #006eff, -2px -2px 14px #006eff;
}

#about strong {
    color: #6cacff;
}

#about p {
    margin-bottom: 30px;
}

.link-callout a {
    display: inline-flex;
    justify-content: center;
}

.link-callout span img {
    margin-right: 12px;
}

#professional .link-callout img {
    width: 28px;
    height: 28px;
}

#about .link-callout img {
    width: 40px;
    height: 27px;
}

.back {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.back a {
    margin-top: 10px;
    width: 25px;
    height: 25px;
    border-color: white transparent transparent white;
    border-width: 5px;
    border-style: solid;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    transition: border-color .2s ease-in-out;
}

.back a:hover {
    border-color: #ed00bb transparent transparent #ed00bb;
}

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

    #home h1,
    #home h2,
    #home ul li {
        font-size: 36px;
    }

    #home ul {
        margin-bottom: 40px;
    }
}

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

    h1,
    #home h1,
    #home h2,
    #home ul li {
        font-size: 50px;
        line-height: 1.2;
    }

    #home ul {
        margin-bottom: 60px;
    }

    nav a {
        font-size: 24px;
    }

    .reveal img {
        max-width: 500px;
    }
}

@media screen and (min-width: 768px) {
    #home h2 {
        display: inline-flex;
        width: 514px;
    }

    #home ul {
        display: inline-block;
        margin-left: 10px;
    }

    .reveal {
        flex-direction: row;
        align-items: flex-start;
    }

    .reveal img {
        min-width: 350px;
        max-width: 100%;
    }

    .reveal>div:first-of-type {
        margin: 0 30px 0 0;
    }
}
