* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  background: url("Portfolio.jpg") center center / cover no-repeat fixed;
  position: relative;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.3) 100%);
  z-index: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
}

.logo span {
  color: #ffde59;
}

.mail {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
}

.socials {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.socials a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.socials a:hover {
  color: #ffde59;
  transform: scale(1.2);
}

.intro-text {
  position: absolute;
  bottom: 9%;
  left: 10%;
  right: 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  flex-wrap: wrap;
  gap: 2rem;
}

.iam {
  font-size: 6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  transform: translateX(250px);
}

.artist {
  font-size: 11vw;
  font-weight: 900;
  color: #ffdb3a;
  text-align: right;
  line-height: 1;
}

#changing-word {
  display: inline-block;
  transition: opacity 0.6s ease-in-out;
}
.fade-out {
  opacity: 0;
}
.fade-in {
  opacity: 1;
}

@media (max-width: 1024px) {
  .iam {
    font-size: 4rem;
    transform: translateX(0);
  }

  .artist {
    font-size: 9vw;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .socials {
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1.5rem 2rem;
    gap: 0.5rem;
  }

  body {
    background-position: 20% center;
  }

  .mail {
    font-size: 0.8rem;
  }

 .socials {
    transform: translateY(-50px);
  }

  .intro-text {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    bottom: 6%;
  }

  .iam {
    font-size: 3rem;
    transform: translateX(0);
  }

  .artist {
    font-size: 15vw;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px;
  }

    body {
    background-position: 20% center;
  }

  .socials {
    transform: translateY(-30px);
  }

  .iam {
    font-size: 2.2rem;
  }

  .artist {
    font-size: 18vw;
  }

  .mail {
    display: none;
  }
}
