* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #28313b, #485461);
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card {
  width: 40em;
  height: 20em;
  border-radius: 15px;
  box-shadow: 0 0px 3px rgba(0, 0, 0, 0.12), 0 0px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
}

.card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.left-section {
  /* background: linear-gradient(#0f2027, #203a43, #2c5364); */
  /* background: linear-gradient(135deg, #ddd, #fff); */
  background-color: #fafafa;
  width: 50%;
  height: 100%;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2em;
  z-index: -1;
}

.left-section > .photo-profile {
  width: 125px;
  height: 125px;
  margin-bottom: 0.5em;
  margin-top: auto;
  position: relative;
  background: url("./../img/ivanelv.jpg") no-repeat;
  background-size: 425px;
  background-position: 50% 22.5%;
  border-radius: 50%;
}

.left-section > .photo-profile::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10px;
  top: -10px;
  width: calc(125px + 20px);
  height: calc(125px + 20px);
  background-color: #399953;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(#399953, #399953),
    linear-gradient(#fbb300, #fbb300), linear-gradient(#d53e33, #d53e33),
    linear-gradient(#377af5, #377af5);
  animation: rotate 4s linear infinite;
  border-radius: 50%;
}

.left-section > .photo-profile::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -6px;
  top: -6px;
  width: calc(125px + 12px);
  height: calc(125px + 12px);
  background: #fafafa;
  border-radius: 50%;
}

.title {
  font-family: "Varela Round", cursive;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-top: 0.5em;
  text-align: center;
  background: radial-gradient(#0f2027, #203a43, #2c5364);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.subtitle {
  font-family: "Overpass", cursive;
  font-weight: 500;
  line-height: 1.5em;
  background: radial-gradient(#0f2027, #203a43, #2c5364);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.email-content {
  display: flex;
  margin-top: auto;
}

.email-content a {
  font-family: "Overpass", cursive;
}

.right-section {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  background: #fff;
}

.self-short-description {
  font-family: "Patrick Hand", cursive;
  font-size: 1.25rem;
  text-align: justify;
  text-justify: inter-auto;
  letter-spacing: 0.25px;
  color: #343a40;
}

.contact {
  border-radius: 25px;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 175px;
  border: 1px solid #ddd;
  position: relative;
}

.contact .contact-me-label {
  position: absolute;
  top: -0.5em;
  padding: 0 0.5em;
  font-size: 0.9rem;
  background-color: #fff;
  font-family: "Overpass", cursive;
}

.social-media-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.2s linear;
  cursor: pointer;
  width: 23px;
  margin-top: 0.75em;
  margin-bottom: 0.5em;
}

.social-media-wrapper:not(:last-child) {
  margin-right: 0.5em;
}

.social-media-wrapper .logo {
  font-size: 1.25rem;
  cursor: default;
}

.social-media-wrapper:hover {
  width: 85px;
  margin-right: 0;
}

.social-media-wrapper:hover .logo ~ .social-media-name {
  display: block;
  opacity: 1;
  width: 100%;
  margin-left: 0.25em;
}

.instagram {
  color: #dd2a7b;
}

.facebook {
  color: #3b5998;
}

.line {
  color: #00b900;
}

.social-media-name {
  font-family: "Varela Round", cursive;
  font-size: 0.75rem;
  position: relative;
  width: 0;
  opacity: 0;
  transition: all 0.2s linear;
}

@keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}

@media only screen and (max-width: 480px) {
  .container {
    padding: 2em;
  }

  .card {
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .left-section {
    width: 100%;
    height: 50%;
    border-bottom-left-radius: 0;
    border-top-right-radius: 15px;
    padding: 1.5em;
  }

  .title {
    text-align: center;
    margin-top: 1em;
    font-size: 1.25rem;
  }

  .right-section {
    width: 100%;
    height: 50%;
    border-top-right-radius: 0;
    border-bottom-left-radius: 15px;
    padding: 1.5em;
  }

  .contact {
    width: 100%;
    padding: 0.25em 0;
  }

  .social-media-wrapper {
    width: auto;
    margin: 0.75em;
    flex-direction: column;
  }

  .social-media-wrapper:hover {
    width: auto;
    margin-right: 0;
  }

  .social-media-wrapper:hover .logo ~ .social-media-name {
    margin-left: 0;
  }

  .social-media-name {
    opacity: 1;
    width: 100%;
  }
}
