@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root{
    --font-primary: "Roboto Condensed", sans-serif;
    --font-secondary: "Outfit", sans-serif;
}

/*general configs*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    color: white;
    scroll-behavior: smooth;
}

body{
    background-image: url(media/bg-purpura.jpg), url();
    background-size: cover;
    color: black;
    scroll-behavior: smooth;
}
header{
    grid-column: 2 / 3;
    position: sticky;
    top: 0;
    padding: .5rem 0;
    background-color: rgba(0, 0, 0, 0.712);
    border-bottom: 1px solid rgba(0, 0, 0, 0.329);
    backdrop-filter: blur(2px);
}

nav#main-nav{
    font-family: var(--font-secondary);
    width: 100%;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}
    nav#main-nav ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: end;
    align-items: center;
    }
        nav#main-nav ul li{
        cursor: pointer;
        color: rgb(185, 185, 185);
    }
        nav#main-nav ul li:first-child{
        margin-right: auto;
        text-align: left;
        color: white;
        }
        nav#main-nav a{
        text-decoration: none;
        color: rgb(255, 255, 255);  
        }
        nav#main-nav a:hover{
        color: #4d4bbe;
        }

main {
    grid-row: auto;
    grid-column: 2 / 3;
    background-color: rgba(0, 0, 0, 0.253);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

article > img{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

a > img {
    cursor: pointer;
    max-width: 80%;
    min-width: 80%;
    padding: 1rem;
}


footer{

    width: 100%;
    grid-column: 2 / 3;
    grid-row: 10;
}

/*class configs*/

.page-container{
    max-width: 100vw;
    display: grid;
    grid-template-columns:  1fr 3fr 1fr;
    grid-template-rows: auto;
}


.projects{
    background-color: rgba(0, 0, 0, 0.253);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    justify-content: center;
}
    .projects article{
        width: 100%;
        object-fit: cover;
    }
    .projects h2 {
    font-size: 1.8rem;
    font-weight: 700;
    padding: .5rem;
    grid-column: 1 / 3;
    padding-left: 5.5rem;
    }
    .projects p {
        grid-column: 2 / 3;
        padding: 0 1rem;
        font-size: larger;
    }
    .projects img, .projects a > img{
        grid-column: 1 / 2;
        width: 80%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        border-radius: 2rem;
        padding: 1rem;
    }

.intro {
    text-align: center;
    grid-row: 2;
    grid-column: 2 / 3;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.435);
    padding: 20rem 1.5rem;
    font-weight: 600;
    font-size: 1.4rem;
}

.footer-content {
    border: 1px solid rgba(255, 255, 255, 0.329);
    border-radius: 1rem;
    padding: 3rem 1.5rem; 
    margin: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.712);
}
.top-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 1rem;
}
 .left-part a{
    text-decoration: none;
    color: rgb(214, 214, 214);
    font-weight: 600;
    font-size: 1.2rem;
    padding: .2rem;
    text-align: left;
}
.right-part a{
    text-decoration: underline #7674f5;
    color: rgb(214, 214, 214);
    padding: .3rem;
    text-align: right;
}


.left-part a:hover, .right-part a:hover{
    color: #7674f5;
    text-decoration: none;
}

.bottom-footer{
    border-top: 1px solid rgba(255, 255, 255, 0.329);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bottom-footer p, .bottom-footer a{
    padding-top: 1rem;
    font-size: small;
    color: rgb(155, 155, 155);
    cursor: default;
}

.bottom-footer a{
    text-decoration: underline #7674f5;
}

.bottom-footer a:hover{
    color: #7674f5;
    text-decoration: none;
    cursor: pointer;
}

.desktop{
    display: block;
}

.mobile{
    display: none;
}

/*id configs*/
#skills {
    padding: 15rem 0;
    grid-row: 4;
    background-color: rgba(0, 0, 0, 0.253);
    text-align: center;
}


#skills li {
    background-color: rgba(255, 255, 255, 0.137);
    border-radius: 1rem;
    margin: 1rem 3rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: fit-content;
    padding: .5rem 1rem .5rem 1.5rem;
    align-self: center;
    justify-self: center;
    display: flex;
    gap: .5rem;
    font-weight: 600;
    font-size: 1.2rem;
}


#skills h2{
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
}

#projects-h2{
    background-color: rgba(0, 0, 0, 0.253);
    font-size: 2.2rem;
    font-weight: 700;
    padding: 20rem 1rem 1rem 1rem;
    text-align: center;
}

@media all and (max-width: 480px) {
    .page-container{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    header, main, footer{
        grid-column: 1;
    }
    nav#main-nav ul{
        justify-content: center;
        font-size: 1.3rem;
    }
    .intro {
        grid-column: 1;
        padding: 15rem 1.5rem;
        font-size: 1.2rem;
    }
    #skills{
        padding: 15rem 0;
    }
    #projects-h2{
        padding: 10rem 1rem 1rem 1rem;
    }
    .projects{
        grid-template-columns: 1.5fr 1fr;
    }
    .projects h2{
        font-size: 1.4rem;
        padding-left: 1rem;
    }
    .projects p{
        font-size: .9rem;
        text-align: justify;
        padding: 1rem;
    }
    .projects img, .projects a > img{
        grid-column: 1;
        min-width: 100%;
        max-width: 100%;
        padding: .5rem;
        border-radius: 2rem;
    }
    nav#main-nav{
        padding: 1rem 1.5rem;
    }

    .footer-content{
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .left-part a{
        font-size: 1rem;
    }

    .right-part a{
        font-size: .8rem;
    }

    .bottom-footer p, .bottom-footer a{
        font-size: smaller;
    }

    .mobile{
        display: block;
    }

    .desktop{
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    nav#main-nav{
        padding: 1rem 2rem;
    }
    .intro {
        grid-column: 1;
        font-size: 1.2rem;
    }
    .page-container{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    header, main, footer{
        grid-column: 1;
    }
    .projects{
        grid-template-columns: 1.5fr 1fr;
    }
    .projects img, .projects a > img{
        grid-column: 1;
        min-width: 90%;
        max-width: 90%;
        padding: 1rem;
        border-radius: 2rem;
    }
    .projects h2{
        font-size: 1.6rem;
        padding-left: 2.5rem;
    }
    #projects h2{
        font-size: 2.2rem;
        font-weight: 700;
        padding: 10rem 1rem 1rem 1rem;
        text-align: center;
    }
    #skills h2, #projects-h2{
        font-size: 1.6rem;
    }
    #skills li{
        font-size: 1.2rem;
    }

    .mobile{
        display: block;
    }
    .desktop{
        display: none;
    }
}