
body {
 font-family: "Roboto", sans-serif;
 color: #434455;
 background-color:#FFFF;
}

ul,ol {
 list-style-type: none;
 margin: 0;
 padding: 0;
}
/* common */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

.page-header {
  border-bottom: 1px solid #E7E9FC;
  box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08), 
              0px 1px 1px rgba(46, 47, 66, 0.16), 
              0px 1px 6px rgba(46, 47, 66, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link.current {
  position: relative;
}

.nav-link.current::after {
  content: "";

  position:absolute;
  left: 0;
  bottom: -1px;

  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf;
}

.contacts-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav {
  display: flex;
  align-items: center;
}

a {
    text-decoration: none;
}

.container {
  max-width: 1158px;
  padding: 0 15px;
  margin: 0 auto;
}

.logo {
 color:#4D5AE5;
 font-family: "Raleway", sans-serif;
 font-size: 18px;
 font-weight: 700;
 line-height: 1.17; 
 letter-spacing: 0.03em;
 text-transform: uppercase;
}


  
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.header-logo {
  padding: 24px 0;
  margin-right: 76px;
}

.header-logo .logo-part {
    color:#2E2F42;
} 

.footer-logo .logo-part {
    color:#F4F4FD;
} 

.nav-link {
 padding: 24px 0;
 display: block;
 color:#2E2F42;
 font-size: 16px;
 font-weight: 500;
 line-height: 24px;
 letter-spacing: 0.32px;

 transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.contacts {
 font-style:normal;
 margin-left:auto;
}

.contacts-link {
 display: block;
 padding: 24px 0;
 color:#434455;
 font-size: 16px;
 line-height: 24px;
 letter-spacing: 0.32px;

 transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus,
.nav-link:focus-visible,
.contacts-link:hover,
.contacts-link:focus,
.contacts-link:focus-visible,
.nav-link.current {
  color:#404BBF;
  outline-color:#404BBF ;
}

.hero-section {
  background-color:#2E2F42;
  background-image: linear-gradient(rgba(46, 47, 66, 0.7),
  rgba(46, 47, 66, 0.7)),
  url(../images/people-office.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 188px 0;
  margin: auto;
  max-width: 1440px;
  max-height: 600px;
}

.hero-container {
  text-align:center;
  align-items: center;
}

.heading-hero-section {
  color:#FFF;
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  line-height: 60px; 
  letter-spacing: 1.12px;
  max-width: 496px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.button {
  border: none;
  cursor:pointer;
  background-color:#4D5AE5;
  color: #FFFFFF;
  box-shadow: rgba(0, 0, 0, 0.15); 
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px; 
  letter-spacing: 0.64px;
  border-radius: 4px;
  padding: 16px 32px;
  margin: 0 auto;
  display: block;
  min-width: 169px;
  align-items: flex-start;
  gap: 10px;
  transition: background-color 250ms 
              cubic-bezier(0.4, 0, 0.2, 1);;
}

.button:hover,
.button:focus {
  background-color:#404BBF;
}

.features {
  padding: 120px 0;
}

.features-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background-color: #f4f4fd;
  border-radius: 4px;
  border: 1px solid #8e8f99;
  margin-bottom: 8px; 
}

.features-list {
  display: flex;
  gap: 24px; 
  list-style: none;
  margin: 0;
}

.features-title {
  margin-bottom: 8px;
}

.team-card-container {
  padding: 32px 0;
}

.member-name-title {
  text-align: center;
  margin-bottom: 8px;
}

.our-team-text {
  text-align: center;
}

.our-team-title {
  margin-bottom: 72px;
}
.icons-list{
  display: flex;
  justify-content: center;
  gap: 24px; 
  list-style: none;
  
}

.icons {
  fill:#F4F4FD;
  width: 40px;  
  height: 40px;
}

.team-soc-link {
  background-color: #4D5AE5; 
  border-radius: 50%;     
  width: 100%; 
  height: 100%;

  display: flex; 
  align-items: center;    
  justify-content: center; 

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.team-soc-link:hover,
.team-soc-link:focus {
  background-color: #404BBF; 
}

.our-team-list {
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}


.features-item {
  width: 264px;
}

.heading-three {
  color:#2E2F42;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px; 
  letter-spacing: 0.4px;
}
.our-team {
  background-color:#F4F4FD;
  padding: 120px 0;
}

.our-team-member {
  background-color: #FFFFFF;
  border-radius: 0 0 4px 4px;
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
              0px 1px 1px rgba(46, 47, 66, 0.16), 
              0px 2px 1px rgba(46, 47, 66, 0.08);
  display: inline-flex;
  padding-bottom: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;

}

.our-portfolio {
 padding: 120px 0;
}

.portfolio-card-container {
   padding: 32px 16px;
   border: 1px solid #e7e9fc;
   border-top: none;
   width: 100%;
}

.portfolio-card-title {
  margin-bottom: 8px;
}

.our-portfolio-list {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  column-gap: 24px; 
  row-gap: 48px;
}

.our-portfolio-title {
  margin-bottom: 72px;
}

.our-portfolio-item {
  background-color: #FFF;
  display: flex;
  width: 360px;
  height: 420px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;

  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.our-portfolio-item:hover {
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 
              0px 1px 1px rgba(46, 47, 66, 0.16), 
              0px 2px 1px rgba(46, 47, 66, 0.08);
}

.features-text,
.our-team-text,
.our-portfolio-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.32px;
  text-transform: capitalize;
}

.animation-container {
   position: relative;
   overflow: hidden; 

}

.animation-text {
  position: absolute;
  top: 0; 
  font-size: 16px; 
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  padding: 40px 32px;
  background-color: #4d5ae5;
  height: 100%;
  width: 100%; 
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.animation-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
}
    
.animation-text {
margin: 0;
}
  

.animation-container:hover .animation-text {
  transform: translateY(0%);
}

.heading-two {
  color:#2E2F42;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11; 
  letter-spacing: 0.72px;
  text-transform: capitalize;
}

.page-footer {
  background-color:#2E2F42;
  padding: 100px 0;

}

.footer-text {
  color:#F4F4FD;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.32px; 
  width: 264px;
}

.footer-logo {
  display: inline-block;
   margin-bottom: 16px; 
}
 .icons-list {
  display:flex;
  gap:24px;
 }

.footer-container {
  display: flex;
  align-items: baseline; 
}
 
.logo-footer-container {
  margin-right: 120px;
}

.footer-socials-text {
   font-weight: 500;
   font-size: 16px;
   line-height: 1.5;
   letter-spacing: 0.02em;
   color:#FFFFFF;
   margin-bottom: 16px;
}

.socials-footer-list {
  display: flex;
  gap: 16px; 
}

.footer-icon-soc {
  width: 40px; 
  height: 40px;
}


.footer-subscribe-wrapper {
  margin-left: 80px;
}

.footer-soc-link {
  width: 100%;
  height: 100%;
  background-color:#4d5ae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:background-color 250ms 
  cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-soc-link:hover,
.footer-soc-link:focus {
  background-color: #31d0aa;

}

.icons-footer {
  fill:#f4f4fd;
  transform: scale(1.5); 
  transform-origin: center;
}

.subscribe-icon {
  fill: #FFF;
  background-color: transparent;
  margin-left: 16px; 
}


.subscribe-text {
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.subscribe-form {
  display: flex; 
  gap: 24px;
}

.subscribe-input {
  width: 264px;
  height: 40px;
  border: 1px solid #ffffff; 
  background-color: transparent; 
  font-size: 12px; 
  line-height: 2; 
  letter-spacing: 0.04em;
  padding-left: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15); 
  border-radius: 4px; 
  color: #ffffff;
}

.subscribe-input::placeholder {
  color: #ffffff;
}

.subscribe-button {
  min-width: 165px; 
  height: 40px; 
  display: flex; 
  justify-content: center;
  align-items: center;  
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  background-color: #4D5AE5;
  border: none;
  border-radius: 4px;

}

.footer-subscribe-wrapper {
  gap: 24px;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.40);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
   visibility 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}
.backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 408px;
  min-height: 584px;

  border-radius: 4px;
  background-color: #FCFCFC;
  box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.20), 
              0 1px 3px 0 rgba(0, 0, 0, 0.12), 
              0 1px 1px 0 rgba(0, 0, 0, 0.14);

  transform: translate(-50% -50%);

  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

  padding: 72px 24px 24px 24px;
}

.backdrop:not(.is-open) .modal {
  transform: translate(-50% -50%) scale (1.5);

}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), 
              border 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.close-modal-btn:hover, 
.close-modal-btn:focus {
  background-color: #404bbf; 
  border: none;
}

.x-btn {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: #2E2F42;
}

.close-modal-btn:hover .x-btn,
.close-modal-btn:focus .x-btn {
  fill: #FFFFFF;
}


.modal-text {
  font-weight: 500; 
  font-size: 16px;
  line-height: 1.5; 
  letter-spacing: 0.02em;
  text-align: center;
  color: #2E2F42;
  margin-bottom: 16px; 
}

.modal-label {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
  display: block;
  margin-bottom: 4px;
}

.input-container {
  position: relative; 
}

.modal-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(46, 47, 66, 0.4); 
  border-radius: 4px;
  background-color: transparent;
  padding-left: 38px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
  outline: transparent;
}

.modal-input:focus {
  border-color: #4D5AE5;
}


.modal-icon {
  fill: #2E2F42;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}


.modal-field {
  margin-bottom: 8px; 
}


.modal-input:focus + .modal-icon {
  fill: #4D5AE5; 
}

.comment-field {
  margin-bottom: 16px;
}

.comment-input {
  width: 100%; 
  height: 120px;
  font-size: 12px;
  line-height: 1.17; 
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  padding: 8px 16px;
  outline: transparent;
  resize: none;
  border-color: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent; 
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.comment-input:focus {
  border-color: #4D5AE5; ;
}

.checkbox-container {
  margin-bottom: 24px; 
}


.checkbox-label {
  font-size: 12px;
  line-height: 1.17; 
  letter-spacing: 0.04em;
  color: #8e8f99;;
}

.checkbox-span {
  width: 16px; 
  height: 16px;
  border: 1px solid rgba(46, 47, 66, 0.4); 
  border-radius: 2px; 
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), 
              border 250ms cubic-bezier(0.4, 0, 0.2, 1), 
              fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  fill: transparent;
  
}

.checkbox-input:checked + .checkbox-label > .checkbox-span {
  background-color: #404bbf; 
  fill: #F4F4FD;
  border: none;
}

.icon-check {
  fill: #FFFFFF;
}




.modal-submit-btn {
  display: block;
  min-width: 169px;
  height: 56px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  background-color: #4D5AE5; 
  border: none;
  border-radius: 4px;
  margin: 0 auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.privacy-link {
  color:#4d5ae5; 
}
.modal-submit-btn:hover,
.modal-submit-btn:focus {
  background-color:#404BBF;
}
