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

html{
    scroll-behavior: smooth;
}

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

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

a{
    text-decoration: none;
    color: rgba(46, 47, 66, 1);
}

button{
    cursor: pointer;
}

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

img {
    display: block;
}

/* general classes */

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

.accent-logo{
    color: rgba(77, 90, 229, 1);
}

.logo {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16667;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.link-box{
    padding: 24px 0;
    display: block;
}

/* Header */

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

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

.header-logo {
    /* display: block; */
    padding: 24px 0;
}

.header-nav {
    margin-left: 76px;
}

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

.header-nav-item {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: rgba(46, 47, 66, 1);
}

.header-nav-item-link{
    display: block;
    padding: 24px 0;
    position: relative;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-item-link:hover,
.header-nav-item-link:focus{
    color: rgba(64, 75, 191, 1);
}

.header-nav-item-link.current{
    position: relative;
    color: #404BBF;
}

.header-nav-item-link.current::after{
    content: '';
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background-color: #4D5AE5;
    border-radius: 4px;
    position: absolute;
}

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

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

.header-address-item {}

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

.header-address-link:hover,
.header-address-link:focus{
    color: rgba(64, 75, 191, 1);
}

/* Hero */

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

.hero-box{
    
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.hero-tittle {
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07143;
    letter-spacing: 0.02em;
    text-align: center;
    color: rgba(255, 255, 255, 1);
    max-width: 496px;
}

.hero-button {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background-color: #4D5AE5;
    color: rgba(255, 255, 255, 1);
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    margin-top: 48px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Our Features */

.features {
    padding: 120px 0;
}

.features-title {}

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

.features-item {
    width: calc((100% - 24px * 3) / 4);
}

.item-icon-box {
    background-color: rgba(244, 244, 253, 1);
    border: 1px solid rgba(142, 143, 153, 1);
    border-radius: 4px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-item-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-top: 8px;
}

.features-text {
    font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        margin-top: 8px;
}

/* Team */

.team {
    background-color: #F4F4FD;
    padding: 120px 0;
}

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

.team-list {
    display: flex;
    gap: 24px;
    margin-top: 72px;
    justify-content: center;
    flex-wrap: wrap;
}

.team-item {
    background-color: #fff;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}

.icon-soc-list{
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.icon-soc-item{}

.team-icon{
    fill: rgba(244, 244, 253, 1);
}

.icon-soc-team{
    width: 40px;
        height: 40px;
        background-color: rgba(77, 90, 229, 1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-soc-team:hover,
.icon-soc-team:focus{
    background-color: rgba(64, 75, 191, 1);
}

.team-box{
    padding: 32px 16px;
}

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

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

/* Portfolio */

.portfolio {
    padding: 120px 0;
}

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

.portfolio-list {
    margin-top: 72px;
    display: flex;
    gap: 48px 24px;
    flex-wrap: wrap;
}

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

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

.portfolio-item:hover .text-hov{
    transform: translateY(0);
}

.img-box {
    position: relative;
    overflow: hidden;
}

.text-hov {
    width: 100%;
    height: 100%;
    background-color: rgba(77, 90, 229, 1);
    font-family: Roboto;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: rgba(244, 244, 253, 1);
    padding: 40px 32px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item-box{
    padding: 32px 16px;
    border-bottom: 1px solid rgba(231, 233, 252,1);
    border-left: 1px solid rgba(231, 233, 252, 1);
    border-right: 1px solid rgba(231, 233, 252, 1);
}

.portfolio-item-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.portfolio-item-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: 8px;
}

/* Footer */

.footer{
    background-color: rgba(46, 47, 66, 1);
    padding: 100px 0;
}

.footer-box{
    display: flex;
    align-items: baseline
}

.footer-soc-box{
    margin-left: 120px;
}

.soc-list-footer{
    margin-top: 16px;
    gap: 16px;
}

.icon-footer{
    width: 40px;
        height: 40px;
        background-color: rgba(77, 90, 229, 1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        fill: rgba(244, 244, 253, 1);
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-footer:hover,
.icon-footer:focus{
    background-color: rgba(49, 208, 170, 1);
}

.footer-logo{
    color: #F4F4FD;
}

.footer-soc-text{
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
}

.footer-text{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #F4F4FD;
    max-width: 264px;
    margin-top: 16px;
}