
body {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display';
  background: linear-gradient(to bottom right, #0d0d1a, #1a1a2e);
  color: white;
  text-align: center;
  justify-items: center;
  direction: ltr;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #9f7aea;
  margin-top: 30px;
  box-shadow: 0 0 50px rgba(159, 122, 234, 0.3);

}

.headline {
  text-align: center;
  position: relative;
  font-size: 3rem;
  color: #9f7aea;
  border-right: 2px solid #9f7aea;
  white-space: nowrap;
  overflow: hidden;
  width: 13ch;

  margin: 40px auto;
  animation: typing 2s steps(13) alternate;

}

@keyframes typing {
  from {
    width: 0ch;
  }

  to {
    width: 10ch;
    /* به اندازه متن */
  }
}

.section {
  justify-items: center;
}

.description {
  max-width: 600px;
  font-size: large;
  border: 1px solid #9f7aea;
  border-radius: 10px;
  padding: 10px;
  color: #ccc;
  box-shadow: 0 0 20px rgba(159, 122, 234, 0.3);

}

.buttons {
  margin: 20px;
}

.btn {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  border: 2px solid #9f7aea;
  color: #9f7aea;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #9f7aea;
  color: black;
}

.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px;
}

.card {
  background: #1e1e3f;
  border: 1px solid #9f7aea;
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  width: 250px;
  box-shadow: 0 0 20px rgba(159, 122, 234, 0.3);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #29184d, #6c63ff, #8353e4);
  animation: rotate 4s linear infinite;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.7;
}

.card::after {
  position: absolute;
  inset: 0;
  background: #1e1e3f;
  border-radius: 15px;
  z-index: 1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.card-discription {
  line-height: 1.6;
  text-align: justify;
  text-shadow: 3px 3px 5px #0d0d1a;
}

footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #aaa;
}