/*_____ GLOBAL _____*/

:root {
  --main-font: "Montserrat", sans-serif;
  --second-font: "Roboto", sans-serif;
  --third-font: "Kaushan Script", cursive;
  --main-color: #999999;
  --second-color: #333333;
  --third-color: #95e1d3;
  --hover-color: #f38181;
}

* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* .clearfix::after {
  content: "";
  display: table;
  clear: both;
} */

/*_____ HEADER SECTION _____*/

.header_nav {
  display: flex;
  min-height: 50px;
  align-items: flex-end;
  justify-content: space-between;
}

.header_nav_logo {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: var(--third-color);
  text-transform: capitalize;
  transition: color 0.2s linear;
  animation: rubberBand 1.4s;
}

@keyframes rubberBand {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.header_nav_logo:hover,
.header_nav_logo:focus {
  color: var(--hover-color);
  outline: none;
}

.header_nav_list {
  display: flex;
  min-width: 490px;
  justify-content: space-between;
}

.header_nav_list_item__link {
  position: relative;
  font-family: var(--main-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--third-color);
  cursor: pointer;
}

.header_nav_list_item__link:after {
  position: absolute;
  content: "";
  display: block;
  margin-top: 10px;
  height: 3px;
  left: 0;
  width: 0;
  background-color: var(--hover-color);
  transition: width 0.2s linear;
}

.header_nav_list_item__link:hover,
.header_nav_list_item__link:focus {
  color: var(--hover-color);
  outline: none;
}

.header_nav_list_item__link:hover::after,
.header_nav_list_item__link:focus::after {
  width: 100%;
}

/*_____ SERVICES SECTION _____*/

.services {
  padding-top: 115px;
}

.section_title {
  color: var(--second-color);
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  text-transform: uppercase;
}

.section_title::first-letter {
  text-transform: uppercase;
}

.section_title::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  background-color: var(--hover-color);
  margin: 0 auto;
  margin-top: 40px;
}

.services_title::after {
  margin-bottom: 66px;
}

.section_title__styled_font {
  display: block;
  font-family: var(--third-font);
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.services_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.services_list_item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 83px;
  flex: 0 0 383px;
  margin-bottom: 105px;
  text-align: left;
}

.services_list_item__heading {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--second-color);
  margin-bottom: 10px;
}

.services_list_item_description {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--main-color);
}

.services_list_item::before {
  position: absolute;
  content: "";
  background-repeat: no-repeat;
  background-position: top;
  width: 83px;
  height: 100%;
  top: 0;
  left: 0;
}

.alarm_icon::before {
  background-image: url("../img/icons/alarm_icon.png");
}

.graph_icon::before {
  background-image: url("../img/icons/graph_icon.png");
}

.computer_icon::before {
  background-image: url("../img/icons/computer_icon.png");
}

.book_icon::before {
  background-image: url("../img/icons/book_icon.png");
}

.home_icon::before {
  background-image: url("../img/icons/home_icon.png");
}

.square_icon::before {
  background-image: url("../img/icons/square_icon.png");
}

/* TEAM SECTION */

.team {
  padding-bottom: 82px;
}

.team_title::after {
  content: "";
  margin-bottom: 45px;
}

.section_title_description {
  font-family: var(--second-font);
  color: var(--main-color);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  margin-bottom: 92px;
}

.team_list {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.team_list_item {
  width: 380px;
}

.team_list_item__overlay {
  position: relative;
  margin-bottom: 30px;
  transition: all 200ms linear;
}

.overlay_icons {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(243, 129, 129, 0.9) 0%, rgba(252, 227, 138, 0.9) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms linear;
}

.overlay_icons_list {
  display: flex;
}

.overlay_icons_list_item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay_icons_list_item__social_link {
  width: 56px;
  height: 56px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fce38a;
  transition: background-color 200ms linear;
}

.overlay_icons_list_item:not(:last-child) {
  border-right: 1px solid var(--main-color);
}

.overlay_icons_list_item__social_link:hover,
.overlay_icons_list_item__social_link:focus {
  background-color: var(--third-color);
}

.team_list_item:hover .overlay_icons,
.team_list_item:focus .overlay_icons {
  opacity: 1;
  visibility: visible;
}

.team_list_item:hover .team_list_item__overlay,
.team_list_item:focus .team_list_item__overlay {
  transform: translate(-10px, -10px);
  box-shadow: 10px 10px var(--third-color);
}

.facebook_icon {
  background-image: url("../img/team/team_icons/facebook.png");
}

.twitter_icon {
  background-image: url("../img/team/team_icons/twitter.png");
}

.pinterest_icon {
  background-image: url("../img/team/team_icons/pinterest.png");
}

.instagram_icon {
  background-image: url("../img/team/team_icons/instagram.png");
}

.team_list_item__heading {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 14px;
}

.team_list_item__heading_description {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: var(--main-color);
  text-transform: capitalize;
}

/* FOOTER SECTION */

.footer {
  border-top: 1px solid #e5e5e5;
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer_copyright {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.footer_copyright_link {
  color: var(--hover-color);
}

.footer_copyright_link:hover,
.footer_copyright_link:focus {
  color: #e7e7e7;
  outline: none;
}

.footer_subscription {
  display: flex;
}

.footer_subscription_placeholder {
  border: 1px solid #e7e7e7;
  height: 40px;
  width: 230px;
  padding-left: 12px;
  outline: none;
}

.footer_subscription_placeholder::placeholder {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: #cccccc;
}

.footer_subscription_btn {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  text-transform: uppercase;
  background-color: var(--third-color);
  color: #fff;
  height: 40px;
  width: 150px;
  border: none;
}

.footer_subscription_btn:hover,
.footer_subscription_btn:focus {
  background-color: var(--hover-color);
  cursor: pointer;
}