@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --theme-1: rgb(70, 150, 255);
    --theme-1-op: rgba(70, 150, 255, 0.1);
    --theme-1-sh: rgba(70, 150, 255, 0.4);
    --theme-2: rgb(150, 70, 255);
    --theme-2-op: rgba(150, 70, 255, 0.05);
    --theme-gradient: linear-gradient(to right, #a03ead, #e94057, #f27121);
}

* {
    margin: 0;
    font-family: "Poppins";
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    font-family: "Poppins";
}

canvas {
    display: block;
    width: 100%;
    height: 100vh;
}

.content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    scroll-behavior: smooth;
}

.content section {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#section-1 h1 {
    font-size: 7vh;
    color: white;
    font-weight: 600;
}

#section-1 h2 {
    font-size: 7vh;
    color: transparent;
    background-clip: text;
    background-image: var(--theme-gradient);
    width: fit-content;
}

#section-1 p {
    margin-top: 3vh;
    font-size: 4vh;
    color: white;
    opacity: 0.7;
    text-align: center;
}

#section-1 button {
    position: absolute;
    bottom: 3vh;
    font-size: 2vh;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
}

@keyframes landing-icon-hover {
    0% {
        transform: translateY(0) rotateZ(90deg);
    }

    50% {
        transform: translateY(20%) rotateZ(90deg);
    }

    100% {
        transform: translateY(0) rotateZ(90deg);
    }
}

#section-1 button i {
    transform: rotateZ(90deg);
    color: transparent;
    background-clip: text;
    background-image: var(--theme-gradient);
}

#section-1 button:hover i {
    animation: none;
    transform: translateY(0);
}

#section-1 button:hover i {
    animation: landing-icon-hover 0.4s ease-out 0s 1 normal both;
}

#section-2 {
    gap: 3vh;
}

#section-2 h2 {
    font-size: 5vh;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#section-2 h2 span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#section-2 h2 span::before {
    content: "";
    position: absolute;
    width: 115%;
    height: 75%;
    transform: skewX(-20deg);
    background-image: var(--theme-gradient);
    z-index: -1;
}

#section-2 header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#section-2 header button {
    padding: 0.75vh 1.75vh;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgb(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    font-size: 2vh;
    cursor: pointer;
    border-radius: 10vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    transition: background ease-out 0.2s, border ease-out 0.2s, box-shadow ease-out 0.2s;
}

#section-2 header button[active] {
    background: var(--theme-1-op);
    border: 1px solid var(--theme-1);
    box-shadow: 0 0 20px 0.1rem var(--theme-1-sh);
}

#section-2 header button:hover {
    border: 1px solid white;
}

@keyframes section-2-icon-rotate {
    0% {
        transform: rotateZ(0);
    }

    30% {
        transform: rotateZ(20deg);
    }

    60% {
        transform: rotateZ(-20deg);
    }

    90% {
        transform: rotateZ(10deg);
    }

    100% {
        transform: rotateZ(0);
    }
}

#section-2 header button:hover i {
    animation: section-2-icon-rotate 0.6s ease-out 0s 1 normal forwards;
}

#section-2 header button:focus-visible {
    border: 1px solid white;
    outline: none;
}

#section-2 main {
    width: min(calc(100% - 20px), 750px);
    aspect-ratio: 1.8;
    position: relative;
    overflow: hidden;
}

#section-2 main[active="1"] {
    #dev-tab {
        transform: scale(1);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
    }

    #tools-tab {
        transform: scale(1.1);
        opacity: 0;
        overflow-y: hidden;
        pointer-events: none;
    }

    #languages-tab {
        transform: scale(1.2);
        opacity: 0;
        overflow-y: hidden;
        pointer-events: none;
    }
}

#section-2 main[active="2"] {
    #dev-tab {
        transform: scale(0.9);
        opacity: 0;
        overflow-y: hidden;
        pointer-events: none;
    }

    #tools-tab {
        transform: scale(1);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
    }

    #languages-tab {
        transform: scale(1.1);
        opacity: 0;
        overflow-y: hidden;
        pointer-events: none;
    }
}

#section-2 main[active="3"] {
    #dev-tab {
        transform: scale(0.9);
        opacity: 0;
        overflow-y: hidden;
        pointer-events: none;
    }

    #tools-tab {
        transform: scale(0.8);
        opacity: 0;
        overflow-y: hidden;
        pointer-events: none;
    }

    #languages-tab {
        transform: scale(1);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
    }
}

#section-2 main > div {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 100%;
    height: 100%;
    transition: transform ease-out 0.2s, opacity ease-out 0.2s;
}

#section-2 .tab-card {
    position: relative;
    width: calc(50% - 0.5rem);
    aspect-ratio: 4;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: white;
    font-size: 2vh;
    overflow: hidden;
}

#section-2 .tab-card p:nth-child(2) {
    background: red;
    padding: 0 0.8rem;
    border-radius: 10rem;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    user-select: none;
}

#section-2 .tab-card div {
    content: "";
    position: absolute;
    /* right: calc((100 - var(--v)) * 1%);right: calc(var(--v) / 100 * 100%); */
    right: 100%;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background-color: var(--theme-1-op);
    transform: translateX(var(--v));
}

#section-3 {
    gap: 3vh;
}

#section-3 h2 {
    font-size: 5vh;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#section-3 h2 span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#section-3 h2 span::before {
    content: "";
    position: absolute;
    width: 105%;
    height: 75%;
    transform: skewX(-20deg);
    background-image: var(--theme-gradient);
    z-index: -1;
}

#section-3 main {
    aspect-ratio: 1.618;
    display: flex;
    flex-direction: row;
    height: 55vh;
    overflow: hidden;
    gap: 3vh;
    max-width: calc(100% - 20px);
}

#section-3 .card {
    position: relative;
    min-width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    border-radius: 1rem;
    transition: transform ease-out 0.4s, scale ease-out 0.4s, opacity ease-out 0.4s;
    padding: 1rem 1rem 4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

#section-3 main[current="0"] .card {
    transform: translateX(0);
}
#section-3 main[current="1"] .card {
    transform: translateX(calc(-100% - 3vh));
}
#section-3 main[current="2"] .card {
    transform: translateX(calc(-200% - 6vh));
}
#section-3 main[current="3"] .card {
    transform: translateX(calc(-300% - 9vh));
}

#section-3 main:not([current="0"]) .card[data="0"] {
    scale: 0.7;
    opacity: 0;
}
#section-3 main:not([current="1"]) .card[data="1"] {
    scale: 0.7;
    opacity: 0;
}
#section-3 main:not([current="2"]) .card[data="2"] {
    scale: 0.7;
    opacity: 0;
}
#section-3 main:not([current="3"]) .card[data="3"] {
    scale: 0.7;
    opacity: 0;
}

#section-3 .card h3 {
    font-size: 2rem;
    color: white;
}

#section-3 .card p {
    color: white;
    opacity: 0.8;
    padding-bottom: 1rem;
}

#section-3 .card .list {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

#section-3 .card .list div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: calc(33.3% - (2 / 3) * 1rem);
}

@media screen and (max-width: 650px) {
    #section-3 .card .list div {
        width: calc(50% - 0.5rem);
    }
}

#section-3 .card label {
    color: white;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 900;
    font-size: 1.2rem;
    opacity: 0.6;
}

#section-3 .card h4 {
    color: white;
    font-weight: 400;
}

#section-3 .card .links {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

#section-3 .card .links a {
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: background ease-out 0.2s;
    color: white;
    text-decoration: none;
}

#section-3 .card .links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

#section-3 .slider {
    width: 100%;
    height: 3.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5vh;
}

#section-3 .slider ul {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#section-3 .slider div {
    height: 2.5rem;
    aspect-ratio: 1;
    transition: aspect-ratio ease-out 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section-3 .slider div::before {
    content: "";
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    height: 20%;
    aspect-ratio: 1;
    transition: aspect-ratio ease-out 0.2s, background ease-out 0.2s;
}

#section-3 .slider[current="0"] div[data="0"]::before {
    aspect-ratio: 4;
    background: rgb(255, 255, 255);
}
#section-3 .slider[current="1"] div[data="1"]::before {
    aspect-ratio: 4;
    background: rgb(255, 255, 255);
}
#section-3 .slider[current="2"] div[data="2"]::before {
    aspect-ratio: 4;
    background: rgb(255, 255, 255);
}
#section-3 .slider[current="3"] div[data="3"]::before {
    aspect-ratio: 4;
    background: rgb(255, 255, 255);
}

#section-3 .slider button {
    height: 2.5rem;
    aspect-ratio: 1;
    border-radius: 1.25rem;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background ease-out 0.2s;
    font-size: 1rem;
}

#section-3 .slider button:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes section-3-icon-translate-1 {
    0% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(-20%);
    }

    90% {
        transform: translateX(5%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes section-3-icon-translate-2 {
    0% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(20%);
    }

    90% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(0);
    }
}

#section-3 .slider button:hover i {
    animation: section-3-icon-translate-1 0.4s ease-out 0s 1 normal forwards;
}

#section-3 .slider button:is(#next):hover i {
    animation: section-3-icon-translate-2 0.4s ease-out 0s 1 normal forwards;
}

nav {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 3rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

nav button {
    aspect-ratio: 1;
    height: 100%;
    border-radius: 3rem;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: background ease-out 0.2s;
    background: transparent;
    padding: 0;
    transition: opacity ease-out 0.2s;
    color: white !important;
}

nav button:hover {
    background: rgba(255, 255, 255, 0.05);
}

nav button[disabled] {
    cursor: not-allowed;
    background: transparent;
    opacity: 0.5;
}

nav button i {
    font-size: 1.3rem;
}