/* reset */
body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #fff;
    margin: 0;
}

ul { 
    list-style-type: none;
    margin: 0;
    padding: 0;
}
* {
    box-sizing: border-box;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
a { 
    text-decoration: none;
    color: currentColor;

}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}
button {
    cursor: pointer;
    color: currentColor;
    font-family: inherit;
}
address {
    font-size: normal;
}
.container {
    width: 1158px;
    margin: 0 auto;
    padding: 0 15px;
}
.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;
  }

.section {
    padding-top: 120px;
    padding-bottom: 120px;
}
/*header*/
.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);
}
.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }
.header-nav {
    display: flex;
    align-items: center;
}
.header-logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    padding: 24px 0;  
    margin-right: 76px; 

}
.header-logo .logo-part {
    color: #2e2f42
}
.footer-logo .logo-part {
    color: #f4f4fd;
}
.nav-list {
    display: flex;
    gap: 40px;
  }

.nav-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    padding: 24px 0;
    position: relative;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}
.nav-link:hover,
.nav-link:focus,
.contacts-link:hover,
.contacts-link:focus {
    color: #404bbf;
}
.nav-link.current {
    color: #404bbf;
  }
  .nav-link.current::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;}

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

}
.contacts-link {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* 1 hero-section */
.hero-section {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #2e2f42;
    text-align: center;
    padding: 188px 0;
    background-image: 
    linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url('../images/hero_bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.main-title {
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    max-width: 496px;
    margin: 0 auto; 
}
.hero-button {
    display: block;
    min-width: 169px;
    border-radius: 4px; 
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: #4d5ae5;
    cursor: pointer;
    border: none;
    padding: 16px 32px;
     margin: 24px auto 0;

     transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-button:hover,
.hero-button:focus {
    background-color: #404bbf;
}
/* 2 section-features */
.features-section {
    background-color: #ffffff;
}
.features-title {
    display: none;
}
.features-list {
    display: flex;
    gap: 24px;
}
.features-item {
    width: calc((100% - 3 * 24px) / 4);
}
.features-icons-wrapper { 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    border: 1px solid #8e8f99;
    width: 264px;
    height: 112px;
    border-radius: 4px;
    background: #f4f4fd;}


.features-icons { 
    width: 64px;
    height: 64px;}

.features-subtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}
.features-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}
/* 3 section-team */
.team-section {
    background-color: #f4f4fd;
}
.team-section-title {
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        text-transform: capitalize;
        color: #2e2f42;
        margin-bottom: 72px;
}
.team-list {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.team-card {
    background-color: #FFFFFF;
    border-radius: 0px 0px 4px 4px;
  overflow: hidden;
  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);

}
.card-content {
    padding: 32px 0;
}
.team-name {
    font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
        margin-bottom: 8px;
}
.name-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
}
.social-list {
display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.social-link {
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  border-radius: 50%;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
  .social-link:hover,
.social-link:focus {
  background-color: #404bbf;
  }
  .social-icon {
    fill: #f4f4fd;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
/* 4 section-potrfolio */
.portfolio-section-title {
    font-weight: 500;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 48px;
    justify-content: center;
}
.portfolio-card {
    background-color: #ffffff;
    position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover,
.portfolio-card:focus-within {
    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); 
}
.portfolio-card:hover .overlay-text {
  transform: translateY(0%);}

.card-thumb {
    position: relative;
    overflow: hidden;
  }

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    color: #f4f4fd;
  padding: 40px 32px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-card:hover .overlay-text,
.portfolio-card:focus-within .overlay-text {
  transform: translateY(0%);
}

.portfolio-content {
    padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;

}
.portfolio-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
        color: #2e2f42;
        margin-bottom: 8px
}
.portfolio-text {
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
}
/* footer */
.page-footer {
    background-color: #2e2f42;
    padding: 100px 0;
}
.footer-container {
    display: flex;
    align-items: baseline;
  

  }

.footer-logo {
    display: inline-block; 
    margin-bottom: 16px;  
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
  }
.footer-left {
    max-width: 264px;
     margin-right: 120px
}
.footer-text {
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
max-width: 264px;
}
.footer-social {
    display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-social-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
  }
  .footer-social-list {
    display: flex;
    gap: 16px;
  }
  .footer-social-link {
    width: 40px;
    height: 40px;
    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-social-link:hover,
  .footer-social-link:focus {
    background-color: #31d0aa;
  }
  
  .footer-social-icon {
    fill: #f4f4fd;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);}