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%;
}

.main {
  color: #c6c6c6;
  padding-top: 270px;
  padding-bottom: var(--space-16);
  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);
}

.section-text {
  font-size: var(--fs-24);
  font-weight: 200;
  line-height: 2;
  hyphens: auto;
}

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

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

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

.caption {
  max-width: max-content;
  color: #96a082;
  background-color: #000;
  padding: var(--space-1) var(--space-2);

  font-size: var(--fs-14);
}

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

.section-header__text {
  font-size: var(--fs-30);
  font-weight: 200;
  padding-right: var(--space-12);
  margin-bottom: var(--space-2);
}

.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);
}

/* first section */
.first-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.first-section .caption {
  align-self: end;
}

.first-section .section-text {
  margin-top: -50px;
  line-height: 2.7;
}

/* second section */
.second-section {
  display: flex;
  flex-direction: column;
}

.second-section .image-wrapper {
  margin-top: var(--space-11);
  max-width: 80%;
  align-self: center;
}

/* third section */
.third-section .inside {
  display: flex;
  /* align-items: flex-start; */
  gap: 50px;
}

.third-section .content-wrapper {
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
}

.third-section .inside > .image-wrapper {
  flex: 0 0 auto;
  max-width: 435px;
  width: 100%;
}

.third-section .content-wrapper__left {
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: 50px;
  flex: 1;
}

.third-section .content-wrapper__left .image-wrapper {
  flex: 0 0 auto;
  max-width: 435px;
  width: 100%;
  align-self: flex-end;
}

.third-section .content-wrapper__left .section-text {
  flex: 1 1 auto;
}

/* fourth section */
.fourth-section {
  display: flex;
  flex-direction: column;
}

.fourth-section .image-wrapper {
  margin-top: var(--space-11);
  max-width: 60%;
  align-self: center;
}

/* fifth section */
.fifth-section {
  display: flex;
  flex-direction: column;
}

.fifth-section .image-wrapper {
  margin-top: var(--space-11);
  max-width: 80%;
  align-self: center;
}

.abstract-intro {
  margin-top: var(--space-6);
  font-size: var(--fs-48);
  font-weight: 200;
  text-align: center;
  line-height: 1.6;
}

/* footer */
.footer {
  padding-left: 180px;
  padding-right: 180px;
}

.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;
}

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

.footer .footer-description {
  margin-top: var(--space-6);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 2;
  color: #96a082;
}
