* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: rgb(42, 42, 42);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  margin: 5vh auto;
  position: relative;
  width: 80%;
  height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-imgs {
  text-align: center;
  position: absolute;
  left: 83%;
  top: 75%;
  transform: translate(-50%, -50%);
}
.project-imgs img {
  width: 500px;
}

.counter {
  position: absolute;
  color: #f1f1f1;
  right: 25%;
  top: 0%;
  z-index: 999999999;
}
.no-pages {
  font-size: 15px;
  margin-right: -4rem;
}
.current {
  font-size: 2.5rem;
  margin-left: -3rem;
  font-weight: 600;
}
body .text {
  text-transform: uppercase;
  position: absolute;
  left: 2.5%;
  top: 50%;
  transform: translate(-50%, -50%);
}
body .text p {
  opacity: 0;
  transition: opacity 0.5s;
  margin: 15px 0;
  color: #fff;
}
.text p.show {
  opacity: 1; /* Show letters when this class is added */
}
.drop-down li {
  list-style: none;
  height: 100%;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.drop-down {
  transition: 0.6s;
  width: 8rem;
  position: absolute;
  padding: 0.5rem 0;
  margin: 0.5rem 0rem;
  background: #ffffff;
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 12px;
  display: none;
  text-align: center;
  z-index: 1;
  animation: bounce-down 0.6s ease forwards;
}
@keyframes bounce-down {
  0% {
    transform: translateY(0);
    animation-timing-function: ease-in;
  }
  50% {
    transform: translateY(10px);
    animation-timing-function: ease-out;
  }
  70% {
    transform: translateY(5px);
    animation-timing-function: ease-in;
  }
  90% {
    transform: translateY(8px);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateY(7px);
  }
}
.projects:hover .drop-down {
  display: block;
  z-index: 3;
}

.projects a {
  display: flex;
  align-items: center;
}

.projects .dropdown-icon {
  font-size: 18px;
  position: relative;
  right: -5px;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out all;
}

.projects:hover .dropdown-icon {
  transform: rotate(180deg);
}

.drop-down li:hover {
  transform: scale(1.1);
  transition: 0.1s;
}
.no-effect {
  color: rgb(18, 18, 18);
}
.fa {
  display: none !important;
}
.nav-links {
  flex: 1;
  text-align: right;
  margin-right: 5.6rem;
}
.nav-links ul li {
  list-style: none;
  display: inline-block;
  cursor: pointer;
  padding: 8px 25px;
}
.nav-links ul li a {
  letter-spacing: 2px;
  color: rgb(237, 237, 237);
  text-decoration: none;
  font-size: 10px;
  transition: 0.3s;
}
.header-nav-links {
  /* position: absolute; */
  height: 10vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(28, 28, 28);
  z-index: 2;
  width: 100%;
}
.nav-links li:not(.no-effect)::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #f1f1f1;
  display: block;
  margin: auto;
  transition: 0.5s;
  margin-top: 3px;
}
.nav-links ul li:hover::after {
  width: 100%;
}
nav .tel-phones {
  margin: 3rem 5.6rem;
  display: flex;
  align-items: center;
}
nav .tel-span {
  color: #fff;
  font-size: 13px;
  margin-left: 1rem;
}
nav .tel-svg {
  width: 40px;
  animation: ring 1s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes ring {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.item {
  /* Base styling */
  width: 100px;
  height: 150px;
  list-style-type: none;
  position: absolute;
  top: 64%;
  transform: translate(10%, -50%);
  z-index: 1;
  background-position: center;
  background-size: contain;
  background-repeat: repeat;
  /* background-repeat: no-repeat; */
  /* box-shadow: rgb(0, 0, 0) 0px 0px 0px 3px, rgb(255, 255, 255) 0px 0px 0px 6px,
    rgb(0, 0, 0) 0px 0px 0px 9px, rgb(255, 255, 255) 0px 0px 0px 12px,
    rgb(0, 0, 0) 0px 0px 0px 15px; */
  transition: 0.6s ease;
}

.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  width: 70%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.item:nth-child(3) {
  left: 50%;
  opacity: 0;
}

.item:nth-child(4) {
  left: calc(50% + 220px);
  opacity: 0;
}

.item:nth-child(5) {
  left: calc(50% + 440px);
  opacity: 0;
}

.item:nth-child(6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item:nth-child(7) {
  left: calc(50% + 880px);
  opacity: 0;
}

.item:nth-child(8) {
  left: calc(50% + 1100px);
  opacity: 0;
}

.item:nth-child(9) {
  left: calc(50% + 1320px);
  opacity: 0;
}

.item:nth-child(10) {
  left: calc(50% + 1540px);
  opacity: 0;
}

.item:nth-child(11) {
  left: calc(50% + 1760px);
  opacity: 0;
}

.item:nth-child(12) {
  left: calc(50% + 1980px);
  opacity: 0;
}

.item:nth-child(13) {
  left: calc(50% + 2200px);
  opacity: 0;
}

.item:nth-child(14) {
  left: calc(50% + 2420px);
  opacity: 0;
}

.item:nth-child(15) {
  left: calc(50% + 2640px);
  opacity: 0;
}

.item:nth-child(16) {
  left: calc(50% + 2860px);
  opacity: 0;
}

/* Extending up to the 31st child */
.item:nth-child(17) {
  left: calc(50% + 3080px);
  opacity: 0;
}

.item:nth-child(18) {
  left: calc(50% + 3300px);
  opacity: 0;
}

.item:nth-child(19) {
  left: calc(50% + 3520px);
  opacity: 0;
}

.item:nth-child(20) {
  left: calc(50% + 3740px);
  opacity: 0;
}

.item:nth-child(21) {
  left: calc(50% + 3960px);
  opacity: 0;
}

.item:nth-child(22) {
  left: calc(50% + 4180px);
  opacity: 0;
}

.item:nth-child(23) {
  left: calc(50% + 4400px);
  opacity: 0;
}

.item:nth-child(24) {
  left: calc(50% + 4620px);
  opacity: 0;
}

.item:nth-child(25) {
  left: calc(50% + 4840px);
  opacity: 0;
}

.item:nth-child(26) {
  left: calc(50% + 5060px);
  opacity: 0;
}

.item:nth-child(27) {
  left: calc(50% + 5280px);
  opacity: 0;
}

.item:nth-child(28) {
  left: calc(50% + 5500px);
  opacity: 0;
}

.item:nth-child(29) {
  left: calc(50% + 5720px);
  opacity: 0;
}

.item:nth-child(30) {
  left: calc(50% + 5940px);
  opacity: 0;
}

.item:nth-child(31) {
  left: calc(50% + 6160px);
  opacity: 0;
}
.item:nth-child(32) {
  left: calc(50% + 6380px);
  opacity: 0;
}

.item:nth-child(33) {
  left: calc(50% + 6600px);
  opacity: 0;
}

.item:nth-child(34) {
  left: calc(50% + 6820px);
  opacity: 0;
}

.item:nth-child(35) {
  left: calc(50% + 7040px);
  opacity: 0;
}

.item:nth-child(36) {
  left: calc(50% + 7260px);
  opacity: 0;
}

.item:nth-child(37) {
  left: calc(50% + 7480px);
  opacity: 0;
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background: linear-gradient(#000000, #000000);
  background-position: center;
  background-size: cover;
  /* filter: blur(10px); */
  z-index: 1;
  opacity: 0.8;
}
.item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
}
.content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: none;

  & .title {
    font-family: "arial-black";
    text-transform: uppercase;
  }

  & .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.8rem;
  }

  & button {
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border: 2px solid white;
    border-radius: 0.25rem;
    padding: 0.75rem;
    cursor: pointer;
  }
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  display: flex;
  position: absolute;
  bottom: 1rem;
  left: 42.5%;
  transform: translateX(-85%);
  z-index: 5;
  user-select: none;

  & .btn {
    text-transform: uppercase;
    /* font-size: 1.2rem; */
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(255, 255, 255);
    border: 2px solid rgb(255, 255, 255);
    margin: 0rem 1rem;
    padding: 0.75rem 1rem;
    /* border-radius: 50%; */
    cursor: pointer;

    &:hover {
      background-color: rgba(0, 0, 0, 0.3);
    }
  }
}

/*****************************************************************************************************************
******************************************************************************************************************
******************************************************************************************************************/

@media (max-width: 575.98px) {
  body {
    padding: 0;
    overflow: hidden;
  }
  .item:nth-child(1),
  .item:nth-child(2) {
    margin-top: 2.5rem;
    width: 100%;
    height: 60%;
  }
  .fa {
    display: block !important;
  }

  nav p {
    position: absolute;
    top: -1%;
    left: -13%;
    font-size: 10px;
  }
  .nav-links ul li {
    /* margin: auto; */
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
    width: 12rem;
  }
  .nav-links {
    position: fixed;
    background: #353535;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -300px;
    text-align: left;
    z-index: 9999999999 !important;
    transition: 1s;
  }
  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }
  .tell {
    margin-top: 2rem;
  }
  nav .tel-span {
    position: relative;
    color: #fff;
    font-size: 11px;
    margin: -1.8rem 0 0 -5rem;
    padding: 1rem;
  }
  nav .tel-svg {
    width: 30px;
    position: absolute;
    top: 3%;
    left: 4%;
    transform: translate(-50%, -50%);
  }

  .nav {
    top: 72%;
    left: 28%;
    transform: translate(-50%, -50%);
  }
  .nav .btn {
    text-align: center;
    width: 4rem;
    margin: 0rem 0rem;
    padding: 0.75rem 0rem;
  }
  .nav .next {
    margin-left: 5rem;
  }
  .nav .prev {
    margin-right: 5rem;
  }
  .counter {
    right: 8%;
    top: 0%;
  }
  .no-pages {
    font-size: 10px;
  }
  .current {
    font-size: 1.5rem;
    margin-left: -2rem;
  }
  .project-imgs {
    text-align: center;
    position: absolute;
    left: 50%;
    top: 88%;
    transform: translate(-50%, -50%);
  }
  .project-imgs img {
    width: 250px;
  }
}
