:root {
    --basic-color: #fafafa;
    --basic-light-color: #ffffff;
    --basic-mist-color: #ececec;
    --basic-smoke-color: #dfdfdf;
    --basic-shade-color: #cccccc;
    --basic-middle-color: #aaaaaa;
    --basic-dark-color: #777777;
    --basic-darken-color: #4b4b4b;
    --basic-black-color: #222222;

    --accent-one-color: #7501c2;
    --accent-two-color: #5949db;
    --accent-three-color: #3960eb;
    --accent-four-color: #2891ff; /* #0d84ff; */
    --accent-five-color: #00e1ff;
    --accent-six-color: #00ffbf; /* #00f1d1; */

    --contrast-one-color: #a0ff47;
    --contrast-two-color: #ffff26;
    --contrast-three-color: #ffaf00;
    --contrast-four-color: #ff5900;
    --contrast-five-color: #ff3347; /* #ff255f; */
    --contrast-six-color: #ff2489;

    --shade-accent-one-color: #3e1e5c;
    --shade-accent-two-color: #2e367e;
    --shade-accent-three-color: #294caa;
    --shade-accent-four-color: #276298; /* #0d84ff; */
    --shade-accent-five-color: #176c81;
    --shade-accent-six-color: #117265; /* #00f1d1; */
    --shade-contrast-one-color: #4f6738;
    --shade-contrast-two-color: #61612c;
    --shade-contrast-three-color: #7d642f;
    --shade-contrast-four-color: #6a3d24;
    --shade-contrast-five-color: #6b2229;

    --light-accent-one-color: #e6c0ff;
    --light-accent-two-color: #bcb3ff;
    --light-accent-three-color: #b3c3ff;
    --light-accent-four-color: #a3d0ff; /* #0d84ff; */
    --light-accent-five-color: #9df4ff;
    --light-accent-six-color: #9bffe6; /* #00f1d1; */
    --light-contrast-one-color: #d9ffb6;
    --light-contrast-two-color: #ffffb6;
    --light-contrast-three-color: #ffe5ad;
    --light-contrast-four-color: #ffcbaf;
    --light-contrast-five-color: #ffafb7;

    --accent-one-color-06: #7501c20f;
    --accent-one-color-10: #7501c21a;
    --accent-one-color-18: #7501c22e;
    --accent-one-color-50: #7501c280;
    --accent-six-color-04: #00ffbf0a;
    --accent-six-color-08: #00ffbf14;
    --accent-six-color-18: #00ffbf2e;

    --shade-accent-one-color-50: #3e1e5c80;

    --basic-light-color-50: #ffffff80;
    --basic-color-25: #fafafa40;
    --basic-color-50: #fafafa80;
    --basic-smoke-color-25: #dfdfdf40;
    --basic-shade-color-25: #cccccc40;
    --basic-shade-color-50: #cccccc80;
    --basic-middle-color-50: #aaaaaa80;
    --basic-black-color-20: #22222233;
    --basic-black-color-50: #22222280;

    --size-tiny: 0.2rem;
    --size-small: 0.4rem;
    --size-basic: 1rem;
    --size-middle: 1.5rem;
    --size-big: 2rem;
    --size-giant: 3rem;

    --full-color-shadow: -0.0625rem -0.0625rem 0 var(--basic-light-color),
        0.0625rem 0.0625rem 0 var(--basic-shade-color),
        0.5rem -0.25rem 0.5rem var(--accent-one-color-10),
        -0.5rem -0.5rem 0.5rem var(--accent-six-color-04),
        0.5rem 0.5rem 1rem rgb(0 0 0 / 0.2);
    --full-color-shadow-inset: -0.0625rem -0.0625rem 0 var(--basic-light-color),
        0.0625rem 0.0625rem 0 var(--basic-shade-color),
        0.5rem 0.3rem 1.2rem var(--accent-one-color-10) inset,
        -0.5rem -0.5rem 0.5rem var(--accent-six-color-04) inset,
        0.5rem 0.5rem 1rem rgb(0 0 0 / 0.1);

    --velocity-slow: 1s;
    --velocity-medium: 0.6s;
    --velocity-fast: 0.3s;

    --font-family-default: "Assistent", sans-serif;
    --font-family-text: "Exo", sans-serif;
    --font-family-title: "AfacadFlux", arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-default);
    font-family: var(--font-family-text);
    color: var(--basic-darken-color);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--basic-color);
    background-image: radial-gradient(
        circle at 50% 50%,
        var(--basic-color) 0%,
        var(--basic-color) 30%,
        var(--basic-shade-color) 100%
    );
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 320px;
}

nav ul {
    list-style: none;
}

h1 {
    font-size: 4rem;
    font-family: var(--font-family-title);
    font-weight: 700;
    text-align: center;
    width: max-content;
    margin: 3rem auto;
    color: var(--accent-three-color);
    background-image: radial-gradient(
        circle at 0% 100% in oklch,
        var(--accent-six-color) -10%,
        var(--accent-one-color) 110%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0.0625rem 0.0625rem 0.0625rem var(--basic-light-color));
}

h2 {
    font-size: 3rem;
    font-family: var(--font-family-title);
    font-weight: 700;
    text-align: center;
    position: relative;
    color: var(--accent-three-color);
    text-shadow: 0.0625rem 0.0625rem 0.0625rem var(--basic-light-color),
        -0.0625rem -0.0625rem 0.0625rem var(--basic-shade-color);
}

h3 {
    font-size: 1.75rem;
    font-family: var(--font-family-text);
    font-weight: 700;
    color: var(--accent-four-color);
}

hr {
    border-top: 0.0625rem solid var(--basic-color);
    border-left: 0.0625rem solid var(--basic-color);
    border-right: 0.0625rem solid var(--basic-shade-color);
    border-bottom: 0.0625rem solid var(--basic-shade-color);
    border-radius: 0.0625rem;
    width: 60rem;
    max-width: 100%;
}

hr.light-line {
    box-shadow: 0.125rem 0.125rem 0.625rem 0.0625rem var(--accent-one-color-06),
        -0.125rem -0.125rem 0.625rem 0.0625rem var(--accent-six-color-04);
}

.container {
    margin-inline: auto;
    width: 1200px;
    max-width: calc(100% - 2rem);
}

.color-box {
    padding: var(--size-big);
    border-radius: var(--size-giant);
    background-color: var(--accent-four-color);
    color: var(--basic-light-color);
    font-family: var(--font-family-text);
    font-weight: 300;
    box-shadow: 0.5rem 0.5rem 1.25rem 0 var(--accent-one-color-10) inset,
        -0.5rem -0.5rem 1.25rem var(--accent-six-color-18) inset,
        0.0625rem 0.0625rem 1rem var(--basic-shade-color),
        0.5rem -0.25rem 1.25rem var(--accent-one-color-18),
        -0.5rem -0.5rem 1.25rem var(--accent-six-color-08),
        0.5rem 0.5rem 1.25rem rgb(0 0 0 / 0.1);
}

.light-box {
    padding: var(--size-big) var(--size-giant);
    box-shadow: var(--full-color-shadow-inset);
    border-radius: var(--size-giant);
    color: var(--shade-accent-four-color);
    font-size: 1.25rem;
    line-height: 1.75em;
}

.more-link {
    position: relative;
    text-decoration: none;
    color: var(--contrast-six-color);
    font-weight: 500;
}

.more-link::after {
    content: "»";
    margin-left: 0.25em;
    text-decoration: none;
}

.more-link::before {
    content: "";
    position: absolute;
    bottom: 0.1em;
    left: 0;
    height: 0.0625rem;
    width: 100%;
    max-width: 0;
    background-color: currentColor;
    transition: 0.3s;
}

.more-link:hover::before {
    max-width: 100%;
}

a[href^="http"],
a[target="_blank"] {
    display: flex;
    align-items: center;
}

a[href^="http"]:after,
a[target="_blank"]::after {
    display: inline-block;
    content: "";
    height: 1em;
    width: 1em;
    -webkit-mask: url(/img/icons/link.svg) no-repeat 50% 50%;
    mask: url(/img/icons/link.svg) no-repeat 50% 50%;
    -webkit-mask-size: cover;
    mask-size: cover;
    background-color: currentColor;
}

header#top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 0.75rem;
    height: 4rem;
    background-image: linear-gradient(
        to bottom,
        var(--accent-four-color) 0%,
        var(--accent-four-color) 50%,
        transparent 0.01%,
        transparent 100%
    );
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: 100% 200%;
    transition: background-position 0.3s, box-shadow 0s 0s;
    backdrop-filter: blur(10px);
    z-index: 1000;
}
header#top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
        at 50% 100%,
        var(--basic-smoke-color-25),
        var(--basic-shade-color-25)
    );
    z-index: -1;
}

header#top a {
    color: var(--accent-three-color);
    text-decoration: none;
    transition: color 0.3s;
}

nav#main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    display: block;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 500;
}

#logo .logo-text {
    text-transform: uppercase;
    font-family: var(--font-family-title);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 0.85em;
    color: var(--basic-smoke-color);
    text-align: center;
    text-shadow: -0.0625rem -0.0625rem 0 var(--basic-color-25),
        0.0625rem 0.0625rem 0 var(--basic-middle-color-50),
        0.25rem -0.125rem 0.25rem var(--accent-one-color-10),
        -0.25rem -0.25rem 0.25rem var(--accent-six-color-08);
}

#logo svg {
    fill: var(--basic-smoke-color);
    filter: drop-shadow(-0.0625rem -0.0625rem 0 var(--basic-color-25))
        drop-shadow(0.0625rem 0.0625rem 0 var(--basic-middle-color-50))
        drop-shadow(0.25rem -0.125rem 0.25rem var(--accent-one-color-10))
        drop-shadow(-0.25rem -0.25rem 0.25rem var(--accent-six-color-08));
    width: 2.5rem;
    height: 2.5rem;
    transition: fill 0.3s;
}

nav#main #nav-main {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    color: var(--accent-three-color);
    padding: 0.5rem;
    border: 0;
    border-radius: 50%;
    z-index: 400;
    background-color: transparent;
}

nav#main #nav-main::before,
nav#main #nav-main::after {
    content: "";
    display: block;
    position: absolute;
    width: 1.5rem;
    height: 0.125rem;
    top: 1.1875rem;
    left: 0.5rem;
    background-color: currentColor;
    transition: 0.4s, box-shadow 0.2s;
}

nav#main #nav-main::before {
    box-shadow: 0px 0.75rem 0px 0px currentColor;
}

nav#main #nav-main::after {
    box-shadow: 0px -0.75rem 0px 0px currentColor;
}

nav#main #nav-main.opened {
    color: var(--basic-light-color);
}

nav#main #nav-main.opened::before {
    box-shadow: 0px 0px 0px 0px transparent;
    transform: rotate(45deg);
}

nav#main #nav-main.opened::after {
    box-shadow: 0px 0px 0px 0px transparent;
    transform: rotate(-45deg);
}

nav#main ul {
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav#main ul a {
    position: relative;
    display: block;
    padding: 0.125rem 0.5rem;
    font-size: 1.25rem;
    color: var(--accent-three-color);
}

header#top:not(:hover) ul a {
    text-shadow: 0 0 2em var(--basic-color),
        0.0625rem 0.0625rem 0.0625rem var(--basic-color-50);
}

nav#main ul a:hover {
    animation: menuhover 0.5s ease;
}

nav#main ul a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    height: 0.125rem;
    width: calc(100% - 1rem);
    max-width: 0;
    background-color: currentColor;
    transition: 0.3s;
}

nav#main ul a:hover::after {
    max-width: 100%;
}

nav#main ul a.active {
    color: var(--accent-two-color);
    pointer-events: none;
}

header#top:hover ul a.active {
    color: var(--accent-six-color);
}

nav#main ul a.active::after {
    max-width: 100%;
}

@keyframes menuhover {
    0% {
        color: var(--basic-light-color);
    }
    15% {
        color: var(--light-accent-one-color);
    }
    30% {
        color: var(--light-accent-two-color);
    }
    45% {
        color: var(--light-accent-three-color);
    }
    60% {
        color: var(--light-accent-four-color);
    }
    75% {
        color: var(--light-accent-five-color);
    }
    90% {
        color: var(--light-accent-six-color);
    }
    100% {
        color: var(--basic-light-color);
    }
}

.color-section {
    width: 100%;
    margin-block: 5rem;
    padding-block: 2.5rem;
    background-color: var(--accent-two-color);
    background-image: radial-gradient(
        at 0% -20% in oklch,
        var(--accent-six-color),
        var(--accent-one-color) 120%
    );
    color: var(--basic-color);
    box-shadow: inset 0 1rem 1rem -1rem var(--accent-one-color-50),
        inset 0 -0.5rem 1.5rem -1rem var(--shade-accent-one-color);
}

.color-section h2 {
    margin-block-start: 0;
    color: var(--basic-light-color);
    text-shadow: 0.0625rem 0.0625rem 0 var(--basic-black-color-20);
}

main {
    padding-top: 4rem;
    flex-grow: 1;
}

.home-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-items: center;
    align-items: stretch;
    gap: 2rem;
    padding-top: 2rem;
}

.home-top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 450px;
}

.home-top-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-top-title h1 {
    text-transform: uppercase;
    font-size: 7.5rem;
    line-height: 0.85em;
    margin-bottom: 0.25em;
    color: var(--basic-mist-color);
    text-align: center;
    text-shadow: var(--full-color-shadow);
    width: auto;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background-image: none;
}

.home-top-title h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 0;
    color: var(--accent-four-color);
    font-weight: 500;
}

.home-top-text {
    text-align: center;
    text-wrap: balance;
}

.home-top-text p {
    margin: 0;
    line-height: 1.5em;
    font-size: 1.5rem;
}

.home-top-image {
    grid-row: 1 / 3;
}

.home-top-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Big numbers */

.big-numbers {
    margin-block: 7.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.big-number-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.big-number-prefix {
    position: absolute;
    top: 5%;
    left: 15%;
    font-family: var(--font-family-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--basic-light-color);
    color: var(--accent-six-color);
    color: var(--light-accent-six-color);
    text-shadow: 0.25rem 0.25rem 0.75rem var(--accent-one-color-50);
    z-index: 10;
    transition: 0.5s;
}

.big-number-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-family-title);
    font-size: 3rem;
    font-weight: 700;
}

.big-number {
    font-size: 12.5rem;
    font-weight: 900;
    line-height: 1em;
    background-image: radial-gradient(
        circle at 0% 0% in oklch,
        var(--accent-six-color) 10%,
        var(--accent-one-color) 90%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0.125rem var(--basic-light-color);
    filter: drop-shadow(1rem 1rem 0.625rem var(--accent-one-color-18));
    transition: 0.5s;
}

.big-number-text {
    text-align: center;
    color: var(--accent-two-color);
    font-weight: 800;
    text-shadow: -0.5rem -0.5rem 0.5rem var(--accent-six-color-04),
        1rem 1rem 0.625rem var(--accent-one-color-18);
    transition: 0.5s;
}

.big-number-description {
    padding: 2rem;
    text-align: center;
}

.onload .big-number-text {
    text-shadow: 0 0 0.125rem var(--accent-six-color-04),
        0.5rem 0.5rem 0.625rem var(--accent-one-color-18);
}

.onload .big-number {
    filter: drop-shadow(0 0 0.25rem var(--accent-one-color-18));
}

.onload .big-number-prefix {
    text-shadow: 0.125rem 0.125rem 0.25rem var(--accent-one-color-50);
}
/* Big numbers */

/* Stack */

.stack {
    margin-block: 3.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stack-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.stack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.stack-items {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 1rem;
}

.stack-item {
    width: 7.5rem;
    height: 7.5rem;
}

.stack-item img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0.5rem -0.25rem 0.5rem var(--accent-one-color-18))
        drop-shadow(-0.5rem -0.5rem 0.5rem var(--accent-six-color-08));
}

.stack-more {
    margin-top: 3rem;
    font-size: 1.25rem;
    color: var(--accent-three-color);
}

/* /Stack */

/* Projects */

.projects {
    margin-block: 7.5rem;
    overflow: hidden;
}

.projects-box {
    margin-block: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    opacity: 1;
}

.project-preview {
    width: 100%;
    max-width: 50rem;
    display: grid;
    grid-template-columns: 15% 70% 15%;
    aspect-ratio: 1 / 0.54;
    transition: opacity 0.75s;
}

.project-preview-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.project-preview-image::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 10%;
    border-radius: 50%;
    background-color: var(--basic-black-color);
    filter: blur(0.5rem);
    opacity: 0.15;
    z-index: -1;
}

.project-preview-image img {
    max-width: 100%;
    filter: drop-shadow(0 0 0.5rem var(--basic-shade-color-50))
        drop-shadow(-0.5rem 0 1.5rem var(--basic-black-color-20));
}

.project-preview-tablet {
    transform: translateX(30%);
    z-index: 2;
    transition: 0.75s transform;
}

.project-preview-tablet img {
    max-width: 150%;
}

.project-preview-mobile {
    transform: translateX(-25%);
    z-index: 2;
    transition: 0.75s transform;
}

.project-preview-desktop img {
    filter: drop-shadow(-1.5rem 0 1.5rem var(--basic-black-color-50));
}

.project-preview.onload {
    opacity: 0;
}

.onload .project-preview-tablet {
    transform: translateX(-150%) rotate(-15deg);
}

.onload .project-preview-mobile {
    transform: translateX(150%) rotate(15deg);
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.5em;
    max-width: 60rem;
}

.project-title {
    margin-block-end: 0.75rem;
}

/* /Projects */

/* Old projects */

.old-projects-description {
    margin-inline: auto;
    max-width: 60rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-shadow: 0.0625rem 0.0625rem 0.0625rem var(--accent-one-color-50),
        0 0 2.5rem var(--accent-one-color-18);
}

.old-projects-box {
    display: flex;
    margin-top: 4rem;
    margin-bottom: 4rem;
    height: 30rem;
    gap: 1rem;
}

.old-project {
    position: relative;
    height: 28.125rem;
    max-height: fit-content;
    min-width: 1rem;
    border-radius: 2rem;
    background-color: var(--basic-light-color);
    box-shadow: 0.25rem 0.25rem 2rem var(--basic-black-color-20),
        0.25rem 0.25rem 0.25rem var(--accent-one-color-10);
    overflow: hidden;
    z-index: 10;
    transition: 0.3s;
    filter: grayscale(0.5) brightness(0.7);
    filter: brightness(0.75);
}

.old-project.opened {
    height: 50rem;
    min-width: 21.875rem;
    filter: none;
}

.old-project-preview {
    min-width: 1rem;
    height: 28.125rem;
}

.old-project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem 2rem 0 0;
}

.old-project-description {
    color: var(--basic-darken-color);
    width: 1rem;
    overflow: hidden;
}
.old-project-description p {
    padding: 1rem;
    min-width: 21.875rem;
}

.old-project-description h3 {
    margin: 0;
    color: var(--shade-accent-three-color);
    font-size: 1.375rem;
    font-weight: 600;
}

.old-project.opened .old-project-description,
.old-project:hover .old-project-description {
    width: 21.875rem;
}

.old-project .old-project-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--basic-mist-color);
    background-image: linear-gradient(
        -45deg,
        var(--basic-light-color),
        var(--basic-shade-color)
    );
    box-shadow: 0.125rem 0.125rem 1rem var(--basic-black-color-50);
    color: var(--contrast-six-color);
    border-top: 0.0625rem solid var(--basic-mist-color);
    border-left: 0.0625rem solid var(--basic-light-color);
    border-bottom: 0.0625rem solid var(--basic-shade-color);
    border-right: 0.0625rem solid var(--basic-shade-color);
    font-size: 2.5rem;
    z-index: 10;
}

.old-project:not(.opened) .old-project-close {
    display: none;
}

.color-section + .container .simple-text-block {
    margin-bottom: 4rem;
    line-height: 1.5em;
}

/* /Old projects */

.about-page {
    margin-bottom: 4rem;
}

.big-text-block {
    font-size: 1.125rem;
    line-height: 1.75em;
    text-wrap: pretty;
}

.about-page .big-text-block {
    margin-top: 3rem;
    padding-inline: 2rem;
    font-weight: 500;
}

.about-page .color-box {
    font-size: 1.25rem;
    line-height: 1.75em;
    text-shadow: 0.0625rem 0.0625rem 0.0625rem var(--basic-black-color-20);
    font-weight: 400;
}

/* Certificates */

.color-section.cert-section {
    margin-bottom: 0;
}

/* /Certificates */

/* Footer */

footer#bottom {
    padding-block: 2rem;
    background-color: var(--accent-two-color);
    background-image: radial-gradient(
        ellipse at 50% -50% in oklch,
        var(--accent-five-color) 0%,
        var(--accent-two-color) 100%
    );
    color: var(--basic-light-color);
    box-shadow: 0 0 0.5rem 0 var(--basic-middle-color-50);
}

.footer-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links ul {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--basic-light-color);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

.footer-links ul {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--basic-light-color);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

.footer-socials a {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-socials img {
    width: 24px;
    height: 24px;
}

.footer-socials a span {
    display: none;
}

.footer-socials a {
    display: flex;
    padding: 0.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--basic-light-color);
}
.footer-socials a:hover {
    box-shadow: 0 0 0.5rem 0 var(--accent-one-color-50);
}
.footer-socials a::after {
    content: none;
}

/* /Footer */

@media screen and (max-width: 960px) {
    #logo .logo-text {
        font-size: 2rem;
    }
    nav#main ul a {
        font-size: 1rem;
    }
    .color-box {
        padding: var(--size-middle);
    }
    .home-top-text p {
        font-size: 1.25rem;
    }
}

@media screen and (min-width: 801px) {
    header#top:hover {
        background-position: 0% 0%;
        box-shadow: 0 0 0.5rem var(--basic-black-color-20);
        transition: background-position 0.3s, box-shadow 0.1s 0.2s;
    }

    header#top:hover #logo svg {
        fill: var(--basic-light-color);
        filter: none;
    }

    header#top:hover #logo .logo-text {
        color: var(--basic-light-color);
        text-shadow: none;
    }

    header#top:hover a {
        color: var(--basic-light-color);
    }
}

@media screen and (max-width: 800px) {
    .home-top {
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: stretch;
        gap: 2rem;
    }
    .home-top-title {
        order: 1;
    }
    .home-top-image {
        order: 2;
        grid-row: auto;
        aspect-ratio: 1;
        margin-bottom: -2rem;
    }
    .home-top-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
    .home-top-content {
        order: 3;
    }

    /* Menu */
    nav#main #nav-main {
        display: flex;
    }
    nav#main ul {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--accent-four-color);
        background-image: radial-gradient(
            circle at 50% -30% in oklch,
            var(--accent-six-color) 0%,
            var(--accent-one-color) 120%
        );
        color: var(--basic-light-color);
        overflow: hidden;
        opacity: 0;
        transition: width 0.3s, height 0.3s, opacity 0.3s;
    }
    nav#main ul a {
        color: var(--basic-light-color);
        font-size: 2rem;
    }

    nav#main #nav-main.opened + ul {
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        opacity: 1;
    }

    header.is_menu #logo svg,
    header:has(#nav-main.opened) #logo svg {
        fill: var(--basic-light-color);
        filter: none;
    }

    header.is_menu #logo .logo-text,
    header:has(#nav-main.opened) #logo .logo-text {
        color: var(--basic-light-color);
        text-shadow: none;
    }

    /* /Menu */

    .old-projects-box {
        flex-direction: column;
        height: auto;
    }

    .old-project {
        height: 7.5rem;
    }

    .old-project.opened,
    .old-project:hover {
        min-width: auto;
    }

    .old-project-preview img {
        object-position: top;
    }
}

@media screen and (max-width: 560px) {
    #logo .logo-text {
        font-size: 1.5rem;
    }

    .light-box {
        padding: var(--size-middle) var(--size-big);
        font-size: 1rem;
    }

    .project-preview-image img {
        max-width: 100%;
        filter: drop-shadow(0 0 0.5rem var(--basic-shade-color-50))
            drop-shadow(-0.375rem 0 1.25rem var(--basic-black-color-20));
    }
    .project-preview-tablet img {
        max-width: 150%;
    }
    .project-preview-desktop img {
        filter: drop-shadow(-0.5rem 0 1.25rem var(--basic-black-color-50));
    }

    .project-title {
        margin-block-end: 0.5rem;
    }

    .project-description {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .home-top-title h1 {
        font-size: 5rem;
    }
    .home-top-content {
        min-width: auto;
    }
    .stack-item {
        width: 5rem;
        height: 5rem;
    }
    .color-box,
    .light-box {
        border-radius: 2rem;
    }
    .home-top-text.color-box {
        margin-top: -0.5rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .old-project:hover {
        height: 50rem;
        min-width: 21.875rem;
        filter: none;
    }
    .old-projects:has(.old-project:hover) .old-project:not(:hover) {
        filter: brightness(0.3);
    }
}

@media (hover: none) and (pointer: coarse) {
}

@supports (not (color: oklch(100% 0 0))) {
    h1 {
        background-image: radial-gradient(
            circle at 0% 100%,
            var(--accent-five-color) -10%,
            var(--accent-two-color) 110%
        );
    }
    .big-number {
        background-image: radial-gradient(
            circle at 0% 0%,
            var(--accent-six-color) 10%,
            var(--accent-one-color) 90%
        );
    }
    footer#bottom {
        background-image: radial-gradient(
            ellipse at 50% -50%,
            var(--accent-five-color) 0%,
            var(--accent-two-color) 100%
        );
    }
    .color-section {
        background-image: radial-gradient(
            at 0% -20%,
            var(--accent-six-color),
            var(--accent-one-color) 120%
        );
    }
}
