* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  background-color: #292a44;
  color: white;
}
.nav-div {
  width: 80%;
  margin: auto;
  height: 44px;

  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #292a44;
  border-radius: 5px;
}
#forContact {
  background-color: #676cdb;
  color: white;
  padding: 8px 10px;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
}
#forContact:hover {
  cursor: pointer;
  transform: scale(1.05);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
html {
  scroll-behavior: smooth;
}

.nav-div button:active {
  transform: scale(0.95);
  background-color: #4e52b5;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 16px;
}
.navbar ul a {
  text-decoration: none;
  font-size: large;
  font-weight: 600;
  color: white;
}
.navbar ul a:active {
  transform: scale(0.95);
}

#welcome h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 50px;
}
.about {
  display: flex;
  padding: 0px 10px;
}

.text {
  width: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.text h1 {
  font-size: 50px;
}
.text h2 {
  font-size: 30px;
}
.text p {
  color: gray;
  font-size: 20px;
  text-align: justify;
  line-height: 1.2;
}
.text p b {
  color: white;
}
.about div {
  display: flex;
  gap: 5px;
}
.download-cv {
  color: white;
  background-color: transparent;
  padding: 8px 10px;
  display: flex;
  gap: 4px;
  align-items: center;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: underline;
  transition: all 0.2s ease;
}
.download-cv:active {
  transform: scale(0.95);
}
.email-icon {
  height: 20px;
  background-color: none;
}
.download-icon {
  height: 20px;
  color: white;
}
.image {
  width: 50%;
  padding: 0px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image div {
  width: 300px;
  height: 500px;
  object-fit: contain;
}
.image img {
  height: 100%;
  border-radius: 50px;
}

.projects {
  border-top: 1px solid black;
  margin: 20px;
}
.projects h1 {
  text-align: center;
  margin: 10px 0px 20px 0px;
}
.projects div {
  display: flex;
  justify-content: space-around;
}

.project h2,
.project h3,
.project p {
  margin: 0 !important;
}

.project {
  width: 300px;
  height: 300px;
  background-color: #e5e5e5;
  color: black;
  padding: 10px;
  margin: 10px 0px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 5px;
  gap: 10px;
}
.project div {
  display: flex;
  flex-direction: column;
}

.about {
  color: gray;
}
.project:hover {
  background-color: #676cdb;
  cursor: pointer;
}
.project:hover .about {
  color: white;
}

.contact-form {
  display: flex;
  gap: 5px;
  margin: 0px 10px 0px 0px;
  height: 400px;
  border-top: 1px solid black;
}

.tag-div {
  width: 50%;
  display: flex;
  justify-content: center;
  background-color: black;

  align-items: center;
}
.tag-div h1 {
  font-size: 80px;
}
.socialmedia-icon {
  display: flex;
  gap: 10px;
}
.socialmedia-icon span i {
  font-size: 24px;
}
.form-div {
  width: 50%;
  display: flex;
  justify-content: center;
}
.form {
  display: flex;
  flex-direction: column;
  padding: 20px 0px;
  gap: 20px;
}
.form-input {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.form-input label {
  font-size: 20px;
}
.form-input input {
  width: 300px;
  height: 30px;
  padding: 5px;
  border-radius: 5px;
}
.form-input textarea {
  width: 300px;
  height: 50px;
  padding: 5px;
  resize: vertical;
  font-family: inherit;
  border-radius: 5px;
}

.form button {
  color: #4e52b5;
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: none;
  border-radius: 5px;
  font-size: 22px;
  transition: all 0.2s ease;
  background-color: transparent;
}
.form button i {
  font-size: 20px;
  color: #4e52b5;
}

@media (max-width: 768px) {
  .about,
  .projects div,
  .contact-form {
    flex-direction: column;
    align-items: center;
  }

  .text,
  .image,
  .tag-div,
  .form-div {
    width: 100%;
  }

  .form-input input,
  .form-input textarea {
    width: 90%;
  }

  .tag-div h1 {
    font-size: 40px;
  }
}
