Rajat, there's so many opportunities to focus on and in Information Technology they change frequently, so keep asking these types of questions as you grow in your career aspirations. If you are interested in computers and writing code, nothing beats starting in some type of software development job using whatever are the languages most prevalent at that time, today Python and NodeJS are two good choices. To gain more hardware knowledge, the best way to learn is hands on, so buying inexpensive desktop hardware and upgrading components can be a good start. Usually highly tech professionals will build a local network in their home using a desktop and some form of a Linux OS. Today, much of the hardware needs are moving to Public Cloud providers like Amazon, Microsoft and Google, so learning more about their service offerings and diving into their API (application program interface) driven methods of acquiring infrastructure as code may be a more practical way of learning about hardware and code at the same time.
If you cannot find work in programming or software development, other IT related jobs will likely lead to opportunities to code and learn more about hardware, so taking other IT related jobs may be a good place to start also. Most larger companies (technology, financial services, etc) have leadership development programs and searching their websites for how to apply for an opportunity to become part of a leadership development program can also be a good place for a new college grad. If you are in high school, checking with the same large companies for high school summer internship opportunities and how you might apply to be considered. I have worked with many high school and college interns in my career, who worked hard and in many cases it opened up opportunities for them in the IT leadership development programs after they graduated from college.
All the best