body {
    font-family: 'Roboto', sans-serif;
    color: #434455;
    background-color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 2%;
    font-weight: 400;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

a {
    text-decoration: none;  
}

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

img {
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

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

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

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

.page-header-nav {
    display: flex;
    margin-right: auto;
    align-items: center;
}

.page-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;
    margin-right: 76px;
    display: inline-block;
}

.accent {
    color: #2e2f42;
}

.page-header-list {
    display: flex;
    gap: 40px;
}

.page-header-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: #404bbf;
    opacity: 0;
}

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

.page-header-link:hover::after,
.page-header-link:focus::after,
.page-header-link.current::after {
    opacity: 1;
}

.page-header-link:hover,
.page-header-link:focus,
.page-header-link.current {
    color: #404bbf;
}

.contacts {
    font-style: normal;
    }

.page-contacts-link {
    display: block;
    padding: 24px 0;
    color: #434455;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: 400;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-contact-list {
    display: flex;
    gap: 40px;
}

.page-contacts-link:hover,
.page-contacts-link:focus {
   color: #404bbf;
}

/* HERO */



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

.page-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    max-width: 496px;
    text-align: center;
    margin: 0 auto;
}

.hero-button-title {
    color: #ffffff;
    background-color: #4d5ae5;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    border: none;
    border-radius: 4px;
    padding: 16px 32px;
    display: block;
    margin: 0 auto;
    margin-top: 48px;
    min-width: 169px;
    height: 56px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button-title:hover,
.hero-button-title:focus {
    background-color: #404bbf;
}

/* BENEFITS */

.benefits-container {
   display: flex;
    max-width: 1128px;
}

.benefits{
   padding: 120px 0; 
}

.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;
}

.benefits-box {
    border: 1px solid #8e8f99;
    border-radius: 4px;
    background-color: #f4f4fd;
    width: 264px;
    height: 112px;
    padding: 24px 100px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.benefits-title {
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.02em;
    line-height: 1.11;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
}


.benefits-subtitle {
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: left;  
    font-weight: 500;
    color: #2e2f42;
    margin-bottom: 8px;
    
}

.benefits-list {
    display: flex;
    gap: 24px;
}
 

.benefits-text {
   font-size: 16px;
   line-height: 1.5;
   letter-spacing: 0.02em;
   text-align: left;
}
.benefits-list-content {
    width: calc((100% - 3*24px)/4)
}

/* TEAM */

.team {
    background-color: #f4f4fd;
    padding: 120px 0;
    text-align: center;
}

.team-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    /* background-color: #f4f4fd; */
    text-align: center;
    margin-bottom: 72px;
    color: #2e2f42;
}

.team-list {
    display: flex;
    gap: 24px;
}

.team-list-content {
    width: calc((100% - 3*24px)/4);
    border-radius: 0 0 4px 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.team-information {
    padding: 32px 0;
}

.team-information .social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
  
}

.socialmedia-content {
    width: 40px;
    height: 40px;

}

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

.social-links .icon {
    fill: #f4f4fd;
}

.link.icon-link:hover,
.link.icon-link:focus {
    background-color: #404bbf;
}

.team-subtitle {
    font-size: 20px;
    letter-spacing: 0.02em;
    font-weight: 500;
    line-height: 1.2;
    color: #2e2f42;
    text-align: center;
    margin-bottom: 8px;    
}

.team-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
}


/* PORTFOLIO */

.portfolio {
    padding-top: 120px;
    padding-bottom: 120px;
}

.portfolio-title {
    text-align: center;
    margin-bottom: 72px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
    position: relative;
    overflow: hidden;
}

.portfolio-list-content {
    width: calc((100% - 48px)/3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.portfolio-list-content:hover,
.portfolio-list-content:focus {
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    transform: translateY(0%);
}

.thumb {
    position: relative;
    width: 360px;
    height: 300px;
    overflow: hidden;

}

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

}

.portfolio-list-content:hover .portfolio-overlay,
.portfolio-list-content:focus .portfolio-overlay {
    transform: translateY(0%);
}

.portfolio-subtitle {
    font-size: 20px;
    letter-spacing: 0.02em;
    text-align: left;
    font-weight: 500;
    line-height: 1.2;
    color: #2e2f42;
    margin-bottom: 8px;

}

.portfolio-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: left;
}

.portfolio-information {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}
/* FOOTER */



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

.page-footer-container {
    display: flex;
    align-items: baseline;
}
.footer {
    margin-right: 120px;
}
.page-footer-text {
    max-width: 264px;
    color: #f4f4fd;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: left;
}
.page-footer-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;
    display: inline-block;
    margin-bottom: 16px;
}

.page-footer-accent {
    color: #f4f4fd;
}


.socialmedia-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
}
   
.social-media .social-links {
    display: flex;
    gap: 16px;
  
} 
.link.link-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.link.link-icon:hover,
.link.link-icon:focus {
    background-color: #31d0aa;
}

