@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  color: inherit;
}

html {
  font-size: 62.5%;
}

body {
  background-color: #000;
  color: white;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  color: #b74b4b;
  cursor: pointer;
}

nav a {
  font-size: 1.8rem;
  margin-left: 4rem;
  font-weight: 500;
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

/* Home Section */
section.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10rem 9%;
  gap: 5rem;
  min-height: 100vh;
  background-color: black;
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px #b74b4b;
  transition: 0.3s ease;
  object-fit: cover;
}

.home-img img:hover {
  transform: scale(1.05);
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
}

.home-content h3 {
  font-size: 3rem;
  font-weight: 600;
  margin: 1rem 0;
}

.home-content span {
  color: #b74b4b;
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  border-radius: 50%;
  font-size: 2rem;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  background-color: #b74b4b;
  color: black;
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px #b74b4b;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 4rem;
  border: 2px solid #b74b4b;
  letter-spacing: 0.3rem;
  color: #b74b4b;
  background-color: black;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #b74b4b;
  color: black;
  transform: scale(1.03);
  box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.typing-text span{
  position: relative;
}

.typing-text span::before{
  content: "software engineer";
  color: #b74b4b;
  animation: words 20s infinite;
}

.typing-text span::after{
  content: "";
  background-color: black;
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px;
  right: -8;
  animation: cursor 0.6s infinite;
}

@keyframes cursor{
  to{
    border-left: 3px solid;
  }
}

@keyframes words{
  0%, 20%{
    content: "Web Developer";
  }
  21%, 40%{
    content: "Programmer";
  }
  41%, 60%{
    content: "Software Engineer";
  }
  61%, 80%{
    content: "Game Developer";
  }
  81%, 100%{
    content: "Script Writer";
  }
}

@media(max-width:995px){
  .home{
    flex-direction: column;
    margin: 5rem 4rem;
  }

  .home .home-content h3{
    font-size: 2.5rem;
  }

  .home-content h1{
    font-size: 5rem;
  }

  .home-img img{
    width: 70vw;
    margin-top: 4rem;
  }
}