html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* ===========================================================
POPUP
============================================================== */
.custom-popup {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;

  width: 100vw;
  height: 100vh;
  background: #1e1e1e80;
  display: flex;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}
.custom-popup.active {
  visibility: visible;
  opacity: 1;
}
.custom-popup .popup-content {
  aspect-ratio: 10/7;
  width: auto;
  height: 80%;

  background: white;
  border-radius: 10px;
  margin: auto;

  position: relative;
}
.custom-popup .popup-content .scroll-container {
  padding: 40px;
  display: flex;
  height: 100%;
}

/* Close Button */
.custom-popup .popup-content .close-btn {
  position: absolute;
  top: -20px;
  right: -20px;

  width: 60px;
  height: 60px;
  background: #b62126;
  border-radius: 10px;
  display: flex;
  cursor: pointer;
}
.custom-popup .popup-content .close-btn i {
  font-size: 30px;
  margin: auto;
  color: white;
}

/* Content Column */
.custom-popup .popup-content .image-wrapper,
.custom-popup .popup-content .detail {
  width: 50%;
  position: relative;
}
.custom-popup .popup-content:not(:has(.image-wrapper)) .detail {
  width: 100%;
}

/* Swiper */
.custom-popup .popup-content .image-wrapper .swiper {
  width: 480px;
  height: 100%;
}
.custom-popup .popup-content .image-wrapper .swiper .swiper-slide .card {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Swiper Bullet */
.custom-popup .popup-content .image-wrapper .swiper-pagination-bullet {
  background: white !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transform: scale(1) !important;
}
.custom-popup .popup-content .image-wrapper .swiper-pagination-bullet-active {
  background: #b62126 !important;
}
.custom-popup
  .popup-content
  .image-wrapper
  .swiper-horizontal
  > .swiper-pagination-bullets {
  bottom: 60px !important;
}

/* Image */
.custom-popup .popup-content .image-wrapper img {
  position: absolute;
  z-index: -1;

  width: 100%;
  border-radius: 10px;
  border: 1px solid #ff0000;

  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}

/* Image Typography */
.custom-popup .popup-content .image-wrapper .title:before {
  content: "";
  position: absolute;
  left: -30px;
  top: -10px;

  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, transparent, #b62126 50%);
  opacity: 0.85;
  clip-path: polygon(0 0, 0 40px, 40px 0);
}
.custom-popup .popup-content .image-wrapper .title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 100%;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;

  position: relative;
  width: fit-content;
  margin: auto 0 10px 0;
}
.custom-popup .popup-content .image-wrapper .tag {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 100%;
  text-align: center;
  color: #ffffff;

  margin: 0;
}
.custom-popup .popup-content .image-wrapper .swiper-slide[data-index="4"] .tag {
  font-size: 26px;
}
.custom-popup .popup-content .image-wrapper .subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 15px;
  text-align: center;
  color: #ffffff;

  margin: auto 0 70px 0;
}

/* Detail Typography */
.custom-popup .popup-content .detail {
  color: black;
  padding-left: 40px;
  overflow-y: auto;
}
.custom-popup .popup-content .detail .mobile-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 15px;

  display: none;
  text-align: center;
  margin-top: 20px;
}
.custom-popup .popup-content .detail .popup-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 35px;
  line-height: 100%;
  color: black;

  margin-bottom: 30px;
}
.custom-popup .popup-content .detail .popup-description {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
}

/* List */
.custom-popup .popup-content .detail .popup-description ul {
  margin-left: 30px;
  list-style: disc;
  margin-bottom: 30px;
}
.custom-popup .popup-content .detail .popup-description ul li {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
}

/* Button */
.custom-popup .popup-content .detail a.btn.btn-shadow-2.btn-download {
  margin-left: 15px;
}

/* ===========================================================
SECTION PROJECTS
============================================================== */
section#projects .custom-flex .flex-item {
  cursor: pointer;
}

/* ===========================================================
SECTION CLIENTS
============================================================== */
.clients,
.clients .back-gradient1 {
  height: 520px;
}
.clients .back-gradient,
.clients .back-gradient .back-cliens {
  height: 100%;
}

@media only screen and (max-width: 1440px) {
  /* ===========================================================
  POPUP
  ============================================================== */
  .custom-popup .popup-content .scroll-container {
    padding: 25px;
  }

  /* Close Button */
  .custom-popup .popup-content .close-btn {
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
  }
  .custom-popup .popup-content .close-btn i {
    font-size: 20px;
  }

  /* Content Column */
  .custom-popup .popup-content .detail {
    padding-left: 25px;
  }

  /* Swiper */
  .custom-popup .popup-content .image-wrapper .swiper {
    width: 440px;
  }

  /* Swiper Bullet */
  .custom-popup
    .popup-content
    .image-wrapper
    .swiper-horizontal
    > .swiper-pagination-bullets {
    bottom: 50px !important;
  }
  .custom-popup .popup-content .image-wrapper .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
  }

  /* Image Typography */
  .custom-popup .popup-content .image-wrapper .title {
    font-size: 50px;
  }
  .custom-popup .popup-content .image-wrapper .tag {
    font-size: 26px;
  }
  .custom-popup
    .popup-content
    .image-wrapper
    .swiper-slide[data-index="4"]
    .tag {
    font-size: 20px;
  }
  .custom-popup .popup-content .image-wrapper .subtitle {
    font-size: 12px;
    margin: auto 0 55px 0;
  }

  /* Detail Typography */
  .custom-popup .popup-content .detail .popup-title {
    font-size: 28px;
  }
  .custom-popup .popup-content .detail .popup-description {
    font-size: 15px;
  }

  /* Button */
  .custom-popup .popup-content .btn {
    font-size: 0.75em;
  }
  .custom-popup .popup-content .detail a.btn.btn-shadow-2.btn-download {
    margin-left: 5px;
  }
}

@media only screen and (max-width: 1024px) {
  /* ===========================================================
  POPUP
  ============================================================== */
  /* Button */
  .custom-popup .popup-content .btn {
    margin-bottom: 10px;
  }
  .custom-popup .popup-content .detail a.btn.btn-shadow-2.btn-download {
    margin: 0;
  }

  /* ===========================================================
  SECTION HERO
  ============================================================== */
  .carousel {
    height: 100vh;
  }
  .carousel .carousel-inner,
  .carousel .carousel-inner .item {
    height: 100%;
  }

  /* ===========================================================
    SECTION CLIENTS
    ============================================================== */
  .clients,
  .clients .back-gradient1 {
    height: 700px;
  }
}

@media only screen and (max-width: 849px) {
  .navbar-toggle {
    margin-top: 0;
  }

  /* ===========================================================
  POPUP
  ============================================================== */
  .custom-popup .popup-content {
    aspect-ratio: unset;
    width: 90%;
  }
  .custom-popup .popup-content .scroll-container {
    flex-direction: column;
    overflow: scroll;
  }

  /* Swiper */
  .custom-popup .popup-content .image-wrapper .swiper {
    height: 460px;
    width: 340px;
  }

  /* Swiper Bullet */
  .custom-popup
    .popup-content
    .image-wrapper
    .swiper-horizontal
    > .swiper-pagination-bullets {
    bottom: 40px !important;
  }

  /* Content Column */
  .custom-popup .popup-content .image-wrapper,
  .custom-popup .popup-content .detail {
    width: 100%;
  }

  /* Image Typography */
  .custom-popup
    .popup-content
    .image-wrapper
    .swiper-slide[data-index="4"]
    .tag {
    font-size: 16px;
  }
  .custom-popup .popup-content .image-wrapper .subtitle {
    margin: auto 0 40px 0;
  }

  /* Detail Typography */
  .custom-popup .popup-content .detail {
    padding: 0;
    overflow-y: visible;
  }
  .custom-popup .popup-content .detail .popup-title {
    margin-top: 40px;
  }

  /* Button */
  .custom-popup .popup-content .detail a.btn.btn-shadow-2.btn-download {
    margin-left: 5px;
    margin-bottom: 10px;
  }

  /* ===========================================================
  SECTION HERO
  ============================================================== */
  .carousel {
    height: 60vh;
  }

  /* ===========================================================
    SECTION CLIENTS
    ============================================================== */
  .clients,
  .clients .back-gradient1 {
    height: 750px;
  }
}

@media only screen and (max-width: 430px) {
  .navbar-toggle {
    margin-top: -20px;
  }

  /* ===========================================================
  POPUP
  ============================================================== */
  .custom-popup .popup-content .scroll-container {
    padding: 15px;
  }

  /* Close Button */
  .custom-popup .popup-content .close-btn {
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
  }
  .custom-popup .popup-content .close-btn i {
    font-size: 14px;
  }

  /* Swiper */
  .custom-popup .popup-content .image-wrapper .swiper {
    height: 400px;
    width: 290px;
  }

  /* Swiper Bullet */
  .custom-popup .popup-content .image-wrapper .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
  }

  /* Image Typography */
  .custom-popup
    .popup-content
    .image-wrapper
    .swiper-slide[data-index="4"]
    .title {
    font-size: 40px;
  }
  .custom-popup .popup-content .image-wrapper .tag {
    margin-bottom: auto;
  }
  .custom-popup
    .popup-content
    .image-wrapper
    .swiper-slide[data-index="4"]
    .tag {
    font-size: 14px;
  }
  .custom-popup .popup-content .image-wrapper .subtitle {
    display: none;
  }

  /* Detail Typography */
  .custom-popup .popup-content .detail .mobile-subtitle {
    display: block;
  }
  .custom-popup .popup-content .detail .popup-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .custom-popup .popup-content .detail .popup-description {
    font-size: 11px;
  }
  .custom-popup .popup-content .detail .popup-description ul {
    margin-bottom: 20px;
  }

  /* Button */
  .custom-popup .popup-content .detail a.btn.btn-shadow-2.btn-download {
    margin-left: 0;
    margin-bottom: 0;
  }

  /* ===========================================================
    SECTION CLIENTS
    ============================================================== */
  .clients,
  .clients .back-gradient1 {
    height: 1000px;
  }
}
