:root {
    --primary-color: #0075F2;
    --bg: #272935;
    --secondary-bg: #141422;
    --text-color: #e8e8e8;
    --second-text: #9195ab;
    --secondary-color: rgba(255, 255, 255, .1);
}

* {
    box-sizing: content-box;
    color: var(--text-color);
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    background-color: var(--bg);
    border-width: 3px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
    border-radius: 9999px;
}

html,
body {
    width: 100%;
    height: fit-content;
    background-color: var(--bg);
    z-index: -1;
}

a {
    text-decoration: none;
}

button {
    padding: 15px;
    border-radius: 15px;
    border: none;
    background-color: var(--secondary-color);
    width: max-content;
}

button.primary {
    background-color: var(--primary-color);
    box-shadow: rgb(0 117 242 / 50%) 0px 3px 7px 0px;
}

button.primary:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
    cursor: pointer;
}

button.secondary {
    background-color: var(--secondary-color);
}

button.secondary:hover {
    transition: ease-in-out .1s;
    cursor: pointer;
    background-color: rgba(255, 255, 255, .2);
}

body .sticky,
footer {
    z-index: 2;
    position: sticky;
    top: 0;
}

footer {
    bottom: 0;
    top: unset;
}

/* ------------------------ Navbar ------------------------ */

nav {
    width: calc(100% - 50px*2);
    height: 47px;
    padding: 20px 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1240px;
    margin: auto;
    position: relative;
    -webkit-animation: navIn 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: navIn 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    z-index: 1;
}

nav img {
    height: 100%;
}

nav>div.linksContainer {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

nav>div.linksContainer a {
    color: var(--second-text);
}

nav>div.linksContainer a:hover {
    color: var(--text-color);
}

nav>div.buttonContainer {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

nav>div.burgerIcon {
    display: none;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    padding-right: 30px;
}

.burger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
    transition: 300ms;
    border-radius: 10px;
}

.burger input[type="checkbox"] {
    appearance: none;
    transition: 300ms;
}

.burger::before,
.burger::after {
    content: "";
    transition: 300ms;
    transform-origin: center center;
}

.burger::before {
    transform: translateY(8px);
}

.burger::after {
    transform: translateY(-8px);
}

.burger .line,
.burger::before,
.burger::after {
    width: 25px;
    height: 2.1px;
    display: block;
    background-color: var(--text-color);
    border-radius: 5px;
    position: absolute;
}

.burger .line:checked {
    width: 0;
    transition-delay: 100ms;
}

.burger:has(.line:checked)::before {
    animation: animation1 400ms ease-out 0s 1 both;
}

.burger:has(.line:checked)::after {
    animation: animation2 400ms ease-out 0s 1 both;
}

.burger:active {
    scale: 0.95;
}

/* ------------------------ Header ------------------------ */

header {
    height: 500px;
    width: calc(100% - 50px*2);
    max-width: 1240px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

header h1 {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    -webkit-animation: focus-in-contract 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: focus-in-contract 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

header p {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--second-text);
    -webkit-animation: focus-in-contract 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: focus-in-contract 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

header>div:nth-of-type(2) {
    display: flex;
    flex-direction: row;
    gap: 10px;
    -webkit-animation: mainIn 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: mainIn 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ------------------------ Main ------------------------ */

main {
    width: 100%;
    background-color: var(--secondary-bg);
    border-radius: 50px;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    z-index: 2;
    position: relative;
    -webkit-animation: mainIn 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: mainIn 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

section {
    width: calc(100% - 50px*2);
    max-width: 1240px;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    gap: 10rem;
}

section.enterAnimation>div {
    transform: translateX(-10rem);
    opacity: 0;
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

section.enterAnimation>img {
    transform: translateX(10rem);
    opacity: 0;
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

section.reverse>div {
    transform: translateX(10rem);
    opacity: 0;
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

section.reverse>img {
    transform: translateX(-10rem);
    opacity: 0;
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

section.isInViewport>div {
    transform: translateX(0);
    opacity: 1;
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

section.isInViewport>img {
    transform: translateX(0);
    opacity: 1;
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

section.reverse {
    flex-direction: row-reverse;
}

section h2 {
    font-size: 40px;
    margin-bottom: 1.5rem;
}

section p {
    font-size: 18px;
    color: var(--second-text)
}

section img {
    width: 500px;
    border-radius: 5px;
}

.container.light {
    background-color: var(--primary-color);
    width: calc(100%);
    max-width: none;
    border-radius: 0 0 50px 50px;
}

.container.light section {
    flex-direction: column;
    gap: 0;
}

.container.light section h2 {
    font-size: 45px;
    transform: translateY(50px);
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    opacity: 0;
}

.container.light section button {
    background-color: var(--text-color);
    color: #0075F2;
    font-size: 20px;
    padding: 14px 30px;
    transform: translateY(50px);
    transition: 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    opacity: 0;
}

.container.light.isInViewport section h2 {
    transform: translateY(0);
    transition: 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    opacity: 1;
}

.container.light.isInViewport section button {
    transform: translateY(0);
    transition: 1s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    opacity: 1;
}

/* ------------------------ Footer ------------------------ */

.credits {
    display: flex;
    justify-content: space-around;
    gap: 50px;
    padding-bottom: 3rem;
}

footer {
    min-height: 200px;
    width: calc(100% - 6rem*2);
    max-width: 1240px;
    margin: auto;
    padding: 6rem;
    padding-top: 3rem;
    justify-content: space-between;
    flex-direction: column;
    display: flex;
    z-index: 1;
}

footer .footerContainer {
    justify-content: space-between;
    flex-direction: row;
    display: flex;
    gap: 40px;
}

footer .info img {
    width: 15rem;
    margin-bottom: 20px;
}

footer .info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 25rem;
}

footer .info p {
    color: var(--second-text);
}

footer .links {
    display: flex;
    flex-direction: row;
    gap: 6rem;
}

footer .links h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

footer .links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer .links button {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ------------------------ Bg effects ------------------------ */

#bg {
    position: absolute;
    height: 100%;
    width: 100%;
    filter: blur(230px);
    z-index: 0;
    overflow: hidden;
    top: 0;
}

#bg div span {
    border-radius: 50%;
    position: absolute;
}

#bg div:nth-of-type(1) span:nth-of-type(1) {
    left: 6vw;
    top: -40vh;
    width: 493.15px;
    height: 493.15px;
    background: #1F00FF;
}

#bg div:nth-of-type(1) span:nth-of-type(2) {
    right: -5vw;
    top: 40vh;
    width: 367.91px;
    height: 367.91px;
    background: var(--primary-color);
}

#bg div:nth-of-type(1) span:nth-of-type(3) {
    left: -8.06vw;
    top: -6.01vh;
    position: absolute;
    width: 493.15px;
    height: 493.15px;
    background: var(--primary-color);
}


#bg div:nth-of-type(2) span:nth-of-type(1) {
    position: absolute;
    width: 725.02px;
    height: 245.27px;
    right: -15vw;
    bottom: -10vh;
    background: #1F00FF;
}

#bg div:nth-of-type(2) span:nth-of-type(2) {
    position: absolute;
    width: 1087.54px;
    height: 367.91px;
    left: 35vw;
    bottom: 40vh;
    background: var(--primary-color);
}

#bg div:nth-of-type(2) span:nth-of-type(3) {
    position: absolute;
    width: 1457.76px;
    height: 493.15px;
    left: -40vw;
    bottom: 45vh;
    background: #3c24c4;
}

@media screen and (max-width: 1100px) {
    section,
    section.reverse {
        flex-direction: column;
        max-width: 600px;
    }

    section p,
    section h2 {
        text-align: center;
    }

    footer .credits {
        flex-direction: column;
        gap: 0;
    }
}

@media screen and (max-width: 880px) {
    nav>div.linksContainer {
        width: calc(100% - 50px* 2 - 30px* 2);
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 100px;
        background: var(--secondary-bg);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 30px;
        gap: 5px;
        left: 50px;
    }

    nav>div.linksContainer a {
        background-color: var(--bg);
        border-radius: 10px;
        width: calc(100% - 10px * 2);
        text-align: center;
        padding: 10px;
    }

    nav>div.burgerIcon {
        display: flex;
    }

    nav>div.linksContainer.visible {
        opacity: 1;
        visibility: visible;
        z-index: 1;
        transform: translateY(0px);
        transition: ease-in-out .2s;
    }

    nav>div.linksContainer.hidden {
        opacity: 0;
        visibility: hidden;
        z-index: 0;
        transform: translateY(30px);
        transition: ease-in-out .2s;
    }
}

@media screen and (max-width: 790px) {
    footer .footerContainer {
        flex-direction: column;
    }
}

@media screen and (max-width: 540px) {
    section img {
        width: 400px;
    }
}

@media screen and (max-width: 500px) {
    section img {
        width: 350px;
    }

    footer .footerContainer .info {
        width: 100%;
    }
}

@media screen and (max-width: 450px) {
    html,
    body {
        zoom: 90%;
    }

    #discord {
        width: calc(100% + 100%* 0.7);
        left: calc(100%* -0.4);
        position: relative;
    }
}

@media screen and (max-width: 350px) {

    html,
    body {
        zoom: 80%;
    }
}

#content {
    display: none;
}

#loadingScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

#loadingScreen.hidden .loader {
    transform: translateY(-30rem);
    transition: ease-in-out 1s;
}

.loader {
    --size: 32px;
    --duration: 800ms;
    height: calc(var(--size) * 2);
    width: calc(var(--size) * 3);
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    margin-top: calc(var(--size) * 1.5 * -1);
    transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}

.loader .box {
    width: var(--size);
    height: var(--size);
    top: 0;
    left: 0;
    position: absolute;
    transform-style: preserve-3d;
}

.loader .box:nth-child(1) {
    transform: translate(100%, 0);
    -webkit-animation: box1 var(--duration) linear infinite;
    animation: box1 var(--duration) linear infinite;
}

.loader .box:nth-child(2) {
    transform: translate(0, 100%);
    -webkit-animation: box2 var(--duration) linear infinite;
    animation: box2 var(--duration) linear infinite;
}

.loader .box:nth-child(3) {
    transform: translate(100%, 100%);
    -webkit-animation: box3 var(--duration) linear infinite;
    animation: box3 var(--duration) linear infinite;
}

.loader .box:nth-child(4) {
    transform: translate(200%, 0);
    -webkit-animation: box4 var(--duration) linear infinite;
    animation: box4 var(--duration) linear infinite;
}

.loader .box>div {
    --background: #5C8DF6;
    --top: auto;
    --right: auto;
    --bottom: auto;
    --left: auto;
    --translateZ: calc(var(--size) / 2);
    --rotateY: 0deg;
    --rotateX: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    top: var(--top);
    right: var(--right);
    bottom: var(--bottom);
    left: var(--left);
    transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.loader .box>div:nth-child(1) {
    --top: 0;
    --left: 0;
}

.loader .box>div:nth-child(2) {
    --background: #145af2;
    --right: 0;
    --rotateY: 90deg;
}

.loader .box>div:nth-child(3) {
    --background: #447cf5;
    --rotateX: -90deg;
}

.loader .box>div:nth-child(4) {
    --background: var(--second-text);
    --top: 0;
    --left: 0;
    --translateZ: calc(var(--size) * 3 * -1);
}

#discord {
    --presence-offline: #80848e;
    --presence-online: #23a55a;
    --presence-dnd: #f23f43;
    --presence-idle: #efb132;

    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 40px;
    background-color: var(--secondary-color);
    backdrop-filter: blur(50px);
    padding: 30px;
    transform: scale(.7);
    border-radius: 40px;
}

#discord .discord-tag {
    font-size: 37px;
    font-weight: bold;
    margin: 0;
}

#discord .discord-presence {
    font-size: 20px;
}

#discord .timestamp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

#aboutme #discord {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    position: relative;
}

#pfp {
    height: 120px;
    width: 120px;
}

#pfp .discord-avatar {
    height: 120px;
    width: 120px;
    border-radius: 50%;
}

.point {
    height: 24px;
    width: 24px;
    background-color: var(--presence-offline);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: solid 3px var(--bg);
    transform: translate(85px, -40px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease 0.3s;
    margin: 5px;
}

.point.online {
    background-color: var(--presence-online);
}

.point.offline {
    background-color: var(--presence-offline);
}

.point.dnd {
    background-color: var(--presence-dnd);
}

.point.idle {
    background-color: var(--presence-idle);
    display: block;
}

.point #symbol {
    transition: all ease 0.3s;
}

.point.offline #symbol {
    height: 50%;
    width: 50%;
    background-color: var(--bg);
    border-radius: 50%;
    margin: auto;
}

.point.online #symbol {
    background-color: var(--presence-online);
    height: 0;
    width: 0;
}

.point.dnd #symbol {
    width: 60%;
    height: 20%;
    background-color: var(--bg);
    border-radius: 2px;
}

.point.idle #symbol {
    height: 60%;
    width: 60%;
    top: 0px;
    right: 0px;
    position: relative;
    background-color: var(--bg);
    border-radius: 50%;
}

.hoverEffect {
    transition: transform ease-out 0.4s, box-shadow ease-out 0.4s;
    animation: tracking-in-contract-bck-top 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}