/* COPYRIGHT 2024 CHARGE-DEV ALL RIGHTS RESERVED */

/* FONTS */

@font-face {
    font-family: Logo;
    src: url(./assets/fonts/GeistMono-Regular.ttf);
}

@font-face {
    font-family: LexendRegular;
    src: url(./assets/fonts/Lexend-Regular.ttf);
}

@font-face {
    font-family: LexendLight;
    src: url(./assets/fonts/Lexend-Light.ttf);
}

@font-face {
    font-family: LexendExtraLight;
    src: url(./assets/fonts/Lexend-ExtraLight.ttf);
}

/* PAGE */

* {
    border: none;
    text-decoration: none;
    outline: none;
    user-select: none;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #151516;
    display: flex;
    justify-content: center;
}

body:before {
    background-image: url(./assets/images/noise.webp);
    opacity: 0.12;
    display: block;
    content: "";
    background-size: 257px auto;
    background-repeat: repeat;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
}

:-webkit-scrollbar {
    display: none;
}

/* COMPONENTS */

a {
    display: inline-block;
}

.secondary-button {
    background: rgba(225, 225, 225, 0.06);
    border: 1px solid rgba(225, 225, 225, .03);
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
        0 0 3px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 6px 20px 6px 20px;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: LexendLight;
    font-size: 14px;
    color: #c4c4c4;
    cursor: pointer;
    transition: all .3s ease;
}

.secondary-button:hover {
    background: rgba(225, 225, 225, 0.15);
    color: #e5e5e5;
}

.secondary-button:active {
    background: rgba(225, 225, 225, 0.20);
    color: #e5e5e5;
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0),
        0 0 3px rgba(0, 0, 0, 0);
    transform: scale(0.98);
}

.navbar-wrapper {
    width: 100%;
    position: fixed;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    z-index: 99;
}

.navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.038) 100%);
    border: 1px solid rgba(225, 225, 225, 0.1);
    backdrop-filter: blur(10px);
    width: 50%;
    height: 50px;
    position: fixed;
    display: flex;
    border-radius: 15px;
}

.nb-branding {
    width: 20%;
    display: flex;
    padding-left: 20px;
    align-items: center;
}

.nbb-text {
    font: 22px Logo;
    color: #e5e5e5;
    transition: all 0.3s ease;
}

.nbl-text:active {
    transform: scale(0.98);
}

.nb-links {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nbl-button {
    background-color: transparent;
    padding: 6px 12px;
    color: #c4c4c4;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nbl-button:hover {
    background: rgba(225, 225, 225, 0.15);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
}

.nbl-button:active {
    background: rgba(225, 225, 225, 0.20);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0);
    transform: scale(0.98);
}

.nbl-active {
    background: rgba(225, 225, 225, 0.20);
    color: #e5e5e5;
}

.nb-blank {
    width: 20%;
}

.mobile-navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.038) 100%);
    border: 1px solid rgba(225, 225, 225, 0.1);
    backdrop-filter: blur(10px);
    width: 75%;
    height: 50px;
    position: fixed;
    overflow: hidden;
    display: none;
    border-radius: 15px;
    z-index: 99;
}

.mobile-navbar.active {
    animation: navbar-menu-reveal 1s ease forwards;
}

@keyframes navbar-menu-reveal {
    0% {
        height: 50px;
    }

    20% {
        height: 45px;
        transform: scale(0.97);
        filter: blur(0px);
    }

    50% {
        filter: blur(1px);
        transform: translateY(3px);
    }

    60% {
        height: 228px;
    }

    100% {
        height: 218px;
        transform: scale(1);
        transform: translateY(0px);
        filter: blur(0px);
    }
}

.mobile-navbar.deactivated {
    animation: navbar-menu-hide 1s ease forwards;
}

@keyframes navbar-menu-hide {
    0% {
        height: 218px;
        filter: blur(0px);
    }

    20% {
        height: 224px;
        filter: blur(0px);
        transform: translateY(0px);
    }

    50% {
        filter: blur(1px);
        transform: translateY(-2px);
    }

    60% {
        height: 40px;
    }

    100% {
        height: 50px;
        transform: translateY(0px);
        filter: blur(0px);
    }
}

.mn-content {
    height: 50px;
    display: flex;
}

.mnb-branding {
    width: 50%;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.mnbb-text {
    font: 22px Logo;
    color: #e5e5e5;
    transition: all 0.3s ease;
}

.mnbl-text:active {
    transform: scale(0.98);
}

.mnbl-active {
    background: rgba(225, 225, 225, 0.20);
    color: #e5e5e5;
}

.mnb-menu {
    width: 50%;
    padding-right: 20px;
    display: flex;
    justify-content: end;
    align-items: center;
}

.mnbm-button {
    display: flex;
    background-color: transparent;
}

.mnbmb-icon {
    width: 30px;
    transition: all 0.3s ease;
}

.mnbmb-icon:active {
    transform: scale(0.9);
}

.mn-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mnl-button-wrapper {
    width: 100%;
}

.mnl-a {
    width: 100%;
    display: flex;
}

.mnl-button {
    width: 100%;
    height: 100%;
    background-color: transparent;
    padding: 10px 0 10px 20px;
    color: #c4c4c4;
    font-size: 18px;
    cursor: pointer;
    text-align: start;
    transition: all 0.3s ease;
}

.mnl-button:hover {
    background: rgba(225, 225, 225, 0.15);
    color: #e5e5e5;
}

.mnl-active {
    background: rgba(225, 225, 225, 0.15);
    color: #e5e5e5;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(225, 225, 225, 0.1);
}

.projects {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-header {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15% 0 40px 0;
}

.ph-info {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
}

.phi-title {
    font-family: LexendExtraLight;
    font-size: 40px;
    color: #e5e5e5;
}

.projects-view {
    /* background-color: red; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.projects-view .pv-card {
    transform-origin: top center;
    animation: pv-card-reveal 300ms ease forwards;
}

.projects-view .pv-card:nth-child(1) {
    animation-delay: 60ms;
}

.projects-view .pv-card:nth-child(2) {
    animation-delay: 120ms;
}

@keyframes pv-card-reveal {
    0% {
        opacity: 0;
        transform: rotateX(-90deg);
    }

    50% {
        transform: rotateX(-5deg);
    }

    100% {
        opacity: 1;
        transform: rotateX(0deg);
    }
}


.pv-card {
    background: #1c1c1f;
    border: 1px solid #262627;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    width: 700px;
    display: flex;
    gap: 25px;
    opacity: 0;
    padding: 20px;
    height: auto;
    border-radius: 10px;
}

.pv-card-info {
    width: 50%;
}

.pvci-context {
    /* background-color: blue; */
    height: 50%;
}

.pv-card-title {
    font-family: LexendExtraLight;
    font-size: 32px;
    color: #e5e5e5;
    margin: 0 0 5px 0;
}

.pv-card-description {
    font-family: LexendLight;
    font-size: 16px;
    color: #c4c4c4;
    margin: 0;
}

.pv-card-actions {
    /* background-color: green; */
    height: 50%;
    display: flex;
    justify-content: start;
    align-items: end;
    gap: 10px;
}

.pv-card-preview {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pvc-image {
    width: 350px;
    border-radius: 10px;
    border: 1px solid #262627;
}

/* FOOTER */

.footer {
    background: rgba(225, 225, 225, 0.01);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(225, 225, 225, 0.1);
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-barrier {
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fb-info {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
}

.fbi-text {
    font-size: 14px;
    font-family: LexendLight;
    color: #c4c4c4;
}

.fbi-text-span {
    color: #c4c4c4;
    font-family: LexendLight;
    font-size: 14px;
    font-weight: 200;
    cursor: pointer;
    transition: all .3s ease;
}

.fbi-text-span:hover {
    color: #e5e5e5;
}

.fbi-text-span:active {
    color: #c4c4c4;
}

.fb-links {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.fbl-link {
    color: #c4c4c4;
    font-family: LexendLight;
    font-size: 14px;
    font-weight: 200;
    cursor: pointer;
    transition: all .3s ease;
}

.fbl-link:hover {
    color: #e5e5e5;
}

.fbl-link:active {
    color: #c4c4c4;
}

@media screen and (max-width: 1440px) {

    .navbar {
        width: 75%;
    }

    .projects-header {
        margin-top: 20%;
    }

}

@media screen and (max-width: 820px) {

    .navbar {
        display: none;
    }

    .mobile-navbar {
        display: block;
    }

    .projects-header {
        margin-top: 30%;
        width: 100%;
    }

    .projects {
        width: 80%;
    }

    .pv-card {
        width: auto;
        flex-direction: column;
        align-items: center;
    }

    .pv-card-info {
        width: 100%;
    }

    .pv-card-description {
        margin-bottom: 10px;
    }

    .pvc-image {
        width: 300px;
    }

    .footer-barrier {
        width: 80%;
    }

}