@import url('https://fonts.googleapis.com/css2?family=Merienda&family=Montserrat:wght@600&family=Mulish:wght@500&family=Open+Sans:wght@500&family=Poppins&display=swap');

:root {
    --main-color: #00113B;
    --border-color: #2295a7;
    --frame-color: #252e43;
    --font-color: #00CFED;
    --font-color2: rgb(219, 219, 219);
    --font-color3: rgb(176, 176, 176);
    --font-color4: rgb(162, 162, 162);
    --font-color5: rgb(196, 196, 196);
    --black: #333;
    --white: #fff;
    --random: #ebebeb;
    --light-color: #666;
    --border:.2rem solid var(--black);
    --border2:.2rem solid var(--white);
    --border3:.2rem solid var(--random);
    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
}

@font-face {
    font-family: poppins-reguler;
    src: url(/font/Poppins-Regular.ttf);
}

@font-face {
    font-family: montserrat-semibold;
    src: url(/font/Montserrat-SemiBold.ttf);
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

/* Selection Block */
*::-moz-selection {
    background-color: var(--font-color);
    color: var(--white);
}

*::selection {
    background-color: var(--font-color);
    color: var(--white);
}

/* Scroll Bar */
::-webkit-scrollbar {
    height: 0.3rem;
    width: 0.1rem;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}




/* HTML */
html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

section {
    padding: 3rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

body {
    background-color: #00113B;
}




/* HEADER */
.header {
    position: -webkit-sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--main-color);
    z-index: 1000;
}

.header .flex {
    display: -webkit-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1.5rem 2rem;
}

.header .flex .logo img {
    height: 5rem;
    padding-left: 5rem;
    animation: fade-out 1s backwards;
}

.header .flex .navbar {
    padding-right: 3rem;
}

.header .flex .navbar a {
    margin: 1rem;
    font-size: 1.8rem;
    color: rgb(219, 219, 219);
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    animation: fade-out 1s backwards;
}

.header .flex .navbar span {
    text-decoration: none;
    color: var(--font-color);
    font-size: 1.8rem;
    font-family: "Poppins", sans-serif;
    border: 2px solid var(--font-color);
    border-radius: 7px;
    padding: 5px 10px;
}

.header .flex .navbar a:hover {
    text-decoration: none;
    color: var(--font-color);
    transition: 0.3s;
}

.header .flex .navbar span:hover {
    background-color: var(--font-color);
    color: rgb(219, 219, 219);
    transition: 0.3s;
}

.header .flex .navbar.active{
    background-color: #00113B;
    display: block;
}

#menu-btn {
    display: none;
    font-size: 2.5rem;
    color: var(--font-color);
    cursor: pointer;
}




/* HOME */
.home {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    margin-top: 12rem;
}

.home-left {
    flex: 2.8;
    margin-left: 15rem;
    animation: fade-out2 1.8s backwards;
}

.home-right {
    flex: 1;
    position: relative;
    padding-left: 3rem;
    margin-right: 15rem;
    animation: fade-out3 1.8s backwards;
}

.home .home-left p {
    color: var(--font-color);
    font-size: 1.5rem;
    margin-bottom: 0;
    font-family: "Open sans",sans-serif;
}

.home .home-left h3 {
    color: rgb(219, 219, 219);
    font-size: 5rem;
    font-family: "Montserrat", sans-serif;
}

.home .home-left h4 {
    color: rgb(176, 176, 176);
    font-size: 3.6rem;
    font-family: "Poppins", sans-serif;
}

.home .home-left h5 {
    color: rgb(162, 162, 162);
    font-size: 1.5rem;
    width: 45%;
    margin-top: 2.5rem;
    line-height: 1.5;
}

.home .home-left span {
    color: var(--font-color);
}

.home-right img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--font-color);
}




/* ABOUT */
.title-about {
    margin-top: 30rem;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.title-about h3 {
    color: rgb(219, 219, 219);
    font-family: "montserrat", sans-serif;
    font-size: 3.5rem;
    animation: fade-out4 1.7s backwards;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.about .about-vektor {
    flex: 1 1 40rem;
    margin-left: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.about .about-vektor img {
    /*width: 400px;
    height: 400px;*/
    width: 70%;
    animation: fade-out2 1.8s backwards;
}

.about .about-description {
    flex: 1 1 40rem;
    padding-right: 11rem;
}

.about .about-description p {
    color: rgb(176, 176, 176);
    font-size: 1.7rem;
    /*margin-top: 4rem;*/
    padding-left: 5rem;
    line-height: 2;
    font-family: "Open sans", sans-serif;
    animation: fade-out3 1.8s backwards;
}




/*PROJECT*/
.title-my-project{
    justify-content: center;
    align-items: center;
    display: flex;
    margin-top: 15rem;
}

.title-my-project h3{
    color: var(--font-color2);
    font-family: "montserrat", sans-serif;
    font-size: 3.55rem;
    margin-top: 10rem;
    text-align: center;
    animation: fade-out4 1.7s backwards;
}

.project-container {
    width: 66%;
    margin: 0 auto;
    margin-top: 10rem;
}


/* FRAME 1 */
.frame1 {
    background-color: var(--frame-color);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    margin-bottom: 3rem;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    animation: fade-out2 1.8s backwards;
}

.frame1 .outside-image-p {
    flex: 1 1 5rem;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 1.2rem 2rem 1.2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.frame1 .image-p {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 10px;
}

.frame1 .image-p img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.frame1 .image-p .button-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.3s; 
}

/*.frame1 .image-p .button-popup button {
    background-color: #303b57;
    border: 2px solid var(--font-color);
    border-radius: 7px;
    padding: 10px 20px 33px 20px;
    cursor: pointer;
    width: 35%;
    height: 10%;
}*/

.frame1 .image-p .button-popup a {
    background-color: #586279;
    border: 1px solid #7582a1;
    border-radius: 7px;
    padding: 10px 20px 33px 20px;
    cursor: pointer;
    width: 35%;
    height: 10%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
}

.frame1 .image-p .button-popup a:hover {
    background-color: #202530;
    transition: 0.5s;
}

/*.frame1 .image-p .button-popup button a {
    text-decoration: none;
    color: var(--font-color);
    font-size: 1.5rem;
    width: 10px;
}*/

.frame1 .image-p:hover img {
    transform: scale(1.02);
}

.frame1 .image-p:hover .button-popup {
    opacity: 1;
}

.frame1 .desc-container {
    flex: 1.2 1 5rem;
    padding: 0 3rem 0 1rem;
}

.project .frame1 .desc-container .title-p h1 {
    color: var(--font-color2);
    font-family: "Poppins", sans-serif;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.project .frame1 .desc-container .desc-p p {
    font-size: 1.3rem;
    font-family: "Open sans", sans-serif;
    color: var(--font-color5);
    margin-bottom: 2rem;
}


/* FRAME 2 */
.frame2 {
    background-color: var(--frame-color);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    margin-bottom: 3rem;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    animation: fade-out3 1.8s backwards;
}

.frame2 .outside-image-p {
    flex: 1 1 5rem;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 1.2rem 2rem 1.2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.frame2 .image-p {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 10px;
}

.project .frame2 .image-p img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
} 

.frame2 .image-p .button-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.3s; 
}

.frame2 .image-p .button-popup a {
    background-color: #586279;
    border: 1px solid #7582a1;
    border-radius: 7px;
    padding: 10px 20px 33px 20px;
    cursor: pointer;
    width: 35%;
    height: 10%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
}

.frame2 .image-p .button-popup a:hover {
    background-color: #202530;
    transition: 0.5s;
}

/*.frame2 .image-p .button-popup button a {
    text-decoration: none;
    color: var(--font-color2);
    font-size: 1.5rem;
    width: 10px;
}*/

.frame2 .image-p:hover img {
    transform: scale(1.02);
}

.frame2 .image-p:hover .button-popup {
    opacity: 1;
}

.frame2 .desc-container {
    flex: 1.2 1 5rem;
    padding: 0 1rem 0 3rem;
    float: right;
    text-align: right;
}

.project .frame2 .desc-container .title-p h1 {
    color: var(--font-color2);
    font-family: "Poppins", sans-serif;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.project .frame2 .desc-container .desc-p p {
    font-size: 1.3rem;
    font-family: "Open sans", sans-serif;
    color: var(--font-color5);
    margin-bottom: 2rem;
}




/* CONTACT */
.contact-title {
    margin-top: 30rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    margin-bottom: 5rem;
    animation: fade-out4 1.7s backwards;
}

.contact-title h3 {
    color: rgb(219, 219, 219);
    font-size: 3.5rem;
    font-family: "montserrat", sans-serif;
    text-align: center;
}

.contact .contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 5rem;
}

.contact .contact-container .box {
    text-align: center;
    animation: fade-out 1.8s backwards;
}

.contact .contact-container .box i {
    font-size: 6rem;
    line-height: 6rem;
    height: 6rem;
    width: 6rem;
    color: var(--font-color);
    margin-bottom: 0.5rem;
}

.contact .contact-container .box h1 {
    margin: 1rem 0;
    font-size: 2rem;
    color: var(--font-color2);
}

.contact .contact-container .box h3 {
    line-height: 2rem;
    font-size: 1.6rem;
    color: var(--font-color3);
    margin: 1rem 0;
}

.contact .contact-container .box h3 a {
    text-decoration: none;
    line-height: 2rem;
    font-size: 1.6rem;
    color: var(--font-color3);
}

.contact .credit {
    text-align: center;    
    margin: 0 auto;     
    padding-top: 2.5rem;
    border-top: var(--border3);
    font-size: 2rem;
    color: white;
    width: 85%;
}

.contact .credit p {
    color: var(--font-color3);
}

.contact .credit span {
    color: var(--font-color);
}


/*KEYFRAME*/
@-webkit-keyframes animate {
    0% {
        transform: scaleY(0);
    }
}

@keyframes animate {
    0% {
        transform: scaleY(0);
    }
}

@keyframes fade-out {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-out2 {
    0% {
        opacity: 0;
        transform: translatex(-40px);
    }

    100% {
        opacity: 1;
        transform: translatex(0);
    }
}

@keyframes fade-out3 {
    0% {
        opacity: 0;
        transform: translatex(40px);
    }

    100% {
        opacity: 1;
        transform: translatex(0);
    }
}

@keyframes fade-out4 {
    0% {
        opacity: 0;
        transform: translatey(-10px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translatey(0) scale(1);
    }
}

/*MEDIA SCREEN*/
@media screen and (max-width: 1151px) {
    .frame1 .image-p .button-popup a {
        font-size: 1.18rem;
        width: 40%;
        height: 12%;
        padding-top: 15px;
    }

    .frame2 .image-p .button-popup a {
        font-size: 1.18rem;
        width: 40%;
        height: 12%;
        padding-top: 15px;
    }
}


@media screen and (max-width: 1050px) {
    .frame1 .desc-container {
        margin-top: 1rem;
    }
    .frame2 .desc-container {
        margin-top: 1rem;
    }

    .frame1 .image-p .button-popup a {
        width: 42%;
        height: 15%;
    }

    .frame2 .image-p .button-popup a {
        width: 42%;
        height: 15%;
    }
}


@media screen and (max-width: 1010px) {
    .home {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 2rem;
    }

    .home-left, .home-right {
        flex: none;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        margin-right: 0;
    }

    .home-right {
        z-index: -100;
        order: -1;
    }

    .home .home-left p {
        color: var(--font-color);
        font-size: 1.5rem;
        margin-bottom: 0;
        font-family: "Open sans",sans-serif;
        text-align: center;
    }
    
    .home .home-left h3 {
        color: rgb(219, 219, 219);
        font-size: 4rem;
        font-family: "Montserrat", sans-serif;
        text-align: center;
    }
    
    .home .home-left h4 {
        color: rgb(176, 176, 176);
        font-size: 3rem;
        font-family: "Poppins", sans-serif;
        text-align: center;
    }
    
    .home .home-left h5 {
        color: rgb(162, 162, 162);
        font-size: 1.5rem;
        text-align: center;
        margin: 3rem auto;
        
    }

    .home .home-left h5 span {
        text-align: center;
    }

    .home-right img {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 2px solid var(--font-color);
        justify-content: center;
        align-items: center;
        display: flex;
        margin: 5rem auto;
        
    }
}


@media screen and (max-width: 979px){
    .about .about-vektor {
        margin-left: 0;
        width: 100%;
        gap: 0;
    }

    .about .about-description {
        padding-right: 2rem;
    }
}


@media screen and (max-width: 900px){
    .frame1, .frame2 {
        display: grid;
        grid-template-areas:
            "title"
            "image"
            "desc";
    }

    .frame1 .image-p {
        grid-area: image;
    }
    .frame2 .image-p {
        grid-area: desc;
    }
    
    .frame1 .desc-container {
        grid-area: desc;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .frame2 .desc-container {
        grid-area: image;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .project .frame1 .desc-container .title-p h1,
    .project .frame1 .desc-container .desc-p p,
    .project .frame2 .desc-container .title-p h1,
    .project .frame2 .desc-container .desc-p p{
        text-align: center;
    }

    .project-container {
        width: 85%;
    }
} 


@media screen and (max-width: 768px) {
    #menu-btn {
        display: inline-block;
        transition: 0.2s linear;
    }

    #menu-btn.fa-times {
        transform: rotate(180deg);
    }

    .header .flex .logo img {
        height: 5rem;
        padding-left: 0;
    }

    .header .flex .navbar {
        position: absolute;
        top: 99%;
        left: 0;
        right: 0;
        background-color: var(--font-color);
        border-top: var(--border);
        border-bottom: var(--border);
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.2s linear;
    }
    
    .header .flex .navbar.active {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .header .flex .navbar a {
        display: block;
        margin: 2rem;
    }
}    


@media screen and (max-width: 700px) {
    .home .home-left h5 {
        width: 90%;
    }
}


@media screen and (max-width: 507px) {
    .home {
        margin-top: 0;
    }

    .home .home-right img {
        width: 239px;
        height: 230px;
    }

    .home .home-left p {
        font-size: 1rem;
    }

    .home .home-left h3 {
        font-size: 3.2rem;
    }

    .home .home-left h4 {
        font-size: 2.2rem;
    }

    .about .about-description {
        padding-right: 0;
    }
    
    .about .about-description p {
        padding-left: 1rem;
    }

    .project-container {
        margin-top: 5rem;
    }
}


@media screen and (max-width: 341px) {
    .frame1 .image-p .button-popup a {
        width: 47%;
        height: 19%;
    }

    .frame2 .image-p .button-popup a {
        width: 47%;
        height: 19%;
    }
}


@media screen and (max-width: 335px) {
    .project-container {
        width: 100%;
    }
}