@import url('https://fonts.googleapis.com/css2?family=Nothing+You+Could+Do&family=Offside&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root{
    --TextColor: #6EACDA;
    --TitleText: "Offside", serif;
    --MainText: "Source Sans 3", serif; 
}
html,body{
    height: 100%;
    width: 100vw;
    margin: 0rem;
    padding: 0rem;
    overflow-x:hidden;
    background-image:url("Images/backround.jpg");
    background-size: 100% 100%;
    background-color: rgba(2,21,38,0.85);
    background-blend-mode:darken;
    scroll-behavior: smooth;
}
.home, .about, .skillset, .projects{
    height: 100vh;
    width: 100vw;
    align-content: center;
    justify-items: center;
}

.section-title{
    display: block;
}
/* HEADER SECTION */

.header{
    position: fixed;
    z-index: 100;
    top:0;
    width: 100vw;
    height: 9vh;
    border-radius: 0 0 2rem 2rem;
    display: flexbox;
    align-content: center;
    align-items: center;
    background-color:rgba(2,21,38,.25);
}
.header a{
    text-decoration: none;
    color: var(--TextColor);
    margin:  .5rem 0 1rem 5rem ;
    font-size: 2.5rem;
    font-family: var(--TitleText);
}
.headerText{
    color: var(--TextColor);
    font-size: 3rem;
    font-family: "Nothing You Could Do", serif;
    display: inline-flex;
    margin:  .5rem 0 .5rem 2rem ;
    width: 48vw;
}
.navigation-container{
    display: inline-flex;
    justify-content: end;
    align-content: end;
    width: 48vw;
    padding: 0;
}
.mobile-container{
    display: none;
    justify-content: end;
    align-content: center;
    width: 48vw;
}
.mobile-icon{
    color: var(--TextColor);
    font-size: 3rem;
    margin:  .5rem 0 .5rem 2rem ;
    display: inline-block;
}

/* HOME SECTION */

.home a{
    color: var(--TextColor);
    font-family: var(--MainText);
    font-size: 3rem;
    display: block;
}
.home .name{
    font-size: 8rem;
}
.home .main-container{
    width: fit-content;
    justify-items: center;
    margin:  12rem 0;
}
.socials{
    background-color: rgba(110, 172, 218, .1);
    height: 8vh;
    width: 45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10rem;
}
.socials a{
    display: flex;
    text-underline-offset: .5rem;
    margin: 1rem;
}
.socials a:hover{
    text-underline-offset: .8rem;
    transition: 200ms  ease-in-out;
}
.socials span{
    color: var(--TextColor);
    font-family: var(--MainText);
    font-size: 1.5rem;
}
.home p{
    color: var(--TextColor);
    font-family: var(--MainText);
    font-size: 2rem;
    margin: 1rem;
}
.socials img{
    aspect-ratio: 1;
    height: 2.3rem;
    padding: 0  .5rem;
}

/* ABOUT SECTION */

.about .main-container{
    justify-items: center;
    width: 80vw;
}
.about img{
    height:20rem;
    aspect-ratio: 1;
    border: 1rem outset rgba(2,21,38,.1);
    display: block;
    margin: 3rem;
}
.about a{
    color: var(--TextColor);
    display: block;
    font-family: var(--MainText);
    font-size: 3rem;
    text-align:center;
}

/* SKILLSET SECTION */

.skillset .main-container{
    display: grid;
    grid-template-rows: repeat(2,1fr);
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5rem;
    margin-top: 5rem;
}
.skillset span{
    color: var(--TextColor);
    font-family: var(--TitleText);
    font-size: 2.5rem;
}
.skillset img{
    aspect-ratio: 1/1;
    height: 10rem;
}

/* PROJECTS SECTION */

.projects .main-container{
    width: 90vw;
    height: 80vh;
    justify-items: center;
}
.projects span{
    color: var(--TextColor);
    font-family: var(--TitleText);
    font-size: 3rem;
}
.grid-container{
    align-items: center;
    justify-items: center;
    display: grid;
    height: 40rem;
    width: 100rem;
    grid-template-rows: repeat(2,1fr);
    grid-template-columns: repeat(6, 1fr);
    grid-gap: .5rem;
    margin: 3rem 0;
}
.proj1{
    grid-column: 1/3;
    grid-row:1/2;
}
.proj2{
    grid-column: 3/5;
    grid-row: 1/3;
}
.proj3{
    grid-column: 5/7;
}
.proj4{
    grid-column: 1/3;
    grid-row: 2/2;
}
.proj5{
    grid-column: 5/7;
    grid-row: 2/3;
}
.image-wrapper{
    position: relative;
    border-radius:2rem;
    height:100%;
    width:100%;
}
.image-wrapper:hover > .item{
    filter:blur(.15rem);
}
.image-wrapper:hover > .overlay{
    opacity: 1;
    z-index: 1;
}
.item{
    height: 100%;
    width: 100%;
    object-position: center;
    display: block;
    border-radius:2rem;
}
.overlay{
    position: absolute;
    inset: 0;
    display: grid;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
    background-color: rgba(2,21,38,0.5);
    border-radius:2rem;
    font-family: var(--TitleText);
    font-size: 2.5rem;
    color:var(--TextColor) ;
    opacity: 0;
}
.overlay-text{
    display: inline-block;
    margin: 2rem 0;
}
.icon{
    color:white;
    display: inline-flex;
    font-size: 3rem;
    border: .5rem solid black;
    background-color: black;
    border-radius: 5rem;
}
.button {
    padding: 0.5rem 1rem;
    border: 0.2rem outset;
    border-radius: 1rem;
    text-decoration: none;
    border-color: #6eabda;
    background-color:#021526;
    color:var(--TextColor);
    display: block;
    width: fit-content;
    margin: auto;
    font-family: var(--TitleText);
}
.image-wrapper,.item, .overlay{
    transition: 600ms  ease-in-out;
}

/* RESPONSIVE */

@media only screen and (max-width:1400px){
    .grid-container{
        height: 40rem;
        width: 80rem;
    }
}
@media only screen and (max-width:1200px){
    :root{
        font-size: 90%;
    }
}
@media only screen and (max-width:1000px){
    .grid-container{
        display: grid;
        height: 65rem;
        width: 70rem;
        grid-template-rows: repeat(3, 1fr);
        grid-template-columns: repeat(4, 1fr);
    }
    .proj3{
        grid-column: 1/3;
        grid-row: 3/4;
    }
    .proj5{
        grid-column: 3/5;
        grid-row: 3/4;
    }
    .header a{
        margin:  .5rem 0 1rem 2rem ;
    }
    .home .social-text{
        font-size: 3rem;
    }
    .socials{
        height: 8rem;
        width: 65rem;
    }
    .socials img{
        height: 4rem;
    }
    .socials span{
        font-size: 1em;
    }
    .projects .section-title, .skillset .section-title{
        font-size: 5rem;
    }
}
@media only screen and (max-width:1000px){
    :root{
        font-size: 80%;
    }
}
@media only screen and (max-width:900px){
    .mobile-container{
        display: inline-flex;
        height: inherit;
        align-items: center;
    }
    .headerText{
        font-size: 5rem;
        display: inline-block;
    }
    .header{
        align-content: center;
    }
    .about img{
        height: 30rem;
    }
    .mobile-icon{
        z-index: 999;
        width: fit-content;
        height: fit-content;
        font-size: 5rem;
        margin: 0 2rem;
    }
    .grid-container{
        width: 60rem;
        height: 75rem;
    }
    .navigation-container{
        transform: translateX(+100%);
        z-index: 99;
        top: 0;
        left: 0;
        margin: none;
        background-color:#021526;
        height: 100vh;
        width:100vw;
        position: absolute;
        display: grid;
        row-gap: 5rem;
        justify-content: center;
        align-content: center;
        text-align: center;
        transition: all .5s ease-in-out;
    }
    .active .navigation-container{
        transform: translateX(0);
        transition: all .5s ease-in-out;
    }
    .navigation-container a{
        font-size: 5rem;
    }
}
@media only screen and (max-width:800px){
    :root{
        font-size:70% 
    }
}
@media only screen and (max-width:700px){
    .socials{
        width: 60rem;
    }
    .socials span{
        color: var(--TextColor);
        font-family: var(--MainText);
        font-size: 2.5rem;
    }
    .socials img{
        aspect-ratio: 1/1;
        height: 3.5rem;
        padding: 0  .5rem;
    }
}
@media only screen and (max-width:650px){
    .projects{
        height: 150vh;
        align-content: space-between;
        padding-top: 10vh;
    }
    .home .name{
        font-size: 6rem
    }
    .skillset .main-container{
        grid-template-rows: repeat(4,1fr);
        grid-template-columns: repeat(2, 1fr);
    }
    .skillset .section-title, .projects .section-title{
        font-size: 5rem;
    }
    .mobile-container{
        width: 45vw;
    }
    .grid-container{
        width: 40rem;
        height: 130vh;
        grid-template-rows: repeat(6, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }
    .proj2{
        grid-column: 1/3;
        grid-row: 3/5;
    }
    .proj3{
        grid-column: 1/3;
        grid-row: 5/6;
    }
    .proj5{
        grid-column: 1/3;
        grid-row: 6/7;
    }
    .socials{
        width: 50rem;
    }
    .socials span{
        color: var(--TextColor);
        font-family: var(--MainText);
        font-size: 2rem;
    }
    .socials img{
        aspect-ratio: 1;
        height: 3rem;
        padding: 0  .5rem;
    }
}
@media only screen and (max-width:500px){
    :root{
        font-size: 50%;
    }
}
@media only screen and (max-width:350px){
    :root{
        font-size: 40%;
    }
}