@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url(https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;500;600;800;900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;600;800;900&display=swap);

html {
    display: flex;
    justify-content: center;
}

body {
    width: 1520px;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    user-select: none;
}

.container {
    margin: 0 auto;
}

.portfolio-nav {
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
}

header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
}

.logo-header h1 {
    margin-left: 215px;
}

.logo-header-link,
.logo-footer-link {
    text-decoration: none;
}

.logo-header h1,
.logo-footer h1 {
    color: #2196F3;
    font-family: Raleway;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.78px;
}

.logo-header span,
.logo-footer span {
    color: #000;
    font-family: Raleway;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.78px;
}

header nav {
    margin-left: 90px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    display: flex;
    gap: 51px;
}


nav ul li a {
    text-decoration: none;
    padding-bottom: 30px;
    position: relative;
    color: #212121;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.28px;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #2196F3;
    transition: width 0.3s ease, left 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 50%;
    border-radius: 2px;

}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
    transform: none;

}


nav a:hover {
    color: rgba(33, 150, 243, 1);
}

.contact-info a:hover {
    color: rgba(33, 150, 243, 1);
}

nav .active {
    color: #007BFF;
}

.contact-info {
    margin-left: 344px;
}

.contact-info a:last-of-type {
    margin-left: 45px;
}

.contact-info a {
    text-decoration: none;
    color: #757575;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.28px;
    transition: color 0.5s ease;
}

.line {
    margin-top: -2px;
    width: 1515px;
    border: 1px solid #ECECEC;
}

.menu nav {
    background-color: #ffffff;
    padding: 10px;
    margin-top: 94px;
}

.menu nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.menu nav ul li {
    margin: 0 1px;
}

.menu nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.menu nav ul li a.active {
    color: #ffffff;
}

.menu .link {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background-color: rgba(245, 244, 250, 1);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu .active {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #007BFF;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu nav ul li a:hover {
    background: #007BFF;
    color: white;
}

.example {
    margin-top: 34px;
    margin-bottom: 94px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.example-foto {
    width: 370px;
    height: 404px;
    border: 1px solid #EEE;
    background: #FFF;
    transition: box-shadow 0.9s ease;
}

.example-foto:hover {
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.12), 0px 4px 4px 0px rgba(0, 0, 0, 0.06), 1px 4px 6px 0px rgba(0, 0, 0, 0.16);
}

.example-foto-hover {
    position: relative;
}

.example-foto h3,
.example-foto p {
    padding-left: 24px;
}

.example-foto img {
    position: relative;
    cursor: pointer;
}

.example-foto h4 {
    padding-left: 24px;
    position: relative;
    z-index: 2;
    color: #FFF;
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.54px;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 150, 243, 0.90);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 1;
}

.example-foto:hover .text-overlay {
    opacity: 1;
}

footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #2F303A;
    padding: 20px 0;
}

.container-footer {
    margin-left: 154px;
}

.logo-footer span {
    color: #FFF;
    font-family: Raleway;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.78px;
}

footer .address {
    color: #FFF;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    margin-top: px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.42px;
}

.footer-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.60);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 171.429% */
    letter-spacing: 0.42px;
}

.footer-link:hover {
    color: rgba(33, 150, 243, 1);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    margin-left: 94px;
}

.social-tittle {
    color: #FFF;
    width: 100%;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.42px;
    text-transform: uppercase;
}

.social-all {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

.social {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.footer-social-foto1, .footer-social-foto2, .footer-social-foto3, .footer-social-foto4 {
    transition: background-image 0.5s ease;
}


.footer-social-foto1 {
    background-image: url('./src/img/footer-social/footer-social-gray-1.png');
}

.footer-social-foto1:hover {
    background-image: url('./src/img/footer-social/footer-social-blue-1.png');
}

.footer-social-foto2 {
    background-image: url('./src/img/footer-social/footer-social-gray-2.png');
}

.footer-social-foto2:hover {
    background-image: url('./src/img/footer-social/footer-social-blue-2.png');
}

.footer-social-foto3 {
    background-image: url('./src/img/footer-social/footer-social-gray-3.png');
}

.footer-social-foto3:hover {
    background-image: url('./src/img/footer-social/footer-social-blue-3.png');
}

.footer-social-foto4 {
    background-image: url('./src/img/footer-social/footer-social-gray-4.png');
}

.footer-social-foto4:hover {
    background-image: url('./src/img/footer-social/footer-social-blue-4.png');
}

.mailing-list {
    margin-left: -23px;
    margin-bottom: 41px;
}

.tittle-mailing-list {
    color: #FFF;
    font-family: Roboto;
    margin-bottom: 16px;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.42px;
    text-transform: uppercase;
}

.mailing-list-input {
    padding: 0 15px;
    width: 325px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(33, 150, 243, 0.00);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.mailing-list-input :placeholder-shown {
    color: rgba(255, 255, 255, 0.60);
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 125% */
    letter-spacing: 0.48px;
    display: flex;
    width: 47px;
    height: 20px;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.mailing-list-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 200px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    margin-left: 13px;
    margin-bottom: 7px;
    background: #2196F3;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    color: #FFF;
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.96px;
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 486px;
    height: 540px;
    padding: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #FFF;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px 0px rgba(0, 0, 0, 0.20);
}

.modal-content h2 {
    width: 448px;
    color: #212121;
    text-align: center;
    font-family: Roboto;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.6px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    margin-top: -12px;
    margin-right: -20px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    flex-shrink: 0;

}

form {
    display: flex;
    justify-content: flex-start;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 18px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-group label {
    color: #757575;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.12px;
}

.form-group input {
    width: 100%;
    padding: 8px 40px;
    box-sizing: border-box;
    width: 448px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(33, 33, 33, 0.20);
}

.form-group:nth-of-type(3) {
    margin-bottom: 5px;
}

.form-group:nth-of-type(4) {
    margin-bottom: 6px;
}

.form-group:nth-of-type(5) input {
    margin-bottom: 20px;
    width: 448px;
    height: 120px;
    flex-shrink: 0;
}

.form-group:nth-of-type(5) input:placeholder-shown {
    color: rgba(117, 117, 117, 0.50);
    font-family: Roboto;
    padding: 26px 12px;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.12px;
}

.form-group svg {
    position: absolute;
    margin-top: 10px;
    left: 10px;
}

.form-submit {
    margin-bottom: 29px;
    margin-left: 20px;
    color: #757575;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.42px;
}

.button-submit {
    display: flex;
    justify-content: center;
    width: 448px;
}

.submit-btn {
    width: 200px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #2196F3;
    margin-bottom: 17px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    color: #FFF;
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.96px;
}

