:root {
    --main-color: rgb(226, 64, 42);
}

body.dark-theme {
    --primary: rgb(43, 43, 43);
    --primary-dark: rgb(17, 17, 17);
    --primary-light: rgb(65, 65, 65);
    --secondary: rgb(235, 235, 235);
    --secondary-dark:  rgb(195, 195, 195);
    --secondary-light: rgb(255, 255, 255);
}

body.light-theme {
    --primary: rgb(235, 235, 235);
    --primary-dark: rgb(195, 195, 195);
    --primary-light: rgb(255, 255, 255);
    --secondary: rgb(43, 43, 43);
    --secondary-dark: rgb(17, 17, 17);
    --secondary-light: rgb(65, 65, 65);
}

html, body {
    height: 100%;
    width: 100%;
    font-size: 16px;
    background: var(--primary);
    color: var(--secondary);
    position: relative;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: "Oswald";
}

a, a:hover {
    color: var(--secondary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.text-center {
    text-align: center;
}

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

.flex-start {
    display: flex;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.btn {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    transition: 0.3s ease;
    padding: 0.7em 1.5em;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--primary-light);
    color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.separator {
    border-color: var(--primary-dark);
}

.separator-secondary {
    border-color: var(--primary-light);
}

.mt-1 {
    margin-top: 1em;
}

.mt-2 {
    margin-top: 2em;
}

.mt-3 {
    margin-top: 3em;
}

.mt-4 {
    margin-top: 4em;
}

.mt-5 {
    margin-top: 5em;
}

.mb-1 {
    margin-bottom: 1em;
}

.mb-2 {
    margin-bottom: 2em;
}

.mb-3 {
    margin-bottom: 3em;
}

.mb-4 {
    margin-bottom: 4em;
}

.mb-5 {
    margin-bottom: 5em;
}

/* Buttons */

button[class*="animate"], a[class*="animate"] {
    position: relative;
}

.animate-right {
    z-index: 1;
}

.animate-right:hover {
    background: inherit;
}

.animate-right:after {
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--primary-light);
    display: block;
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
}

.animate-right:hover:after {
    width: 100%;
    opacity: 1;
}

.animate-skew {
    overflow: hidden;
    width: 268px;
}

.animate-skew:after {
    content: '';
    position: absolute;
    z-index: -1;
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    width: 100%;
    height: 0;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    background: var(--primary);
}

.animate-skew:hover:after {
    height: 300%;
    opacity: 1;
}

/* Header */

.main-header {  
    height: 80px;
    width: 100%;
    background: var(--primary-dark);
}

.home .main-header {
    background: none;
    position: absolute;
    z-index: 100;
}

.main-header .logo-container {
    flex: 1 0 auto;
    justify-content: flex-start;
}

.main-header .logo-container img {
    max-height: 40px;
}

@media screen and (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .navbar-collapse {
        position: absolute;
        right: 0;
        top: 80px;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
    }

    .nav-menu .menu li a {
        color: var(--primary);
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1em 3rem;
    align-items: center;
    height: 100%;
}

.nav-menu ul, .nav-menu li {
    list-style: none;
}

.nav-menu .menu li {
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 28px;
    margin: 0 1.5rem;
    font-family: "Oswald";
    text-transform: uppercase;
}

.nav-menu .menu > li:hover:not(.dropdown) {
    border-bottom: 3px solid var(--main-color);
}

.home .nav-menu .menu > li > a {
    color: var(--primary);
}

.nav-menu .menu li:hover > a {
    font-weight: 700;
}

.nav-menu .menu li.dropdown .dropdown-menu {
    transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
    -webkit-transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
    -moz-transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2em);
}

.nav-menu .menu li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
    transition-delay: 0s, 0s, 0.3s;
}

/* Footer */

.main-footer {
    background: var(--primary-dark);
    padding: 1.5rem 2rem;
    z-index: 1;
}

.main-footer .footer-logo img {
    margin-top: 2rem;
}

@media screen and (max-width: 991px) {
    .main-footer .footer-logo img {
        max-width: 300px;
    }
}

.main-footer ul, .main-footer li {
    list-style: none;
    padding: 0;
}

.main-footer .footer-title {
    font-family: 'Dosis';
    font-size: 24px;
    text-transform: uppercase;
}

.main-footer .copyright-text {
    text-align: center;
}

/* Banner */

.main-banner .before {
    background-color: #000;
    position: relative;
    opacity: 0.6;
    height: 100%;
    width: 100%;
}

.main-banner {
    position: relative;
    background: url(../images/background/fond_1.jpeg);
    background-size: cover;
    min-height: 100%;
    width: 100%;
}

.main-banner .banner-inner {
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.main-banner .banner-inner .main-title {
    width: 100%;
    color: var(--primary-light);
    text-align: center;
}

.main-banner .banner-inner .main-title h1 {
    text-transform: uppercase;
    font-size: 64px;
    font-family: 'Dosis', sans-serif;
}

.main-banner .banner-inner .main-title .sub-title {
    font-size: 26px;
}

@media screen and (max-width: 991px) {
    .main-banner .banner-inner .main-title h1 {
        font-size: 50px;
    }

    .main-banner .banner-inner .main-title .sub-title {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .main-banner .banner-inner .main-title h1 {
        font-size: 38px;
    }

    .main-banner .banner-inner .main-title .sub-title {
        font-size: 22px;
    }
}

/* Main content */


.main-container {
    flex: 1 0 auto;
    max-width: 100%;
}

.section-about {
    padding: 2em 0;
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 52px;
    font-family: 'Dosis', sans-serif;
    margin-bottom: 2rem;
}

@media screen and (max-width: 991px) {
    .section-title {
        font-size: 38px;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
}

.h3-title {
    font-size: 28px;
    margin-bottom: 1em;
    text-transform: uppercase;
}

@media screen and (max-width: 991px) {
    .h3-title {
        font-size: 26px;
    }
}

@media screen and (max-width: 768px) {
    .h3-title {
        font-size: 24px;
    }
}

/* Services */

.section-services {
    padding: 2em 0;
}

.section-services .section-inner {
    text-align: center;
    margin-top: 4em;
}

.section-services .section-inner .service-icon img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

@media screen and (max-width: 991px) {
    .section-services .section-inner .service-block {
        padding-top: 1em;
        padding-bottom: 1em;
        border-bottom: 1px solid var(--primary-dark);
    }
}

.section-services .section-inner .service-title {
    text-transform: uppercase;
    font-size: 28px;
}

@media screen and (min-width: 992px) {
    .section-services .section-inner .service-title {
        height: 60px;
    }
}

/* Projects */

.section-projects {
    padding: 2em 0;
}

.section-projects .projects-row {
    margin-bottom: -2em;
}

.section-projects .project {
    margin-bottom: 6em;
}

.section-projects .project .project-thumbnail img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.section-projects .project .project-title {
    text-transform: uppercase;
    font-size: 28px;
    height: 40px;
    text-align: center;
}

.section-projects .project .project-description {
    text-align: justify;
    height: 100px;
}

@media screen and (max-width: 991px) {
    .section-projects .project .project-description {
        height: 70px;
    }
}

.section-projects .see-projects {
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    background: none;
    color: var(--secondary);
}

.section-projects .see-projects:hover { 
    color: var(--primary);
}

.section-projects .see-projects:after {
    background: var(--secondary);
}

.section-projects .categories-filter ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.section-projects .categories-filter ul li {
    list-style: none;
    margin: 0 1em;
    /* padding: 0.5em 1em;
    border: 1px solid var(--secondary-light); */
}

/* Call to action */

.section-cta {
    z-index: 10;
    position: relative;
    top: 1em;
}

.section-cta .section-inner {
    background: var(--secondary-light);
    color: var(--primary-light);
    padding: 2rem 5rem;
    border-radius: 0.5em;
}

.section-cta .section-inner .cta-title {
    text-transform: uppercase;
    font-size: 42px;
    margin-bottom: 3rem;
}

.section-cta .section-inner .cta-button {
    padding: 1rem 1.5rem;
    border-radius: 0.5em;
    font-size: 20px;
    text-transform: uppercase;
}

.section-cta .section-inner .cta-button:after {
    border-radius: 0.5em;
}

/* Page banner */

.page-banner .before {
    background-color: var(--primary-dark);
    position: relative;
    opacity: 0.2;
    height: 200px;
    width: 100%;
}

.page-banner {
    position: relative;
    height: 200px;
    text-align: center;
    text-transform: uppercase;
}

.page-banner .banner-inner {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-banner .banner-inner .main-title {
    position: relative;
}

.page-banner .banner-inner .main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 15%;
    left: 42.5%;
    border-bottom: 3px solid var(--main-color);
}

.page-banner .banner-inner .main-title h1 {
    font-size: 64px;
    font-family: "Dosis", sans-serif;
}

@media screen and (max-width: 991px) {
    .page-banner {
        height: 160px;
    }

    .page-banner .banner-inner .main-title h1 {
        font-size: 42px;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 120px;
    }

    .page-banner .banner-inner .main-title h1 {
        font-size: 32px;
    }
}

/* Project page */

.project-content {
    margin: 2em 0;
}

.project-content .project-thumbnail img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.project-content .project-inner .project-meta .meta-list {
    padding: 0;
    margin: 1em 0;
}

.project-content .project-inner .project-meta .meta-list li {
    display: inline-block;
    list-style: none;
    margin-right: 1em;
    color: var(--secondary-light);
    position: relative;
    letter-spacing: 0.5px;
}

.project-content .project-inner .project-meta .meta-list li:after {
    content: '';
    position: absolute;
    right: 0;
}

.project-content .project-inner .project-meta .meta-list li i {
    margin-right: 0.3em;
}

.project-content .project-inner .project-link {
    color: var(--secondary-light);
}

.project-content .project-inner .project-text .description-title {
    text-transform: uppercase;
    margin-bottom: 1em;
}

.project-content .project-inner .project-text .project-description {
    text-align: justify;
}

.messages {
    height: 80vh;
}