.home__container {
  row-gap: 7rem;
  position: relative;
}

.home__container::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color-light), var(--accent-color-light));
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  filter: blur(60px);
}

@media screen and (max-width: 992px) {
  .home__container::before {
    width: 300px;
    height: 300px;
    right: -3rem;
    top: -3rem;
  }
}

@media screen and (max-width: 768px) {
  .home__container::before {
    display: none;
  }
}

.home__content {
  grid-template-columns: 116px repeat(2, 1fr);
  padding-top: 5.5rem;
  column-gap: 2rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.25rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.home__social-label {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.home__social-icon:hover {
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  padding-right: 1rem;
}

.home__social-icon:hover .home__social-label {
  max-width: 250px;
  opacity: 1;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-0-25);
  background: linear-gradient(135deg, var(--title-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
}

.home__title-line {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .home__title-line {
    margin-left: 10px;
    white-space: normal;
    flex-wrap: wrap;
  }
}

.home__hand {
  width: 38px;
  height: 38px;
  margin-left: 0.4rem;
  display: inline;
  vertical-align: text-bottom;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(14deg);
  }

  20%,
  40% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(14deg);
  }

  60% {
    transform: rotate(0deg);
  }
}

.home__subtitle {
  position: relative;
  font-size: var(--h3-font-size);
  padding-left: 5.4rem;
  font-weight: var(--font-normal);
  margin-bottom: var(--mb-2);
}

.home__subtitle::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 1px;
  background-color: var(--text-color);
  left: 0;
  top: 1rem;
}

.home__description {
  max-width: 400px;
  margin-bottom: var(--mb-3);
}

.home__img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: inset 0 0 0 9px rgb(225 225 225 / 30%);
  border: 8px solid rgba(231, 231, 231, 0.5);
  order: 1;
  justify-self: center;
  animation: profile__animate 8s ease-in-out infinite 1s;
}

@keyframes profile__animate {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .home__content {
    grid-template-columns: 100px repeat(2, 1fr);
    column-gap: 1.25rem;
  }

  .home__hand {
    width: 26px;
    height: 26px;
  }

  .home__subtitle {
    padding-left: 3.75rem;
    margin-bottom: var(--mb-1);
  }

  .home__subtitle::before {
    width: 42px;
    top: 0.8rem;
  }

  .home__description {
    max-width: initial;
    margin-bottom: var(--mb-2-5);
  }

  .home__img {
    width: 250px;
    height: 250px;
    box-shadow: inset 0 0 10px 3px rgba(200, 200, 200, 0.9);
    border: 3px solid rgba(211, 211, 211, 0.5);
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .home__container {
    row-gap: 3rem;
  }

  .home__content {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    row-gap: 2rem;
    max-width: 100%;
  }

  .home__social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 1.5rem;
    order: 3;
  }

  .home__subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home__social-icon:hover {
    padding-right: 0.5rem;
  }

  .home__social-label {
    display: none;
  }

  .home__img {
    order: 1;
    justify-self: center;
    width: 200px;
    height: 200px;
    box-shadow: inset 0 0 10px 3px rgba(200, 200, 200, 0.9);
    border: 3px solid rgba(211, 211, 211, 0.5);
  }

  .home__data {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home__title {
    font-size: 2rem;
    text-align: center;
  }

  .home__title br {
    display: none;
  }

  .home__subtitle {
    padding-left: 0;
    text-align: center;
  }

  .home__subtitle::before {
    display: none;
  }

  .home__description {
    text-align: center;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .home__container {
    row-gap: 2rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .home__content {
    row-gap: 1.5rem;
    padding-top: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .home__title {
    font-size: 1.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home__subtitle {
    font-size: var(--normal-font-size);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home__description {
    padding: 0;
    font-size: var(--small-font-size);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home__social {
    column-gap: 1rem;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .home__container {
    row-gap: 1.5rem;
  }

  .home__img {
    width: 180px;
    height: 180px;
  }

  .home__hand {
    width: 22px;
    height: 22px;
  }
}
