﻿/*#owl-main{
    height:800px;
}*/

#mainSlider {
    overflow: hidden;
    position: relative;
    height: auto;
    min-height: 400px;
}

    #mainSlider .owl-item .item:before {
        content: '';
        background: #000;
        opacity: .5;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 2;
    }

    #mainSlider .scroll-bottom {
        width: 18px;
        height: 30px;
        border: 1px solid #fff;
        position: absolute;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        z-index: 2;
        border-radius: 15px;
        cursor: pointer;
    }

        #mainSlider .scroll-bottom:before {
            content: '';
            position: absolute;
            top: 5px;
            width: 1px;
            left: 50%;
            background: #fff;
            transform: translateX(-50%);
            position: absolute;
            animation-name: scroll;
            animation-timing-function: ease-in;
            animation-duration: 1.2s;
            animation-iteration-count: infinite;
        }

#mainSlider .owl-carousel,
#mainSlider .owl-stage-outer,
#mainSlider .owl-stage,
#mainSlider .owl-item {
    height: 100%;
}

#mainSlider .item {
    height: 100%;
    min-height: 400px;
    background-position: center;
    background-size: cover;
}

.owl-carousel {
    text-align: left;
    cursor: default;
    position: relative;
}

#owl-main .caption {
    width: 100%;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

    #owl-main .caption .fadeInDown-1,
    #owl-main .caption .fadeInDown-2 .btn-container,
    #owl-main .caption .fadeInDown-3,
    #owl-main .caption .fadeInDown-4 {
        top: -30px;
        opacity: 0;
        transition: all .6s ease;
    }

    #owl-main .caption .fadeInDown-1 {
        transition-delay: .7s;
    }

    #owl-main .caption .fadeInDown-2 .btn-container {
        transition-delay: 1s;
    }

    #owl-main .caption .fadeInDown-3 {
        transition-delay: 1.4s;
    }

    #owl-main .caption .fadeInDown-4 {
        transition-delay: 1.6s;
    }

#owl-main .active .caption .fadeInDown-1,
#owl-main .active .caption .fadeInDown-2 .btn-container,
#owl-main .active .caption .fadeInDown-3,
#owl-main .active .caption .fadeInDown-4 {
    top: 0px;
    opacity: 1;
}

#owl-main .caption h2 {
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2;
    color: #FFFFFF;
    -webkit-transition: font 200ms ease-out;
    transition: font 200ms ease-out;
    margin: 0;
    width: 55%;
    margin-left: -5px;
    margin-bottom: 20px;
}


#owl-main .caption p {
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    opacity: 0.5;
    width: 50%;
}

#owl-main .caption .page-counter {
    font-size: 12px;
    line-height: 18px;
    color: #FFFFFF;
    position: relative;
}

    #owl-main .caption .page-counter .current {
        padding-right: 35px;
        position: relative;
    }

        #owl-main .caption .page-counter .current:after {
            content: '';
            position: absolute;
            height: 1px;
            width: 30px;
            top: 50%;
            transform: translateY(-50%);
            right: 0px;
            background: #fff;
            opacity: .3;
        }

    #owl-main .caption .page-counter .total {
        opacity: .3;
    }

#owl-main .caption .slider-btn {
    width: 100%;
    display: block;
    text-align: right;
    width: 100%;
}

    #owl-main .caption .slider-btn .btn-container {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.3);
    }

        #owl-main .caption .slider-btn .btn-container a {
            position: relative;
            text-align: right;
            color: #fff;
            font-weight: 400;
            font-size: 12px;
            line-height: 18px;
            opacity: 1;
            margin: 0;
            padding-left: 15px;
        }

        #owl-main .caption .slider-btn .btn-container span {
            background: #fff;
            position: absolute;
            height: 1px;
            right: 0;
            bottom: -1px;
            border-radius: 2px;
            opacity: 1;
            width: 0;
        }


.owl-wrapper-outer {
    overflow: hidden;
}

.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage-outer .owl-stage,
.owl-carousel .owl-stage-outer .owl-stage .owl-item {
    height: 100%;
    background: #fff;
}

#owl-main .item {
    background-color: #FFF;
    background-position: center 55%;
    background-size: cover;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
}

#owl-main.height-md .item {
    height: 100%;
}

.owl-stage .container {
    display: table;
    height: inherit;
    padding: 0;
    z-index: 4;
    position: relative;
    padding: 0 15px;
}

#owl-main .caption {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    z-index: 4;
}

    #owl-main .caption h2, #owl-main .caption p, #owl-main .caption div {
        position: relative;
    }

#owl-main .container.dots-cont {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

    #owl-main .container.dots-cont button {
        height: 8px;
        width: 8px;
        margin-right: 4px;
        background: rgba(255,255,255,0.5);
        opacity: .3;
        transition: all .4s ease;
        /*transition-delay: 1.2s;*/
        border-radius: 50%;
        position: relative;
        border: none;
        padding: 0;
    }

        #owl-main .container.dots-cont button.active {
            opacity: 1;
            transform: scale(1.2);
            background: #fff;
        }

#owl-main .container.nav-cont {
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    left: 0;
    right: 0;
    z-index: 2;
}

    #owl-main .container.nav-cont button {
        margin: 0;
        display: block;
        float: left;
        width: 40px;
        height: 40px;
        margin-right: 15px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.4);
        outline: none;
        transition: all .4s ease;
    }

        #owl-main .container.nav-cont button span {
            position: relative;
            color: rgba(0,0,0,0);
            display: block;
            width: 100%;
            float: left;
        }

        #owl-main .container.nav-cont button.owl-prev span:before {
            width: 8px;
            height: 8px;
            left: 50%;
            top: 50%;
            border-style: solid;
            border-width: 0 1px 1px 0;
            border-color: #fff;
            content: '';
            display: inline-block;
            position: absolute;
            transform: translate(-50%,-50%) rotate(135deg);
        }

        #owl-main .container.nav-cont button.owl-next span:before {
            width: 8px;
            height: 8px;
            left: 50%;
            top: 50%;
            border-style: solid;
            border-width: 1px 0 0 1px;
            border-color: #fff;
            content: '';
            display: inline-block;
            position: absolute;
            transform: translate(-50%,-50%) rotate(135deg);
        }

        #owl-main .container.nav-cont button:hover {
            background: rgba(255,255,255,.4);
        }

@media (max-width: 767px) {
    #owl-main .container.nav-cont {
        display: none;
    }
}

/* preloading images */
.owl-item.loading {
    min-height: inherit;
    background: none;
}

.tint-bg a:hover {
    color: #506A85;
}

section.about h1,
section.about h5 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #008EB2;
    margin: 0;
}

section h3 {
    font-weight: bold;
    font-size: 36px;
    line-height: 54px;
    color: #233747;
    margin: 0;
}

section p {
    font-weight: 300;
    font-size: 14px;
    opacity: 1;
    line-height: 24px;
    color: rgb(35, 55, 71);
}

a.button svg rect {
    stroke-width: 0 !important;
    stroke: #233747 !important;
    stroke-dasharray: none;
    stroke: none;
}

section .box-item .inspect-btn {
    display: none;
    text-align: right;
    position: absolute;
    top: 5px;
    right: 20px;
    transition: all .4s ease;
    opacity: 0;
}

    section .box-item .inspect-btn span {
        font-weight: 600;
        font-size: 10px;
        text-decoration-line: underline;
        color: #FFFFFF;
        float: left;
        text-transform: uppercase;
        text-underline-position: under;
    }

    section .box-item .inspect-btn img {
        position: relative;
        top: 1px;
        left: 2px;
        height: 13px;
        float: left;
        display: inline-block;
    }


section .box-item:hover {
    transform: translateY(-10px);
}

    section .box-item:hover .inspect-btn {
        top: 25px;
        opacity: .8;
    }

section.about p {
    padding-right: 150px;
}

section.about img {
    width: 100%;
    font-size: 30px;
}

section.clients .client-container {
    position: relative;
    min-height: 1px;
    width: 10%;
    padding: 0px 15px;
    float: left;
    margin-bottom: 30px;
}

section.clients .client-images .client-item {
    border: 1px solid rgba(35, 55, 71, 0.1);
    box-sizing: border-box;
    text-align: center;
    font-size: 1.5rem;
    padding: 20px;
    float: left;
    width: 100%;
}

    section.clients .client-images .client-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

section.products {
    background-image: url('../images/pattern.png');
    background-position: 10% bottom;
    background-repeat: no-repeat;
    background-size: auto;
}

    section.products .product-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.1);
        background: -moz-linear-gradient(0deg, rgba(0,0,0,0.6867121848739496) 0%, rgba(255,255,255,0) 100%);
        background: -webkit-linear-gradient(0deg, rgba(0,0,0,0.6867121848739496) 0%, rgba(255,255,255,0) 100%);
        background: linear-gradient(0deg, rgba(0,0,0,0.6867121848739496) 0%, rgba(255,255,255,0) 100%);
    }

    section.products .product-item {
        width: 100%;
        float: left;
        height: 315px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
        display: flex;
        flex-basis: 100%;
        align-items: flex-end;
        padding: 25px 20px;
        transition: all .4s ease;
        box-shadow: 0px 0px 0px rgba(57, 57, 57, 0.3);
    }

        section.products .product-item:hover {
            box-shadow: 0px 20px 30px rgba(57, 57, 57, 0.3);
        }

        section.products .product-item > span {
            font-weight: bold;
            font-size: 22px;
            line-height: 26px;
            color: rgba(255, 255, 255, 0.7);
            width: 100%;
            position: relative;
        }

        section.products .product-item span:before {
            content: '';
            position: absolute;
            right: 0;
            bottom: 3px;
            height: 10px;
            width: 10px;
            border-color: #fff;
            border-style: solid;
            border-width: 2px 2px 0 0;
            transform: translateY(-50%) rotate(45deg);
            opacity: 0;
            transition: all .4s ease;
        }

        section.products .product-item:hover span:before {
            opacity: 1;
            /*right: 0px;*/
            -webkit-animation-name: hvr-icon-wobble-horizontal-right;
            animation-name: hvr-icon-wobble-horizontal-right;
            -webkit-animation-duration: 1s;
            animation-duration: 1s;
            -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out;
            -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
        }

section.services {
    background-image: url('../images/pattern.png');
    background-position: right 10% bottom;
    background-repeat: no-repeat;
    background-size: auto;
}

    section.services .service-item {
        border: 1px solid #F4F5F6;
        box-sizing: border-box;
        padding: 80px 60px;
        background-color: #fff;
        height: 100%;
    }

        section.services .service-item h5 {
            font-weight: 600;
            font-style: normal;
            font-weight: 600;
            font-size: 20px;
            line-height: 30px;
            margin-bottom: 10px;
            color: #233747;
            text-transform: uppercase;
        }

section.blogs {
    background-image: url('../images/pattern.png');
    background-position: 10% 33%;
    background-repeat: no-repeat;
    background-size: auto;
}

    section.blogs .blog-item {
        float: left;
        position: relative;
        transition: all .4s ease;
        /*box-shadow: 0px 0px 0px rgba(57, 57, 57, 0);*/
        margin-bottom: 60px;
        background: #fff;
    }

        section.blogs .blog-item:hover {
            /*box-shadow: 0px 20px 20px rgba(57, 57, 57, 0.05);*/
            transform: none;
        }

            section.blogs .blog-item:hover img {
                filter: blur(2px);
            }

            section.blogs .blog-item:hover h5 {
                color: #008EB2 !important;
            }

        section.blogs .blog-item img {
            float: left;
            transition: all .4s ease;
            display: block;
        }

        section.blogs .blog-item .blog-content {
            float: left;
            padding: 10px 0;
            width: 100%;
        }

            section.blogs .blog-item .blog-content span {
                font-size: 10px;
                line-height: 10px;
                color: rgba(35, 55, 71, 0.6);
            }

            section.blogs .blog-item .blog-content h5 {
                font-weight: 600;
                font-size: 13px;
                line-height: 20px;
                color: #233747;
                margin: 0;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: normal;
                -webkit-line-clamp: 2;
                transition: all .4s ease;
            }

            section.blogs .blog-item .blog-content p {
                font-size: 14px;
                line-height: 21px;
                color: rgba(35, 55, 71, 0.7);
                margin: 0;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: normal;
                -webkit-line-clamp: 5;
                display: none;
            }

        section.blogs .blog-item .blog-img-container {
            height: 200px;
        }

            section.blogs .blog-item .blog-img-container img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }

section.newsletter .container .newsletter-cont {
    background: linear-gradient(90deg, #F4F4F4 0%, #FBFBFB 100%);
}

section.newsletter .container .row {
    background-image: url('../images/home/newsletter-phone.png');
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0;
    background-repeat: no-repeat;
    background-position-x: left;
    background-size: auto 100%;
    position: relative;
}


section.newsletter .container #form:before {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    position: absolute;
    background: #FBFBFB;
    background: linear-gradient(90deg, #F4F4F4 0%, #FBFBFB 100%);
    content: '';
    vertical-align: central;
    text-align: center;
    display: none;
}

section.newsletter .container #form:after {
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    position: absolute;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #233747;
    display: none;
}


section.newsletter .container #form.success:after {
    content:'Formu doldurduğunuz için teşekkür ederiz.';
}

section.newsletter .container #form.error:after {
    content:'Bir hata oluştu. Lütfen daha sonra tekrar deneyin.';
}

section.newsletter .container #form.submited:before,
section.newsletter .container #form.error:after,
section.newsletter .container #form.submited:after {
    display: block;
}



/*section.newsletter .container input::placeholder {
    color: rgba(35, 55, 71, 0.2);
    font-size: 16px;
}*/

section.newsletter .container input {
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    padding: 20px 30px 10px 30px;
    color: #233747;
    width: 100%;
    border: 1px solid rgba(35, 55, 71, 0.1);
    background: none;
    transition: all .6s ease;
    -webkit-appearance: none;
    box-shadow: none;
    border-radius: 0;
    position: relative;
}

    section.newsletter .container input:focus {
        border: 1px solid rgba(35, 55, 71, 1);
    }

section.newsletter .container .has-error input {
    border: 1px solid #F10E00;
}

section.newsletter .container .span {
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #233747;
    float: right;
    width: 50%;
}

section.newsletter .container .has-error label.error {
    display: none !important;
}

section.newsletter .container .has-error:before {
    color: #F10E00;
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    #mainSlider {
        margin-bottom: 0;
    }

    #mainSlider,
    #mainSlider .item {
        min-height: 300px;
    }

    #owl-main .caption {
        padding: 0 5px;
    }

        #owl-main .caption h2 {
            margin: 0;
            width: 100%;
            margin-left: -2px;
            font-size: 36px;
            line-height: 37px;
            margin-bottom: 15px;
        }

        #owl-main .caption p {
            width: 100%;
            font-size: 14px;
            line-height: 18px;
            padding-top: 10px;
            margin-bottom: 20px;
        }

        #owl-main .caption .page-counter {
            line-height: 18px;
        }

    #mainSlider .scroll-bottom {
    }

    section.about p {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .clients {
        margin-bottom: 50px !important;
    }

    section.clients .client-container {
        min-height: 100px;
        width: 100%;
        
    }

        section.clients .client-container:nth-last-child(-n+8) {
            display: none;
        }


    .home-products {
        padding: 0 5px;
    }

        .home-products > div {
            width: 50%;
            margin-bottom: 20px;
            padding: 0 10px;
        }

    .home-products {
        padding-bottom: 30px;
    }

    section.products .product-item {
        height: 200px;
        padding: 20px;
    }

        section.products .product-item > span {
            font-size: 16px;
            line-height: 21px;
        }

    section {
        background-image: none !important;
    }

        section.services {
            padding-top: 10px;
        }

            section.services .service-item {
                padding: 60px 30px;
                margin-bottom: 20px;
            }

        section.blogs .blog-item {
            margin-bottom: 30px;
            width: 100%;
        }

            section.blogs .blog-item:hover img {
                filter: initial;
                transform: none;
            }

        section .box-item:hover {
            transform: translateY(0px);
        }

        section.newsletter {
            padding-bottom: 0;
        }

            section.newsletter .container .row {
                background: none;
            }

            section.newsletter .container .span {
                font-size: 20px;
                line-height: 28px;
                color: #233747;
                float: unset;
                text-align: center;
                padding: 0 25%;
                width: 100%;
                padding-bottom: 30px;
            }

            section.newsletter .container input {
                width: 100%;
                padding: 20px 20px 10px 20px;
                margin-bottom: 20px;
                font-size: 16px;
            }

            section.newsletter .newsletter-btn {
                padding-top: 30px;
                text-align: center;
            }
}

@media (max-width: 767px) {
    #mainSlider,
    #mainSlider .item {
        min-height: 250px;
    }

    #owl-main .caption h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    #owl-main .caption p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .client-container {
        width: 50%;
    }

    .box-item .box-img-container {
        height: 200px;
    }

    .blog-item .blog-img-container {
        height: 200px;
    }
}

@keyframes scroll {
    0% {
        height: 0px;
    }

    50% {
        height: 10px;
    }

    100% {
        height: 0px;
    }
}

/* Image and content responsive styles */
img {
    max-width: 100%;
    height: auto;
}

.box-item img,
.blog-item img,
.client-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 991px) {
    .box-item {
        margin-bottom: 30px;
    }

    .blog-item {
        margin-bottom: 30px;
    }

    .client-container {
        width: 33.333%;
        padding: 0 15px;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .client-container {
        width: 50%;
    }

    .box-item .box-img-container {
        height: 200px;
    }

    .blog-item .blog-img-container {
        height: 200px;
    }
}

/* Content spacing fixes */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* Fix flex layouts */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-3,
.col-md-4,
.col-sm-6 {
    padding: 0 15px;
}

@media (max-width: 991px) {
    .row {
        margin: 0 -10px;
    }

    [class*="col-"] {
        padding: 0 10px;
    }
}

/* Services Section Responsive */
section.services {
    position: relative;
    overflow: hidden;
}

section.services .service-item {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

section.services .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

section.services .service-item h5 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #233747;
}

section.services .service-item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(35, 55, 71, 0.7);
    margin-bottom: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 -15px;
}

.product-item {
    position: relative;
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.product-item .title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 991px) {
    section.services .service-item {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    section.services .service-item h5 {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .product-item {
        height: 240px;
    }
}

@media (max-width: 767px) {
    section.services .service-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    section.services .service-item h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-item {
        height: 200px;
    }
    
    .product-item .title {
        font-size: 16px;
    }
}
