nav {
  background: linear-gradient(to right, #a020db, #1529d8);
  border-image: fill;
  z-index: 1001;
  text-justify: auto;
  font-family: "PT Sans", sans-serif;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 0 0;
  position: fixed;
  top: 0;
  left: 0;
  transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out, left 0.5s ease-in-out, opacity 0.5s ease-in-out;
  scroll-behavior: smooth;
}
nav::before {
  padding: 0 0 0 0;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #8e00cf, #000f9b);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  box-shadow: 5px 0 5px rgba(0, 0, 0, 0.5);
}

.nav-links {
  display: flex;
  list-style-type: none;
  display: flex;
  align-items: center;
  margin-right: auto;
  padding-left: 1rem;
}

.nav-links li {
  letter-spacing: 1.5px;
  margin-right: 30px;
  font-size: 15.5px;
  position: relative; 
  cursor: pointer;
}
.nav-links li:last-child{
  margin-right: 20px;
}
.nav-links li::after {
  content: ''; 
  position: absolute; 
  left: 50%;
  bottom: -3px; 
  width: 0;
  height: 2px; 
  background-color: white; 
  transition: width 0.4s ease;
  transform: translateX(-50%); 
}

.nav-links li:hover::after {
  width: 100%;
}

.nav-links li:active::after {
  width: 0;
  transition: width 0.05s ease-out;
}

.navLogo{
  width: 45px;
  height: 45px;
  padding-right: 10px;
  margin-left: 1.3%;
}

.porkolt div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  border-radius: 1px;
  box-shadow: 1px 1px 5px black;
  transition: all 0.8s;
  transform-origin: 1px;
}

.sor2.clicked {
  transform: translateX(20px);
  opacity: 0;
}

.sor1.clicked {
  transform: rotate(45deg);
}

.sor3.clicked {
  transform: rotate(-45deg);
}

.porkolt {
  display: none;
  cursor: pointer;
  z-index: 1005;
  margin-right: 20px;
}

.porkolthidden {
  display: flex;
  background: linear-gradient(to right, rgb(100, 0, 160), rgb(40, 0, 90));
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  right: -250px; 
  z-index: 1004;
  overflow: hidden;
  transition: right 1s ease; 
  box-shadow: 0px 0px 20px rgb(102, 0, 161);
}

.porkolthidden.open {
  right: 0; 
}

.navLogo_hidden{
  width: 40px;
  height: 40px;
  position: absolute;
  top: 15px;
  left: 10px;
}
.navLogoH1_hidden {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 5px;
  left: 55px;
  font-size: 24px;
  letter-spacing: px;
  font-family: Minecraft;
  text-justify: auto;
  font-weight: bold;
}
.x_container {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 1s ease;
}

.x_container.clicked {
  opacity: 1;
  transition: opacity 1s ease;
}

.x_container::before,
.x_container::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 5px;
  background-color: white;
  border-radius: 20%;
  transition: transform 0.5s ease-out;
}

.x_container::before {
  transform: rotate(45deg);
}

.x_container::after {
  transform: rotate(-45deg);
}

.x_container:hover::before {
  transform: rotate(-45deg);
}

.x_container:hover::after {
  transform: rotate(45deg);
}

.x_container.clicked {
  transform: scale(0);
  transition: transform 0.6s ease-in-out;
}

.nav-links_hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40%;
  text-justify: auto;
  font-family: "PT Sans", sans-serif;
  font-weight: bold;
}

.nav-links_hidden li {
  list-style-type: none;
  margin-top: 30px;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.nav_links_hidden li:first-child {
  margin-top: 0;
}

.nav-links_hidden li a {
  text-decoration: none;
  color: white;
}

.nav-links_hidden li::after {
  content: ''; 
  position: absolute; 
  left: 50%;
  bottom: -3px; 
  width: 0;
  height: 2px; 
  background-color: white; 
  transition: width 0.4s ease;
  transform: translateX(-50%); 
}

.nav-links_hidden li:hover::after {
  width: 100%;
}

.nav-links_hidden li:active::after {
  width: 0;
  transition: width 0.05s ease-out;
}

.contactIcons_hidden {
  display: flex;
  position: relative;
  top: 30%;
  gap: 15px;
}

.contactClick_hidden {
  display: flex;
  align-items: center; 
  gap: 10px; 
  width: 50px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.contactClick_hidden:nth-child(2){
  width: 55px;
}


.contactClick_hidden:nth-child(3){
  height: 50px;
  filter: brightness(1) invert(1);
}

.contactClick_hidden:hover{
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

.contactClick_hidden:active{
  transform: scale(0.9);
  transition: transform 0.1s ease-in-out;
}

@media screen and (max-width: 768px) {
  nav ul li {
      margin-right: 10px;
      font-size: 13px;
  }
  nav ul {
      padding-right: 5%;
  }
  .porkolt {
      display: block;
  }
  .nav-links {
      display: none;
  }
  .navLogo {
    width: 40px;
    height: 40px;
  }
  .contact {
    display:none;
  }
}
