/* ===================================================
    Table of Contents
=====================================================
    1.0 Wrapper
	2.0 Slider Content
	3.0 Car Holder
	4.0 Slider Pagination
	5.0 Slider Navigation
=====================================================
    Slider CSS
==================================================== */

/*=== 1.0 Wrapper ===*/
.main-slider {
    position: relative;
    overflow: hidden;
}


.main-slider .slider-bg {
    /*background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='120' height='120.1' patternTransform='scale(2) rotate(45)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(240,6.7%,17.6%,1)'/><path d='M79.6-6.4v24.8H62.7V2.3h7.4v11h4.3V-1.9H58.5v24.6h25.4V-6.4H89v29.1h25.4V-1.9H98.5v16.1h4.2V2.3h7.4v16.1H93.2V-6.4zm-41.7 76v4.2H54V57.9H29.5v25.3h29.2v5.1H29.5v25.3H54V97.7H38.8v4.2h11v7.4H33.7V92.4h25v21.2h21v24.8l-17-15.9h11.6v-4.2H58.4v4.2l21.1 20.3h4.2v-29h5.1v29H93l21.1-20.3v-4.2H98.2v4.2h11.6l-16.9 16.1v-24.8h21.4V92.6h24.6l-16.1 16.9V97.9h-4.2v15.9h4.2l20.3-21.1v-4.2h-28.8v-5.1h28.8v-4.2l-20.3-21.1h-4.2V74h4.2V62.4l16.1 16.9h-24.6V58.1H92.9V33.3h16.9v16.1h-7.4V37.5h-4.2v16.1h15.9V29.1H88.8v29h-5.1v-29H58.5v24.5h15.9V38.4h-4.2v11h-7.4V33.3h16.9v24.8h-21v21.2h-25V62.4h16.1v7.4H37.9zm25-7.4h47.4v47.4H62.9zM0 52.5h52.5V0H0zM4 3.9h44.6v44.6H4zm-9.5 88.8h24.6v16.9H3v-7.4h11v-4.3H-1.2v15.9h24.5V88.4H-5.5v-5.1h28.8V57.9H-1.2v15.9h16.1v-4.2H3v-7.4h16.1v16.9H-5.5zm39.1-72h14.6L40.9 13zm-14.6 0h14.6L26.3 13zm-14.6 0H19L11.7 13zM4.1 8.6h44.7v3.3H4.1zm29.5 28.8h14.6l-7.3-7.6zm-14.6 0h14.6l-7.3-7.6zm-14.6 0H19l-7.3-7.6zm-.3 3.1h44.7v3.3H4.1zm0-15.1h44.7v3.3H4.1zm82.6 55.5a5.8 5.8 0 105.8 5.8c-.1-3.2-2.7-5.8-5.8-5.8zm0 15.9c-5.6 0-10.2-4.6-10.2-10.2s4.6-10.2 10.2-10.2S96.9 81 96.9 86.6c0 5.7-4.6 10.2-10.2 10.2zm-13.8 3.6h27.5V72.9H72.9zm31.9 4.4H68.5V68.5h36.3z'  stroke-width='1' stroke='none' fill='%2335310dc1'/></pattern></defs><rect width='800%' height='800%' transform='translate(-234,-104.4)' fill='url(%23a)'/></svg>")*/
    background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='120' height='120.1' patternTransform='scale(5) rotate(105)'><rect x='0' y='0' width='100%' height='100%' fill='%230f0f0fff'/><path d='M79.6-6.4v24.8H62.7V2.3h7.4v11h4.3V-1.9H58.5v24.6h25.4V-6.4H89v29.1h25.4V-1.9H98.5v16.1h4.2V2.3h7.4v16.1H93.2V-6.4zm-41.7 76v4.2H54V57.9H29.5v25.3h29.2v5.1H29.5v25.3H54V97.7H38.8v4.2h11v7.4H33.7V92.4h25v21.2h21v24.8l-17-15.9h11.6v-4.2H58.4v4.2l21.1 20.3h4.2v-29h5.1v29H93l21.1-20.3v-4.2H98.2v4.2h11.6l-16.9 16.1v-24.8h21.4V92.6h24.6l-16.1 16.9V97.9h-4.2v15.9h4.2l20.3-21.1v-4.2h-28.8v-5.1h28.8v-4.2l-20.3-21.1h-4.2V74h4.2V62.4l16.1 16.9h-24.6V58.1H92.9V33.3h16.9v16.1h-7.4V37.5h-4.2v16.1h15.9V29.1H88.8v29h-5.1v-29H58.5v24.5h15.9V38.4h-4.2v11h-7.4V33.3h16.9v24.8h-21v21.2h-25V62.4h16.1v7.4H37.9zm25-7.4h47.4v47.4H62.9zM0 52.5h52.5V0H0zM4 3.9h44.6v44.6H4zm-9.5 88.8h24.6v16.9H3v-7.4h11v-4.3H-1.2v15.9h24.5V88.4H-5.5v-5.1h28.8V57.9H-1.2v15.9h16.1v-4.2H3v-7.4h16.1v16.9H-5.5zm39.1-72h14.6L40.9 13zm-14.6 0h14.6L26.3 13zm-14.6 0H19L11.7 13zM4.1 8.6h44.7v3.3H4.1zm29.5 28.8h14.6l-7.3-7.6zm-14.6 0h14.6l-7.3-7.6zm-14.6 0H19l-7.3-7.6zm-.3 3.1h44.7v3.3H4.1zm0-15.1h44.7v3.3H4.1zm82.6 55.5a5.8 5.8 0 105.8 5.8c-.1-3.2-2.7-5.8-5.8-5.8zm0 15.9c-5.6 0-10.2-4.6-10.2-10.2s4.6-10.2 10.2-10.2S96.9 81 96.9 86.6c0 5.7-4.6 10.2-10.2 10.2zm-13.8 3.6h27.5V72.9H72.9zm31.9 4.4H68.5V68.5h36.3z'  stroke-width='1' stroke='none' fill='%23a3951906'/></pattern></defs><rect width='800%' height='800%' transform='translate(-1040,-255)' fill='url(%23a)'/></svg>");
}

.main-slider .swiper-slide {
    visibility: hidden;
}
.main-slider .swiper-slide.swiper-slide-active{
    visibility: visible;
}

.slider-img {
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: -1;
}

.slider-img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation-duration: 8s;
}

/*=== 2.0 Slider Content ===*/
.slider-content-wrap {
    height: 600px;
}

@media screen and (min-width: 992px) {
    .slider-content-wrap .slider-content {
        width: 600px;
    }
}

.slider-caption.medium {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.slider-caption.big {
    font-size: 56px;
    line-height: 60px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.slider-caption.small {
    font-size: 18px;
    line-height: 28px;
    color: #ddd;
    margin-bottom: 20px;
}

/*=== 3.0 Car Holder ===*/
.car-holder {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.car-holder img {
    z-index: 2;
}

.car-holder .shape {
    position: absolute;
    right: 120px;
    top: 0;
    height: 100%;
    width: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transform: skew(-20deg, 0deg);
    overflow: hidden;
}

.car-holder .shape div {
    background-color: #222;
    width: 100px;
    height: 80%;
    z-index: 1;
}

.car-holder .shape div:nth-child(2) {
    background-color: #ff9900;
    width: 200px;
    height: 100%;
}

.car-holder .shape div:nth-child(3) {
    background-color: #222;
    width: 100px;
    height: 80%;
    margin-bottom: 30%;
}

/*=== 4.0 Slider Pagination ===*/
.slider-controls {
    background-color: #fff;
    color: #3e3e3e;
    border-radius: 2px;
    width: 300px;
    height: 80px;
    padding: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
    z-index: 10;
}

.slider-controls .slider-pagination {
    width: auto;
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.slider-control {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s cubic-bezier(.165, .85, .45, 1);
}

.slider-control:hover {
    color: #ff9900;
}

.slider-control span {
    font-size: 30px;
    margin-top: 3px;
    line-height: 1;
}

.slider-pagination .swiper-pagination-current {
    font-size: 42px;
    font-weight: 500;
    color: #ff9900;
}

@media (min-width: 1200px) {
    .slider-controls{
        width: 450px;
        justify-content: flex-end;
        column-gap: 60px;
    }
}

/*=== 5.0 Slider Navigation ===*/
.main-slider-2 {
    position: relative;
}

.main-slider-2 .swiper-nav {
    color: #222;
    font-size: 35px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    left: -5px;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    transition: all 300ms cubic-bezier(.165, .85, .45, 1);
    z-index: 1;
    visibility: hidden;
    opacity: 0;
}

.main-slider-2 .swiper-nav:hover {
    opacity: 1;
}

.main-slider-2 .swiper-nav:before {
    background-color: #ff9900;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

.main-slider-2 .swiper-nav.swiper-next {
    justify-content: center;
    left: auto;
    right: -5px;
    clip-path: polygon(0 50%, 100% 100%, 100% 0);
}

.main-slider-2 .swiper-nav.swiper-prev {
    justify-content: center;
    clip-path: polygon(100% 50%, 0 100%, 0 0);
}

.main-slider-2:hover .swiper-nav{
    visibility: visible;
    opacity: 1;
    left: 0;
}

.main-slider-2:hover .swiper-nav.swiper-next{
    left: auto;
    right: 0;
}

/* Car Animation */
.car-animation {
    -webkit-animation-name: car-animation;
    animation-name: car-animation;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    animation-fill-mode: both;
}

@-webkit-keyframes car-animation {
    0% {
        -webkit-transform: translateX(60%);
        transform: translateX(60%);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes car-animation {
    0% {
        -webkit-transform: translateX(60%);
        transform: translateX(60%);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

/* Responsive */

@media (max-width: 992px) {

    .slider-caption.big {
        font-size: 48px;
        line-height: 52px;
    }

    .slider-controls {
        bottom: -1px;
    }

    .car-holder {
        display: none;
    }
}

@media (max-width: 767px) {
    .slider-caption.big {
        font-size: 36px;
        line-height: 46px;
    }

    .slider-controls {
        height: 60px;
    }

    .slider-pagination .swiper-pagination-current {
        font-size: 32px;
    }
}
