html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #000000 !important;
}

body {
  overflow: scroll;
  scroll-behavior: smooth;
}

.subcontent1_titledesc {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 1;
  margin-top: 15%;
  position: relative;
  justify-content: center;
  align-items: center;
}

.project_title {
  font-size: 6em;
  color: white;
  font-family: Helvs;
  font-weight: bold;
  text-align: center;
}

.project_desc {
  text-wrap: wrap;
  font-size: 1.1em;
  color: white;
  font-family: Helvs;
}

.mockup {
  margin: 0 auto;
  min-width: 800px;
  max-width: 1300px;
  width: 100%;
  position: relative;
  display: none;
}

.mockup.visible {
  display: contents;
}

.mockup_container {
  position: relative;
  width: 100%;
  padding-bottom: 1000px;
  justify-content: center;
  display: flex;
}

.mockup_container.pc {
  padding-bottom: 800px;
}

.mockup_media_laptop,
.mockup_media_mobile {
  filter: grayscale(100%);
  opacity: 30%;
  transition: opacity 0.2s ease, filter 0.2s ease;
  -webkit-transition: opacity 0.2s ease, filter 0.2s ease;
}

.mockup_mobile {
  aspect-ratio: initial;
  height: 850px;
  position: absolute;
  top: 10%;
  filter: brightness(80%);
  z-index: 2;
}

.mockup_laptop {
  height: 700px;
  position: absolute;
  top: 10%;
  filter: brightness(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
  -webkit-transition: opacity 0.2s ease, filter 0.2s ease;
  aspect-ratio: initial;
}

.container-laptop,
.container-mobile {
  position: absolute;
  z-index: 1;
  cursor: none;
  overflow: hidden;
}

.container-mobile {
  top: 11.5%;
  border-radius: 54px;
  overflow: hidden;
}

.container-laptop {
  top: 15.5%;
  border-radius: 10px;
  overflow: hidden;
}

.mockup_media_laptop {
  max-width: 90vw;
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mockup_media_mobile {
  min-height: 820px;
  max-height: 820px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: -1;
}

.mockup_media_laptop.image {
  display: none;
  z-index: 0;
  position: relative;
  height: 500px;
  width: 100%;
  object-fit: cover;
}

.mockup_media_laptop.image.visible {
  display: block;
}

.mockup_media_laptop.video {
  height: 550px;
  max-width: 58vw;
}

.mockup_media_mobile.visible {
  display: contents;
}

.p_type {
  display: flex;
  flex-direction: row;
  font-family: Helvs;
  gap: 7px;
}

.p_type_text {
  color: grey;
  font-size: 1em;
  align-self: center;
}

.tech_stack {
  color: white;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
}

.tech_stack_item {
  border: solid 1px rgb(56, 56, 56);
  background-color: rgba(10, 10, 10, 0.5);
  display: flex;
  border-radius: 100px;
  padding: 5px 15px;
  align-items: center;
  gap: 5%;
  transition: color 0.3s ease;
  font-family: Helvs;
  font-size: clamp(0.5em, 3vw, 1em);
  min-width: 70px;
  justify-content: center;
  border-width: 2px;
}

.project_info_text {
  margin: 2% 8%;
  color: white;
  font-family: Helvs;
  font-size: 1.1em;
  text-align: justify;
  font-weight: normal;
  display: flex;
  flex-direction: column;
}

.project_info_text h1,
.project_info_text h2,
.project_info_text h3 {
  margin-top: 2%;
}

.project_info_text p {
  flex-direction: column;
  display: flex;
}

.project_info_text a {
  color: #00bbff;
}

.project_info_text img {
  height: 400px;
  display: flex;
  align-self: center;
}

/* !Buttons */

.buttons {
  margin-bottom: 5%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.video_controls_container {
  width: 100%;
  position: fixed;
  bottom: 20px;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.2s ease;
  -webkit-transition: opacity 0.2s ease;
}

.video_controls_container.hidden {
  animation: scaleAnimation 0.7s both normal;
}

@keyframes scaleAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

.video_controls_playback,
.video_controls_others {
  backdrop-filter: blur(15px);
  background-color: rgba(240, 240, 240, 0.8);
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.5);
}

.video_controls_playback {
  height: 60px;
  width: 60px;
  border-radius: 100px;
  margin-left: 15px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.video_controls_others {
  height: 60px;
  width: 170px;
  border-radius: 100px;
}

.video_controls_others.hidden {
  width: 60px;
  transform: translateX(40px);
  transition: width 0.1s ease;
  -webkit-transition: width 0.1s ease;
}
.video_controls_playback.hidden {
  transform: translateX(-35px);
  transition: width 0.1s ease;
  -webkit-transition: width 0.1s ease;
}

.icons {
  height: 100%;
  width: 100%;
  display: flex;
  text-align: center;
  justify-content: space-evenly;
  align-content: center;
  flex-wrap: wrap;
  color: black;
}

.icons.main {
  text-align: center;
  position: absolute;
  align-content: normal;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon_main {
  display: flex;
  position: absolute;
  z-index: 1;
  line-height: 1;
  transition: opacity 0.1s ease;
  -webkit-transition: opacity 0.1s ease;
}

.control_icon {
  align-items: center;
  display: flex;
  font-size: 1.8em;
}

#control_playback {
  opacity: 0;
  display: none;
}

#control_playback.show {
  opacity: 1;
  display: flex;
}

#control_playback.hidden {
  opacity: 0;
  display: none;
}

#icons_main_pause {
  opacity: 0;
  display: none;
}

#icons_main_pause.show {
  opacity: 1;
  display: flex;
}

#icons_main_replay {
  opacity: 0;
  display: none;
  transition: opacity 0.1s ease;
  -webkit-transition: opacity 0.1s ease;
}

#icons_main_replay.show {
  opacity: 1;
  display: flex;
}

.dot {
  background-color: #00bbff;
  height: 0px;
  width: 0px;
  border-radius: 100px;
  z-index: 5;
}

.dot.visible {
  animation: heightWidth 0.5s both normal;
}

@keyframes heightWidth {
  0% {
    height: 0px;
    width: 0px;
  }

  50% {
    height: 60px;
    width: 60px;
  }

  100% {
    height: 20px;
    width: 20px;
  }
}

#progress-bar {
  position: fixed;
  bottom: 0px;
  z-index: 1005;
  --progress: 0;
  height: 5px;
  width: var(--progress);
  background-color: #00bbff;
  transition: opacity 0.5s ease, width 0.4s ease, background-color 0.3s ease;
  -webkit-transition: opacity 0.5s ease, width 0.4s ease,
    background-color 0.3s ease;
}

.bar_container {
  box-shadow: 0px 0px 40px 10px black;
  position: fixed;
  bottom: 0px;
  z-index: 1005;
}

.scrolltotop {
  width: 60px;
  height: 60px;
  background-color: black;
  position: fixed;
  bottom: 20px;
  right: 50px;
  border-radius: 100px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  z-index: 10;
  transition: opacity 0.3s ease;
  opacity: 0;
  border: none;
  box-shadow: 0px 0px 60px 15px #00bbff;
  transition: opacity 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  -webkit-transition: opacity 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.scrolltotop:hover {
  background-color: #00bbff;
}
#scrolltop_icon {
  font-size: 3em;
  z-index: 12;
}

.scrolltoptop_container {
  z-index: 500;
}

@media screen and (max-width: 600px) {
  .project_demo_text {
    margin-bottom: 0;
  }
  .documentation,
  .image_gallery {
    width: 90% !important;
  }
  .back_to_software_projects {
    visibility: hidden;
  }

  .project_title {
    margin-top: 10%;
    font-size: 3em;
  }

  .project_desc {
    font-size: 1em;
  }
  .back_to_software_projects {
    font-size: 1em;
  }

  .mockup_media_laptop {
    max-height: 180px;
    min-height: 180px;
  }

  .mockup_media_laptop.image {
    max-height: 180px;
    min-height: 180px;
    width: auto;
  }

  .mockup_laptop {
    height: 250px;
    top: 13%;
  }

  .mockup_container.pc {
    padding-bottom: 330px;
  }
  .project_info_text {
    font-size: 0.8em;
  }

  .project_info_text img {
    height: 160px;
    margin: 7% 0;
  }
  .video_controls_container {
    margin-top: 15%;
    position: relative;
  }

  .tech_stack_item {
    padding: 5px;
  }
}

.pInfoText_container {
  overflow: hidden;
}

.pInfoText_child {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease,
    transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.pInfoText_child.show {
  opacity: 1;
  transform: translateY(0%);
}

.popup_image_container {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  z-index: 100;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

.popup_image_container.show {
  transition: transform 0.5s ease;
  transform: translateY(0%);
}

.popup_image {
  width: auto;
  height: clamp(40vh, 60vw, 70vh);
  aspect-ratio: initial;
  margin: 0;
  align-self: center;
  transform: scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.popup_image.show {
  transition: transform 0.5s ease;
  transform: scale(1);
}

.close_text {
  margin-top: 5%;
  margin-bottom: -5%;
  text-align: center;
  color: lightgray;
  font-size: 2em;
  transition: color 0.2s ease;
}

.close_text:hover {
  color: #00bbff;
}

.back_to_software_projects {
  box-sizing: content-box;
  color: white;
  width: 100%;
  display: flex;
  gap: 2%;
  font-family: Helvs;
  margin-left: 5%;
  margin-top: -2%;
  font-size: 1.5em;
  align-items: center;
  font-weight: bold;
  transition: color 0.5s ease;
}

.back_to_software_projects:hover {
  color: #00bbff;
  transition: color 0.5s ease;
}

.back_to_software_projects a {
  text-decoration: none;
  color: inherit;
}

.bento_card {
  width: 400px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px);
  border-radius: 15px;
  color: white;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background-color 0.3s ease;
  -webkit-transition: transform 0.3s ease, background-color 0.3s ease;
}

.subcontent3 {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  margin-top: 1%;
}

.documentation,
.image_gallery {
  width: 80%;
}

.image_gallery:hover {
  transform: none !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}
.bento_content {
  padding: 6%;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  color: white;
  font-family: Helvs;
  font-size: 0.9em;
}

.bento_content hr {
  width: 90%;
  border-color: rgb(58, 58, 58);
}
.bento_content > * {
  color: white;
}

.bento_cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 1.5em;
}

.bento_heading {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  height: 2.5em;
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 2%;
  font-size: 1em;
  font-family: Helvs;
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

.bento_link {
  display: flex;
  justify-content: space-between;
  align-content: center;
}

.link_icon {
  font-size: 1.1em !important;
}

.created_on {
  color: grey;
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.currently_working {
  background-color: #f8c806;
}

.bento_card:hover {
  transform: translateY(-1em);
  background-color: rgba(25, 25, 25, 0.9);
}

.project_demo_text {
  font-family: Helvs;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3%;
  color: grey;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
  margin-bottom: 6%;
}

.project_demo_text:hover {
  color: white;
}

.github_info {
  display: flex;
  justify-content: space-between;
}

/*! Headers */
.slider {
  width: 100%;
  align-self: center;
}

.slider-wrapper {
  width: 100%;
  white-space: nowrap;
}

.slider_container_overflow {
  width: 90%;
  overflow: hidden;
}

.slider-item {
  width: 1500px;
  display: inline-block;
  overflow: hidden;
}

.slider-item figure {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.slider-item figure img {
  width: 80vw;
  max-height: 800px;
  height: fit-content;
  /* aspect-ratio: 16/9; */
  position: absolute;
  object-fit: cover;
  border: white solid 2px;
}

.slider-progress {
  width: 20vw;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slider-progress-bar {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: 0% 0%;
}

.projectmedia_carousel {
  display: flex;
  justify-content: center;
}

.projectmedia-slider-wrapper {
  position: relative;
  max-width: 70%;
}

.projectmedia-slider {
  display: flex;
  aspect-ratio: 3 / 1;
  overflow-x: auto;
  box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
  border-radius: 1rem;
  outline: solid 1px white;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.projectmedia-slider::-webkit-scrollbar {
  display: none;
}

.projectmedia-slider img {
  transform: translateX(0%);
  transition: transform 1s ease;
  flex: 1 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
}

.projectmedia_controls_container {
  width: 100%;
  position: fixed;
  bottom: 20px;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
  -webkit-transition: opacity 0.5s ease;
}

.projectmedia_controls_container.hidden {
  animation: scaleAnimation 0.7s both normal;
}

.projectmedia_controls_others {
  display: flex;
  height: 60px;
  width: 170px;
  border-radius: 100px;
  align-items: center;
  justify-content: center;
  transition: width 0.1s ease;
  -webkit-transition: width 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.projectmedia_controls_others.hidden {
  width: 60px;
  transition: width 0.1s ease;
  -webkit-transition: width 0.1s ease;
}

.project_image {
  width: 100%;
}

/* Basic Styles */
.project_images {
  position: relative;
}

.project_image {
  width: 100%;
  height: auto;
}

/* Slider Gallery Styles for Desktop */
@media (min-width: 768px) {
  .project_images {
    display: flex;
    overflow: hidden;
  }

  .project_image {
    min-width: 100%;
    max-height: 70vh;
    min-height: 70vh;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
  }

  .slider-button {
    position: relative;
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
  }

  .slider-button button {
    padding: 10px;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    border: none;
    display: grid;
    place-content: center;
  }
  .slider-button button span {
    font-size: 30px !important;
  }
}

/* Vertical Layout for Mobile */
@media (max-width: 767px) {
  .slider-button {
    display: none;
  }

  .project_images {
    display: block;
  }

  .project_image {
    margin-bottom: 10px;
    display: block !important;
  }
}

/* Dots container styles */
.dots {
  display: flex;
  justify-content: center;
}

.dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.dots .dot.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Local Devicon SVGs (the archive does not use the Devicon icon font) */
img.tech_stack_icon {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
