@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap');

:root{
    --max-width: 1440px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
	font-family: 'Sarabun', sans-serif;
    color: black;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    text-decoration: none !important;
}

body {
    overscroll-behavior: none;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    background-color: #fafafa;
}

/* Menu */

.fixed-menu {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
}

.menu-button {
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-weight: normal;
}

.menu-button:hover {
    font-weight: bolder;
}

.menu-box {
    position: fixed;
    bottom: 70px;
    right: -300px; 
    background-color: transparent;
    /* box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3); */
    transition: right 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 999;
}

.menu-box.open {
    right: 0; /* Slide in */
}

.menu-box h2 {
    margin-top: 0;
}

.menu-box ul {
    list-style: none;
    padding: 5px 30px;
    font-size: 16px;
}

.menu-box ul li {
    margin: 10px 0;
}

.menu-box ul li a {
    color: #111;
    font-weight: normal;
}

.menu-box ul li a:hover {
    border-bottom: 1px solid #111;
    transition: all 0.3s ease-in-out;
}

.close-button {
    padding: 10px 0px;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.close-button i {
    font-size: 24px;
}

/* BtStudio Logo */

.btstudio {
  position: fixed;
  bottom: 0px;
  left: 10px;
}

.btstudio h4 {
  font-size: 18px;
  font-weight: normal;
}

.btstudio img {
  width: 10%;
}


.scroll {
  position: fixed;
  bottom: 500px;
  left: 10px;
}

.scroll .rotate p {
  font-size: 20px;
  font-weight: bolder;
}


/* Main */

.line__container {
    position: fixed;
    top: 0;
    width: 100%;
    left: 50%;
    transform: translate(-50%);
    max-width: var(--max-width);
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.separator {
    position: absolute;
    width: 2px;
    height: 100%;
    /* background-color: rgb(202, 191, 191); */
}

.separator:nth-child(1){
    left: 25%;
}

.separator:nth-child(2){
    left: 50%;
}

.separator:nth-child(3){
    left: 75%;
}

main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

.scroll__container {
    position: relative;
    width: 100%;
    height: 100%;
}

section {
    position: relative;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero */
#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero__container {
    height: 100%;
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.hero__title {
    overflow: hidden;
}

.hero__title h1 {
    overflow: hidden;
}

.hero__title__header {
    font-size: clamp(2rem, 20cqi, 20rem);
    letter-spacing: -.05rem;
    margin-bottom: 2rem;
}

/* 4ma Studio */
.topBar{
	position: fixed;
	left: 150px;
    top: 20px;
	padding-right: 10px;
	animation: 5s ease-out 0s 1 fadeIn !important;
  }

  span{
	box-sizing: border-box;
	position: relative;
	margin-right: 3px;
  }
/* 
  span:after{
	display: block;
	position: absolute;
	width: 100%;
	content: "";
	border-bottom: 1px solid black;
	padding: 0 0 .4em 2em; 
	left: -2em;
	animation: 0.1s ease-out 0s slideInFromLeft;
  } */

  strong{
	font-weight: 600;
  }

/* About */
#about {
    display: flex;
    justify-content: center;
}

.about__container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    min-height: 100%;
}

.about__text {
    width: 45%;
    margin: auto;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
    font-size: 1.4rem;
    letter-spacing: -.045em;
}

/* Video */
#video {
    display: flex;
    justify-content: center;
    min-height: 50%;
}

.shim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.sticky {
    position: relative;
    bottom: 250px;
    width: 100%;
    height: 10%;
}


img {
    width: 100%;
    height: 10%;
    object-fit: cover;
    transform: scale(.58);
    /* will-change: transform; */
    /* z-index: 1000; */
}

/* .img__text__overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 100%;
    display: flex;
    justify-content: left;
    flex-direction: column;
    font-size: clamp(1.4rem, 10cqi, 1.4rem);
    overflow: hidden;
} */


/* Projects */
#projects {
    position: relative;
    height: 200%;
}

.projects__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 50%;
}

.slider__container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projects__slider {
    height: 100%;
    display: flex;
    width: min-content;
    overflow: hidden;
    /* will-change: transform; */
}

.project {
    position: relative;
    width: 20vw;
    height: 100%;
    /* padding: 80px 0px 60px; */
    display: flex;
    flex-direction: column;
}

.image__container {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 30; 
    overflow: hidden;
}

.project__image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(50%);
}

.project__image:hover {
    filter: grayscale(10%);
}


.start {
    justify-content: flex-start;
}

.mid {
    justify-content: center;
}

.end {
    justify-content: end;
}

.project__details {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-top: 0rem;
    margin: 0 56px;
    transform: translateY(-150px);
}

.project__details p {
    font-size: 1rem;
    margin: 0 0px;
    /* transform: translateY(-10px); */
}

.project__details a {
    display: flex;
    transform: translateX(-100px);
    list-style-type: none;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 30px;
    color: white;
    z-index: 1000;
}

.project__details a:hover {
    font-size: 3rem;
}

@media only screen and (max-width: 1100px) {
    p{
        font-size: 0.8rem;
    }

    #projects {
        height: 400%;
    }

    .projects__sticky {
        height: 25%;
    }

    .project {
        width: 20vw;
    }

}

@media only screen and (max-width: 600px) {
    #projects {
        height: 800%;
        width: 500vw;
    }

    .projects__sticky {
        height: 12.5%;
    }

    .project {
        width: 100vw;
    }

    .scroll {
        display: none;
    }

    .btstudio img {
        width: 25%;
        transform: translateY(0px);
    }

    .sticky {
        position: absolute;
        top: 200px;
        width: 100%;
        height: 100%;
        /* transform: translateY(20px); */
    }

    #video .sticky img {
        width: 100%;
        padding: 0;
        margin: 0;
        transform: translateY(-200px);
        height: 100%;
    }

    .hero__container {
        height: 100%;
        width: 100%;
        max-width: var(--max-width);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0px;
    }

    .about__container {
        transform: translateY(-200px);
    }
    
    .about__text {
        width: 100%;
    }
}