:root {
    --first-color: rgb(39, 180, 245);
    --white: #fff;
    --gray-text: #F2F2F295;
}

body{
    font-family: "Montserrat", sans-serif;
}

.img-name{
    display: flex;
    justify-content: center;
    gap: 200px;
}

.name-text {
    margin: 150px 0 0 120px;

}

.name-text h1{
    font-weight: 400;
    font-size: 70px;
    color: var(--white);
    width: 800px;
}

.name-text p{
    font-size: 25px;
    width: 500px;
    line-height: 1.5;
    margin: 20px 0 50px 0;
    color: var(--gray-text);
}

.mr-photo img{
    position: relative;
    right: 0;
    margin: 150px 120px 0 0;
    border-radius: 50%;
    animation: floatUpAndDown 2s ease-in-out infinite alternate;
    border: 10px solid var(--first-color);
}

@keyframes floatUpAndDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0);
    }
}

.icons{
    display: flex;
    gap: 25px;
    margin: 70px 0 0 0;
    width: 100px;
}

.icons img{
    width: 50px;
    transition: transform 0.5s ease;
}

.icons img:hover{
    transform: translateY(-20px)
    rotate(360deg);
}

.btn-text a{
    background: none;
    border: 1px solid var(--gray);
    padding: 25px 50px 25px 50px;
    border-radius: 40px;
    color: var(--white);
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 1402px) {
  .img-name {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .name-text {
    margin: 80px 0 0 0;
    text-align: center;
  }

  .name-text h1 {
    font-size: 45px;
    width: 100%;
  }

  .name-text p {
    width: 80%;
    margin: auto;
        margin-top: 30px;
  }

  .btn-text{
    margin: 70px 0 30px 0;
  }

  .mr-photo img {
    margin: 20px 0 0 0;
    width: 250px;
  }
}

@media (max-width: 600px) {
  .name-text h1 {
    font-size: 35px;
  }

  .name-text p {
    font-size: 18px;
    width: 90%;
    margin-top: 30px;
  }

  .btn-text  {
    margin: 70px 0 50px 0;
  }

  .icons img {
    width: 40px;
  }

  .img-name {
    gap: 20px;
  }
}
