body {
  background-color: var(--primary-color);
  background-size: 100% 100svh;
  background-repeat: repeat-y;
}

.overlay {
  background-color: rgba(0, 10, 0, 0.8);
  background-image: url("../assets/images/overlay-30.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: absolute;
  top: 0vh;
  left: 0;
  width: 100%;
  height: 140vh;
  z-index: 1;
  transition: opacity 0.4s ease-in;
  opacity: 1;
  pointer-events: auto;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-wrapper {
  font-size: var(--fs-30);
  color: var(--secondary-color);
}

.menu-btn {
  padding: 0;
  position: absolute;
  z-index: 2;
  right: 180px;
  top: 80px;
  width: 120px;

  display: flex;
  flex-direction: column;
  align-items: center;

  transition: transform 0.4s ease;
}

.menu-btn img {
  position: relative;
  left: -3px;
}

.menu-nav-wrapper:not(.hidden) ~ .menu-btn,
.menu-btn:has(+ .menu-nav-wrapper:not(.hidden)) .line-container {
  --step-color: rgba(10, 31, 1, 0.7);
}

.menu-nav-item .line-container {
  --step-color: rgba(10, 31, 1, 0.7);
}

.menu-nav-item {
  position: relative;
}

.menu-nav-item .vertical-line {
  --width: 5px;
  position: absolute;
  left: calc(-1 * var(--width));
  top: 0;
  width: var(--width);
  height: 100%;
  background-color: var(--secondary-color);
}

.menu-nav-item .line-container,
.menu-nav-item .vertical-line {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.menu-nav-item:hover .line-container,
.menu-nav-item:hover .vertical-line {
  opacity: 1;
}

.menu-text-wrapper {
  max-width: max-content;
}

.menu-text {
  max-width: max-content;
  text-align: center;
  color: var(--secondary-color);
  font-weight: 300;
  /* secondary-color but with opacity */
  text-decoration: line-through 4px rgba(117, 129, 101, 0.6);
}

.menu-nav-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-nav-list {
  position: absolute;
  right: 82px;
  top: 300px;
  padding: 0;
  padding-bottom: var(--space-3);
  height: calc(100vh - 300px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* if it overflow use custom scrollbar */
@supports (scrollbar-color: red blue) {
  .menu-nav-list {
    scrollbar-color: transparent transparent;
    scrollbar-width: auto;
  }
}

.menu-nav-list::-webkit-scrollbar {
  width: 0px;
}

.menu-nav-list::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 100vh;
}

.menu-nav-list::-webkit-scrollbar-thumb {
  background-color: var(--sam-gray-200);
  border-radius: 100vh;
}

.menu-nav-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--sam-gray-300);
}

.menu-nav-link {
  display: inline-block;
  width: 100%;
}

.line-container {
  --height: 5px;
  --step-color: rgba(10, 31, 1, 0.85);
  width: 100%;
  height: var(--height);
  background-color: var(--secondary-color);

  position: relative;
}

.line-container::before {
  content: "";

  position: absolute;
  right: 0;
  top: 0;
  height: calc(var(--height) / 5);
  width: 10%;
  background-color: var(--step-color);
}

.line-container::after {
  content: "";

  position: absolute;
  right: 0;
  top: calc(var(--height) / 5 * 1);
  height: calc(var(--height) / 5);
  width: 5%;
  background-color: var(--step-color);
}

.line-inner {
  position: absolute;
  right: 0;
  top: calc(var(--height) / 5 * 2);
  height: calc(var(--height) / 5);
  width: 2%;
  background-color: var(--step-color);
}

.line-inner::before {
  content: "";

  position: absolute;
  right: 0;
  top: calc(var(--height) / 5 * 1);
  height: calc(var(--height) / 5);
  width: 50%;
  background-color: var(--step-color);
}

.line-inner::after {
  content: "";

  position: absolute;
  right: 0;
  top: calc(var(--height) / 5 * 2);
  height: calc(var(--height) / 5);
  width: 600%;
  background-color: var(--step-color);
}

.main {
  color: #c6c6c6;
  padding-top: 270px;
  overflow-x: auto;
  min-height: 100svh;
}

.title-container {
  max-width: max-content;
  position: relative;
  margin-bottom: var(--space-6);
}

.title-container__text {
  font-size: var(--fs-72);
  font-weight: 200;
  padding-right: 250px;
  padding-left: 72px;
}

.content {
  padding-top: var(--space-28);
  padding-bottom: var(--space-6);
  gap: var(--space-11);
}

/* first section */
.intro-section {
  display: grid;
  grid-template-columns: minmax(580px, 1fr) minmax(0px, 870px);
  gap: var(--space-6);
  align-items: center;

  font-size: var(--fs-24);
  font-weight: 200;
  line-height: 2.1;
  hyphens: auto;
}

.intro-section p {
  margin-top: -10px;
}

.intro {
  hyphens: auto;
  font-size: var(--fs-24);
  font-weight: 200;
  color: #c6c6c6;
  line-height: 1.8;
  margin-top: var(--space-10);
}

.outro {
  color: #96a082;
  font-size: var(--fs-36);
  font-weight: 300;
  line-height: 1.6;
  hyphens: auto;
  text-align: center;
}

.outro p {
  padding: var(--space-4) 0;
}

.outro .line-container {
  width: 50%;
  left: 50%;
}

.see-more-wrapper {
  margin: var(--space-6) auto;
}

.reverse-line-container {
  --height: 5px;
  --step-color: rgba(10, 31, 1, 0.85);
  width: 100%;
  height: var(--height);
  background-color: var(--secondary-color);
  width: 50%;
  right: 50%;
  left: 0;

  position: relative;
}

.reverse-line-container::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;
  height: calc(var(--height) / 5);
  width: 10%;
  background-color: var(--step-color);
}

.reverse-line-container::after {
  content: "";

  position: absolute;
  left: 0;
  top: calc(var(--height) / 5 * 1);
  height: calc(var(--height) / 5);
  width: 5%;
  background-color: var(--step-color);
}

.reverse-line-inner {
  position: absolute;
  left: 0;
  top: calc(var(--height) / 5 * 2);
  height: calc(var(--height) / 5);
  width: 2%;
  background-color: var(--step-color);
}

.reverse-line-inner::before {
  content: "";

  position: absolute;
  left: 0;
  top: calc(var(--height) / 5 * 1);
  height: calc(var(--height) / 5);
  width: 50%;
  background-color: var(--step-color);
}

.reverse-line-inner::after {
  content: "";

  position: absolute;
  left: 0;
  top: calc(var(--height) / 5 * 2);
  height: calc(var(--height) / 5);
  width: 600%;
  background-color: var(--step-color);
}

.carousel {
  --gap: var(--space-28);
  --gallery-gap: var(--space-28);
  overflow: hidden;
  position: relative;

  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  height: 900px;
  background-color: var(--slide-bg);
  margin-bottom: var(--space-14);
}

.gallery {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  display: grid;
  gap: var(--gallery-gap);
  grid-auto-flow: column;
  grid-auto-columns: auto;

  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  padding-left: var(--space-36);
  padding-right: var(--space-36);

  overflow-x: auto;
  overscroll-behavior-inline: contain;
  cursor: grab;
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

/* if it overflow use custom scrollbar */
@supports (scrollbar-color: red blue) {
  .gallery {
    scrollbar-width: none;
  }
}

.gallery::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gallery .seperator {
  width: var(--space-4);
  height: 100%;
}

.next-btn,
.prev-btn {
  height: 150px;
  width: var(--btn-size);
  padding: 0;
  position: absolute;
  z-index: 1;
}

.prev-btn {
  left: var(--space-6);
}

.next-btn {
  transform: rotate(180deg);
  right: var(--space-6);
}

.next-btn .arrow-up,
.prev-btn .arrow-up {
  transform: rotate(45deg) translate(0px, 1px);
  transform-origin: bottom left;
}

.next-btn .arrow-down,
.prev-btn .arrow-down {
  transform: rotate(-45deg) translateX(1px);
  transform-origin: top left;
}

.gallery-group {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.image-wrapper {
  width: 100%;
  overflow: hidden;
}

.gallery .image-wrapper {
  width: 440px;
  height: 440px;
  background-color: #d0d0d0;

  display: grid;
  place-content: center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* footer */
.footer {
  margin-top: var(--space-10);
}

.footer .social-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  grid-gap: var(--space-1);
  align-items: center;
  justify-content: end;
  padding: var(--space-6) 0;
  padding-left: 180px;
  padding-right: 180px;
}

.footer .social-link svg {
  color: #c6c6c6;
}

.footer .footer-description {
  background-color: var(--primary-color);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  padding-left: 180px;
  padding-right: 180px;
  margin-top: var(--space-6);

  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 2;
  color: #96a082;
}
