/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

body {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  --primary-color: #4a454b;
  --secondary-color: #f0cfc3;
  --gray-text-color: #6a737d9c;
  --icon-color: #6a737d;
}

@media screen and (min-width: 900px) {
  .main {
    padding: 20px 0;
  }
}

.container {
  margin: 0 auto;
  padding: 0 30px;
  max-width: 900px;
  position: relative;
  z-index: 10;
}

.resume {
  position: relative;
  border: 1px solid #f5f5f5;
  box-shadow: 1px 1px 7px 7px #f5f5f5;
  padding: 30px 0;
  max-width: 900px;
  color: var(--primary-color);
  overflow: hidden;
}

.resume__block {
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 30px;
  margin-bottom: 15px;
}

@media screen and (min-width: 576px) {
  .resume__block {
    margin-bottom: 20px;
  }
}

.header-box {
  background-color: var(--secondary-color);
  max-width: 250px;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  margin: 0 auto 15px;
}

@media screen and (min-width: 576px) {
  .header-box {
    margin-bottom: 20px;
  }
}

.durability {
  color: var(--gray-text-color);
  font-size: 15px;
}

/* Contact info styles */
.contact_info_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (min-width: 576px) {
  .contact_info_container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.contact-info__header,
.contact-info__sub-header {
  text-align: center;
}

.contact-info__header {
  margin-bottom: 15px;
}

.contact-info__sub-header {
  margin-bottom: 30px;
}

.contact-info__item {
  width: fit-content;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
}

.contact-info__item::after {
  content: "";
  position: absolute;
  border-bottom: 2px solid var(--secondary-color);
  width: 0;
  bottom: 0;
  left: 0;
  transition: 0.3s ease-in-out;
}

.contact-info__item:hover::after,
.contact-info__item:focus::after {
  width: 100%;
  border-bottom-color: var(--secondary-color);
}

.contact-info__item:last-child {
  margin-bottom: 0px;
}

.contact-info__link {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--primary-color);
}

.contact-info__link-icon {
  height: 1.1428rem;
  color: var(--icon-color);
  margin-right: 10px;
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-info__avatar {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

@media screen and (min-width: 576px) {
  .contact-info__avatar {
    margin-bottom: 0;
  }
}

/* Intro and skills styles */
.intro {
  display: flex;
}

.intro__icon-wrapper {
  margin-right: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
}

.intro__icon {
  height: 1.1428rem;
}

.intro__icon path {
  fill: var(--secondary-color);
}

.intro_text {
  text-align: justify;
}

.skills__text {
  text-align: justify;
}

/* Experience and additional info styles */
.main-info {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 750px) {
  .main-info {
    flex-direction: row;
  }
}

.experiences {
  margin-bottom: 15px;
}

@media screen and (min-width: 576px) {
  .experiences {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 750px) {
  .experiences {
    margin-right: 50px;
    flex: 1 1 60%;
    margin-bottom: 0;
  }
}

.experiences__company:not(:last-child) {
  margin-bottom: 20px;
}

.experiences__company-project-role {
  font-weight: 600;
}

.experiences__company-project-responsibilities {
  list-style-type: disc;
  padding-left: 20px;
}

@media screen and (min-width: 576px) {
  .additional-info {
    display: flex;
    flex-direction: row;
  }
}

@media screen and (min-width: 750px) {
  .additional-info {
    flex-direction: column;
    flex: 1 1 40%;
  }
}

.additional-info__education {
  margin-bottom: 20px;
  flex: 1;
}

@media screen and (min-width: 576px) {
  .additional-info__education {
    margin-right: 30px;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 750px) {
  .additional-info__education {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.additional-info__education-item:not(:last-child) {
  margin-bottom: 20px;
}

.additional-info__combined {
  flex: 1;
}

.additional-info__languages {
  margin-bottom: 15px;
}

@media screen and (min-width: 576px) {
  .additional-info__languages {
    margin-bottom: 20px;
  }
}

.additional-info__languages__list,
.additional-info__hobbies__list {
  list-style-type: disc;
  padding-left: 20px;
}

/* Bubbles */

.bubble-1 {
  position: absolute;
  bottom: -100px;
  left: 50%;
  height: 500px;
  width: 500px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.3;
  scale: 1;
  animation-name: bubble-scaling;
  animation-duration: 1s;
}

.bubble-2 {
  position: absolute;
  top: 20%;
  left: -5%;
  height: 300px;
  width: 300px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.3;
  scale: 1;
  animation-name: bubble-scaling;
  animation-duration: 1s;
}

@media screen and (min-width: 576px) {
  .bubble-2 {
    top: 10%;
  }
}

.bubble-3 {
  position: absolute;
  top: 0;
  right: -5%;
  height: 350px;
  width: 350px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.3;
  scale: 1;
  animation-name: bubble-scaling;
  animation-duration: 1s;
}

@keyframes bubble-scaling {
  0% {
    scale: 0;
  }

  100% {
    scale: 1;
  }
}
