/* general styles - start */

body {
    font-family: 'Tenor Sans', sans-serif;
    /* overflow-x: hidden; */
}

::-webkit-scrollbar {
    width: 0px;
    /* Remove scrollbar space */
    background: transparent;
    /* Optional: just make scrollbar invisible */
}

/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
    background: #41a867;
}

section h1,
h2 {
    text-transform: uppercase;
    font-style: normal;
    font-variant: normal;
    font-weight: 800;
    line-height: 26.4px;
    color: #4b4b4c;
    font-size: 1.4rem;
    font-family: 'Tenor Sans', sans-serif;
}

.about-content {
    text-align: justify;
    line-height: 1.4em;
    font-size: 1rem;
    font-weight: 300;
    text-align: justify;
}

.about-content div:first-of-type {
    font-size: 18px;
    margin-bottom: 3rem;
}

section .section-header p {
    font-size: 1.1em;
}

section .image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* general styles - end */

/* navigation - start */
#main-nav {
    background-color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    z-index: 1;
    transition: all 0.3s;
}

#main-nav .navbar-nav {
    flex-direction: row;
}

#main-nav .divider {
    padding: 7px 5px;
    color: #41a867;
}

#main-nav .nav-item a {
    color: #161617;
    font-weight: 600;
    border-bottom: 5px solid transparent;
}

#main-nav .nav-item a:hover {
    color: #161617;
    border-bottom: 5px solid #41a867;
}

.nav-up {
    top: -50px;
}

.nav-down {
    top: 0px;
}

.language-toggle {
    position: absolute;
    left: 6rem;
    top: 0;
}

.logo {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    display: flex;
    margin: auto;
    width: 120px;

}

/* navigation - end */

#home {
    background-image: url(./../img/anastasiia-rozumna-XRsi1CPVcGU-unsplash.png);
    background-attachment: fixed;
    background-position: 0 50px;
    background-size: cover;
    height: 600px;
}

/* separator - start */
.separator {
    background-position: center;
    width: 100%;
    height: 20vh;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
}

#separator-1 {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)), url(../img/bar-1.png);
}

#separator-2 {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)), url(../img/bar-2.png);
}

/* separator - end */

/* portfolio - start */
#portfolio {
    font-family: 'Josefin Sans', sans-serif;
    font-family: 'Tenor Sans', sans-serif;
    height: auto;
    background-color: #fff;
}

#portfolio .grid h2 {
    font-weight: 400;
}

.portfolio-img-mask {
    background-color: rgba(0, 0, 0, 0);
}

#portfolio .pdf-link {
    text-decoration: underline;
}

/* hover effect */
.grid figure {
    overflow: hidden;
    cursor: default;
}

.grid figure {
    opacity: 1;
    overflow: hidden;
}

.grid figure figcaption {
    padding-left: 2em;
    padding-right: 2em;
    text-transform: uppercase;
    font-size: 1.25em;
    /* -webkit-backface-visibility: hidden; */
    /* backface-visibility: hidden; */
}

.grid figure figcaption h2 {
    font-weight: 300;
}

.grid figure h2,
.grid figure p {
    margin: 0;
}

.grid figure p {
    padding-top: 1.2em;
    /* letter-spacing: 0px; */
    font-size: 0.7em;
    line-height: 1.3em;
}

.grid figure p a {
    text-decoration: none;
    cursor: default;
    color: #fff;
}

.grid figure p a:hover {
    text-decoration: underline;
    font-weight: 400;
}

figure.effect img {
    position: relative;
    top: -60px;
    max-width: none;
    width: -webkit-calc(100% + 100px);
    width: calc(100% + 100px);
    opacity: 1;
    height: calc(100% + 100px);
    height: -webkit-calc(100% + 100px);
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(-100px, 0, 0);
    transform: translate3d(-100px, 0, 0);
}

figure.effect figcaption {
    text-align: center;
}

figure.effect figcaption div {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
    height: 100%;
}

/* figure.effect figcaption div.center {
    padding-top: 1em;
} */

figure.effect h2 {
    -webkit-transform: translate3d(0, 240px, 0);
    transform: translate3d(0, 240px, 0);
    opacity: 0;
    color: #fff;
}

figure.effect:hover .portfolio-img-mask {
    background-color: rgba(0, 0, 0, 0.35);
}

figure.effect:hover img {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

figure.effect:hover h2 {
    opacity: 1;
    -webkit-transform: translate3d(0, 120px, 0);
    transform: translate3d(0, 120px, 0);
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
}

/* contact - start */
#contact {
    height: auto;
}

#contact .map-responsive {
    position: relative;
    padding-bottom: 75%;
    height: 65vh;
    overflow: hidden;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 65vh !important;
}

#contact .map-responsive:hover {
    cursor: default;
}

/* contact - end */

/* footer - start */
#footer {
    padding: 3.5rem 0 2rem;
    background-color: #fff;
    color: #161617;
    height: max-content;
    font-size: 1rem;
}

#footer .footer-container {
    max-width: 100%;
    padding: 0 26px;
    display: flex;
    justify-content: space-between;
}

.contact-section span,
#footer .company-info {
    color: #161617;
    line-height: 2.2;
    padding-right: 0.8rem;
}

/* .contact-section address,
#footer address,
.contact-section .contacts,
#footer.contacts {
    font-size: 14px;
} */

.contact-section .contacts,
#footer .contacts {
    padding: 2.5rem 0 0 0;
}

.contact-section .contacts a,
#footer .contacts a {
    padding-left: 1rem;
}

.contact-section .contacts a,
#footer .contacts a,
.contact-section .company-info,
#footer .company-info {
    text-decoration: none;
    color: #2a2a2a;
    font-size: 1em;
    transition: all .2s ease;
}

#footer .company-info {
    font-size: 0.9em;
}

.contact-section .contacts a:hover,
#footer .contacts a:hover {
    cursor: pointer;
    color: #41a867;
}

.contact-section .contacts .phone,
#footer .contacts .phone {
    color: #2a2a2a;
}

.copyright {
    position: relative;
    bottom: 0;
    right: 0;
    color: #4b4b4c;
    font-size: 0.9em;
}

/* footer - end */

/* cookie - start */
#cookies-message {
    background-color: #fff;
    position: fixed;
    color: rgba(75, 75, 76, .54);
    left: 25px;
    max-width: 490px;
    height: auto;
    padding: 10px 15px 10px;
    border: 1px solid rgba(234, 234, 234, .54);
    z-index: 10;
    bottom: 20px;
    visibility: visible;
}

.cookies__info p {
    font-size: 12px;
    line-height: 1.81818;
}

.cookies__info:hover {
    color: #4b4b4c;
}

.cookies__info .policy:hover {
    color: #161617;
    text-decoration: underline;
}

.cookies__info .accept-link,
#main-nav button {
    outline: none;
    float: right;
    border: none;
    font-size: 12px;
    color: rgba(75, 75, 76, .54);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 10px;
}

.cookies__info .accept-link {
    text-decoration: underline;
}

.cookies__info .accept-link:hover,
#main-nav button:hover {
    color: #161617;
    cursor: pointer;
}

.js-close-cookie {
    opacity: 0;
    visibility: hidden;
    transition: all 300ms;
}

.progress-container {
    width: 5px;
    height: 100vh;
    background: rgba(204, 204, 204, .3);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 12;
}

.progress-bar {
    height: 0%;
    background: #41a867;
    width: 8px;
}

/* cookie - end */

.btn {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    line-height: 15px;
    font-size: 14px;
    text-transform: uppercase;
    height: 30px;
    width: 80px;
    margin-right: 5px;
}

.btn-success {
    color: #a7a7a7;
    background-color: #333;
}

.btn-default {
    background-color: #333;
    color: #a7a7a7;
}

.btn:focus {
    outline: 0;
}

.btn:before {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 100%;
    left: 0;
    top: 0;
    opacity: .5;
    filter: blur(20px);
    transform: translateX(-80px) skewX(-15deg);
}

.btn:after {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 100%;
    left: 85px;
    top: 0;
    opacity: 0;
    filter: blur(20px);
    transform: translateX(-80px) skewX(-15deg);
}

.btn:hover {
    background-color: #a7a7a7;
    cursor: pointer;
    border: 1px transparent;

}

.btn:hover:before {
    transform: translateX(300px) skewX(-15deg);
    opacity: 0.6;
    transition: 1s;
}

.btn:hover:after {
    transform: translateX(300px) skewX(-15deg);
    opacity: 1;
    transition: 1s;
}

@media screen and (min-width: 1000px) {
    .grid figure {
        height: 350px;
    }
}

@media screen and (max-width: 999px) {
    .grid figure {
        height: 300px;
    }

    figure.effect:hover h2 {
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0);
    }
}

@media screen and (max-width: 767px) {
    .grid figure {
        height: 250px;
    }

    figure.effect:hover h2 {
        -webkit-transform: translate3d(0, 60px, 0);
        transform: translate3d(0, 60px, 0);
    }
}

@media screen and (max-width: 699px) {
    .logo img {
        width: 80px;
    }

    #main-nav {
        font-size: 0.7rem;
    }

    #home {
        background-image: url(./../img/heather-ford-RWK0p2GQomw-unsplash.jpg);
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;
        height: 100vh;
        background-size: cover;
        background-attachment: initial;
    }

    section h1 {
        font-size: 1.2rem;
        text-align: center;
        padding-top: 0.5rem !important;
    }

    .about-content {
        font-size: 0.8rem;
        text-align: center;
    }

    .about-content div:first-of-type {
        font-size: 1rem;
    }

    .grid figure {
        height: 200px;
    }

    figure.effect h2 {
        font-size: 0.8rem;
        opacity: 1;
        -webkit-transform: translate3d(0, 0px, 0);
        transform: translate3d(0, 0px, 0);
    }

    figure.effect .portfolio-img-mask {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.35);
    }

    figure.effect:hover h2 {
        -webkit-transform: none;
        transform: none;
        transition: none;
        opacity: 0;
    }

    figure.effect:hover .portfolio-img-mask {
        background-color: transparent;
    }

    #footer {
        padding: 2rem 0;
    }

    .contact-section .contacts a,
    #footer .contacts a {
        padding-left: 0 !important;
    }

    .contact-section span {
        font-size: 0.9rem;
    }
    
    .progress-container {
        display: none;
    }

    .progress-bar {
        display: none;
    }
}