/* All initial stuff */

@font-face {
    font-family: D-Din;
    src: url("media/fonts/D-DIN.otf");
}

@keyframes staranim {
    0% {
        content: url("media/star/star1.svg");
    }

    16.7% {
        content: url("media/star/star2.svg");
    }

    33.3% {
        content: url("media/star/star3.svg");
    }

    50% {
        content: url("media/star/star4.svg");
    }

    66.7% {
        content: url("media/star/star5.svg");
    }

    83.3% {
        content: url("media/star/star6.svg");
    }
}

@keyframes androidanim {
    0% {
        content: url("media/androidart/android1.svg");
    }

    8.3% {
        content: url("media/androidart/android2.svg");
    }

    16.7% {
        content: url("media/androidart/android3.svg");
    }

    25% {
        content: url("media/androidart/android4.svg");
    }

    33.3% {
        content: url("media/androidart/android5.svg");
    }

    41.7% {
        content: url("media/androidart/android6.svg");
    }

    50% {
        content: url("media/androidart/android7.svg");
    }

    58.3% {
        content: url("media/androidart/android8.svg");
    }

    66.7% {
        content: url("media/androidart/android9.svg");
    }

    75% {
        content: url("media/androidart/android10.svg");
    }

    83.3% {
        content: url("media/androidart/android11.svg");
    }

    91.7% {
        content: url("media/androidart/android12.svg");
    }
}

@keyframes disco {
    0% {
        color: red;
    }

    10% {
        color: green;
    }

    20% {
        color: #003466;
    }

    30% {
        color: yellow;
    }

    40% {
        color: aquamarine;
    }

    50% {
        color: coral;
    }

    60% {
        color: darkviolet;
    }

    70% {
        color: lightgreen;
    }

    80% {
        color: darkgoldenrod;
    }

    90% {
        color: mediumorchid;
    }

    100% {
        color: lime;
    }
}

/* all general stuff */

html {
    scroll-behavior: smooth;
}

body {
    /* width: 100vw; */
    margin: 0;
    padding: 0;
    font-family: "D-Din";
    scroll-behavior: smooth;
    font-display: swap;
}

section {
    width: 100%;
}

h1 {
    margin: 0;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #003466;
}

::-webkit-scrollbar-thumb {
    background: #0056a7;
    transition: all 0.5s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #006fd8;
}

/* hero/header */

.topdiv {
    background: #003466;
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.animdiv {
    overflow: hidden;
    position: relative;
    max-width: 100vw;
    height: 200vh;
    z-index: 1;
}

.animdiv2 {
    overflow: hidden;
    position: absolute;
    width: 100vw;
    height: 200vh;
    z-index: 2;
    top: 0px;
    transition: top 0.15s ease;
}

.animdiv3 {
    overflow: hidden;
    position: absolute;
    width: 100vw;
    height: 200vh;
    z-index: 4;
    top: 0px;
    transition: top 0.15s ease;
}

.header {
    overflow: hidden;
    position: relative;
    max-width: 100vw;
    height: 100vh;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #add8e6;
}

.header h1 {
    font-size: 100px;
    text-align: center;
}

.header p {
    font-size: 20px;
}

img.star {
    animation: staranim 2s forwards infinite;
    position: absolute;
}

img.android {
    animation: androidanim 1s forwards infinite;
    position: absolute;
    left: 100vw;
}

img.android.start {
    position: absolute;
    left: -150px;
    transition: 10s linear;
    transition-property: left;
    transition-duration: 10s;
    transition-timing-function: linear;
}

/* about me */

.aboutme {
    width: 100%;
    /* background: linear-gradient(180deg, rgba(0,52,102,1) 0%, rgba(92,125,157,1) 14%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(209,226,155,1) 86%, rgba(164,198,57,1) 100%); */
    background-color: #108767;
    background: linear-gradient(180deg, rgba(0, 52, 102, 1) 0%, rgba(12, 117, 103, 1) 30%, rgba(16, 135, 103, 1) 50%, rgba(54, 151, 91, 1) 70%, rgba(164, 198, 57, 1) 100%);
}

/* alot of transitions for about me */

.invisible * {
    opacity: 0;
    transition: all 1s ease;
}

.inside {
    opacity: 1;
    transition: all 1s ease 0.5s;
    padding: 35px;
}

.inside .abme {
    transition: all 1s ease 0.2s;
    color: lightblue;
    font-size: 70px;
}

.inside div img {
    transition: all 1s ease 0.4s;
}

.inside div.info p:first-of-type {
    transition: all 1s ease 0.6s;
}

.inside div.info p:last-of-type {
    transition: all 1s ease 0.8s;
}

.inside div.projects h1:first-of-type {
    color: #add8e6;
    transition: all 1s ease 1.0s;
    font-size: 50px;
}

.inside div.projects div.projectframes:first-of-type div.frame:first-of-type iframe {
    transition: all 1s ease 1.2s;
}

.inside div.projects div.projectframes:first-of-type div.frame:first-of-type p {
    color: #4fc7ef;
    transition: all 1s ease 1.4s;
}

.inside div.projects div.projectframes:first-of-type div.frame:nth-of-type(2) iframe {
    transition: all 1s ease 1.6s;
}

.inside div.projects div.projectframes:first-of-type div.frame:nth-of-type(2) p {
    color: #4fc7ef;
    transition: all 1s ease 1.8s;
}

.inside div.projects h1:nth-of-type(2) {
    transition: all 1s ease 2.0s;
    font-size: 50px;
}

.inside div.projects div.projectframes:nth-of-type(2) div.frame:nth-of-type(1) iframe {
    transition: all 1s ease 2.2s;
}

.inside div.projects div.projectframes:nth-of-type(2) div.frame:nth-of-type(1) p {
    transition: all 1s ease 2.4s;
}

.inside div.projects div.projectframes:nth-of-type(2) div.frame:nth-of-type(1) a {
    color: rgb(38, 164, 206);
}

.abtmeinfo {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.abtmeinfo img {
    margin-top: 10px;
    height: 40vh;
    max-width: 400px;
    width: auto;
}

.abtmeinfo p {
    max-width: 60vw;
    font-size: 20px;
}

.skills h1:first-of-type {
    text-align: left;
}

.info {
    color: #add8e6;
}

/* projects */

.projects {
    padding-top: 40px;
}

.projects h1 {
    padding: 40px 0;
}

.projectframes {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.projectframes iframe {
    height: 40vh;
    width: 40vw;
    border: #003466 outset 2px;
    border-radius: 2px;
}

.frame {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.frame a {
    color: #85bdd0;
}

.skills {
    /* background-color: rgb(164, 198, 57); */
    background: linear-gradient(180deg, rgba(164, 198, 57, 1) 0%, rgba(164, 198, 57, 1) 50%, rgba(210, 197, 29, 1) 100%);
}

/* skills */

.skills .inside h1 {
    font-size: 50px;
    transition-property: transform, opacity;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
}

.skills .inside {
    text-align: center;
}

.skills .invisible * {
    transform: translateY(40px);
    opacity: 0;
}

.skills .inside .softskills {
    transition-property: transform, opacity;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
    transition-delay: 0.2s;
}

.skills .inside .hardskills {
    transition-property: transform, opacity;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
    transition-delay: 0.6s;
}

.skillset {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    margin: 10px;
}

.skilldiv {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-around;
}

.hardskills div.hs1 {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.hardskills div.hs2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* work experience */

.workexperience {
    /* background-color: #FFC300; */
    background: linear-gradient(180deg, rgba(210, 197, 29, 1) 0%, rgba(255, 195, 0, 1) 30%, rgba(255, 195, 0, 1) 70%, rgba(255, 161, 40, 1) 100%);
}

.workexperience h1 {
    font-size: 50px;
}

.workexperience .all {
    display: flex;
    flex-direction: row;
}

.workexperience .sidebar {
    min-height: 40px;
    height: fill;
    width: 20px;
    background-color: #003466;
    clip-path: polygon(50% 0, 50% 0, 100% 5%, 100% 95%, 50% 100%, 50% 100%, 0% 95%, 0% 5%);
}

.workexperience .workexperiences {
    margin-left: 30px;
}

.workexperience .workexperiences h2::before {
    content: "";
    display: block;
    /* margin-right: 30px; */
    transform: translateX(-60px);
    width: 40px;
    height: 40px;
    background-color: #0056a7;
    border-radius: 100%;
}

.workexperience .workexperiences h2 {
    display: flex;
    align-items: center;
}

.workexperiences p {
    margin-left: 40px;
}

/* contact */

.contact {
    background: linear-gradient(180deg, rgba(255, 161, 40, 1) 0%, rgba(255, 127, 80, 1) 30%, rgba(255, 127, 80, 1) 80%, rgba(255, 160, 142, 1) 100%);
}

.contact h1 {
    font-size: 50px;
}

.contact .contactitem {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contactitem p,
.contactitem a {
    margin: 0;
    margin-left: 10px;
    font-size: 25px;
}

.contactitem a {
    color: #006fd8;
    text-decoration: none;
}

.contact svg {
    width: 50px;
}

/* secret eop */

.bunnyyyy {
    width: 60vw;
    max-height: 90vh;
    height: auto;
    display: block;
}

.endsecret {
    background: linear-gradient(180deg, rgba(255, 160, 142, 1) 0%, rgba(255, 192, 203, 1) 30%);
}

.endsecret h1 {
    font-size: 50px;
}

.endsecret p {
    font-size: 20px;
}

.endsecret button {
    background-color: palevioletred;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
    transition-property: box-shadow, -webkit-box-shadow, -moz-box-shadow;
    transition-duration: 0.7s;
    transition-timing-function: ease;
}

.endsecret button:hover {
    -webkit-box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.75);
    transition-property: box-shadow, -webkit-box-shadow, -moz-box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.endsecret button:active {
    -webkit-box-shadow: inset 0px 0px 13px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: inset 0px 0px 13px 0px rgba(0, 0, 0, 0.75);
    box-shadow: inset 0px 0px 13px 0px rgba(0, 0, 0, 0.75);
    transition-property: box-shadow, -webkit-box-shadow, -moz-box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* navbar */

nav.navbar.invis {
    opacity: 0;
    transform: translateY(-75px);
    transition-property: opacity, transform;
    transition-duration: 0.4s;
    transition-timing-function: ease;
}

nav.navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateY(0px);
    color: white;
    opacity: 0.5;
    transition-property: opacity, transform;
    transition-duration: 0.4s;
    transition-timing-function: ease;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
}

nav.navbar:hover {
    opacity: 1;
}

nav .navitems {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.navbar img {
    height: 40px;
    width: 47.62px;
}

.navitems .referrals {
    padding-left: 20px;
}

nav.navbar a {
    color: white;
    text-decoration: none;
    padding: 5px;
    font-size: 20px;
    transition-property: color, text-shadow;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
    scroll-behavior: smooth;
}

nav.navbar a:hover {
    color: #4fc7ef;
    text-shadow: 0px 0px 8px #000000;
}

.navburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
}

.navburger div {
    position: relative;
    top: 0;
    width: 40px;
    height: 4px;
    background-color: #000000;
    transition-property: opacity, width, height, transform, top, position;
    transition-duration: 0.5s;
    transition-timing-function: ease;
}

.navburger.clicked .burg1 {
    width: 50px;
    height: 6px;
    position: relative;
    top: 15px;
    transform: rotate(45deg);
}

.navburger.clicked .burg2 {
    width: 50px;
    height: 6px;
    position: relative;
    top: 2px;
    transform: rotate(-45deg);
}

.navburger.clicked .burg3 {
    opacity: 0;
}

.navburg {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    display: none;
}

/* media elements */

@media screen and (max-width: 470px) {

    body,
    .skills h1:first-of-type {
        text-align: center;
    }

    .workexperience {
        text-align: start;
    }

    .header h1 {
        font-size: 80px;
        text-align: center;
    }

    .projectframes {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .projectframes iframe {
        height: 60vh;
        width: 80vw;
    }

    .hardskills div.hs2 {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .skilldiv {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .workexperience .workexperiences {
        margin-left: 0px;
    }

    .workexperience .workexperiences h2::before {
        content: none;
    }

    .workexperience .sidebar {
        display: none;
    }

    .bunnyyyy {
        width: 90vw;
    }

    .navburger {
        display: flex;
    }

    nav .navitems {
        width: 92%;
    }

    .navitems .referrals {
        height: 100vh;
        background: linear-gradient(270deg, rgba(0, 15, 151, 0.8) 0%, rgba(2, 55, 123, 0) 100%);
        /* padding-right: 100px; */
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0px;
        right: 21px;
        width: 100px;
        overflow-wrap: normal;
        opacity: 0;
        transform: translateX(200px);
        transition-property: opacity, transform;
        transition-duration: 0.5s;
        transition-timing-function: ease;
    }

    .navitems.clicked .referrals {
        height: 100vh;
        background: linear-gradient(270deg, rgba(0, 15, 151, 0.8) 0%, rgba(2, 55, 123, 0) 100%);
        /* padding-right: 100px; */
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0px;
        right: 21px;
        width: 100px;
        overflow-wrap: normal;
        opacity: 1;
        transform: translateX(0);
    }

    .navitems .referrals .fullheight {
        opacity: 1;
        /* padding-right: 100px; */
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 120px;
        right: 25px;
        width: 100px;
        overflow-wrap: normal;
    }

    .navitems .referrals a {
        padding: 20px 0;
    }

    .contact .contactitem {
        flex-direction: column;
    }

    .contact svg {
        margin-bottom: 10px;
    }

    .navburg {
        display: block;
    }
}

@media screen and (max-width: 350px) {
    .header h1 {
        font-size: 60px;
        text-align: center;
    }
}