body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4b3cef;
  padding: 20px 40px;
  color: white;
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav a:hover {
  background-color: white;
  color: #4b3cef;
  text-decoration: none;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.close-icon {
  display: none; 
  font-size: 32px;
  color: white;
  cursor: pointer;
  margin-bottom: 20px;
  margin-right: 30px;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; 
    height: 100vh;
    width: 250px;
    background-color: #4b3cef;
    padding: 80px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: right 0.3s ease-in-out;
  }

  .nav.show {
    right: 0;
  }

  .nav a {
    margin: 15px 0;
    width: 100%;
    display: block;
  }
  .hamburger span {
  font-size: 28px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.close-icon {
  font-size: 32px;
  color: white;
  cursor: pointer;
  margin-bottom: 20px;
  margin-right: 30px; 
  display: none;
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 250px;
  background-color: #4b3cef;
  padding: 40px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: right 0.3s ease-in-out;
}

  .nav.show {
    right: 0;
  }

  .nav a {
    margin: 10px 0;
    width: 100%;
    display: block;
  }

  .nav.show .close-icon {
    display: block;
  }
}



}
