
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --react: #61DAFB;
    --typescript: #3178C6;
    --vue: #42b883;
    --white: #fff;
    --background: #F8F8FF;
    --text: #262626;
}

body,
html {
  height: 100%;
}

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

*::selection {
  background: var(--primary);
  color: var(--white);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #F8F8FF;
  font-family: 'Inter', 
  sans-serif;
}

.profile {
  display: flex;
  align-items: center;
  max-width: 40rem;
  width: 100%;
  padding: 3rem 2rem 
    3rem 1.25rem;
  background: #fff;
  box-shadow: 
    rgba(0, 0, 0, 0.1) 
    0px 2px 6px;
  border-radius: 1.5rem;
  transition: all 0.2s 
    ease-in-out;
}

.profile__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin-left: 2rem;
}

.profile:hover {
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.1) 
    0px 6px 12px;
}

.profile__preview {
  position: relative;
  max-width: 30rem;
  min-width: 18rem;
  width: 100%;
  margin-left: -4rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

.profile__content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.profile__footer {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: end;
}

.profile h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.profile p {
  font-size: 1.075rem;
  font-weight: 400;
}

.profile__skills {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.profile__skill {
  --text-color: var(--primary);
  --border-color: var(--primary);
  color: var(--text-color);
  padding: 0.25rem 0.5rem;
  border: 2px solid 
    var(--border-color);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  transition: all 0.2s ease-in-out;
}

.profile__skill:hover {
  background: var(--border-color);
  color: var(--white);
}

.profile__skill--react {
  --text-color: var(--react);
  --border-color: var(--react);
}

.profile__skill--typescript {
  --text-color: var(--typescript);
  --border-color: var(--typescript);
}

.profile__skill--vue {
  --text-color: var(--vue);
  --border-color: var(--vue);
}

.btn {
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  min-width: 13rem;
  border-radius: 2.5rem;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background: var(--primary-dark);
}

@media (width <= 740px) {
  .profile {
    margin: 0 2.25rem;
    padding-left: 3rem;
    padding-right: 3rem;
    width: 100%;
    text-align: center;
    flex-direction: column;
  }

  .profile__content {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
  }

  .profile__skills {
    justify-content: center;
  }

  .profile__right {
    margin-left: 0;
  }

  .profile h2 {
    margin-right: 0;
    font-size: 1.5rem;
  }

  .profile__preview {
    margin: -8rem 0 2rem 0;
  }

  .profile__preview img {
    border-radius: 50%;
  }

  .profile__footer {
    justify-content: center;
  }
}