@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: white;
}
header {
  margin-top: 20px;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
  z-index: 100;
}
.logo {
  font-size: 3rem;
  color: #8b5cf6;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5 ease;
}
.logo:hover {
  transform: scale(1.1);
}
.nav,
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem 0;
}
nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.active {
  color: #8b5cf6;
  border-bottom: 3px solid #8b5cf6;
}
@media (max-width: 995px) {
  nav {
    width: 100%;
    justify-content: center;
  }
  nav a {
    margin: 0 1.6rem;
    font-size: 1.7rem;
  }
  nav a:hover,
  nav a.active {
    padding-bottom: 0.6rem;
    border-radius: 0;
    border-bottom: 3px solid #8b5cf6;
  }
}
section {
  min-height: calc(100vh - 8rem);
  padding: 8rem 9% 5rem;
}
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: transparent;
}
.home-content {
  max-width: 65rem;
}
.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}
span {
  color: #8b5cf6;
}
.home .home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.home-img {
  border-radius: 50%;
}
.home-img img {
  position: relative;
  width: min(32vw, 42rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 25px solid #8b5cf6;
  cursor: pointer;
  transition: 0.2s linear;
}
.home-img img:hover {
  font-size: 1.8rem;
  font-weight: 500;
}
.home-content p {
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 62rem;
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
}
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #8b5cf6;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3 ease;
  color: #8b5cf6;
}
.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #8b5cf6;
  box-shadow: 0 0 25px #8b5cf6;
}
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #8b5cf6;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #8b5cf6;
  transition: 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  transform: scale3d(1.03);
  background-color: #8b5cf6;
  color: black;
  box-shadow: 0 0 25px #8b5cf6;
}
.typing-text {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}
.typing-text span {
  position: relative;
}
.typing-text span::before {
  content: "Software Developer";
  color: #8b5cf6;
  animation: words 20s infinite;
}
.typing-text span::after {
  content: "";
  background-color: transparent;
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid black;
  right: -8;
  animation: cursor 0.6s infinite;
}
@keyframes cursor {
  to {
    border-left: 3px solid #8b5cf6;
  }
}
@keyframes words {
  0%,
  20% {
    content: "Web Developer";
  }
  21%,
  40% {
    content: "Software Developer";
  }
  41%,
  60% {
    content: "Scholar";
  }
  61%,
  80% {
    content: "Learner";
  }
  81%,
  100% {
    content: "Tech Enthusiast";
  }
}
@media (max-width: 1000px) {
  .home {
    gap: 4rem;
  }
}
@media (max-width: 995px) {
  header {
    justify-content: center;
    margin-top: 0;
    padding: 2rem 5%;
  }
  section {
    padding-top: 12rem;
  }
  .home {
    flex-direction: column;
    margin: 0;
    text-align: center;
  }
  .home .home-content h3 {
    font-size: 2.5rem;
  }
  .home .home-content h1 {
    font-size: 5rem;
  }
  .home-img img {
    width: min(70vw, 36rem);
    margin-top: 2rem;
  }
  .social-icons {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 56.25%;
  }
  header {
    padding: 1.6rem 4%;
  }
  nav a {
    margin: 0 1rem;
    font-size: 1.6rem;
  }
  section {
    padding: 11rem 6% 4rem;
  }
  .home .home-content h1 {
    font-size: 4.2rem;
  }
  .home .home-content h3,
  .typing-text {
    font-size: 2.2rem;
    min-width: auto;
  }
  .btn {
    width: 100%;
    max-width: 28rem;
    text-align: center;
  }
}
