@font-face {
  font-family: "BKamran";
  src:
    url("../assets/fonts/BKamran.woff2") format("woff2"),
    url("../assets/fonts/BKamran.woff") format("woff"),
    url("../assets/fonts/BKamran.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

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;
  inset: 0;
  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.7);
  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: 302px;
  overflow-x: auto;
  min-height: 100svh;
}

.main > .content-grid {
  hyphens: auto;
  font-size: var(--fs-24);
  font-weight: 200;
  color: #c6c6c6;
  line-height: 1.8;
}

.wrapper {
  --image-section-max-width: 668px;
  --gap: 240px;
  display: flex;
  align-items: end;
  gap: var(--gap);
}

.text-section {
  hyphens: auto;
  font-size: var(--fs-24);
  font-weight: 200;
  color: #c6c6c6;
  line-height: 1.8;
  flex: 1 1 auto;
  min-width: 320px;
  padding-bottom: var(--space-20);
}

.text-section > :not(.bio-title) {
  max-width: calc(
    var(--content-max-width) - var(--image-section-max-width) - var(--gap) -
      var(--padding-inline)
  );
  margin-left: auto;
}

.font-kamran {
  font-family: "BKamran", sans-serif;
  font-size: var(--fs-36);
  font-weight: 400;
  text-align: right;
  line-height: 1.2;
  margin-bottom: var(--space-14);
}

.bio-title {
  margin-top: var(--space-14);
  display: flex;
  justify-items: center;
  align-items: center;
  flex-direction: column;
  font-size: var(--fs-72);
  font-weight: 200;
  color: #ccc;
}

.image-section {
  flex-shrink: 1;
  padding-right: var(--padding-inline);
}

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

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

.contact-form {
  padding-top: var(--space-20);
  padding-bottom: var(--space-44);
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-form textarea {
  margin-top: var(--space-8);
  height: 344px;
  resize: none;
  padding: var(--space-9);
  background-color: transparent;
  border: 5px solid var(--secondary-color);
  font-size: var(--fs-20);
  font-weight: 200;
  color: #c6c6c6;
}

.contact-form textarea::placeholder {
  font-size: var(--fs-20);
  font-weight: 200;
  color: #c6c6c6;
}

.contact-submit-btn {
  cursor: pointer;
  border: 0;
  padding: 0;
  position: absolute;
  bottom: calc(var(--space-9) + var(--space-44));
  right: calc(var(--space-9) + var(--space-8));
  font-size: var(--fs-18);
  font-weight: 200;
  color: #c6c6c6;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-18);
}

.social-link a {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: var(--space-14);
}

.social-link svg {
  color: #96a082;
}

.footer {
  margin-top: var(--space-44);
  padding: var(--space-32) var(--space-10) var(--space-14);
  background: #000;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 2.2;
  color: #96a082;
}
