/* VARIABLES */

:root {
    --main-color: #111111;
    --accent-color: #6ef3a6;

    --text-color: #ffff;
    --secondary-text-color: #2d2d2d;
    --accent-text-color: #cdffc6;
}

.disable-scroll {
    overflow-y: hidden;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.clickable {
    cursor: pointer;
}

.please-rotate {
    display: none;
}

.please-rotate p {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--main-color) !important;
    color: var(--text-color);
    overflow-x: hidden; 
}

html, body {
    scroll-behavior: smooth;
}

.t-100 {
    font-weight: 100;
}

.t-200 {
    font-weight: 200;
}

.t-300 {
    font-weight: 300;
}

.t-400 {
    font-weight: 400;
}

.t-500 {
    font-weight: 500;
}

.t-600 {
    font-weight: 600;
}

.t-700 {
    font-weight: 700;
}

.t-800 {
    font-weight: 800;
}

.t-900 {
    font-weight: 900;
}

.code {
    font-family: "Inconsolata", "Poppins", sans-serif;
}

/* MOUSE EFFECTS */

@keyframes rotate {
    from {
        rotate: 0deg;
    }

    50% {
        scale: 1 1.5;
    }

    to {
        rotate: 360deg;
    }
}

#blob {
    filter: blur(100px);
    background-color: white;
    height: 300px;
    aspect-ratio: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, var(--accent-color), #6013c9);
    animation: rotate 20s infinite;
    opacity: 1;
}

#blur {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    position: fixed;
    backdrop-filter: blur(12vmax);
}

/* LOADING SCREEN */

.loader {
    cursor: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: 999;
    background-color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: row;
}

.loader-text-container {
    position: relative;
}

.loader-text {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 100px;
    z-index: inherit;
    color: black;
    margin: 0 auto;
}

.loader-text-container h1:nth-child(1) {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-color);
}

.loader-text-container h1:nth-child(2) {
    color: var(--accent-color);
    animation: animate 2s ease-in-out infinite;
}

@keyframes animate3 {
    0% {
        clip-path: polygon(0% 60%,
        15% 65%,
        34% 66%,
        51% 62%,
        67% 50%,
        84% 45%,
        100% 46%,
        100% 100%,
        0% 100%);
    }

    100% {
        clip-path: polygon(0% 60%,
        15% 65%,
        34% 66%,
        51% 62%,
        67% 50%,
        84% 45%,
        100% 46%,
        100% 100%,
        0% 100%);
    }
}

@keyframes animate2 {
    0% {
        clip-path: polygon(0% 45%,
                16% 44%,
                33% 50%,
                54% 60%,
                70% 61%,
                84% 59%,
                100% 52%,
                100% 100%,
                0% 100%);
    }

    100% {
        clip-path: polygon(0% 0%,
                0% 0%,
                0% 0%,
                0% 0%,
                0% 0%,
                0% 0%,
                100% 0%,
                100% 100%,
                0% 100%);
    }
}

@keyframes animate {

    0%,
    
    100% {
        clip-path: polygon(0% 60%,
        15% 65%,
        34% 66%,
        51% 62%,
        67% 50%,
        84% 45%,
        100% 46%,
        100% 100%,
        0% 100%);
    }
    50% {
        clip-path: polygon(0% 45%,
                16% 44%,
                33% 50%,
                54% 60%,
                70% 61%,
                84% 59%,
                100% 52%,
                100% 100%,
                0% 100%);
    }
}

.background-noise {
    pointer-events: none;
    opacity: .8;
    background-blend-mode: normal;
    background-image: url("/assets/img/background_noise.png");
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100vh;
    width: 100vw;
}
.blurred-navbar {
    height: 80px;
    width: 100%;
    background-color: #23222263;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 100;
}
.navbar-container {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    border-bottom: 1px solid rgb(37, 37, 37);
    z-index: 100;
}
.navbar-wrapper {
    width: 80%;
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    align-self: center;
    margin: 10px auto;
}
.branding-container {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
}
.links-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}
.links-container a {
    height: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: row;
}
.code-link {
    font-family: "Inconsolata", "Poppins", sans-serif;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}
.code-link:hover {
    color: #a9a9a9;
    transition: all .2s ease;
}
.code-current-link {
    color: var(--accent-color);
    position: relative;
    transition: all .2s ease;
}
.code-current-link:hover {
    color: #5ecc8c !important;
    transition: all .2s ease;
}
.mobile-links-container {
    display: none;
    transition: all .5s ease;
}
.mobile-button-container {
   display: none;
}
.mobile-button {
    background: transparent;
    font-family: 'Material Symbols Outlined';
    color: white;
    height: 60px;
    aspect-ratio: 1;
    border: none;
    font-size: 40px;
    cursor: pointer;
    position: relative;
}

/* FRONTPAGE */

.frontpage-body-container {
    width: 100%;
    height: calc(90vh - 250px);
    margin: 250px 0 0 0;
    background: linear-gradient(0deg, #6ef3a617 0%, transparent 75%, transparent 100%);
    overflow: hidden;
    z-index: 2;
    position: relative;
}
.frontpage-body-wrapper {
    width: 70%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.frontpage-body-box {
    width: 100%;
    position: relative;
}
.full-stack-tag {
    padding: 2px 5px;
    background-color: #6ef3a6;
    width: max-content;
    border-radius: 3px;
    font-size: 15px;
    color: var(--secondary-text-color);
}
.frontpage-body-title {
    margin: 10px 0 -15px 0;
    font-size: 50px;
}
.frontpage-body-subtitle {
    font-size: 35px;
    margin: 5px 0;
    color: var(--accent-text-color);
}
.frontpage-body-desc {
    color: #a9a9a9;
    margin: 15px 0 25px 0;
    font-size: 20px;
}
.contact-button {
    width: fit-content;
    display: block;
    font-size: 15px;
    text-decoration: none;
    color: var(--accent-color);
    padding: 15px 30px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    transition: all .2s ease;
}
.contact-button:hover {
    transform: translate(-5px, -5px);
    box-shadow: 4px 4px 0 0 var(--accent-color);
    transition: all .2s ease;
}
.code-circle-container {
    height: 100px;
    width: 100%;
}
.code-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #181818;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: row;
}
.profile-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -400px;
    right: -50px;
    z-index: 20;
}
.profile-image img {
    height: 1000px;
}
.frontpage-details-box {
    padding: 80px 0 0 0;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    align-self: flex-start;
}
.experience {
    width: 100%;
    display: flex;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px
}
.detail-small {
    font-size: 15px;
}
.projects {
    width: 100%;
    display: flex;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px
}
.project-body-container {
    z-index: 1;
    position: relative;
    border-top: 1px solid #5b5b5bbd;
    width: 100%;
}
.project-body-wrapper {
    width: 70%;
    margin: 100px auto;
}
.title {
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;

}
.title::after {
    display: flex;
    content: "";
    margin-left: 10px;
    background-color: var(--accent-color);
    height: 1px;
    width: 100%;
}
.title-line {
    height: 1px;
    width: 100%;
    background-color: var(--accent-color);
}
.project-card-container {
    display: flex;
    flex-direction: row;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: fit-content;
}
.project-card {
    border: 1px solid transparent;
    cursor: pointer;
    background-color: #070707;
    width: calc((100% / 3) - 10px);
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
}
.project-card:hover .project-card-letters {
    opacity: 1;
}
.project-card-gradient {
    height: 100%;
    width: 100%;
    position: absolute;
    background: radial-gradient(rgb(30 59 36) 40%, var(--accent-color));
    mix-blend-mode: darken;
    pointer-events: none;
    z-index: 3;
}
.project-card-letters {
    --x: 0px;
    --y: 0px;
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    color: white;
    font-size: var(--font-size);
    font-weight: 500;
    word-wrap: break-word;
    opacity: 0.1;
    transition: opacity 400ms;
    mask-image: radial-gradient(
        calc(500px * 0.8) circle at var(--x) var(--y), 
        rgb(255 255 255) 20%, 
        rgb(255 255 255 / 25%), 
        var(--accent-color)
    );
    -webkit-mask-image: radial-gradient(
        calc(500px * 0.8) circle at var(--x) var(--y), 
        rgb(255 255 255) 20%, 
        rgb(255 255 255 / 25%), 
        var(--accent-color)
    );
    scale: 1.03;
}
.project-card-image {
    border-radius: 20px;
    height: 80%;
    width: auto;
    margin: 10%;
    position: relative;
    z-index: 3;
    pointer-events: none;
    transition: all 1s ease;
    aspect-ratio: 1;
}
.project-card-info {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    margin: 0 5%;
    z-index: 4;
    position: relative;
}
.project-card-info h1 {
    margin: 0;
}
.project-card-info p {
    word-wrap: break-word;
    margin: 0;
    font-size: 80%;
}
.project-card-info a {
    color: white;
    background-color: var(--main-color);
    width: fit-content;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-decoration: none;
    gap: 5px;
    border: 1px solid var(--secondary-text-color);
    border-radius: 10px;
}
.project-card-info a span {
    display: flex;
    font-size: 18px !important;
    align-items: center;
}
.project-card-info button {
    font-size: 16px;
    color: white;
    background-color: var(--main-color);
    width: fit-content;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-decoration: none;
    gap: 5px;
    border: 1px solid var(--secondary-text-color);
    border-radius: 10px;
}
.project-card-info button span {
    display: flex;
    font-size: 18px !important;
    align-items: center;
}
.project-image-hide {
    height: 20%;
    width: auto;
    margin: 5% 40% !important;
    position: relative;
    z-index: 3;
    pointer-events: none;
}
.contact-me-container {
    z-index: 1;
    position: relative;
    border-top: 1px solid #5b5b5bbd;
    width: 100%;
}
.contact-me-wrapper {
    width: 50%;
    margin: 100px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-container {
    width: 100%;
    height: 90px;
    z-index: 3;
    position: relative;
}
.footer-wrapper {
    width: 80%;
    height: calc(100% - 20px);
    margin: 10px auto;
    text-align: center;
    display: flex;
    align-items: center;
}
.footer-wrapper p {
    margin: 0 auto;
}

@media screen and (max-height: 900px) {

    .frontpage-body-container {
        height: unset;
    }

}

@media screen and (max-width: 1000px) {
    .frontpage-body-box:nth-child(2) {
        width: 60%;
    }
    .project-card-container {
        gap: 40px;
    }
    .project-card {
        width: calc((100% / 2) - 40px);
    }
}

@media screen and (max-width: 800px) {
    .code-circle-container {
        display: none;
    }
    .frontpage-body-box:nth-child(2) {
        width: unset;
    }
    .profile-image {
        right: unset;
        bottom: -350px;
        z-index: -1;
    }
    .project-card {
        width: 100%;
    }
    #blob {
        display: none;
    }
    .project-card-container {
        gap: 40px;
    }
    .frontpage-body-container {
        margin: 100px 0 0 0;
        height: calc(90vh - 100px);
    }
    .frontpage-details-box {
        width: 100%;
        padding: 20px 0 0 0;
    }
    .experience {
        gap: 5px;
    }
    .projects {
        gap: 5px;
    }
    .profile-image {
        display: none;
    }
}

@media screen and (max-width: 700px) {
    .links-container {
        display: none;
    }
    .mobile-links-container {
        position: fixed;
        top: calc(100vh + 80px);
        height: calc(100vh - 80px);
        width: 100vw;
        background: #111111f0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-content: center;
        font-size: 50px !important;
        justify-content: flex-start;
        align-items: center;
    }
    .mobile-links-container input {
        height: 150px;
        font-size: 30px;
        border-bottom: 1px solid #ffffff59;
        width: 100%;
    }
    .mobile-button-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
    }
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {

    body {
        overflow: hidden;
    }

    .blurred-navbar {
        z-index: 0;
        position: relative;
    }

    .navbar-container {
        z-index: 0;
        position: relative;
    }

    .please-rotate {
        display: flex !important;
        width: 100%;
        height: 100%;
        z-index: 999999;
        background-color: #181818;
        color: white;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .please-rotate p {
        z-index: inherit;
        display: flex;
    }

}