@media screen and (prefers-reduced-motion) {

    nav ul li,
    nav a,
    .projects-container ul li {
        transition: none;
    }

    main {
        background: #fff;
    }
}

/* @view-transition {
    navigation : auto;
} */

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    margin: 0 auto;
    background: #fff;
    font-family: 'Inter Tight';
    color: #fff;
}

p {
    line-height: 1.25em;
    padding-bottom: 1em;
    text-align: justify;
}

main {
    position: relative;
    height: 100lvh;
    background: linear-gradient(-45deg,
            oklch(91.665% 0.0625 214.016),
            oklch(85.563% 0.0814 237.953),
            oklch(98.228% 0.08357 107.143),
            oklch(97.155% 0.14239 107.944));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    /* font-size: clamp(1rem, 3.5rem, 5rem); */
    font-size: 3.5rem;
    height: 100vh;
    justify-content: center;
}

nav ul {
    display: flex;
    flex-direction: column;
    width: fit-content;
    align-items: flex-end;
    gap: 1em;
    background: none;
    mix-blend-mode: difference;
}

nav ul li {
    position: relative;
    transition: all 0.15s ease-in-out;
}

nav ul li:hover {
    transform: translateY(-2px);
}

nav a {
    color: #fff;
    padding: 0.5em;
    transition: all 0.15s ease-in-out;
    font-weight: 600;
}


#projects-section a {
    display: inline-block;
    transform-origin: center left;
    font-size: 1.5rem;
    color: black;
    background: oklch(83.351% 0.1268 217.996);
    transition: scale 0.2s ease-in-out;
}

#projects-section a:hover {
    scale: 1.1;
}


#projects-section,
#about-section {
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transform: translateX(100%);
    background: rgb(0 0 0 / 0.6);
    backdrop-filter: blur(10px);
    padding: 2em;
}

#about-section.ready,
#projects-section.ready {
    transition: transform 0.5s ease;
}

#about-section.show,
#projects-section.show {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

#about-section {
    justify-content: center;
}

#about-section h2 {
    font-size: 2rem;
    padding-bottom: 1em;
}

#about-section a {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    background: none;
    color: #fff;
    font-weight: 600;
    transition: text-shadow 0.1s ease;
}

#about-section a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: #fff;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

#about-section a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

#about-section a:hover {
    text-shadow: #000;
}

/* #projects-section ul {
    outline: 1px solid red;
} */


footer {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-bottom: 1em;
    padding-right: 2em;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    font-size: 1rem;
    justify-content: center;
}

footer ul {
    display: flex;
    flex-direction: row;
    width: fit-content;
    align-items: flex-end;
    gap: 1em;
    background: none;
    color: #000;
}

@media (max-height: 500px) and (orientation: landscape) {
    nav {
        font-size: 2.5rem;
    }

    footer {
        align-items: flex-start;
        padding-left: 2em;
    }
}

@media (max-width: 768px) {
    #projects-section {
        justify-content: flex-end;
        align-items: flex-end;
        text-align: right;
    }
}