/********** Custom CSS ************/
:root {
    --primary: #ff0000;
    --secondary: #5c5c5b;
    --light: #f8f9fa;
    --dark: #262626;
    --white: #ffffff;
}

body {
    max-width: 1800px;
    margin: 0 auto;
}

h1,
h2 {
    font-weight: 600 !important;
}

h3,
h4 {
    font-weight: 500 !important;
}

h5,
h6 {
    font-weight: 400 !important;
}
p {
    text-align: justify;
}
figure {
    margin-bottom: 0;
}
/* general styles */

.font-light {
    font-weight: 300 !important;
}
.font-black {
    font-weight: 900 !important;
}
.text-lg {
    font-size: 1.5rem;
}
.text-base {
    font-size: 1rem;
}
.text-sm {
    font-size: 0.75rem;
}

.text-primary {
    color: var(--primary) !important;
}
.btn-primary,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    color: #fff;
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-outline-primary {
    color: var(--dark);
    border-color: var(--primary);
}
.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}
.z-2 {
    z-index: 2;
}

.box-shadow {
    box-shadow: #3c40434d 0px 1px 2px 0px, #3c404326 0px 1px 3px 1px;
}

/* general styles end */

.section-title {
    position: relative;
    padding-left: 60px;
}

.section-title::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--primary);
}

[class^="flaticon-"]:before,
[class*=" flaticon-"]:before,
[class^="flaticon-"]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 11;
    animation: action 1s infinite alternate;
}

@keyframes action {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-15px);
    }
}

.nav-bar::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: #181818;
}

.nav-bar::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: #ffffff;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 30px 15px;
    letter-spacing: 1px;
    color: #f3f6ff;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 15px;
    }
}

/* carousel styles */

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.carousel-caption > div {
    position: absolute;
    left: 0;
    bottom: 0;
    width: fit-content;
}

@media (max-width: 539px) {
}
@media (max-width: 767px) {
    .carousel-caption a,
    .carousel-caption h3 {
        font-size: 0.5em;
    }
    .carousel-caption p {
        font-size: 0.25em;
    }
}

.carousel-control-prev {
    justify-content: start;
    width: fit-content;
}
.carousel-control-next {
    justify-content: end;
    width: fit-content;
}

.team-carousel .owl-nav,
.service-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 50%;
    left: 0;
    margin-top: -20px;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next,
.service-carousel .owl-nav .owl-prev,
.service-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #252531;
    background: #dfb163;
    font-size: 22px;
    opacity: 0.1;
    transition: 0.3s;
}

.team-carousel:hover .owl-nav .owl-prev,
.team-carousel:hover .owl-nav .owl-next,
.service-carousel:hover .owl-nav .owl-prev,
.service-carousel:hover .owl-nav .owl-next {
    opacity: 1;
}

/* carousel styles end */

.portfolio-item .portfolio-img {
    position: relative;
    width: 100%;
    height: 100%;
    bottom: 0px;
    left: 0;
    transition: 0.5s;
}

.portfolio-item:hover .portfolio-img {
    bottom: 100%;
}

.portfolio-item .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: -100%;
    left: 0;
    transition: 0.5s;
}

.portfolio-item:hover .portfolio-text {
    bottom: 0;
}

.team .team-social {
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 1;
    transition: 0.3s;
}

.team:hover .team-social {
    opacity: 1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    bottom: 0;
    left: -5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dfb163;
    background: transparent;
    border: 1px solid #dfb163;
    font-size: 22px;
    transition: 0.3s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #252531;
    background: #dfb163;
}

.contact-form .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#company-bg {
    background: url("../images/company.jpg");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* map styles */
.map-container {
    width: 300px;
}
@media (min-width: 450px) {
    .map-container {
        width: 400px;
    }
}
@media (min-width: 768px) {
    .map-container {
        width: 700px;
    }
}
@media (min-width: 1024px) {
    .map-container {
        width: 900px;
    }
}
@media (min-width: 1200px) {
    .map-container {
        width: 1000px;
    }
}
