/* ========================================= 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;
}

.bodyFont_light{
    font-size: 14px;
    font-weight: 400;
}











/* ========================================= 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;    
}











/* ========================================= 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;
}









/* ========================================= 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: black;
    font-size: 96px; 
    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: 14px;
    font-weight: 400;
    text-decoration: underline;
}
.down_container > div:nth-of-type(1){
    display: flex;
    flex-wrap: wrap;
    width: 40vw;
}
.bar_container .container_inside{
    display: flex;          
    flex-direction: column;
    gap: 6px;
}
.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);
}





/* keep hotfix */
.KeepHotfix {
  /* FF FFE FA 是极浅的暖白，E8 F1 FF 是清爽的淡蓝 */
  background: linear-gradient(to bottom, #FFFEFA, #E8F1FF);
  
  /* 确保背景覆盖整个页面高度 */
  min-height: 100vh;
  margin: 0;
}



/* keep hotfix - ux optimization part */
/* --- 1. 外层滑动包装层 --- */
.scroller-wrapper {
    width: 100%;
    overflow-x: auto; 
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; 
    
    /* 清除可能存在的内外边距干扰 */
    margin: 0;
    padding: 0;
    padding-bottom: 40px; /* 给卡片底部的阴影留出空间 */
}

/* --- 2. 内层卡片轨道 --- */
.slider-track {
    /* 💡 关键 1：强制覆盖 .content-grid 可能带来的居中或网格影响 */
    display: flex !important; 
    flex-wrap: nowrap !important;
    justify-content: flex-start !important; /* 强制从最左侧开始排布 */
    align-items: center; 
    gap: 40px; /* 卡片间距，可随喜好调整 */
    
    /* 💡 关键 2：强制轨道宽度撑开，这是触发横向滚动的核心！ */
    width: max-content; 
    
    /* 💡 关键 3：这里设置左对齐的距离 (80px)。
       写在 track 上，左滑时图片就能顺滑地滑入屏幕最左侧的空白区域 */
    padding-left: 80px; 
    padding-right: 80px; /* 滑到最后一张图时，右侧也留出呼吸空间 */
    margin: 0 !important;
}

/* --- 3. 图片容器与卡片 --- */
.image-container {
    /* 💡 关键 4：绝对不许缩小！哪怕屏幕不够也给我撑开，这样才能滑动 */
    flex-shrink: 0; 
    
    /* 卡片宽度：60vw 意味着占屏幕宽度的 60%，右侧刚好会露出第二张图的一半 */
    width: 50vw; 
    height: auto;

    background-color: #f6f9ff;
}

/* 图片本身美化 */
.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; /* 稍微大一点的圆角更显高级 */
    box-shadow: 0 8px 24px rgba(0,0,0,0.06); /* 增加淡淡的弥散阴影，让卡片浮起来 */

    padding: 24px;
}

/* --- 滚动条整体高度 --- */
.scroller-wrapper::-webkit-scrollbar {
    height: 4px; /* 滑动 Bar 的粗细，8px 比较精致 */
    display: block; /* 确保滚动条显示 */
}

/* --- 滚动条的轨道 (背景) --- */
.scroller-wrapper::-webkit-scrollbar-track {
    background: #e8edf3; /* 非常淡的灰蓝色轨道背景 */
    border-radius: 6px;
    
    /* 💡 UX 细节：让滚动条的两端也留出 80px 的边距，和你的卡片对齐，显得非常讲究！ */
    margin: 0 80px; 
}

/* --- 滚动条的滑块 (拖动的那部分) --- */
.scroller-wrapper::-webkit-scrollbar-thumb {
    background: #d0d5dd; /* 滑块的默认颜色 (浅灰) */
    border-radius: 0px; /* 圆角滑块 */
}

/* --- 鼠标悬浮在滑块上时的交互反馈 --- */
.scroller-wrapper::-webkit-scrollbar-thumb:hover {
    background: #91a6c9; /* 鼠标放上去时颜色加深，提供明确的点击感 */
    cursor: pointer;
}




/* keep Hotfix pipeline detail part*/
:root {
  --accent-blue: #4a90e2;
  /* 定义一个全局对齐基准：圆点中心距离左边的距离 */
  --align-left: 60px; 
}


.showcase-container {
  min-width: 1280px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px;
  position: relative; /* 必须为 relative，作为连线的基准 */
  
  margin-top: 180px;
}

header {
  text-align: left;
  margin-bottom: 60px;
}

h1 {
  text-align: center;
  font-size: 3.8rem;
  font-weight: 500;
  color: #333;
  margin-left: -10px; /* 让大标题往左稍移，视觉上更平衡 */
}

/* 蓝色胶囊标题 */
.sub-title-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding-left: calc(var(--align-left) - 44px); /* 12px 是圆点半径 */
}

.sub-title-badge {
  display: flex;
  align-items: center;
  background: rgba(204, 230, 255, 0.8);
  padding: 8px 24px 8px 0; /* 左边设为0，由内部 dot 撑开 */
  border-radius: 50px;
  color: #000;
  font-weight: 500;
  font-size: 1.1rem;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 2; /* 确保在连线之上 */
}

.dot {
  width: 24px;
  height: 24px;
  background: rgba(100, 180, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px; /* 关键：这里的间距配合 header 的 padding 实现绝对对齐 */
}

.dot::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #4a90e2;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

/* 修改：左侧蓝色贯穿线 */
.side-decorator {
  position: absolute;
  /* 这里的 left 值必须与 --align-left 保持一致 */
  left: var(--align-left); 
  top: 220px; /* 线条从圆点位置开始，根据实际高度微调 */
  bottom: 50px; /* 延伸到页面底部 */
  width: 1.5px;
  background-color: var(--accent-blue);
  opacity: 0.4;
  z-index: 1; /* 在胶囊标题下方 */
}

/* 两栏布局 - 增加左间距避开线条 */
.content-grid {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  padding-left: calc(var(--align-left) + 20px);
  padding-bottom: 84px;
}

.card {
  flex: 1;
}
.card02 {
    flex: 0.6;
}

.image-wrapper {
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-wrapper:hover {
  transform: translateY(-8px);
}

.image-wrapper img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.caption {
  text-align: center;
  margin-top: 25px;
  color: #666;
  font-size: 1.2rem;
  font-weight: 400;
}

.small {
    font-size: 1rem;
    font-weight: 300;

    width: 70%;
    margin-left: auto;
    margin-right: auto;
}








/* ========================================= img content style - public ========================================= */
.content-img-container {
    max-width: 1280px; /* 限制 PC 端最大宽度，手机端会自动缩小 */
    margin: 0 auto;    /* 整体居中 */
}

.content-img-container img {
    display: block;
    width: 100%;       /* 强制图片占满容器宽度（2x图在这里被压缩变清晰） */
    height: auto;
    border: none;
}





/* ========================================= 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;
    }
    /*projects breaking points*/
    .up_container {
        margin-top: 47px;
        height: auto;
        width: 100%;
    }
    .up_container img {
        height: auto;
    }
    .down_container {
        flex-direction: column;
        height: auto; 
        padding: 24px 16px;
        align-items: flex-start;
        gap: 16px;
    }
    .down_container > div:nth-of-type(1) {
        width: 100%; 
    }
    .content_container {
        width: 100vw;
    }
    #video_text {
        width: 80vw;
        padding-top: 16px;
    }
    .video_part {
        width: 88vw;
    }
    .work-image-wrapper {
        width: 100%;
    }
    .part03-container {
        flex-direction: column;
        gap: 16px;
    }
    #part03_text {
        width: 75vw;
    }
    .bounus-img-container {
        padding-right: 18px;
        flex: 1;
    }
    .part04-container {
        margin: 48px auto;
    }
    .bounus-video-wrapper {
        width: 60%;
        height: 40vh;
    }

}

@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: 14px;
    }

    /*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: 100%;
    }
    .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;
    }
    .hero_title {
        font-size: 68px;
    }
}
@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; 
    }
}
@media screen and (max-width: 480px) {
    .hero_title {
        font-size: 48px; 
        text-align: center;
    }
}