body {
  background-color: #0f0f0f !important;
}


 body.no-scroll {
    overflow: hidden;
  }
  

.container {
  max-width: var(--max-width-page);
  margin: auto;
}


/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 0px;
  height: auto;
  /* opacity: 0; */
  animation: logoSlideUp 1.2s ease forwards;
}

@keyframes logoSlideUp {
  from {
    width: 300px;
  }
  to {
    width: 0px;
  }
}
/* ////// end Preloader */

.banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  max-height: calc(100vw * 9 / 16);
}

.banner-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  max-height: calc(100vw *  9 / 16);
}

/* Ẩn ban đầu */
.banner__img {
  position: absolute;
  will-change: transform, opacity;
 width: 100%;
}

.banner__img.gb {
  z-index: -2;
  animation: bgAppear 0.8s ease-in-out  1.3s;
}

/* Foreground (trượt từ -50px → 0) */
.banner__img.nonbg {
  z-index: 0;
  animation: nonbgAppear 0.8s ease-in-out  1.3s;
}

.banner__img.bg,
.banner__img.logo,
.banner__img.nonbg {
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Logo (trượt từ dưới lên + bounce) */
.banner__img.logo {
   width: 70%;
  height: auto;
  top: 36%;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, -50%);
   animation: logoBounceUp 1.5s ease-in-out 1.3s;
}

/* Keyframes */
@keyframes bgAppear {
  from {  transform: scale(1.1); }
  to   {  transform:scale(1); }
}

@keyframes nonbgAppear {
  from {  transform:  scale(1.1); }
  to   {  transform: scale(1) ;}
}

/* Logo bounce: trượt lên + nảy nhẹ */
@keyframes logoBounceUp {
  0%   {  transform: translate(-50%, 100%); }
  100% { transform: translate(-50%, -50%); }
}



/* Fallback cho trình duyệt không hỗ trợ aspect-ratio */
@supports not (aspect-ratio: 1366 / 778) {
  .parallax {
    height: 0;
    padding-top: calc(778 / 1366 * 100%);
  }

  .parallax>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

#text {
  position: absolute;
  font-size: 5em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.parallax img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  object-fit: cover;
}

.sec {
  position: relative;
}

.sec h2 {
  font-size: 3em;
  margin-bottom: 30px;
}

.sec p {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 30px;
  font-weight: 300;
}

.space {
  height: 90vh;
}

.projects {
  display: block;
  width: 100%;
  max-width: var(--max-width-page);
  width: 100%;
  margin: 0 auto;
  z-index: 20;
}

.project {
  position: sticky;
  top: 10px;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1366 / 778;
  overflow: hidden;
  margin-bottom: 20px;
    transition: transform 0.8s ease, opacity 0.8s ease;

}

.project__inner {
  will-change: transform;
  background: white;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px hsla(265.3, 20%, 10%, 35%);
  transform-origin: center top;
  width: 100%;
  height: 100%;
  aspect-ratio: 1366 / 778;
  max-height: calc(min(100vw, 1920px) * 778 / 1366);;
  z-index: 20;
}

.project-meta {
  position: absolute;
  bottom: var(--absolute-bottom);
  left: var(--absolute-left);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 60%;
}

.project-title {
  text-transform: uppercase;
  margin: 0;
  font-weight: 300;
  font-size: var(--font-size-home-sub-title);
}

.project-desc {
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
  font-size: var(--font-size-home-title);
}

.project-desc.the-nam-hai {
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
  font-size: var(--font-size-home-title-the-nam-hai);
}


.project__inner img {
  transform: scale(1);
  /* transition: transform 0.3s ease-in-out; */
}



.project__inner>img,
.project-detail>img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  height: 100%;
  max-height: calc(min(100vw, 1920px) * 778 / 1366);
}

.project-detail {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 3s ease;
  width: 100%;
}

.project__inner.expand-active {
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) scale(1) !important;
  width: 100vw !important;
  max-width: 1920px !important;
  height: 100vh !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
  position: fixed !important;
  scale: 1 !important;
  filter: brightness(1) !important;

}

.project-run-away {
  opacity: 0;
  transform: translateY(150vh);
  transition: all 0.8s ease-in-out;
  pointer-events: none;
}




/* About Section */
.about-section,
.contact-section {
  padding: 80px 20px;
  background: #fff;
}

.container {
  max-width: var(--max-width-page);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  color: #359381;
  margin-bottom: 50px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #666;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: #359381;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #2a7567;
  transform: translateY(-3px);
}

/* Introduce */
#introduce {
  max-width: var(--max-width-page);
  width: 100%;
  margin: 0 auto;
  background-color: var(--main-color-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.introduce-header {
  text-align: center;
  padding-bottom: 80px;
}

.introduce-header p {
  font-size: var(--font-size-45);
  color: var(--main-color-black);
  text-transform: uppercase;
  font-weight: 600;
}

.introduce-header p span {
  font-style: italic;
}

.partner {
  overflow: hidden;
  width: 100%;
   user-select: none;
  pointer-events: none;
  padding-bottom: var(--spacing-y-small);
}

/* Track chạy vô tận */
.partner .track {
  display: flex;
  width: 200%; /* chứa 2 slide (10 logo) */
  animation: partner-scroll 20s linear infinite;
}

/* Mỗi slide (5 logo) */
.partner .slide {
  display: flex;
  flex: 0 0 50%; /* mỗi slide chiếm nửa track */
  justify-content: space-around;
}

/* Mỗi item */
.partner-item {
  flex: 0 0 15%; /* 5 logo vừa đủ 90% (còn 10% cho gap) */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1%;
}

/* Logo giữ tỉ lệ 226/151 */
.partner-logo {
  width: 100%;
  aspect-ratio: 226 / 151;
  object-fit: contain;
  display: block;
}

/* Cuộn vô tận */
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


.introduce-content {
  display: flex;
  flex-direction: row;
  gap:  var(--gap);
  padding: var(--spacing-x);
}

.introduce-images {
  display: flex;
  gap: 5px;
  width: 52%;
}

.introduce-images .introduce-image-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  width: 100%;
  aspect-ratio: 322 / 673;
}

.introduce-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  justify-content: center;
  /* filter: grayscale(100%); */
  transition: filter 0.3s ease;
  display: block;
  border-radius: var(--border-radius);
}



.introduce-images .learn-more-button {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 1s eases;
}

.introduce-images:hover .learn-more-button {
  bottom: 20px;
}


.introduce-text-block {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 48%;
}

.introduce-text-block hr {
  width: 100%;
  height: 1px;
  background-color: #0f0f0f;
  opacity: 0.9;
  border: none;
  margin: 0;
}

.faq-item {
  height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  background-color: var(--main-color-white);
  transition: background-color 0.5s ease;
  position: relative;
  cursor: pointer;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-30);
  font-weight: 500;
  color: inherit;
  transform: translateY(0);
  transition: transform 0.5s ease;

}

.faq-item.active .faq-question {
  transform: translateY(-10px);
}

.faq-title {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.faq-icon {
  stroke: currentColor;
  transition: opacity 0.5s ease;
  margin-left: auto;
  width: var(--font-size-30);
  height: var(--font-size-30);
}

.faq-answer {
  font-size: var(--font-size-25);
  font-weight: 300;
  color: #d1d5db;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-height: 0;
  text-align: left;
}

.faq-item.active {
  background-color: #0f0f0f;
  color: #fff;

}

.faq-item.active .faq-icon {
  opacity: 0;
}

.faq-item.active .faq-answer {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
}

.introduce-font-sample {
  display: block;
  font-size: var(--font-size-25);
  color: #dc2626;
  font-weight: 300;
  margin-top: 8px;
}



@media (max-width: 1280px) {
  .faq-item {
   height: 110px;
  }

  .introduce-header {
  padding-bottom: 90px;
}
}




@media (max-width: 1024px) {

  .faq-item {
   height: 100px;
  }

  .introduce-content {
    flex-direction: column;
  }

  .introduce-images,
  .introduce-text-block {
    width: 100%;
  }


  .introduce-text-block {
    padding-top: 20px;
  }

  .introduce-header {
    padding-bottom: 90px;
  }

  .introduce-images .learn-more-button {
    bottom: 20px;
  }

  /* .partner-item{
    width: 180px;     
    height: 120px;
    margin-right: 40px;
  } */



}

@media (max-width: 768px) {
  .faq-item {
   height: 80px;
    padding: 16px;
  }


 

  .introduce-images {
    width: 100%;
    gap: 12px;
  }

  .introduce-text-block {
    width: 100%;
  }

  .introduce-images .introduce-image-box {
    width: 100%;
    aspect-ratio: 322 / 673;
  }

  .introduce-images .learn-more-button {
    bottom: 10px;
  }

  .introduce-header {
    padding-bottom: 40px;
  }

  .project-meta {
    padding: 0px;
  }
/* 
  .partner-item {
    width: 140px;
    height: 93px;      
    margin-right: 24px;
  } */

}




.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.5s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #359381;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}