/* ========================================= Global Setting ========================================= */
* {
    box-sizing: border-box;
}

body {
    width:100%;
    font-family: "Josefin Sans", sans-serif;
    margin: 0;
    color: #1C1C1C; /*font color*/

    -webkit-user-select: none; 
    -ms-user-select: none;      
    user-select: none;         
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}









/* ========================================= Words & Project Shift Button ========================================= */
/*category, control the interaction*/
.project-interaction-container.category {
    display: none;
}
.project-interaction-container.category.active {
    display: flex; 
    animation: fadeIn 0.5s ease-out forwards;
}
.project-interaction-container.category.out {
    display: flex; 
    animation: fadeOut 0.5s ease forwards;
}
/*project-interaction-container, only control the stytle*/
#project-interaction-container {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-out forwards;
}
.projectList,
.project-interaction-container {
    padding-left: 38px;
    padding-right: 38px;
}
#pc-projects {
    padding-left: 0px;
    padding-right: 0px;
}
.projectList {
    padding-top: 78px; /*margin is outside distance, will push other elements away, but padding is inside*/
    /*must use padding or the btn will be pushed down*/
}
.hero_title_wrapper {
    flex: 0 0 clamp(150px, 22vw, 350px);
    padding-right: 8vw;
}
.hero_title_text {
    flex: 0 0 clamp(280px, 28vw, 450px);
    font-size: 36px; 
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    color:#1C1C1C;
}
.project_date {
    color: #1C1C1C; 
    font-size: 18px;
    font-weight: 300;
}
.project_details_panel {
    display: flex; 
    align-content: flex-start;
}
.project_intro_text {
    font-size: 20px;
    color: #1C1C1C;
    padding-right: 9vw;
    font-weight: 300;
}
.gallery_container {
    flex: 0 0 clamp(380px, 32vw, 600px);
    display: flex;
    height: 26vh;
    gap: 8px;
}
.gallery_item {
    flex: 0.5; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    overflow: hidden;
    cursor: pointer;
    position: relative;

    filter: grayscale(100%); /* no color for no selecting img*/
}
.gallery_item.active {
    flex: 5; /* larger than no-selecting state */
    filter: grayscale(0%); /* color back */
}
.gallery_item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* The switching function is exclusively controlled by .category */

/* ------------------------- Floating Button -------------------------------- */
.float-btn {
    transition: opacity 0.3s ease;

    position: fixed;
    font-size: 84px;
    font-weight: 500;
    line-height: 1.1;
    
    width: fit-content;
    height: fit-content;
    /*background: #ff5722;*/
    color: #1C1C1C;

    /* Key: Make sure the center of the transformation is in the center of the object*/
    transform-origin: center;
    /* Fixed an issue where HTML coordinates start from the upper left corner */
    
    display: inline-block;
    padding: 4px;
    text-decoration: none; /*donot inheret the default html style*/
    text-align: left;
    cursor: pointer;

    z-index: 500;
}
#float-myname-btn{
    color: #FFFFFF;
    background-color: #1C1C1C;
    padding-right: 28px;
    padding-left: 28px;
    padding-top: 28px;
    padding-bottom: 22px;
    letter-spacing:0.16ch;
}

.inner {
    transition: all 0.3s ease;
}
.inner.hover {
    font-size: 86px;
}

/* animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0px); }
    to { opacity: 0; transform: translateX(10px); }
}

.hero_title_text.active, 
.project_date.active, 
.project_intro_text.active {
    animation: fadeIn 0.5s ease-out;
}

.hero_title_text.out, 
.project_date.out, 
.project_intro_text.out {
    animation: fadeOut 0.5s ease;
}

.float-btn.dimmed {
    opacity: 0.2;
}









/* ========================================= Navigation - public ========================================= */

/*-------------navigation bar part------------*/
/*-------------navigation style------------*/
.nav_inside{
    display: flex; /* Have to have this for those below */
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #1C1C1C;
}

.navigation{
    position: fixed; /*it fixed the position, but lose to fit fullscreen, it's the box's self width*/
    width: 100%; /*fill screen width*/
    box-sizing: border-box; /*make sure padding add inside, not push the box more wide than screen*/
    top: 0;
    left: 0;
    z-index: 1000; /*make sure navi is above everything, this means coordinate z = 1000, default auto:0*/

    padding-left: 38px; 
    padding-right: 38px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px); /*the grass blur texture*/

    transition: all 0.2s linear;
}

.NavAndHeading04_SemiBold{
    font-size: 20px;
    font-weight: 600;
}

.nav_buttons{
    display: flex; /* Have to have this for those below */
    flex-direction: row;
    gap: 30px;
}
/*-------------navigation animation------------*/
#main-page-btn{
    transition: all 0.3s ease;
}
#main-page-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}

#archive-btn{
    transition: all 0.3s ease;
}
#archive-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}

#contact-btn{
    transition: all 0.3s ease;
}
#contact-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}

#About-btn{
    transition: all 0.3s ease;
}
#About-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}
/*----------navigation hamburger for mobile-----------*/
ul {
    list-style: none; /* no black dots */
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;

    transition: transform 0.3s ease-in-out;
}

.hamburger .bar {
    width: 20px;
    height: 2px;
    background-color: #1C1C1C;

    transition: all 0.3s ease;
}

/*---------navigation mobile----------*/
.nav-links {
    position: fixed; 
    top: 0;
    right: -100%; /* default: right side out of the screen */
    width: 100%; 
    height: 100vh; 
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px); /*the grass blur texture*/

    padding-left: 16px;
    padding-right: 16px;
    padding-top: 48px;
    margin-top: 51px;
    
    transition: right 0.4s ease-in-out; /* slide-in animation */
}

.nav-links.active { /* active status */
    right: 0; 
}

.nav-links li {
    width: 100%;
    margin: 12px 0;
    border-bottom: 0.5px solid #FFFFFF; 
    padding-bottom: 8px;
    padding-top: 8px;
}

.nav-links a {
    color: #FFFFFF; 
    font-size: 16px;
    font-weight: 300;
}

.NavAndHeading04_SemiBold.active {
    color: #FFFFFF;
}

.hamburger.active{
    transform: rotate(90deg);
}

.hamburger.active .bar {
    background-color: #FFFFFF;
}

.navigation.mobile{
    position: fixed; /*it fixed the position, but lose to fit fullscreen, it's the box's self width*/
    width: 100%; /*fill screen width*/
    box-sizing: border-box; /*make sure padding add inside, not push the box more wide than screen*/
    top: 0;
    left: 0;
    z-index: 1000; /*make sure navi is above everything, this means coordinate z = 1000, default auto:0*/

    padding: 0 16px;
    background-color: rgba(28, 28, 28, 1);
    backdrop-filter: blur(10px); /*the grass blur texture*/

    transition: all 0.2s linear;
}

body.no-scroll { /* no scroll */
    overflow: hidden !important; 
    height: 100vh !important;    
}








/* ========================================= Banner&Filter - private - archivePage ========================================= */

/*-------------archive banner part------------*/
/*-------------archive banner------------*/
#lineCanvas { /* set this because the js canvas is the whole screen, it blocks other interaction*/
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* 关键：鼠标会穿过画布，点击到下面的按钮 */
    z-index: 1; /* 确保它在合适层级，但不遮挡交互 */
}

.physics-item {
    position: absolute; /* 必须！脱离文档流 */
    top: 0;             /* 起始点清零 */
    left: 0;            /* 起始点清零 */
    padding: 2px;

    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 88px;
    
    /* 配合 JS 的 translate(-50%, -50%) */
    transform-origin: center; 
    display: inline-block;

    pointer-events: none;
}

.banner_img_container{
    position: relative;
    width: 382.29px;
    height: 300px;
    color:#1C1C1C;
}

/*-------------archive filter part------------*/
/*-------------archive filter style------------*/
.filter_up{
    gap: 30px;
    display: flex;
    justify-content: flex-end;
}

.filter_down{
    gap: 30px;
    display: flex;
    justify-content: flex-end;
    font-weight: 300;
}

.filter{
    gap: 11px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.filter_btn.selected {
    font-weight: 600;
    letter-spacing: 0.1em;
}

.filter_btn {
    font-size: 20px;
    font-weight: 300;
}

.line{
    width: 0px;
    height: 12px;
    border-left: 1px solid #1C1C1C;
    display: flex;
    align-self: center;
}

.banner_inner{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 1280px; 
    padding-left: 38px; 
    padding-right: 38px;
}

@keyframes add-shadow {
    to {
        box-shadow: 0px 4px 50px rgba(28, 28, 28, 0.2);
    }
}

.banner{
    display: flex;
    justify-content: center;
    padding-bottom: 48px;
    width: 100%;

    position: sticky;
    top: -120px;

    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 500;

    animation-name: add-shadow;
    animation-fill-mode: both;
    animation-timeline: scroll();
    animation-range: 0px 100px;

    overflow: hidden;
}
/*-------------filter hover animation------------*/
#PC-filter,
#MA-filter,
#UXD-filter,
#PD-filter,
#SD-filter,
#Vi-filter,
#ALL-filter,
#Game-filter {
    transition: all 0.3s ease;
}
#PC-filter:hover,
#MA-filter:hover,
#UXD-filter:hover,
#PD-filter:hover,
#SD-filter:hover,
#Vi-filter:hover,
#ALL-filter:hover,
#Game-filter:hover {
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
}












/* ========================================= Cards - private - archivePage ========================================= */

/*-------------below are cards------------*/
/*-------------below are pictures management------------*/
.img_container{
    width: 100%;
    height: 210px;
    overflow: hidden;
}
.img_container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*---------------------------------------*/
.bodyFont{
    font-size: 16px;
    font-weight: 400;
}

.bodyFont_light{
    font-size: 16px;
    font-weight: 300;
}

.line_2{
    width: 0px;
    height: 10px;
    border-left: 1px solid #1C1C1C;
}

.right_text_up{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.right_text_down{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.right_text{
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: 2px;
}

.card_text_up{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.description{
    width: 100%;
    font-size: 14px;
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
}

.card_text{
    width: 100%;
    display: flex;
    gap: 18px; /*gap also need display: flex; */
    flex-direction: column;
    padding-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom: 1px solid #1C1C1C;
}

.card{
    display: flex;
    gap: 24px;
    flex-direction: column;
}

.card_container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 38px;
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 120px;
    row-gap: 36px;

    max-width: 1280px;
    margin: 0 auto;
}

.left_text{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/*-------------below are cards hover animation------------*/
.img_container img {
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}
.card:hover .img_container img {
    transform: scale(1.1);
    filter: brightness(0.7);
}
.card_text{
    transition: all 0.3s ease;
}
.card_text_up{
    transition: all 0.3s ease;
}
.card:hover .card_text{
    margin-top:-70px;
    z-index: 4;
    gap: 28px;
    margin-bottom: 60px;
}
.card:hover .card_text_up{
    color: #FFFFFF; /*font color*/
}
.card:hover .line_2{
    border-left: 1px solid #FFFFFF;
}







/* ========================================= ContactBar & Buttom - public ========================================= */

/*-------------below are contact bar part------------*/
.NavAndHeading04 {
    font-size: 20px;
    font-weight: 300;
}

.container_inside{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.container_inside_I{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

.NavAndHeading04_slash{
    font-size: 20px;
    font-weight: 300;
    text-decoration: underline;
    width: 100%;
}

.nav_contact{
    display: flex;
    gap: 80px;
}

.nav_contact_I{
    display: flex;
    justify-content: center;
    gap: 108px;
}

.bar_container{
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.nav_contact div:nth-of-type(1){
    width: 10vw;
}
.nav_contact div:nth-of-type(2){
    width: 7vw;
}

.bar_container_I{
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: center;
}

.comma_container{
    height: 13px;
    width: 15px;
}

.quotationComma{
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.contact_bar{
    display: flex;
    flex-direction: row;
    padding-left: 38px;
    padding-right: 38px;
    padding-top: 68px;
    padding-bottom: 68px;
    justify-content: space-between;

    background-color: #F9F9F9;
}

.contact_bar_I{
    display: flex;
    flex-direction: column;
    padding-left: 38px;
    padding-right: 38px;
    padding-top: 120px;
    padding-bottom: 120px;

    background-color: #F9F9F9;
    gap: 120px;
}

.phrase{
    display: flex;
    flex-direction: column;
    max-width: 354px;
    gap: 10px;
}

.phrase_I{
    display: flex;
    align-self: center;
    flex-direction: column;
    max-width: 354px;
    gap: 10px;
}

.intro_phrase{
    width: 100%;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
}

.container_inside .NavAndHeading04,
.container_inside_I .NavAndHeading04 {
    transition: all 0.3s ease;
}
.container_inside .NavAndHeading04:hover,
.container_inside_I .NavAndHeading04:hover {
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* blow are the bottom */
.bodyFont{
    font-size: 16px;
    font-weight: 300;
}

.bottom{
    display: flex;
    justify-content: space-between;

    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 20px;

    background-color: #F9F9F9;
}






/* ========================================= AboutMe - private ========================================= */
.content_container {
    display: flex;
    flex-direction: column;
}
/* blow are the first */
.intro_text{
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 30%;
    height: auto;
    padding-left: 40px;
}
.intro_text .bodyFont{
    display: flex;
    flex-wrap: wrap;
    color:#FFFFFF;
    font-weight: 400;
}
.contact_btn{
    width: 30%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 40px;
    padding-right: 20px;
    background-color: #000000;
}
.contact_btn .line_2{
    height: 14px;
    border-left: 1px solid #FFFFFF;
}
.contact_btn .bodyFont{
    color:#FFFFFF;
}
.up_part{
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.down_part{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding-left: 40px;
}
.introduction_layout{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 32px;
    padding-top: 90px;
    margin-top: 51px;

    /* set bg picture */
    background-image: url('images/AboutMe/Mewithcamera.webp');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;

    width: 100%;
    height: calc(100vh - 51px);
    position: relative; 
}
.DisplayH1{
    font-size: 128px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    flex-wrap: nowrap;
}
.contact_btn .bodyFont{
    transition: all 0.3s ease;
}
.contact_btn .bodyFont:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}
/* --------------- mobile page ---------------- */
.intro_text > div:nth-of-type(3),
.intro_text > div:nth-of-type(4) {
    display: none;
}

/* blow are the second */
.card_toolKit{
    color:#FFFFFF;
    text-align: center;
    background-color: rgba(70, 66, 45, 0.6);
    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;

    width: 18vw;
    height:45vh;
}
.Heading03{
    font-weight: 400;
    font-size: 24px;
}
.card_toolKit .NavAndHeading04{
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom:1px solid rgba(255, 255, 255, 0.5);
}
.card_toolKit > div > .NavAndHeading04:last-child {
    border-bottom: none;
}
.left_col {
    margin-top: 10vh;
    margin-bottom: 10vh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 8vh;
}
.right_col {
    margin-top: 10vh;
    margin-bottom: 10vh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 8vh;
}
.toolKit {
    aspect-ratio: 1280.29 / 905;
    background-image: url('images/AboutMe/Myshadow.webp');
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;

    width: 100%;
    min-height: 100vh;
    position: relative; 

    display: flex;
    align-items: center; 
    
    padding: 0 10%; 
    box-sizing: border-box;

    margin-top: -2px; /* a white line showup inbetween the 2 page, want to delete it*/
}
#need_wrap{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card_toolKit > div:nth-of-type(1) {
    width: 90%;
}
.scroll_part{
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}







/* ========================================= project_metaphor - private - ========================================= */
.first_part {
    display: flex;
    flex-direction: column;
}
.up_container{
    margin-top: 51px;
    height: calc((100dvh - 51px) / 6*5);
    width: 100%;
    overflow: hidden;

    position: relative;
}
.up_container img{
    width: 100%;
    height: 100%;/* img zoom out abit */
    object-fit: cover;
}
.hero_title {
    position: absolute;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: #FFFFFF;
    font-size: 128px; 
    font-weight: 700; 
    
    z-index: 10;
    white-space: nowrap;
}

.osc > div:nth-of-type(2){
    font-size: 10px;
    font-weight: 300;
}
.osc{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
.bodyFont_slash{
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
}
.down_container > div:nth-of-type(1){
    display: flex;
    flex-wrap: wrap;
    width: 26vw;
}
.bar_container .container_inside{
    display: flex;          
    flex-direction: column;
    gap: 8px;
}
.right_side_part .bar_container{
    display: flex;
    gap: 12px;
}
.right_side_part{
    display: flex;
    flex-direction: column;
    flex-direction: row;
    gap: 68px;
}
.down_container{
    padding-left: 58px;
    padding-right: 58px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding-top: 22px;    
    padding-bottom: 22px;
    height: calc((100dvh - 51px) / 6);
}





/* ========================================= Breaking Points - public ========================================= */
@media screen and (max-width: 1290px) {
    .card_toolKit{
        width: 20vw;
        height:40vh;
    }
}

@media screen and (max-width: 1212px) { /* breaking point from 3items a row to 2*/
    .card_container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 38px;
        padding-left: 38px;
        padding-right: 38px;
        padding-bottom: 120px;
        row-gap: 36px;

        max-width: 1280px;
        margin: 0 auto;
    }
    .img_container{
        width: 100%;
        height: auto;
        overflow: hidden;

        /* find that the img container change ratio, then affects the layout*/
        aspect-ratio: 16 / 9;
    }

    .nav_contact div:nth-of-type(2){
        width: 20vw;
    }
    .nav_contact div:nth-of-type(1){
        width: fit-content;
    }
}

@media screen and (max-width: 1081px) {
    .filter_up,
    .filter_down {
        gap: 16px; 
    }

    .filter .NavAndHeading04{
        font-size: 20px;
    }
}

@media screen and (max-width: 995px) {
    .filter_up,
    .filter_down {
        gap: 10px; 
    }

    .filter .NavAndHeading04{
        font-size: 18px;
    }
}

@media screen and (max-width: 927px) { /*banner breaking point*/
    /*the text in the filter will affect the decorative Archive letters*/
    .banner_inner{
        display: flex;
        flex-direction: column;
        /*why i cant use align-content?*/
        align-items: flex-start;
        width: 100%;
        max-width: 1280px; 
        padding-left: 38px; 
        padding-right: 38px;

        gap: 20px;
    }
    .filter_up{
        gap: 30px;
        display: flex;
        justify-content: flex-start;
    }
    .filter_down{
        gap: 30px;
        display: flex;
        justify-content: flex-start;
        font-weight: 300;
    }
}
@media screen and (max-width: 828px) {
    .bottom{
        padding-left: 16px;
        padding-right: 16px;
    }
    .hamburger {
        display: flex;
    }
    .nav_buttons{
        display: none;
    }
    .card_container{
        display: grid;
        grid-template-columns: repeat(1, 1fr);

        gap: 38px;
        padding-left: 38px;
        padding-right: 38px;
        padding-bottom: 120px;
        row-gap: 36px;

        max-width: 1280px;
        margin: 0 auto;
    }
    .contact_bar{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 38px;
        padding-right: 38px;
        padding-top: 68px;
        padding-bottom: 68px;
        gap: 96px;

        background-color: #F9F9F9;
    }
    .nav_contact{
        display: flex;
        justify-content: space-between;
        width:100%;
    }
    .bar_container{
        display: flex;
        flex-direction: column;
        align-content: space-between;
    }
    .phrase{
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width:100%;
        gap: 10px;
    }
    .banner_img_container{
        display: flex;
        justify-content: flex-start;
        height: 21vh;
        width: 80vw;
        aspect-ratio: 145 / 115;
        flex-direction: column;
    }
    .banner{
        padding-bottom: 24px;

        position: sticky;
        top: -80px;
    }

}

@media screen and (max-width: 696px){
    .filter .NavAndHeading04{
        font-size: 16px;
    }
    .filter_up,
    .filter_down {
        gap: 16px; 
    }
}

@media screen and (max-width: 490px){
    .filter .NavAndHeading04{
        font-size: 14px;
    }
}

@media screen and (max-width: 540px){
    .filter_up,
    .filter_down {
        gap: 12px; 
    }
    .banner_inner, 
    .card_container, 
    .contact_bar, 
    .navigation.mobile,
    .navigation {
        padding-left: 16px; /* original one is 38px */
        padding-right: 16px;
    }
    .card_text .bodyFont,
    .description{
        font-size: 14px;
    }
    .left_text .NavAndHeading04_SemiBold,
    .nav_contact .NavAndHeading04_slash,
    .nav_contact .NavAndHeading04,
    .nav_inside .NavAndHeading04_SemiBold,
    .intro_phrase{
        font-size: 16px;
    }
    .banner{
        position: sticky;
        top: -35px;
    }
    .hamburger .bar {
        width: 16px;
        height: 2px;
    }
    .nav-links {
         margin-top: 47px;
    }
    /* AboutMe page I */
    .intro_text > div:nth-of-type(3),
    .intro_text > div:nth-of-type(4) {
        display: flex;
    }
    .intro_text > div:nth-of-type(1),
    .intro_text > div:nth-of-type(2) {
        display: none;
    }

}

@media screen and (max-width: 431px){
    .filter_up,
    .filter_down {
        gap: 8px; 
    }
    .filter .NavAndHeading04{
        font-size: 14px;
    }
    #PC-filter:hover,
    #MA-filter:hover,
    #UXD-filter:hover,
    #PD-filter:hover,
    #SD-filter:hover,
    #Vi-filter:hover,
    #ALL-filter:hover,
    #Game-filter:hover {
        font-weight: 600;
        letter-spacing: 0.02em;
        cursor: pointer;
    }
    .physics-item {
        font-size: 78px; 
    }
}

@media screen and (max-width: 376px){
    .filter .NavAndHeading04{
        font-size: 13px;
    }

    #PC-filter:hover,
    #MA-filter:hover,
    #UXD-filter:hover,
    #PD-filter:hover,
    #SD-filter:hover,
    #Vi-filter:hover,
    #ALL-filter:hover,
    #Game-filter:hover {
        font-weight: 500;
        letter-spacing: 0em;
        cursor: pointer;
    }
}

@media screen and (max-width: 1205px){
    .contact_btn .line_2{
        display: none;
    }
    .contact_btn{
        flex-direction: column;
        gap: 12px;
        padding-left: 40px;
        background-color: rgba(0, 0, 0, 0);
    }
    .contact_btn .bodyFont{
        width: fit-content;
        background-color: #000000;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 4px;
        padding-right: 4px;
        font-size: 16px;
    }
    .intro_text{
        gap: 12px;
        width: 40%;
    }
    .down_part .DisplayH1{
        font-size: 96px;
    }
}

@media screen and (max-width: 730px){
    .down_part .DisplayH1{
        font-size: 68px;
    }
    .introduction_layout{
        padding-top: 48px;
        padding-bottom: 32px;
        margin-top: 47px;
        height: calc(100vh - 47px);
        background-position: 43%, 38%; /*move bg img to right a bit*/
    }
    .intro_text{
        gap: 12px;
        width: 50%;
        height: auto;
        padding-left: 16px;
    }
    .down_part{
        padding-left: 16px;
    }
    .contact_btn{
        flex-direction: column;
        gap: 12px;
        padding-left: 16px;
        background-color: rgba(0, 0, 0, 0);
    }
    .contact_btn .bodyFont{
        font-size: 16px;
    }
}

@media screen and (max-width: 390px){
    .introduction_layout{
        background-position: 43% 38%; /*move bg img to right a bit*/
    }
}

/* AboutMe page II */
@media screen and (min-width: 1660px){
    .card_toolKit{
        gap: 18px;

        width: 16vw;
        height:36vh;
    }
}

@media screen and (max-width: 1182px){
    .card_toolKit{
        gap: 18px;

        width: 20vw;
        height:36vh;
    }
    .card_toolKit .NavAndHeading04{
        font-size: 16px;
    }
    .card_toolKit .Heading03{
        font-size: 20px;
    }
}
@media screen and (max-width: 600px){
    .toolKit {
        background-position: 45% 40%; /*move bg img to right a bit*/
        overflow: hidden;
        padding: 0 0;
    }
    .card_toolKit .NavAndHeading04{
        font-size: 16px;
    }
    .card_toolKit .Heading03{
        font-size: 14px;
    }
    .card_toolKit{
        gap: 16px;

        width: 46vw;
        height:30vh;
    }
    .left_col,
    .right_col {
        flex-direction: row;
        flex-shrink: 0; /*create overflow*/
        gap: 5vh;
    }
    .scroll_part{
        display: flex;
        overflow-x: auto;
        gap: 5vh;
        scrollbar-width: none;

        width: 100%;
        max-width: 100vw;
        padding-top: 30vh;
        padding-right: 32vw;
        padding-left: 32vw;
        direction: rtl;
    }
}
@media screen and (max-width: 376px){
    .scroll_part{
        padding-top: 50vh;
    }
    .card_toolKit .NavAndHeading04{
        font-size: 16px;
    }
    .card_toolKit .Heading03{
        font-size: 14px;
    }
    .card_toolKit{
        width: 46vw;
        height:38vh;
    }
}
/* for the project page */
@media screen and (min-height: 1073px){
    .osc > div:nth-of-type(2){
        font-size: 14px;
    }
    .bodyFont_slash,
    .down_container > div:nth-of-type(1),
    .bar_container .bodyFont_light {
        font-size: 20px;
    }

    /*for the mainpage btn*/
    .float-btn {
        font-size: 112px;
    }
    .inner.hover {
    font-size: 114px;
}
}
@media screen and (max-width: 894px){
    .down_container > div:nth-of-type(1){
        width: 40vw;
    }
    .right_side_part{
        gap: 32px;
    }
}
/* this part not finished yet */

/*main page breaking point*/
@media screen and (max-width: 1000px){
    .project_intro_text{
        padding-right: 4vw;
    }
    .hero_title_wrapper{
        flex: 0 0 clamp(120px, 15vw, 350px);
    }
    .gallery_container{
        flex: 0 0 clamp(400px, 48vw, 700px);
    }
    .project_date,
    .project_intro_text {
        font-size: 16px;
    }
    .hero_title_text{
        font-size: 24px;
    }
    .hero_title_wrapper {
        padding-right: 4vw;
    }
}
@media screen and (max-width: 740px){
    .project_details_panel{
        display: none;
    }
    .gallery_container{
        flex: 1;
        width: 100%;
        height: 200px;
    }
    #projectContainer.active{
        margin-top: 64px;
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media screen and (max-width: 376px){
    .gallery_container{
        height: 160px;
    }
}
@media screen and (min-width: 1653px){
    .hero_title_wrapper {
        flex: 0 0 clamp(180px, 28vw, 380px);
    }
}
@media screen and (min-height: 874px){
    .card_toolKit{
        height: 36vh;
    }
}
@media screen and (max-width: 1280px) {
    /*for the mainpage btn*/
    .float-btn {
        font-size: 68px;
    }
    .inner.hover {
    font-size: 70px;
    }
}
@media screen and (max-width: 1008px) {
    /*for the mainpage btn*/
    .float-btn {
        font-size: 68px;
    }
    .inner.hover {
    font-size: 70px;
    }
}
@media screen and (max-width: 780px) {
    /*for the mainpage btn*/
    .float-btn {
        font-size: 54px;
    }
    .inner.hover {
    font-size: 56px;
    }
    #float-myname-btn {
        padding-right: 16px;
        padding-left: 16px;
        padding-top: 16px;
        padding-bottom: 10px;
    }
    .projectList {
        padding-top: 68px;
    }
}
@media screen and (max-width: 431px) {
    /* mobile - mainpage*/
    .float-btn {
        font-size: 44px;
    }
    .inner.hover {
    font-size: 46px;
    }
    .projectList, 
    .project-interaction-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    #float-myname-btn {
        padding-right: 10px;
        padding-left: 10px;
        padding-top: 10px;
        padding-bottom: 6px;
    }
    @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeOut {
        from { opacity: 1; transform: translateY(0px); }
        to { opacity: 0; transform: translateY(4px); }
    }



    /* text ontop of the img*/
    /* Set the parent container as the reference system */
    .gallery_item {
        position: relative; /* position the text relative to this box */
        display: inline-block; /* keep images in their original size */
        overflow: hidden; 
    }

    .gallery_item::before,
    .gallery_item::after {
        position: absolute; 
        z-index: 10; /* text is ontop of img */
        color: white; 
        background-color: #1C1C1C;
        pointer-events: none; 
        padding-left: 2px;
        padding-right: 2px;

        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.8s ease;
    }

    .gallery_item::before {
        content: attr(data-title);
        bottom: 22px;
        right: 10px;
        font-size: 20px;
        font-weight: 500;
    }

    .gallery_item::after {
        content: attr(data-date);
        bottom: 10px;
        right: 10px;
        font-size: 10px;
        font-weight: 400;
    }

    .gallery_item.active::before,
    .gallery_item.active::after {
        opacity: 1;
        transform: translateY(0); 
    }
}
@media screen and (max-width: 376px) {
    /* mobile - mainpage*/
    .float-btn {
        font-size: 35px;
    }
    .inner.hover {
    font-size: 37px;
    }

    .physics-item {
        font-size: 48px; 
    }
}