:root {
    /* colors */
    --color-default-canvas: #0f0c1d;
    --color-primary: #a77bf3;
    --color-primary-dark: #729dec;
    --color-secondary: #93f5ec;
    --color-muted: #b0aeae;
    --color-font: #f5f5f5;
    --color-almost-red: #F86C61;
    --gradient: linear-gradient(135deg, #93f5ec 0%, #a77bf3 100%);
    --bg-gradient: linear-gradient(135deg, #260f27 0%, #0f0c1d 100%);
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --zIndex-nav: 100;
}

/* fonts import /fonts */
@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit/Kanit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit/Kanit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit/Kanit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* boxsizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    padding: 0;
    font-family: Poppins, sans-serif;
    font-size: 1.05em;
    font-weight: 400;
    width: 100%;
    background-color: var(--color-default-canvas);
    color: var(--color-font);
    line-height: 1.5;
    text-wrap: balance;
}

main {
    overflow-y: scroll;
    height: 100dvh;
    width: 100%;
}

section {
    width: 100dvw;
    background-color: var(--color-default-canvas);
    width: 100%;
}

.datenschutz {
    width: min(100% - 4rem, 100ch);
    margin-inline: auto;
    margin-block: 6rem;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.wrapper {
    width: min(100% - 1rem, 100ch);
    min-height: 100dvh;
    padding: 0 2rem;
    margin-inline: auto;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}


section h1 {
    font-family: Kanit, sans-serif;
    margin-bottom: 3rem;
}

.text-small {
    font-size: 0.8rem;
}

.text-muted {
    color: var(--color-muted);
}

/* Scrollbar */

/* Width and height of the scrollbar */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--border-radius-sm);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}



.accent {
    color: var(--color-primary);
}

.accent-dark {
    color: var(--color-primary-dark);
}

.gradient {
    background-image: var(--gradient);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-default {
    background-color: var(--color-default-canvas);
}

.glow {
    transform-style: preserve-3d;
}

.glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient);
    transform: translate3d(0px, 0px, -1px);
    filter: blur(10px);
}


.hover-before::before {
    opacity: 0;
    transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-before:hover::before {
    opacity: 1;
}

.glow-border {
    position: relative;
    padding: 1px;
    background: var(--gradient);
    border-radius: var(--border-radius-lg);
    width: fit-content;
}

.btn {
    width: fit-content;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
    border: none;
    border-radius: var(--border-radius-lg);
    color: var(--color-font);
    background-color: var(--color-default-canvas);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    z-index: 1;
}

.btn-sm {
    font-size: .7em;
    padding: .5rem .75rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-secondary);
}


/* Navigation */

nav {
    width: 100%;
    position: absolute;
    top: 0;
    opacity: 0.8;
    background-color: var(--color-default-canvas);
    z-index: var(--zIndex-nav);
}

.logo {
    margin-top: .5rem;
    margin-right: auto;
    width: 12rem;
    z-index: var(--zIndex-nav);
}

.logo-up {
    display: none;
    margin-right: auto;
    height: 30px;

    & img {
        height: 30px;
        margin-block: auto;
    }
}

.nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-inline: 2rem;
    padding-block: .7rem;
}

.nav__separator {
    width: 2px;
    height: 1.5em;
    border-radius: var(--border-radius-md);
    background-color: var(--color-font);
    opacity: 0.8;
}

nav a {
    text-decoration: none;
    color: var(--color-font);
}



/* mobile */
@media (max-width: 768px) {
    .logo {
        display: none;
    }

    .logo-up {
        display: block;
    }

    .nav__links {
        font-size: .7em;
    }
}

/* End Navigation */

/* Hero */

#hero {
    position: relative;
    /* width: min(100% - 3rem, 100ch); */
    width: 100%;
    height: 100dvh;
    margin-inline: auto;
    position: relative;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(-45deg, var(--color-primary-dark), var(--color-default-canvas));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite; */
}

.dot {
    position: absolute;
    width: 15rem;
    height: 15rem;
    filter: brightness(0.7);
    border-radius: 50%;
    background-color: transparen;
    animation: floatoverscreen;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
}

.dot-1 {
    top: 200px;
    left: 122px;
    animation-duration: 120s;
}

.dot-2 {
    width: 10rem;
    height: 10rem;
    bottom: 100px;
    right: 50px;
    animation-duration: 180s;
}

.dot-3 {
    width: 5rem;
    height: 5rem;
    top: 50px;
    right: 50px;
    animation-duration: 60s;

}

.hero__title {
    z-index: var(--zIndex-nav);
    font-size: 3rem;
    font-weight: 700;
}

.hero__subtitle {
    z-index: var(--zIndex-nav);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

.hero__btn {
    transition: transform 0.5s cubic-bezier(0.47, 0.11, 0.17, 0.87);


    >a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-font);
    }

    >a>i {
        margin-right: 0.8rem;
        font-size: 1.7rem;
    }
}

.hero__btn:hover {
    >a {
        color: var(--color-secondary);
    }

    transform: scale(1.1)
}

/* hero mobile */
@media (max-width: 768px) {
    .hero {
        align-items: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }
}

/* End Hero */



/* about me */
#about-me {
    position: relative;
    color: var(--color);
    display: flex;
    align-items: start;
    flex-wrap: wrap;
}

.image-box {
    border-radius: 33px;
    width: 35rem;
    aspect-ratio: 4/3;
    height: 29rem;
    background-image: url(../assets/hiking.jpg);
    background-position-x: 0;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position-x 5s ease-in-out;
    transition: all .7s ease-in-out;
    transform-style: preserve-3d;
    z-index: -1;
}

.image-box::after {
    border-radius: 33px;
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to right, rgba(255, 0, 0, 0) 40%, var(--color-default-canvas) 90%);
}

@media (max-width: 768px) {
    .image-box {
        width: 100%;
        height: 11rem;
        margin: 3rem auto -9rem auto;
    }

    .image-box::after {
        background: linear-gradient(to bottom, rgba(255, 0, 0, 0) 0%, var(--color-default-canvas) 100%);
    }
}

@media (min-width: 768px) {
    #about-me.show>.image-box {
        background-position-x: -125px;
    }
}

.text-box {
    width: min(100%, 40ch);
    display: flex;
    margin-inline: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: start;
    gap: .5rem;
    initial-letter: 2;
    transition: all 1s ease-in-out;
}

.text-box>p::first-letter {
    font-size: 3.3em;
    line-height: 1;
    font-weight: 700;
    color: var(--color-primary);
    float: left;
    margin-right: 0.05em;
}

.text-box .glow-border {
    margin-block: 1rem;
}


/* Transition from 0 to auto */
.text-more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-in-out;
}

.text-more>div {
    overflow: hidden;
}


/* mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.25em;
    }

    .text-more {
        margin-bottom: 5rem;
    }

    .glow::before {
        /* opacity: 0.3; */
    }

    .text-box>p::first-letter {
        font-size: 2.9em;
    }
}


/* Skill cards */
.cards {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 2rem;
}

.card {
    background: var(--bg-gradient);
    display: flex;
    flex-direction: row;
    justify-content: end;
    min-width: 20rem;
    padding: .5rem 1rem 1rem .2rem;
    border-radius: var(--border-radius-lg);
}

.card__logos {
    margin-bottom: 1.5rem;
    font-size: 2.2em;
    user-select: none;
}

.card__header {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    letter-spacing: .3ch;
    text-align: right;
    text-transform: uppercase;
    margin-right: auto;
    margin-bottom: auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    font-size: 1em;

}

/* Portfolio */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-self: center;

    >a {
        width: fit-content;
    }
}



footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: .8em;
    margin-top: auto;
    width: 100%;

}


/* UI */


.hidden {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-20rem);
    transition: all .7s ease-in-out;
}


.show {
    filter: blur(0px);
    transform: translateX(0);
    opacity: 1;
}


/* SVG Waves */
/* TODO: https://youtu.be/Qhaz36TZG5Y */
.delay-1 {
    transition-delay: 200ms;
}

.delay-2 {
    transition-delay: 400ms;
}

.delay-3 {
    transition-delay: 600ms;
}

.delay-4 {
    transition-delay: 800ms;
}

.delay-5 {
    transition-delay: 1000ms;
}

.delay-6 {
    transition-delay: 1200ms;
}

.delay-7 {
    transition-delay: 1400ms;
}


/* KEYFRAMES */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatoverscreen {
    0% {
        transform: translate3d(0, 0, 0);
        rotate: 10deg;
    }

    10%,
    90% {
        transform: translate3d(100px, 100px, 0);
        rotate: 15deg;
    }

    20%,
    80% {
        transform: translate3d(50px, 200px, 0);
        rotate: 0deg;
    }

    30%,
    70% {
        transform: translate3d(110px, -200px, 0);
        rotate: -20deg;
    }

    40%,
    60% {
        transform: translate3d(222px, -150px, 0);
        rotate: 10deg;
    }

    50% {
        transform: translate3d(100px, -70px, 0);
        rotate: 15deg;
    }

}