@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&family=Roboto+Slab:wght@200;300&display=swap');

/* variables css */
:root{
    --header-height: 3rem;
    --font-semi: 600;
}

/* colours */
:root{
    --black-color: #000000;
    --white-color: #ffffff;
    --blue-color: #b4e1eb;
    --red-color: #f38993;
    --dgreen-color: #acdbca;
    --lgreen-color: #dbeac0;
    --orange-color: #fcd2b6;
}

/* font */
:root{
    --body-font: 'Poppins', sans-serif;
    --title-font: 'Roboto Slab', serif;
    --h1-font-size: 2rem;
    --h2-font-size: 1.4rem;
    --normal-font-size: 0.938rem;
    --normal-font-weight: 200;
    --bold-font-weight: 400;
    --superbold-font-weight: 800;
}
@media screen and (min-width: 765px){
    :root{
        --h1-font-size: 3.5rem;
        --h2-font-size: 1.6rem;
        --normal-font-size: 1.1rem;
    }
}

/* margins */
:root{
    --mb-1: 0.5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
}

/* z index */
:root{
    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* base */
*,::before,::after{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--normal-font-weight);
    color: var(--black-color);
}
h1{
    font-weight: var(--title-font-weight);
    margin: 0;
    font-family: var(--title-font);
    font-size: var(--h1-font-size);
}
h2{
    font-weight: var(--title-font-weight);
    margin: 0;
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
}
p{
    margin: 0;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
    /* font-family: var(--title-font); */
}
a{
    text-decoration: none;
    font-family: var(--title-font);
}
img{
    max-width: 100%;
    height: auto;
    display: block;
}
.btn {
    font: var(--title-font);
    width: 218px; 
    border: none;
    padding: 10px;
    margin: var(--mb-2);
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    /* transition-duration: .3s; */
    text-align: center;
    color: var(--black-color);
    outline: none;
}
.btn:hover {
    cursor: pointer;
}

/* class css */
.center{
    display: flex;  
    justify-content: center;  
    align-items: center;
}
.section{
    padding-top: 3.5rem;
}
.section_title{
    position: relative;
    font-family: var(--title-font);
    font-size: var(--h1-font-size);
    font-weight: var(--title-font-weight);
    color: var(--black-color);
    margin-bottom: var(--mb-4);
    text-align: center;
}
.section_title::after{
    position: absolute;
    content: "";
    width: 55px;
    height: .18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 3rem;
    background-color: var(--blue-color);
}
.subsection{
    padding: .5rem 0;
}
.section_subtitle{
    position: relative;
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    font-weight: var(--title-font-weight);
    color: var(--black-color);
    margin-bottom: var(--mb-4);
    text-align: center;
}
.section_subtitle::after{
    position: absolute;
    content: "";
    width: 55px;
    height: .18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2.5rem;
    background-color: var(--blue-color);
}
.bold{
    font-weight: var(--bold-font-weight);
}
.notice{
    color: var(--red-color);
}

/* layout */
.bd-grid{
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}
.l-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--red-color);
    transition: .3s;
}

/* nav */
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media screen and (max-width: 765px){
    .nav_menu{
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 40%;
        height: 100%;
        padding: 2rem;
        background-color: rgba(255,255,255,.8);
        transition: .5s;
        backdrop-filter: blur(10px);
    }
}
.nav_item{
    margin-bottom: var(--mb-4);
}
.nav_link{
    position: relative;
    color: var(--black-color);
}
.nav_link:hover{
    color: var(--red-color);
}
.nav_logo{
    color: var(--black-color);
    font-size: var(--h2-font-size);
}
.nav_toggle{
    color: var(--black-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* show menu */
.show{
    right: 0;
}

/* active menu */
.active::after{
    position: absolute;
    content: "";
    width: 100%;
    height: .18rem;
    left: 0;
    top: 1.6rem;
    background-color: var(--blue-color);
}

/* home */
.home{
    position: relative;
    bottom: var(--header-height);
    /* background: linear-gradient(to bottom right, var(--red-color) 0%, 30%, var(--blue-color) 100%); */
    background: var(--white-color);
    overflow: hidden;
}
.home_container{
    position: relative;
    height: calc(100vh);
}
.home_about{
    align-self: flex-start;
    padding: 20px;
    margin-top: calc(var(--header-height) + var(--mb-3));
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    background-color: var(--white-color);
    z-index: var(--z-tooltip);
    max-width: 650px;
}
.about_title{
    display: block;
}
.home_bg{
    background: linear-gradient(to bottom right, var(--red-color) 0%, 30%, var(--blue-color) 100%);
    position: absolute;
    right: -10%;
    transition: .5s;
    height: 100%;
    width: 120%;
}
.home_logo{
    position: absolute;
    min-width: 500px;
    bottom: -4%;
    transition: .5s;
}
.home_img{
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 356px;
    transition: .5s;
}
#cv_btn{
    background: linear-gradient(to bottom right, var(--lgreen-color) 0%, 40%, var(--orange-color) 100%);
}
#portfolio_btn{
    background: linear-gradient(to bottom right, var(--blue-color) 0%, 40%, var(--lgreen-color) 100%);
}

/* experience */
.experience_container{
    justify-items: center;
}
.experience_img{
    position: relative;
    overflow: hidden;
    height: 90%;
    /* float: left; */
}
.experience_link{
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--mb-2);
    background-color: var(--red-color);
    opacity: 0.9;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .3s;
}
.experience_img:hover .experience_link{
    bottom: 0;
}
.experience_name{
    font-size: var(--h2-font-size);
    font-weight: var(--superbold-font-weight);
    color: var(--black-color);
}

/* portfolio */
.portfolio{
    background-color: var(--white-color);
}
.portfolio_container{
    justify-items: center;
}
.portfolio_img{
    position: relative;
    overflow: hidden;
    float: left;
    /* background-color: #2196F3; */
    /* color: #ffffff; */
    /* width: 100px; */
    /* line-height: 100px; */
    /* text-align: center;
    margin: 2px; */
    display: none; /* Hidden by default */
}
  
  /* The "show" class is added to the filtered elements */
.show {
    display: block;
}
#filter_container{
    text-align: center;
    justify-items: center;
    /* justify-content: center; */
    margin-bottom: var(--mb-2);
    background-color: var(--lgreen-color);
    width: 100%;
    /* margin-left: var(--mb-2); */
}
.filter{
    background: linear-gradient(to bottom right, var(--blue-color) 0%, 60%, var(--lgreen-color) 100%);
}
  /* Add a light grey background on mouse-over */
.filter:hover {
    background: linear-gradient(to bottom right, var(--lgreen-color) 0%, 40%, var(--orange-color) 100%);
}
  /* Add a dark background to the active button */
.filter.filter_active {
    background: linear-gradient(to bottom right, var(--lgreen-color) 0%, 40%, var(--orange-color) 100%);
    font-weight: var(--bold-font-weight);
}
.portfolio_link{
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--mb-3);
    background-color: var(--blue-color);
    opacity: 0.9;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .3s;
}
.portfolio_img:hover .portfolio_link{
    bottom: 0;
}
.portfolio_link-name{
    font-weight: 300;
    font-size: var(--h1-font-size);
    color: var(--black-color);
}
.description{
    font-family: var(--body-font);
    font-weight: var(--bold-font-weight);
    color: var(--black-color);
}
.tags{
    font-size: var(--h2-font-size);
    font-weight: var(--bold-font-weight);
    color: var(--black-color);
}

/* contact */
.contact_container{
    padding: 20px;
    background: linear-gradient(to bottom right, var(--red-color) 0%, 30%, var(--blue-color) 100%);
    color: var(--black-color);
    text-align: center;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.info{
    display: inline;
    margin: var(--mb-1);
    font-weight: var(--bold-font-weight);
}
.contact_info{
    color: var(--white-color);
    margin: var(--mb-1);
    font-size: var(--normal-font-size);
}
.contact_note{
    color: var(--white-color);
    font-size: var(--normal-font-size);
    font-weight: var(--bold-font-weight);
    margin-bottom: var(--mb-2);
}
.quick_link{
    margin: var(--mb-1);
    font-size: var(--h1-font-size);
    color: var(--white-color);
}
.quick_link:hover{
    color: var(--red-color);
}
.contact_input{
    width: 100%;
    padding: .8rem;
    outline: none;
    border: 1.5px solid var(--blue-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-2);
}
.contact_button{
    display: block;
    background-color: var(--red-color);
    color: var(--white-color);
    padding: .75rem 2.5rem;
    margin-left: auto;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
}

/* media queries */
@media screen and (min-width: 765px){
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
    body{
        margin: 0;
    }
    .btn{
        margin-bottom: 0;
    }
    .section{
        padding-top: 4rem;
    }
    .section_title{
        margin-bottom: 3rem;
    }
    .section_title::after{
        width: 64px;
        top: 5rem;
    }
    .nav{
        height: calc(var(--header-height) + 1rem);
    }
    .nav_list{
        display: flex;
    }
    .nav_item{
        margin-left: var(--mb-4);
        margin-bottom: 0;
    }
    .nav_toggle{
        display: none;
    }
    .nav_link:hover{
        color: var(--white-color);
    }
    .active::after{
        background-color: var(--white-color);
    }
    .home_container{
        margin-top: calc(var(--header-height) + var(--mb-2));
        height: 100vh;
    }
    .home_logo{
        min-width: 400px;
        bottom: -4%;
        right: -2%;
    }
    .home_img{
        width: 640px;
        right: 5%;
        bottom: 10%;
    }
    .home_bg{
        width: 80%;
        height: 65%;
        max-height: 700px;
        max-width: 900px;
        bottom: 10%;
        right: 0px;
    }
    .experience_container{
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio_entries{
        grid-template-columns: repeat(2, 1fr);
    }
    .filter{
        margin-bottom: var(--mb-2);
    }
    .contact_container{
        justify-items: center;
        grid-template-columns: repeat(2,1fr);
        /* padding-right: var(--mb-6); */
    }

    .contact_info{
        font-size: var(--h2-font-size);
        margin-top: var(--mb-4);
    }
    .quick_link{
        display: block;
    }
    .contact_form{
        width: 600px;
    }
    #message{
        height: 10rem;
    }
}

@media screen and (min-width: 390px){
    .about_title{
        display: inline;
    }
}

/* projects */
.text{
    text-align: justify;
    margin-top: var(--mb-1);
    margin-bottom: var(--mb-1);
}
.text_body{
    padding: .5rem .5rem 1rem .5rem;
}
.intro_container{
    margin-top: var(--mb-1);
    margin-bottom: var(--mb-1);
}
.intro_subtitle{
    font-family: var(--title-font);
    font-weight: var(--bold-font-weight);
    color: var(--dgreen-color);
    text-align: center;
}
.collapsible {
    background: linear-gradient(to bottom right, var(--lgreen-color) 0%, 60%, var(--dgreen-color) 100%);
    color: var(--black-color);
    cursor: pointer;
    padding: var(--mb-2);
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
}
  
  .c_active, .collapsible:hover {
    background: linear-gradient(to bottom right, var(--dgreen-color) 0%, 60%, var(--lgreen-color) 100%);
}
  
.content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: var(--lgreen-color);
}
.half_img {
    width: 100%;
    display: flex;
    justify-content: center;
}
.half_img_s {
    width: 300;
    display: flex;
    margin: auto;
}
.s_img{
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.banner{
    width: 100%;
    margin: 0 auto var(--mb-1) auto;
}
.to_top{
    background: transparent;
    border: none;
    outline: none;
    font: var(--body-font);
}
.to_top:hover{
    cursor: pointer;
}
#footer{
    width: 100%;
    margin: 0px auto;
}
.footer_container{
    padding-bottom: var(--mb-2);
    margin: auto;
    text-align: center;
    justify-content: center;
}

/* slideshow */
.slideshow-container {
    position: relative;
    margin: auto;
}
.mySlides {
    display: none;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 44%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--dgreen-color);
    font-weight: bold;
    font-size: var(--h1-font-size);
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    color: var(--lgreen-color);
}

/* tabs */
.tab button{
    background: linear-gradient(to bottom right, var(--blue-color) 0%, 60%, var(--lgreen-color) 100%);
}
  /* Add a light grey background on mouse-over */
.tab button:hover {
    background: linear-gradient(to bottom right, var(--lgreen-color) 0%, 40%, var(--orange-color) 100%);
}
  /* Add a dark background to the active button */
.tab button.tab-active {
    background: linear-gradient(to bottom right, var(--lgreen-color) 0%, 40%, var(--orange-color) 100%);
    font-weight: var(--bold-font-weight);
}

/* miniwheg */
.s_mw0, .s_mw1, .s_mw2{
    height: 300px;
    width: 300px;
    overflow: hidden;
}

/* merry gizmomas */
.vid_container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    margin-bottom: var(--mb-2);
  }
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }

/* projects media queries */
@media screen and (min-width: 765px){
    /* .subsection{
        padding-top: 4rem;
    } */
    .intro_container{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        margin: var(--mb-1) 0 0 0;
    }
    .text{
        margin-right: var(--mb-1);
    }
    .eng_container{
        grid-template-columns: repeat(2,1fr);
    }
    .mini_gallery{
        grid-template-columns: repeat(2,1fr);
    }
    .text_body{
        padding: .5rem 1rem 1rem 1rem;
        text-align: justify;
    }
    .s_mw0, .s_mw1{
        height: 400px;
        width: 400px;
        /* background: var(--lgreen-color); */
    }
    .s_mw2{
        height: 600px;
        width: 600px;
    } 
    .project_title{
        margin-top: calc(var(--header-height) + 1rem);
    }
}

@media screen and (min-width: 1024px){
    .s_mw2{
        height: 600px;
        width: 1000px;
    } 
    .contact_form{
        width: 800px;
    }
}

@media screen and (min-width: 1500px){
    .prev{
        left: -3.5rem;
    }
    .next {
        right: -3.5rem;
    }
}