.content-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 10;
  display: flex;
  padding-top: 64px;
  box-sizing: border-box;
}

.content-page__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: fit-content;
  display: flex;
  z-index: 100;
  transform: translateY(0);
}

.content-page__top.hide {
  transform: translateY(-100%);
}

.content-page__top__running-text {
  background-color: black;
  height: 4rem;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  margin-right: -10px;
}

.content-page__top__running-text__content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 70s linear infinite;
  vertical-align: center;
  font-size: 1.2rem;
  color: #A4A4A4;
}

.content-page__top__running-text__content span {
  display: inline-block;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-page__top__running-text__content {
    animation: none;
  }
}

.content-page__top__graphics {
  width: 1000px;
  height: 7rem;
  background-color: black;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: end;
  position: relative;
}

.content-page__top__graphics__right {
  height: fit-content;
  width: fit-content;
  position: relative;
}

.content-page__top__graphics__corner {
  position: absolute;
  bottom: 0;
  left: -48px;
}

.content-page__top__graphics__right .content,
.content-page__top__graphics__left__main .content,
.content-page__sidebar__top__bottom__graphic .content,
.content-page__content__backgrounds__bottom-graphics__right .content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  color: black;
  font-weight: 700;
  font-size: 1.6rem;
  justify-content: space-between;
  padding-right: .6rem;
  padding-top: .2rem;
  padding-left: 10px;
  gap: .8rem;
}

.content-page__top__graphics .content p {
  letter-spacing: .7rem;
  padding-top: .1rem;
}

.content-page__top__graphics .content__graphics {
  margin-top: 13px;
  transform: translateX(12px);
  display: flex;
  justify-content: end;
}

.content-page__top__graphics .content__graphics svg {
  margin-left: -17px;
}

.content-page__top__graphics__left__main {
  position: relative;
}

.content-page__top__graphics__left__main .content {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0;
}

.content-page__top__graphics__left__main .content .content__graphics {
  transform: translateX(-6px);
}

.content__x {
  transform: translateY(3px);
}

.content-page__top__graphics__left {
  margin-right: -2px;
}

.content-page__top__graphics__left__graphics {
  display: flex;
}

.content-page__top__graphics__left__graphics svg {
  margin-right: -55px;
}

.content-page__sidebar {
  height: 100%;
  width: 350px;
  --line-color: #DEDEDE;
  --background: white;
  background-color: var(--background);
  background-image: linear-gradient(var(--line-color) 1px, transparent 1px), linear-gradient(to right, var(--line-color) 1px, var(--background) 1px);
  background-size: 90px 90px;
  background-position: 10px 10px, 30px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
}

.content-page__sidebar.hide {
  transform: translateX(-100%);
}

.content-page__sidebar__top__title p {
  font-weight: 1000;
  font-size: 8rem;
  letter-spacing: 1rem;
  color: white;
  text-shadow: -1px -1px 0 #000,
  1px -1px 0 #000,
  -1px 1px 0 #000,
  1px 1px 0 #000;
  margin-bottom: -190px;
  height: 179px;
  width: 794px;
}

.content-page__sidebar__top__title p.top {
  color: black;
  margin-bottom: 0;
}

.content-page__sidebar__top__bottom {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.content-page__sidebar__top__parent {
  width: 237px;
  height: 810px;
}

.content-page__sidebar__top {
  transform: rotate(-90deg) translate(-19%, -72%);
  transform-origin: bottom;
  width: fit-content;
}

.content-page__sidebar__top__bottom__graphic {
  position: relative;
}

.content-page__sidebar__top__bottom__graphic .content {
  color: white;
  padding-right: 15px;
  box-sizing: border-box;
}

.content-page__sidebar__top__bottom__graphic .bg {
  width: 378px;
}

.content-page__sidebar__top__bottom__graphic .content svg {
  margin-top: -5px;
  transform: rotate(90deg);
  transform-origin: center;
  margin-right: -10px;
  width: 66px;
}

.content-page__sidebar__top__bottom__graphic .content p {
  font-size: 1.6rem;
  font-weight: 700;
  width: 286px;
  height: min-content;
  display: flex;
  gap: .7rem;
  justify-content: end;
  margin-right: 10px;
}

.content-page__sidebar__top__bottom__graphic .content p a {
  transform: rotate(90deg);
  transform-origin: center;
  display: block;
}

.content-page__transparent {
  height: 100%;
  width: 300px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}


.content-page__transparent__content__title {
  height: fit-content;
  color: white;
  font-weight: 800;
  font-size: 6.2rem;
  letter-spacing: 4rem;
  white-space: nowrap;
  min-width: 0;
  text-align: center;
  z-index: 10;
  --f-translate-x-value: -100px;
  --s-translate-x-value: -100px;

}

.content-page__transparent__content__title.top {
  transform-origin: center;
  transform: rotate(-90deg) translateY(calc(-1 * var(--text-padding))) translateX(var(--f-translate-x-value));
}

.content-page__transparent__content__title.bottom {
  transform-origin: center;
  transform: rotate(-90deg) translateY(var(--text-padding)) translateX(var(--s-translate-x-value));
}

.content-page__transparent__content__title.top.hide {
  --f-translate-x-value: 90vw;
  position: absolute;
}

.content-page__transparent__content__title.top.hide.reverse {
  --f-translate-x-value: -90vw;
  position: absolute;
}

.content-page__transparent__content__title.bottom.hide {
  --s-translate-x-value: -90vw;
  position: absolute;
}

.content-page__transparent__content__title.bottom.hide.reverse {
  --s-translate-x-value: 90vw;
  position: absolute;
}

.content-page__transparent__content__title.top.go {
  --f-translate-x-value: -90vw !important;
}

.content-page__transparent__content__title.top.go.reverse {
  --f-translate-x-value: 90vw !important;
}

.content-page__transparent__content__title.bottom.go {
  --s-translate-x-value: 90vw !important;
}

.content-page__transparent__content__title.bottom.go.reverse {
  --s-translate-x-value: -90vw !important;
}

.content-page__transparent__content {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: 50% 50%;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  --text-padding: 65px;
}

.content-page__transparent__page-count {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  font-size: 23rem;
  font-weight: 800;
  z-index: 5;
  letter-spacing: 4rem;
  color: rgba(0, 0, 0, 0.1);
}

.content-page__content {
  width: 100%;
  height: 100%;
  --line-color: #DEDEDE;
  --background: white;
  background-color: var(--background);
  background-image: linear-gradient(var(--line-color) 1px, transparent 1px), linear-gradient(to right, var(--line-color) 1px, var(--background) 1px);
  background-size: 90px 90px;
  background-position: 10px 10px, 30px 32px;
  position: relative;
  overflow: hidden;
  padding-top: 48px;
  box-sizing: border-box;
}

.content-page__content.hide {
  transform: translateX(100%);
}

.content-page__content__backgrounds {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  color: #E6E6E6;
  font-weight: 600;
  font-size: 12rem;
}

.content-page__content__backgrounds__title {
  letter-spacing: 9rem;
  text-wrap: nowrap;
  --border-color: #E6E6E6;
  --border: 6px solid var(--border-color);
  line-height: 1;
  padding-bottom: 20px;
  z-index: 6;
  position: relative;
}

.content-page__content__backgrounds__title.first {
  transform: translateX(-100px);
  width: calc(100% + 100px);
}

.content-page__content__backgrounds__title.second {
  width: calc(100% + 200px);
}

.content-page__content__backgrounds__title.second p {
  text-align: right;
}

.content-page__content__backgrounds__diagonal-bg {
  --diagonal-color: rgb(241, 241, 241);
  background: repeating-linear-gradient(-45deg, var(--diagonal-color), var(--diagonal-color) 25px, rgba(229, 229, 247, 0) 15px, rgba(229, 229, 247, 0) 45px);
  animation: moving-diagonal 10s linear infinite;
  --size: 126px;
  background-size: var(--size) var(--size);
}

.content-page__content__backgrounds__diagonal-bg:first-of-type {
  height: 40%;
  width: 300px;
  position: absolute;
  bottom: 150px;
  left: 100px;
}

.content-page__content__backgrounds__diagonal-bg:nth-of-type(2) {
  height: 250px;
  width: 500px;
  position: absolute;
  bottom: 250px;
  right: 50px;
}

.content-page__content__backgrounds__bottom-graphics {
  position: absolute;
  bottom: 90px;
  display: flex;
  width: 100%;
}

.content-page__content__backgrounds__bottom-graphics__left {
  width: 100%;
  height: 5px;
  margin-top: 113px;
  margin-right: -5px;
}

.content-page__content__backgrounds__bottom-graphics__right {
  position: relative;
  height: fit-content;
  width: fit-content;
}

.content-page__content__backgrounds__bottom-graphics__right .content {
  padding: 48px;
  height: fit-content;
  justify-content: start;
}

.content-page__content__backgrounds__bottom-graphics__right svg {
  display: block;
  margin-right: -80px;
  flex-shrink: 0;
}

.content-page__content__backgrounds__arrow {
  width: 480px;
  position: absolute;
  right: 64px;
  top: 0;
  z-index: 4;
  --color: rgba(199, 199, 199, 0.18);
}

@media screen and (max-height: 1100px) {
  .content-page__sidebar__top__title p {
    font-size: 5rem;
    margin-bottom: -140px;
    height: 134px;
    width: 639px;
  }

  .content-page__sidebar__top__bottom__star {
    width: 48px;
  }

  .content-page__sidebar__top__bottom__circle {
    width: 52px;
  }

  .content-page__sidebar__top__bottom__graphic .bg {
    width: 300px;
  }

  .content-page__sidebar__top__bottom__graphic .content svg {
    width: 57px;
  }

  .content-page__sidebar__top__bottom__graphic .content p {
    font-size: 1.2rem;
    width: 201px;
  }

  .content-page__sidebar__top__bottom__graphic .content svg {
    margin-top: -10px;
    margin-right: -7px;
  }

  .content-page__sidebar__top__parent {
    width: 189px;
    height: 639px;
  }

  .content-page__sidebar__graphic {
    width: 180px;
  }

  .content-page__sidebar {
    width: 270px;
  }

  .content-page__transparent__content__title {
    font-size: 4.5rem;
  }

  .content-page__transparent {
    width: 250px;
  }

  .content-page__transparent__content {
    --text-padding: 53px;
  }
}

@media screen and (max-width: 900px) {
  .content-page__top__running-text {
    width: 100%;
  }

  .content-page__content {
    padding-top: 0;
  }

  .content-page__projects {
    top: 0 !important;
  }

  .content-page__top__graphics {
    width: 500px;
    height: 5rem;
  }

  .content-page__top__graphics__corner {
    transform: scale(0.4);
    transform-origin: bottom right;
  }

  .content-page__top__graphics__left__graphics {
    transform: scale(.6) translateX(285%);
    transform-origin: top right;
  }

  .content-page__top__graphics__left {
    transform: scale(.6) translateX(92%);
    transform-origin: top right;
  }

  .content-page__top__graphics__right {
    transform: scale(.6);
    transform-origin: top right;
  }

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

  .content-page__sidebar {
    width: 100%;
    height: fit-content;
    align-items: center;
    flex-direction: row-reverse;
    padding: 32px 12px 24px;
    gap: 12px;
    justify-content: start;
  }

  .content-page__sidebar__graphic {
    width: 80px;
    flex-shrink: 0;
  }

  .content-page__skills {
    padding-top: 0 !important;
  }

  .content-page__sidebar__top__parent {
    height: fit-content;
    width: 100%;
  }

  .content-page__sidebar__top {
    transform: none;
    height: 80px;
    width: 100%;
  }

  .content-page__sidebar__top__bottom__circle, .content-page__sidebar__top__bottom__star {
    flex-shrink: 0;
  }

  .content-page__sidebar__top__title {
    width: fit-content;
    margin-bottom: -10px;
  }

  .content-page__sidebar__top__title p {
    font-size: 2rem;
    margin-bottom: -49px;
    height: fit-content;
    width: fit-content;
  }

  .content-page__sidebar__top__title p:first-of-type {
    display: none;
  }

  .content-page__sidebar__top__bottom {
    transform: scale(.5);
    transform-origin: center left;
  }

  .content-page__transparent {
    display: none;
  }

  .content-page__skills {
    grid-template-columns: repeat(auto-fit, minmax(100px, 150px)) !important;
  }

  .content-page__services {
    padding-top: 0 !important;
    gap: 12px !important;
    top: 0 !important;
  }
}

@media screen and (max-width: 500px) {
  .content-page__top__running-text {
    display: none;
  }

  .content-page__top__graphics {
    width: 100%;
    height: 5rem;
  }
}

/*this will handle projects view*/
@media screen and (max-width: 1500px) {
  .content-page__projects {
    padding: 12px !important;
  }

  .content-page__projects:not([data-active="true"]) .content-page__projects__content {
    display: none !important;
  }

  .content-page__projects[data-active="true"] .content-page__projects__list {
    display: none !important;
  }

  .content-page__projects:not([data-active="true"]) {
    justify-content: center;
  }

  .content-page__projects[data-active="true"] .content-page__projects__content {
    width: 100%;
  }

  .content-page__projects__content__content__back {
    display: block !important;
  }

  .content-page__services {
    grid-template-columns: repeat(1, 1fr) !important;
    justify-items: center;
  }

  .content-page__services__item {
    max-width: 650px;
  }
}

@media screen and (max-width: 1600px) {
  .content-page__projects__content__triangle {
    width: 80px;
    bottom: 5px !important;
  }

  .content-page__projects__content__content__tags {
    right: 100px !important;
    left: 28% !important;
  }

  .content-page__projects__content__content__tags__tag {
    font-size: .8rem !important;
    --border-width: 2px !important;
    padding: .2rem .8rem .2rem .5rem !important;
  }
}

@media screen and (max-width: 768px) {
  .content-page__projects__content__content__title {
    font-size: 2rem;
  }

  .content-page__projects__content__content__desc {
    font-size: 1rem;
  }
}

@media screen and (max-height: 860px) and (min-width: 900px) {
  .content-page__sidebar__top__parent, .content-page__sidebar__graphic {
    scale: .8;
  }

  .content-page__sidebar__top__parent {
    margin-top: -50px;
  }
}

@media screen and (max-width: 700px) {
  .content-page__projects__content__content__title {
    font-size: 1.5rem !important;
  }

  .content-page__projects__content__content__desc {
    font-size: .8rem !important;
  }
}

@media screen and (max-height: 860px) {
  .main-page__first__self__content__right__name {
    font-size: 6rem;
  }
}

@media screen and (max-height: 800px) {
  .content-page__projects__list__content__content__active-type p {
    font-size: 1.2rem !important;
  }
}
