/*
* Variables
*/
:root {
    --margin-extra-small: 2px;
    --margin-small: 12px;
    --margin-medium: 16px;
    --margin-large: 32px;
    --margin-extra-lage: 48px;
    --margin-content: 2.5vw;
    --border-radius: 8px;
    --font-size-headline: 96px;
    --font-size-sub-headline: 48px;
    --font-size-medium: 24px;
    --font-size-regular: 16px;
    --font-size-button: 14px;
    --font-size-small: 12px;
    --button-padding-top-bottom: 0.5em;
    --button-border-width: 1px;
    --cursor-color: rgb(236 114 79);
    --header-height: calc(2 * var(--margin-content) + 2 * var(--button-padding-top-bottom) + 1em + 2 * var(--button-border-width) - 2px);
}

/*
* Keyframes
*/
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

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

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes sub-headline-start {

    0%,
    32.99% {
        content: 'AI Engineer';
    }

    33%,
    65.99% {
        content: 'Full Stack Developer';
    }

    66%,
    100% {
        content: 'Freelancer';
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--cursor-color);
    }
}

@keyframes typing {
    0% {
        max-width: 0
    }

    80% {
        max-width: 100%
    }
}

/*
* Styles
*/
html,
body {
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    color: white;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 400;
    font-size: var(--font-size-regular);
    line-height: 1.5;
    letter-spacing: 0.5px;
    cursor: url(/assets/icons/arrow.png), auto;
}

input,
textarea,
button {
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 1.25px;
    font-size: var(--font-size-button) !important;
}

a {
    text-decoration: none;
    color: rgb(146, 148, 248);
    pointer-events: all;
    cursor: url(/assets/icons/pointer.png), pointer;
}

a:hover {
    color: rgb(182, 183, 255);
}

.small-margin-bottom {
    margin-bottom: var(--margin-small);
}

.large-margin-bottom {
    margin-bottom: var(--margin-large);
}

.medium-margin-right {
    margin-right: var(--margin-medium);
}

.extra-small-margin-right {
    margin-right: var(--margin-extra-small);
}

.page-canvas {
    position: absolute;
    top: 0;
    z-index: -1;
}

#content-container {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#content-container::-webkit-scrollbar {
    display: none;
}

#sphere-scroll-overlay-container {
    margin-top: var(--header-height);
    height: calc(100% - var(--header-height));
    overflow-y: scroll;
    position: absolute;
    width: 100%;
    top: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 1;
}

#sphere-scroll-overlay-container::-webkit-scrollbar {
    display: none;
}

.sphere-scroll-overlay {
    height: 100%;
    display: block;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sphere-scroll-overlay::-webkit-scrollbar {
    display: none;
}

#sphere-scroll-overlay-spacer-start {
    height: 500%;
    position: relative;
}

#sphere-scroll-overlay-spacer-work {
    height: 100%;
    position: relative;
}

#sphere-scroll-overlay-spacer-about {
    height: 100%;
    position: relative;
}

#sphere-scroll-overlay-spacer-contact {
    height: 100%;
    position: relative;
}

#header {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    gap: 1.5rem;
    padding: var(--margin-content);
    position: relative;
}

.content-area {
    flex-direction: column;
    display: none;
    margin: 0 calc(2 * var(--margin-content) + var(--margin-large)) var(--margin-content) var(--margin-content);
    height: calc(100% - var(--header-height) - var(--margin-content));
}

#menuToggle {
    display: none;
}

.border-radius {
    border-radius: var(--border-radius);
}

#sub-headline-start {
    overflow: hidden;
    display: inline-block;
    max-width: 0;
    white-space: nowrap;
    /* Ensures the content is not revealed until the animation */
    border-right: .4em solid var(--cursor-color);
    /* The typwriter cursor */
    /* Keeps the content on a single line */
    margin: 0 auto;
    /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em;
    /* Adjust as needed */
    animation:
        typing 5s steps(100, end) infinite,
        blink-caret .75s step-end infinite;
}

#sub-headline-start:before {
    animation: sub-headline-start 15s infinite;
    content: '';
}

#entry-area {
    display: block;
}

#start-area {}

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

.left-bottom-absolute {
    position: absolute;
    left: var(--margin-content);
    bottom: var(--margin-content);
}

.left-center-absolute {
    position: absolute;
    top: 50%;
    left: var(--margin-content);
    transform: translateY(-50%);
}

.right-bottom {
    position: relative;
    right: var(--margin-content);
    bottom: var(--margin-content);
}

.center-bottom {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-grow: 1;
}

.center-bottom-absolute {
    position: absolute;
    left: 50%;
    bottom: var(--margin-content);
    transform: translateX(-50%);
}

.center {
    position: relative;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
}

.left-top {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

#portfolio {
    width: 100%;
    display: flex;
    pointer-events: none;
    z-index: 2;
}

@keyframes accordion {
    0% {
        width: 0;
    }

    100% {
        width: 10%;
    }
}

.portfolio-element {
    animation: accordion 0.75s ease-in-out none;
    pointer-events: all;
    filter: saturate(0%);
    border: 1px solid white;
    border-radius: var(--border-radius);
    background-color: black;
    height: calc(100% - 2px);
    transition: filter 0.5s ease, width 0.5s ease;
    width: 10%;
}

.portfolio-element:hover {
    cursor: url(/assets/icons/pointer.png), pointer;
    filter: saturate(100%);
    width: calc(80% - 6px);
}

.portfolio-element video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.portfolio-element:hover video {
    object-fit: contain;
}

#social-media-nav-bar {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--margin-medium);
}

.availability-container {
    display: flex;
    align-items: center;
    padding-left: var(--margin-small) !important;
    padding-right: var(--margin-small) !important;
}

.availability-light {
    background-color: green;
    border-radius: 50%;
    height: 1em;
    width: 1em;
    margin-right: var(--margin-small);
    animation: fadeInOut 1s ease-in-out infinite;
}

.social-media-icon {
    height: 2.5em;
}

.social-media-icon:hover {
    cursor: url(/assets/icons/pointer.png), pointer;
}

.icon {
    height: 1em;
}

#about-text {
    width: 70%;
    font-size: 20px;
}

#contact-info-wrapper {

}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--margin-medium);
}

.contact-info-info {
    white-space: nowrap;
}

.pointer {
    cursor: url(/assets/icons/pointer.png), pointer;
}

.button {
    pointer-events: all;
    text-decoration: none;
    border: var(--button-border-width) solid rgb(146, 148, 248);
    padding: var(--button-padding-top-bottom) 1.5rem;
    position: relative;
    overflow: hidden;
    background-color: rgb(182, 183, 255);
    color: black;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-transform: uppercase;
    cursor: url(/assets/icons/arrow.png), auto;
}

.button:not([disabled]) {
    cursor: url(/assets/icons/pointer.png), pointer;
    background-color: transparent;
    color: white;
}

.button:not([disabled]):hover {
    box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
}

.button:not([disabled]):before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(146, 148, 248, 0.4),
            transparent);
    transition: all 650ms;
}

.button:not([disabled]):hover:before {
    left: 100%;
}

.button-left {
    margin-right: auto;
}

.headline {
    font-size: var(--font-size-headline);
    font-weight: 100;
    line-height: 1.15;
    letter-spacing: -5.5px;
}

.sub-headline {
    font-size: var(--font-size-sub-headline);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 6.5px;
}

.fade-in-main {
    animation: fadeIn 3s;
}

.fade-in-secondary {
    animation: fadeIn 4s;
}

.submit-button {
    text-align: center;
}

#page-text {
    pointer-events: none;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    transition: all 1s;
    filter: blur(0);
    transform: translateX(0);
}

.show-secondary {
    transition: all 1.5s;
}

.medium-text {
    font-size: var(--font-size-medium);
}

.extra-large-text {
    font-size: var(--font-size-headline);
}

.small-text {
    font-size: var(--font-size-small);
}

.extra-small-text {
    font-size: var(--font-size-small);
}

#slider {
    z-index: 2;
    --webkit-appearance: none;
    appearance: none;
    position: absolute;
    right: calc(var(--margin-content) - 0.5 * 20vw + 0.5 * var(--margin-large));
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 20vw;
    height: var(--margin-large);
    background: transparent;
    border: 1px solid rgb(146, 148, 248);
    border-radius: var(--border-radius);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: url(/assets/icons/arrow.png), auto;
}

#slider.no-slide::-webkit-slider-thumb {
    width: 100%;
}

#slider::-webkit-slider-thumb {
    --webkit-appearance: none;
    appearance: none;
    width: var(--margin-large);
    height: var(--margin-large);
    background: rgba(146, 148, 248, 0.4);
    border-radius: var(--border-radius);
}

#slider::-moz-range-thumb {
    width: var(--margin-large);
    height: var(--margin-large);
    background: rgba(146, 148, 248, 0.4);
    border-radius: var(--border-radius);
}

@keyframes pgfill {
    0% {
        background-image: linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    20% {
        background-image: linear-gradient(rgb(182, 183, 255) 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    40% {
        background-image: linear-gradient(#FFF 20px, transparent 0), linear-gradient(rgb(182, 183, 255) 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    60% {
        background-image: linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(rgb(182, 183, 255) 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    80% {
        background-image: linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(rgb(182, 183, 255) 20px, transparent 0);
    }

    100% {
        background-image: linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }
}

@media (max-width:481px) {
    :root {
        --margin-content: 7.5vw;
        --margin-medium: 12px;
        --button-padding-top-bottom: 0.35em;
        --button-border-width: 1px;
        --margin-extra-small: 1px;
        --margin-small: 8px;
        --margin-large: 24px;
        --margin-extra-lage: 32px;
        --border-radius: 8px;
        --font-size-headline: 72px;
        --font-size-sub-headline: 32px;
        --font-size-medium: 20px;
        --font-size-regular: 16px;
        --font-size-button: 14px;
        --font-size-small: 8px;
    }

    #sphere-scroll-overlay-spacer-work {
        height: 100%;
    }

    #sphere-scroll-overlay-spacer-about {
        height: 100%;
    }

    #sphere-scroll-overlay-spacer-contact {
        height: 100%;
    }

    .icon {
        height: 0.75em;
    }

    .button {
        padding: var(--button-padding-top-bottom) 0.95rem;
        border: var(--button-border-width);
    }

    .button:not([disabled]) {
        color: black;
    }

    #start-button {
        display: none;
    }

    #about-button {
        display: none;
    }

    #work-button {
        display: none;
    }

    #contact-button {
        display: none;
    }

    #menuToggle {
        position: relative;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
        display: flex;
        justify-content: space-around;
        flex-direction: column;
        width: 30px;
        height: 30px;
    }

    #menuToggle input {
        display: block;
        width: 3px;
        height: 30px;
        width: 30px;
        position: absolute;
        top: 0;
        left: 0;
        cursor: url(/assets/icons/pointer.png), pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
        margin: 0;
    }

    #menuToggle span {
        display: block;
        width: 100%;
        height: 3px;
        position: absolute;
        background: #cdcdcd;
        border-radius: 3px;
        z-index: 1;
        /* transform-origin: 4px 0px; */
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
    }

    #menuToggle #line-1 {
        top: 3px;
    }

    #menuToggle #line-3 {
        bottom: 3px;
    }

    #menuToggle input:checked~span {
        background: #232323;
    }

    #menuToggle input:checked~#line-1 {
        top: 50%;
        transform: rotate(45deg);
    }

    #menuToggle input:checked~#line-2 {
        opacity: 0;
        transform: scale(0.2, 0.2);
    }

    #menuToggle input:checked~#line-3 {
        top: 50%;
        transform: rotate(-45deg);
    }

    #menu {
        position: absolute;
        list-style-type: none;
        display: flex;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.75);
        align-items: center;
        justify-content: center;
        gap: var(--margin-large);
        top: calc(-1*(var(--margin-content)));
        margin: 0;
        -webkit-font-smoothing: antialiased;
        transform: translateX(100vw);
        height: 100dvh;
        width: 100vw;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        padding-inline-start: 0;
        right: calc(-1*(var(--margin-content)));
    }

    #menuToggle input:checked~ul {
        transform: translateX(0);
    }

    .availability-container {
        padding-left: var(--margin-small) !important;
        padding-right: var(--margin-small) !important;
    }

    #header {
        justify-content: space-between;
        padding: var(--margin-content);
        align-items: stretch;
        z-index: 3;
    }

}

@media (max-width: 640px) {
    /* Mobile phones (portrait and landscape) */
    #about-text {
        width: 100%;
        font-size: 14px;
    }
}

@media (min-width:641px) {
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
}

@media (min-width:961px) {
    /* tablet, landscape iPad, lo-res laptops ands desktops */

}

@media (min-width:1025px) {
    /* big landscape tablets, laptops, and desktops */
}

@media (min-width:1281px) {
    /* hi-res laptops and desktops */
}

@font-face {
  font-family: 'fontello';
  src: url(/assets/fonts/6dac5a4db7e7ef1ff1945fccef2e94b0.eot);
  src: url(/assets/fonts/6dac5a4db7e7ef1ff1945fccef2e94b0.eot#iefix) format('embedded-opentype'),
    url(/assets/fonts/f452b1611fd345ca8f08ff64ed63ff7d.woff2) format('woff2'),
    url(/assets/fonts/b64491004c62d83c0e38cc4998a66704.woff) format('woff'),
    url(/assets/fonts/ec0507233ac7de5049c2fd71ad0197e6.ttf) format('truetype'),
    url(/assets/icons/fontello.svg#fontello) format('svg');
  font-weight: normal;
  font-style: normal;
}

/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?36698735#fontello') format('svg');
  }
}
*/
[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: never;
  transition: 0.2s;
  text-decoration: none;
  color: rgb(146, 148, 248);

  display: inline-block;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */

  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;

  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;

  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;

  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */

  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

[class^="icon-"]:hover::before,
[class*=" icon-"]:hover::before {
  color: rgb(182, 183, 255);
}

.icon-link:before {
  content: '\e800';
}

/* '' */
.icon-mail:before {
  content: '\e801';
}

/* '' */
.icon-phone:before {
  content: '\e802';
}

/* '' */
.icon-location:before {
  content: '\e803';
}

/* '' */
.icon-twitter:before {
  content: '\f099';
}

/* '' */
.icon-instagram:before {
  content: '\f16d';
}

/* '' */
.icon-linkedin-squared:before {
  content: '\f30c';
}

/* '' */
