@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-color: #fff;
    font-family: 'Albert Sans';
    color: #fff;
}

.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

p {
    line-height: 1.25em;
    padding-bottom: 1em;
    text-align: justify;
}

.container {
    height: 100dvh;
    width: 100lvw;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(-45deg,
            oklch(37.667% 0.15458 29.223),
            oklch(72.984% 0.16642 22.025),
            oklch(76.33% 0.15349 359.991),
            oklch(60.997% 0.22856 9.709));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow: hidden;
}

/* main {
    position: relative;
    height: 100%;
    width: 100%;
    background: linear-gradient(-45deg,
            oklch(37.667% 0.15458 29.223),
            oklch(72.984% 0.16642 22.025),
            oklch(76.33% 0.15349 359.991),
            oklch(60.997% 0.22856 9.709));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow: hidden;
} */

main {
    height: 100%;
    width: 100%;
}


@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: 3.5rem;
    height: 100%;
    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;
    user-select: none;
}


/* #projects-section a {
    display: inline-block;
    transform-origin: center left;
    font-size: 1.5rem;
    color: #eee;
    background: #640D5F;
    transition: scale 0.2s ease-in-out;
} */

/* #projects-section a:hover {
    scale: 1.1;
} */

/* #projects-section ul {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    gap: 2em;
} */

.projects-item {
    margin-bottom: 2em;
    user-select: none;
}

.acc-input {
    display: none;
}

.acc-label {
    cursor: pointer;
    display: inline-block;
    transform-origin: center left;
    font-size: 1.5rem;
    color: #eee;
    background: #640D5F;
    transition: background-color 0.2s;
    margin-bottom: 0.5em;
}

.acc-label:hover {
    background: #972892
}

.acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
}

.acc-content li {
    display: inline-block;
    padding-block: 0.25em;;
}

.acc-content a {
    display: inline-block;
    color: #ddd;
    text-decoration: none;
    transform-origin: center left;
    transition: scale 0.2s;
    font-size: 1.2rem;
}

.acc-content a:hover {
    color: #fff;
    scale: 1.1;
}

.coming-soon {
    text-decoration: line-through;
    opacity: 0.2;
}

.coming-soon:hover, .coming-soon:visited {
    scale: 1 !important;
    cursor: default;
    color: #ddd !important;
}

.acc-input:checked + .acc-label + .acc-content {
    max-height: 500px;
}

.acc-input:checked + .acc-label {
    background: #972892
}

#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: #F78D60;
    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;
}


footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 1rem;
    align-items: flex-end;
    padding: 1.25em;
}

footer ul {
    display: flex;
    flex-direction: row;
    width: fit-content;
    align-items: flex-end;
    gap: 1em;
    color: #333;
}

@media (max-height: 500px) and (orientation: landscape) {
    .container {
        width: 100lvw;
        flex-direction: row;
        flex-flow: row-reverse;
        align-items: flex-end;
    }

    nav {
        font-size: 2.25rem;
    }

    nav ul {
        gap: 0.75em;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.1em;
    }

    #about-section h2 {
        font-size: 1.75rem;
        padding-bottom: 0.5em;
    }

    footer {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    #projects-section {
        justify-content: flex-end;
        align-items: flex-end;
        text-align: right;
    }

    #projects-section a {
        transform-origin: center right;
    }
}