* {
  padding: 0;
  margin: 0;
}

.parent {
  position: relative;
  width: 100%;
  height: 150vh;
  font-family: tahoma;
  text-align: center;
  line-height: 180%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parent h1, .parent p, .parent a {
  color: #ffffff; /* Set text color to white */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adding a text shadow for contrast */
  position: relative;
  z-index: 2; /* Ensure text appears above the overlay */
}

.parent p {
  padding: 25px;
  font-size: 20px;
}

.parent a {
  font-size: 23px;
  text-decoration: none;
  border: 2px solid #3bedd3;
  padding: 15px 25px;
  border-radius: 50px;
  transition: 0.3s;
}

.parent a:hover {
  background-color: #11caa2;
  color: #000;
}

nav {
  position: fixed;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
}

nav.sticky {
  background: #4070f4;
  padding: 13px 0;
}

nav .navbar {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}

nav .navbar .logo a {
  font-weight: 500;
  font-size: 35px;
  color: #ffffff;
}

nav.sticky .navbar .logo a {
  color: #fff;
}

nav .navbar .menu {
  display: flex;
  position: relative;
}

nav .navbar .menu li {
  list-style: none;
  margin: 0 8px;
}

.navbar .menu a {
  font-family: gilroy;
  padding: 6px 12px;
  font-size: 22px;
  font-weight: 400;
  text-decoration: none;
  color: #ffffff;
  padding: 6px 0;
  transition: all 0.4s ease;
}

.navbar .menu a:hover {
  color: #1ff0e2;
}

nav.sticky .menu a {
  color: #FFF;
}

nav.sticky .menu a:hover {
  color: #0E2431;
}

.navbar .media-icons a {
  color: #eeeeee;
  font-size: 18px;
  margin: 0 6px;
}

nav.sticky .media-icons a {
  color: #FFF;
}

nav .menu-btn,
.navbar .menu .cancel-btn {
  position: absolute;
  color: #fff;
  right: 30px;
  top: 20px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

nav .menu-btn {
  color: #4070f4;
}

nav.sticky .menu-btn {
  color: #FFF;
}

.navbar .menu .menu-btn {
  color: #fff;
}

.item {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .item {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .item {
    width: 200px;
  }
}

/* Adjust brightness of background images */
.parent:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust the opacity to change brightness */
  z-index: 1; /* Ensure overlay appears below text */
}

.parent:nth-of-type(1):before {
  background: url("images/infi5.jpg") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(50%); /* Adjust brightness of the background image */
}

.parent:nth-of-type(2):before {
  background: url("images/infi6.jpeg") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(50%); /* Adjust brightness of the background image */
}

.parent:nth-of-type(3):before {
  background: url("images/infi5.jpg") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(50%); /* Adjust brightness of the background image */
}

.parent:nth-of-type(4):before {
  background: url("images/infi2.jpg") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(50%); /* Adjust brightness of the background image */
}

.parent:nth-of-type(5):before {
  background: url("images/infi2.jpg") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(50%); /* Adjust brightness of the background image */
}
