:root {
    --light: #F3F7F4;
    --black: #0E1111;
    --orange: #E4572E;
    --yellow: #F3A712;
    --light-grey: #DCDCDC;
    --grey: #2e2e2e;
    --footer-color: #5e5e5e;
    --shadow-color: rgba(111, 111, 111, 0.45);
    --nav-underline: 8px;
    --nav-underline-thin: 2px;
}

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Exo', sans-serif;
    color: var(--grey);
    font-size: 16px;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: 'Righteous', cursive;
    letter-spacing: 2px;
}

body {
    background-color: var(--light);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

.container {
    width: 70%;
    margin: 0 auto;
}


/* HEADER */
.navigation-bar {
    background-color: var(--black);
    min-height: 4rem;
    color: var(--light);
    font-family: 'Righteous', cursive;
}

.navigation-bar--grid {
    display: grid;
    grid-template-columns: minmax(15rem, 30%) 1fr minmax(10rem, 30%);
    justify-content: space-evenly;
}

div.navigation-bar__header:first-child {
    text-align: left;
}

div.navigation-bar__header:last-child {
    text-align: end;
}

.navigation-bar__header:first-child {
    align-self: center;
    padding-left: 2rem;
}

.navigation-bar__header:last-child {
    align-self: center;
    padding-right: 2rem;
}

.navigation-bar__header h1>span {
    color: var(--orange);
}

.navigation-bar__header h3 {
    font-size: 2rem;
    text-transform: uppercase;
    font-style: italic;
}

.navigation-bar__header h3>span {
    font-size: 1rem;
    color: var(--orange);
    font-style: normal;
}

/* NAV BAR */

.navigation-bar__nav--grid {
    display: grid;
    grid-template-columns: repeat(4, min-content);
    justify-content: space-between;
    align-items: center;
}

.navigation-bar__nav {
    list-style: none;
    padding: 0px 0px;
}

.navigation-bar__nav li {
    text-align: center;
    align-items: center;
    height: 100%;
    display: grid;
    border-bottom: var(--nav-underline) solid rgba(0, 0, 0, 0);
    border-top: var(--nav-underline) solid rgba(0, 0, 0, 0);
    transition: border-bottom-color 0.2s ease-in-out;
}

.navigation-bar__nav a {
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--light);
    white-space: nowrap;
    padding-left: 2rem;
    padding-right: 2rem;
}

.navigation-bar__nav li.current {
    background-color: var(--yellow);
}

.navigation-bar__nav li.current a {
    color: var(--black);
}

.navigation-bar__nav li:hover {
    border-bottom-color: var(--orange);
    padding-bottom: 0;
}

.navigation-bar__nav li a:active {
    color: var(--orange);
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 1;
}

.anchor {
    display: block;
    position: relative;
    top: -9rem;
    visibility: hidden;
}

/*      BANNER       */

#banner {
    height: calc(100vh - 4rem);
    background-color: var(--light);
    background-size: cover;
    background-repeat: no-repeat;
    background: linear-gradient(115deg, rgba(0, 0, 0, 0) 30%,
            white 30%, white 31%, white 31.1%, white 70%,
            rgba(0, 0, 0, 0) 70%), url(../img/acrylic_bacground.jpeg);
    margin-bottom: 5rem;
    ;
}

.banner--flex {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner__content {
    padding: 0 0vw 1vw 0vw;
    border-bottom: 0.5rem solid var(--orange);
    font-family: 'Righteous', cursive;
    letter-spacing: 0.1rem;
    color: var(--orange);
    text-transform: uppercase;
    position: relative;
}

.banner__content h1 {
    font-size: 5vw;
}

.banner__content h2 {
    font-size: 4vw;
    color: var(--black);
}

.banner__content h3 {
    font-size: 1.4vw;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 0.8vw;
    text-align: end;
}

.arrow {
    width: 128px;
    height: 128px;
    opacity: 0.1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.arrow--down {
    position: absolute;
    bottom: -200px;
    left: calc(50% - 64px);
}

.arrow-up {
    position: relative;
    bottom: calc(4rem - 64px);
    left: calc(50% - 64px);
}

img.arrow:hover {
    transform: scale(1.1);
    shape-margin: 4px;
    opacity: 0.2;
}

/*  CONTENT  */

.box {
    background-color: var(--light);
    border: 1px solid var(--light-grey);
    padding: 4rem;
    box-shadow: 1rem -1rem var(--yellow);
    margin-top: 3rem;
}

.box h1 {
    font-size: 3rem;
    color: var(--orange)
}

.underligned {
    display: flex;
    flex-direction: row;
}

.underligned:before,
.underligned:after {
    content: "";
    flex: 1 1;
    border-bottom: 1px solid var(--yellow);
    margin: auto;
}

.underligned:before {
    margin-right: 3rem;
}

.underligned:after {
    margin-left: 3rem;
}

.normal-text {
    line-height: 1.4rem;
    font-size: 1.2rem;
    text-align: left;
    padding: 2rem 0;
}

.circle {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    box-shadow: 2px 5px 5px var(--light-grey);
}

.box--grid-triple {
    display: grid;
    grid-template-columns: auto 3fr;
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
}

.box--grid-triple :first-child {
    grid-row: 1 / 3;
    align-self: center;
    justify-self: center;
}

.box--grid-triple :nth-child(2) {
    grid-row: 1;
}

.box--grid-triple :last-child {
    grid-row: 2;
    grid-column: 2;
}

.free-header {
    color: var(--light-grey);
    font-size: 5vw;
    position: relative;
    left: -5vw;
    margin: 2rem 0;
}

.projects-section {
    background-color: var(--light-grey);
    margin: 8rem 0;
    padding-bottom: 8rem;
}

.free-header--projects {
    color: var(--orange);
    font-size: 4rem;
    top: 4rem;
}

.header-shadow {
    text-shadow: 2px -2px 5px var(--shadow-color);
}

.list-boxes {
    background-color: var(--light);
    list-style: none;
    border-left: 1px solid var(--shadow-color);
    border-bottom: 1px solid var(--shadow-color);
    padding: 4rem 2rem 2rem 2rem;
    box-shadow: 2px -1px 5px var(--shadow-color);
}

.flex-flow {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 2rem;
}

.flex-flow>li {
    padding: 2rem;
}

.projects-section__img-wraper {
    position: relative;
    perspective: 500px;
}

.projects-section__img-wraper img {
    width: 300px;
    height: auto;
    box-shadow: 2px -2px 5px var(--shadow-color);
    transition: transform 0.2s ease-in, box-shadow 0.2s ease-in;
}

.projects-section__img-wraper .details {
    position: absolute;
    content: "";
    width: 90%;
    height: 90%;
    top: 48.5%;
    left: 4.5%;
    transform: translate(0%, -50%) rotateY(90deg);
    transform-origin: 50%;
    background: rgba(25, 25, 25, 0.75);
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.3s ease-out;
}

.projects-section__img-wraper .details__box {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects-section__img-wraper .details__box h3 {
    color: var(--orange);
}

.projects-section__img-wraper .details__box p {
    color: white;
    font-size: 1rem;
}

.projects-section__img-wraper .details__box .button {
    font-size: 1rem;
    width: 8rem;
}


.projects-section__img-wraper:hover .details {
    transform: translate(0%, -50%) rotateY(0deg);
    opacity: 1;
}

.projects-section__img-wraper:hover img {
    transform: scale(1.05);
    box-shadow: 6px -6px 10px var(--shadow-color);
}



.list-box-element {
    display: block;
    background-color: var(--light);
    padding: 1rem;
    margin: 1rem 2rem;
    border-top: 1px solid var(--yellow);
    border-bottom: 1px solid var(--yellow);
    border-right: 1px solid var(--yellow);
    border-left: 5px solid var(--orange);
}

.skills-section__skill-list {
    padding: 2rem 4vw 0 4vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-end;
}

.skills-section__skill-list .list-box-element:nth-child(even) {
    border-left: 5px solid var(--yellow);
    width: 18rem;
    text-align: center;
}

.skills-section__skill-list .list-box-element:nth-child(odd) {
    width: 12rem;
    text-align: center;
}

.element-shadow {
    box-shadow: 2px -1px 5px var(--shadow-color);
}

.last-section {
    margin-top: 5rem;
}

.list-boxes--last-section {
    padding: 2rem;
}

.free-header--static {
    position: static;
    text-align: center;
}

.last-section__box {
    width: 25rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.last-section__text {
    line-height: 1.3rem;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

.button {
    text-decoration: none;
    border: none;
    height: 3rem;
    width: 15vw;
    min-width: 8rem;
    margin: 0 auto 0 auto;
    background-color: var(--yellow);
    color: var(--light);
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    font-family: 'Righteous', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in;
}

.button:hover {
    background-color: var(--orange);
}


/*  Footer   */

footer {
    background-color: var(--black);
}

.footer {
    min-height: 10vh;
    color: var(--light-grey);
    font-size: 0.8rem;
    padding: 2rem 2vw 1vw 2vw;
}

.footer__column-text {
    width: 15rem;
    color: var(--footer-color);
}

.footer h1 {
    font-size: 1rem;
    letter-spacing: 0.2vw;
    text-align: center;
    padding-bottom: 2rem;
    color: var(--orange)
}

.footer h3 {
    font-size: 0.8rem;
    color: var(--orange);
}

div.footer__social-media {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__social-media a {
    padding: 10px;
    background-color: var(--yellow);
    margin-right: 1rem;
    margin-bottom: 2rem;
    transition: background-color 0.2s ease-in;
}

.footer__social-media a:hover,
.footer__social-media a:focus {
    background: var(--orange);
}

.footer__copyrights {
    color: var(--footer-color);
    text-align: center;
}

.social-icon {
    width: 32px;
    height: auto;
}

.animate-rotate {
    transform-origin: bottom left;
    animation: rotate-text 1s ease-in forwards;
}

.animate-drop-down {
    animation: drop-down 0.4s ease-in forwards;
}

.animate-light-up {
    animation: light-up 1.5s ease-in-out forwards;
}

@keyframes light-up {
    0% {
        color: var(--light-grey)
    }

    60% {
        color: var(--yellow)
    }

    100% {
        color: var(--light-grey)
    }

    ;
}


@keyframes rotate-text {
    0% {
        transform: translateY(-60vh) rotate(-60deg);
    }

    30% {
        transform: translateY(-60vh) rotate(-60deg);
    }

    80% {
        transform-origin: bottom-left;
        transform: rotate(-60deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes drop-down {
    0% {
        transform: translateY(-60vh);
    }

    100% {
        transform: translateY(0);
    }
}


@media (max-width: 1200px) {

    .navigation-bar__nav a {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width:960px) {
    .box h1 {
        font-size: 2rem;
    }

    .navigation-bar--grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        justify-content: space-evenly;
        row-gap: 1rem;
    }

    .navigation-bar--grid div:first-child {
        grid-row: 1;
        justify-self: flex-end;
    }

    .navigation-bar--grid div:last-child {
        grid-row: 1;
        justify-self: flex-start;
        padding-left: 1rem;
    }

    .navigation-bar__header:first-child {
        align-self: flex-end;
        padding-left: 0;
    }

    .navigation-bar__header:last-child {
        align-self: flex-end;
        padding-right: 0;
    }

    .navigation-bar__header:last-child h3 {
        font-size: 1.5rem;
    }

    .navigation-bar--grid ul:nth-child(2) {
        grid-row: 2;
        grid-column: span 2;
        justify-self: center;
    }

    #banner {
        height: calc(100vh - 5.75rem);
        margin-bottom: 3rem;
    }

    .container {
        width: 85%;
    }

    .box--grid-triple {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        row-gap: 2rem;
    }

    .box--grid-triple :first-child {
        grid-row: 1;
        justify-self: center;
    }

    .box--grid-triple :nth-child(2) {
        grid-row: 2;
    }

    .box--grid-triple :last-child {
        grid-row: 3;
        grid-column: 1;
    }

    .normal-text {
        padding: 0;
    }

    .box {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .navigation-bar--grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        column-gap: 0;
        row-gap: 0rem;
    }

    .navigation-bar--grid div:first-child {
        grid-row: 1;
        justify-self: center;
    }

    .navigation-bar--grid div:last-child {
        grid-row: 2;
        justify-self: center;
        padding-left: 0;
        padding-bottom: 1rem;
    }

    .navigation-bar--grid ul:nth-child(2) {
        grid-row: 3;
        justify-self: center;
    }

    .navigation-bar__nav--grid {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: repeat(4, min-content);
        width: 100%
    }

    .navigation-bar__nav--grid ul {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .navigation-bar__nav--grid li {
        border-top-width: var(--nav-underline-thin);
        border-bottom-width: var(--nav-underline-thin);
    }

    .navigation-bar__nav--grid li a {
        line-height: 2.1rem;
    }

    #banner {
        height: calc(100vh - 13.75rem);
    }

    .sticky {
        position: static;
    }

    .anchor {
        top: -1rem;
    }
}