/*--------------------------------------------------------------
# Gözde Oto Servis - Tüm Görsel Düzeltmeleri
--------------------------------------------------------------*/

/* ============================================
   GENEL GÖRSEL KURALLARI
   ============================================ */

/* Prevent horizontal scroll */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Tüm görseller için temel kurallar */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container'ların overflow kontrolü */
.about-three__img,
.why-choose-one__img,
.faq-three__img,
.blog-three__img,
.gallery-three__img,
.team-three__img,
.testimonial-three__client-img,
.brand-two__img,
.services-three__icon,
.site-footer-three__img-box {
    overflow: hidden;
    position: relative;
}

/* Prevent content overflow */
.container,
.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   SLIDER GÖRSELLERİ - YENİ YAPI
   ============================================ */

/* Slider container */
.main-slider-three {
    position: relative;
    overflow: hidden;
}

.main-slider-three__wrap {
    max-width: 1680px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.main-slider-three .item {
    background-color: var(--crank-white);
    padding: 100px 0 !important;
}

/* New image wrapper structure */
.main-slider-three__img-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.main-slider-three__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.main-slider-three__img-wrapper:hover img {
    transform: scale(1.05);
}

/* Text content with better visibility */
.main-slider-three__content {
    position: relative;
    z-index: 20 !important;
    padding-right: 30px;
}

.main-slider-three__title {
    color: var(--crank-black) !important;
    text-shadow: 
        0 2px 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8),
        2px 2px 4px rgba(255, 255, 255, 0.7) !important;
    font-size: 72px !important;
    line-height: 84px !important;
    font-weight: 700 !important;
    margin-bottom: 29px !important;
}

.main-slider-three__title span {
    color: var(--crank-base) !important;
    text-shadow: 
        0 2px 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8),
        2px 2px 4px rgba(255, 255, 255, 0.7) !important;
    font-weight: 200 !important;
    display: block;
}

.main-slider-three__text {
    color: var(--crank-gray) !important;
    text-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.95),
        0 0 15px rgba(255, 255, 255, 0.85),
        1px 1px 3px rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    line-height: 26px !important;
    max-width: 90%;
    margin-bottom: 0;
}

/* Button visibility */
.main-slider-three__btn {
    margin-top: 42px !important;
}

.main-slider-three__btn .thm-btn {
    position: relative;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dots navigation */
.main-slider-three .owl-theme .owl-dots {
    z-index: 30 !important;
    bottom: 40px !important;
}

/* Remove old structure styles */
.main-slider-three__img-box,
.main-slider-three__shape-1,
.main-slider-three__img {
    display: none !important;
}

/* ============================================
   HİZMETLER BÖLÜMÜ
   ============================================ */

.services-three__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-three__icon span {
    font-size: 48px;
}

/* ============================================
   BRAND / LOGO GÖRSELLERİ
   ============================================ */

.brand-two__img {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-two__img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    padding: 10px;
}

/* ============================================
   BRAND GALERİ - Lightbox Özelliği
   ============================================ */

.brand-gallery .brand-two__img {
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.brand-gallery .brand-two__img img {
    object-fit: cover !important;
    padding: 0;
    transition: transform 0.4s ease;
}

.brand-gallery-popup {
    display: block;
    position: relative;
}

.brand-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 55, 55, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.brand-gallery-overlay i {
    color: #ffffff;
    font-size: 48px;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.brand-gallery-popup:hover .brand-gallery-overlay {
    opacity: 1;
}

.brand-gallery-popup:hover .brand-gallery-overlay i {
    transform: scale(1);
}

.brand-gallery-popup:hover .brand-two__img img {
    transform: scale(1.1);
}

/* Brand gallery responsive */
@media (max-width: 991px) {
    .brand-gallery .brand-two__img {
        height: 240px;
    }
}

@media (max-width: 767px) {
    .brand-gallery .brand-two__img {
        height: 200px;
    }
    
    .brand-gallery-overlay i {
        font-size: 36px;
    }
}

@media (max-width: 575px) {
    .brand-gallery .brand-two__img {
        height: 180px;
    }
}

/* ============================================
   HAKKIMIZDA BÖLÜMÜ
   ============================================ */

.about-three__img {
    width: 100%;
    height: 520px;
    border-radius: 20px;
}

.about-three__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px;
}

/* ============================================
   TEAM / HİZMET KARTLARI
   ============================================ */

.team-three__img {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
}

.team-three__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
}

.team-three__img:hover img {
    transform: scale(1.05);
}

/* Team-three content text color fix - beyaz metin */
.team-three__content {
    color: #ffffff !important;
}

.team-three__content * {
    color: #ffffff !important;
}

.team-three__title,
.team-three__title a {
    color: #ffffff !important;
}

.team-three__service-text {
    color: #ffffff !important;
}

.team-three__title a:hover {
    color: var(--crank-base, #ef3737) !important;
}

/* ============================================
   GALERİ GÖRSELLERİ
   ============================================ */

.gallery-three__img {
    width: 320px;
    height: 240px;
    border-radius: 15px;
    flex-shrink: 0;
}

.gallery-three__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-three__img:hover img {
    transform: scale(1.08);
}

/* ============================================
   TESTİMONİAL / SERVİS SÜRECİ
   ============================================ */

.testimonial-three__client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-three__client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
}

/* ============================================
   NEDEN BİZ BÖLÜMÜ
   ============================================ */

.why-choose-one {
    position: relative;
    z-index: 1;
}

.why-choose-one__img {
    width: 100%;
    height: 480px;
    border-radius: 20px;
}

.why-choose-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px;
}

.why-choose-one__user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.why-choose-one__user-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Why-choose text color fix */
.why-choose-one__user-text {
    color: #ffffff !important;
}

.why-choose-one__user-sub-title {
    color: #ffffff !important;
}

.why-choose-one__count-box h3,
.why-choose-one__count-box span {
    color: #ffffff !important;
}

/* Why-choose spacing fix - overlap düzeltmesi */
.why-choose-one__right {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.why-choose-one__text {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

/* ============================================
   FAQ BÖLÜMÜ
   ============================================ */

.faq-three {
    position: relative;
    z-index: 1;
    clear: both;
}

.faq-three__img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
}

.faq-three__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px;
}

/* ============================================
   BLOG KARTLARI
   ============================================ */

.blog-three__img {
    width: 100%;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
}

.blog-three__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.blog-three__img:hover img {
    transform: scale(1.05);
}

/* ============================================
   FOOTER GÖRSELİ
   ============================================ */

.site-footer-three__img {
    width: 220px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
}

.site-footer-three__img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px;
}

/* Footer form styling override */
.site-footer-three__newsletter-input input {
    background: rgba(55, 55, 55, 1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-footer-three__newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.site-footer-three__newsletter-input input:focus {
    border-color: var(--crank-base) !important;
    background: rgba(70, 70, 70, 1) !important;
}

/* ============================================
   LOGO GÖRSELLERİ
   ============================================ */

.main-header-three__logo img,
.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain !important;
}

/* ============================================
   TEXT LOGO - Gözde Oto
   ============================================ */

.text-logo {
    font-family: var(--crank-font-two);
    font-size: 32px;
    font-weight: 700;
    color: var(--crank-base) !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.text-logo:hover {
    color: var(--crank-black) !important;
    transform: scale(1.05);
}

/* Header logo (main navigation) */
.text-logo-header {
    color: var(--crank-black) !important;
}

.text-logo-header:hover {
    color: var(--crank-base) !important;
}

/* Mobile logo */
.text-logo-mobile {
    font-size: 28px;
}

/* Sidebar logo */
.logo .text-logo {
    color: var(--crank-white) !important;
}

.logo .text-logo:hover {
    color: var(--crank-base) !important;
}

/* Responsive text logo */
@media (max-width: 767px) {
    .text-logo {
        font-size: 26px;
    }
    
    .text-logo-mobile {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .text-logo {
        font-size: 24px;
    }
    
    .text-logo-mobile {
        font-size: 22px;
    }
}

/* ============================================
   RESPONSİVE DÜZELTMELER - FULL RESPONSIVE
   ============================================ */

/* Desktop Large (1200px - 1920px) */
@media (min-width: 1200px) and (max-width: 1920px) {
    .container {
        max-width: 1320px;
    }
}

/* Laptop / Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .main-slider-three__img-wrapper {
        height: 450px;
    }
    
    .main-slider-three__title {
        font-size: 56px !important;
        line-height: 66px !important;
    }
    
    .main-slider-three__content {
        padding-right: 20px;
    }
    
    .main-slider-three .item {
        padding: 80px 0 !important;
    }
    
    .about-three__img,
    .why-choose-one__img {
        height: 400px;
    }
    
    .team-three__img {
        height: 260px;
    }
    
    .gallery-three__img {
        width: 300px;
        height: 220px;
    }
    
    .brand-gallery .brand-two__img {
        height: 240px;
    }
    
    .blog-three__img {
        height: 260px;
    }
    
    .faq-three__img {
        height: 380px;
    }
    
    /* Footer responsive */
    .site-footer-three__title {
        font-size: 56px;
        line-height: 66px;
    }
    
    .site-footer-three__img {
        width: 200px;
        height: 130px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .main-slider-three__img-wrapper {
        height: 400px;
    }
    
    .main-slider-three__title {
        font-size: 48px !important;
        line-height: 58px !important;
    }
    
    .main-slider-three__text {
        font-size: 15px !important;
        line-height: 24px !important;
    }
    
    .main-slider-three__content {
        padding-right: 15px;
    }
    
    .main-slider-three .item {
        padding: 70px 0 !important;
    }
    
    .about-three__img,
    .why-choose-one__img,
    .faq-three__img {
        height: 350px;
    }
    
    .team-three__img {
        height: 250px;
    }
    
    .gallery-three__img {
        width: 280px;
        height: 200px;
    }
    
    .brand-gallery .brand-two__img {
        height: 220px;
    }
    
    .blog-three__img {
        height: 240px;
    }
    
    /* Text and spacing adjustments */
    .section-title-two__title {
        font-size: 36px !important;
        line-height: 46px !important;
    }
    
    /* Footer responsive */
    .site-footer-three__title {
        font-size: 48px;
        line-height: 58px;
    }
    
    .site-footer-three__img {
        width: 180px;
        height: 120px;
    }
    
    /* Why-choose layout fix */
    .why-choose-one__list-box {
        margin-left: 0 !important;
        margin-top: 30px;
    }
}

/* Mobile Landscape / Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    .main-slider-three__img-wrapper {
        height: 300px;
        margin-top: 30px;
    }
    
    .main-slider-three__title {
        font-size: 38px !important;
        line-height: 48px !important;
    }
    
    .main-slider-three__text {
        font-size: 14px !important;
        line-height: 22px !important;
        max-width: 100%;
    }
    
    .main-slider-three__content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .main-slider-three .item {
        padding: 50px 0 !important;
    }
    
    .main-slider-three__btn {
        margin-top: 25px !important;
    }
    
    /* Stack layout on mobile */
    .main-slider-three .row {
        flex-direction: column;
    }
    
    .main-slider-three .col-xl-6 {
        order: 1;
    }
    
    .main-slider-three .col-xl-6:last-child {
        order: 2;
    }
    
    .about-three__img,
    .why-choose-one__img,
    .faq-three__img {
        height: 300px;
    }
    
    .team-three__img {
        height: 220px;
    }
    
    .blog-three__img {
        height: 240px;
    }
    
    .gallery-three__img {
        width: 100%;
        height: 220px;
    }
    
    .brand-two__img {
        height: 100px;
    }
    
    .brand-gallery .brand-two__img {
        height: 200px;
    }
    
    /* Text sizing */
    .section-title-two__title {
        font-size: 32px !important;
        line-height: 42px !important;
    }
    
    /* Footer responsive */
    .site-footer-three__title {
        font-size: 42px;
        line-height: 52px;
    }
    
    .site-footer-three__newsletter-form {
        max-width: 100%;
    }
    
    .site-footer-three__img {
        width: 160px;
        height: 100px;
    }
    
    .site-footer-three__road {
        margin-left: 0;
    }
    
    /* Menu and navigation */
    .site-footer-three__menu {
        gap: 15px;
        justify-content: center;
    }
    
    .site-footer-three__social {
        justify-content: center;
    }
    
    /* Contact section */
    .contact-two__single {
        margin-bottom: 30px;
    }
    
    /* Why choose spacing */
    .why-choose-one__user-box {
        margin-bottom: 30px;
    }
    
    .why-choose-one__img {
        margin-bottom: 30px;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    .main-slider-three__img-wrapper {
        height: 250px;
        margin-top: 20px;
    }
    
    .main-slider-three__title {
        font-size: 32px !important;
        line-height: 42px !important;
    }
    
    .main-slider-three__text {
        font-size: 14px !important;
        line-height: 22px !important;
    }
    
    .main-slider-three .item {
        padding: 40px 0 !important;
    }
    
    .main-slider-three__btn {
        margin-top: 20px !important;
    }
    
    .about-three__img,
    .why-choose-one__img,
    .faq-three__img {
        height: 250px;
    }
    
    .team-three__img {
        height: 200px;
    }
    
    .blog-three__img {
        height: 200px;
    }
    
    .gallery-three__img {
        height: 200px;
    }
    
    .brand-gallery .brand-two__img {
        height: 180px;
    }
    
    /* Text sizing for mobile */
    .section-title-two__title {
        font-size: 28px !important;
        line-height: 38px !important;
    }
    
    /* Footer responsive */
    .site-footer-three__title {
        font-size: 36px;
        line-height: 46px;
        margin-bottom: 20px;
    }
    
    .site-footer-three__newsletter-input input {
        height: 50px !important;
        font-size: 14px !important;
        padding: 0 20px !important;
        padding-right: 60px !important;
    }
    
    .site-footer-three__newsletter-btn {
        width: 56px !important;
    }
    
    .site-footer-three__img {
        display: none; /* Hide car image on very small screens */
    }
    
    .site-footer-three__road {
        display: none;
    }
    
    /* Services cards */
    .services-three__single {
        margin-bottom: 20px;
    }
    
    .services-three__icon {
        width: 70px;
        height: 70px;
    }
    
    .services-three__icon span {
        font-size: 38px;
    }
    
    /* Buttons */
    .thm-btn {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
    
    /* Team cards spacing */
    .team-three__single {
        margin-bottom: 30px;
    }
    
    /* FAQ accordion */
    .accrodion-title h4 {
        font-size: 16px !important;
        line-height: 26px !important;
    }
    
    .accrodion-content p {
        font-size: 14px !important;
        line-height: 24px !important;
    }
    
    /* Blog cards */
    .blog-three__single {
        margin-bottom: 30px;
    }
}

/* Extra Small Mobile (max 375px) */
@media (max-width: 375px) {
    .main-slider-three__img-wrapper {
        height: 220px;
    }
    
    .main-slider-three__title {
        font-size: 28px !important;
        line-height: 38px !important;
    }
    
    .main-slider-three__text {
        font-size: 13px !important;
        line-height: 20px !important;
    }
    
    .main-slider-three .item {
        padding: 35px 0 !important;
    }
    
    .section-title-two__title {
        font-size: 24px !important;
        line-height: 34px !important;
    }
    
    .site-footer-three__title {
        font-size: 32px;
        line-height: 42px;
    }
    
    .about-three__img,
    .why-choose-one__img,
    .faq-three__img {
        height: 220px;
    }
    
    .brand-gallery .brand-two__img {
        height: 160px;
    }
}

/* Landscape orientation fix for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-slider-three {
        min-height: auto !important;
    }
    
    .main-slider-three__img > img {
        height: 200px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .brand-gallery-overlay {
        opacity: 0.3; /* Make it slightly visible on touch */
    }
    
    .brand-gallery-popup:active .brand-gallery-overlay {
        opacity: 1;
    }
    
    /* Increase touch targets */
    .thm-btn,
    .site-footer-three__newsletter-btn,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   GÖRSEL YÜKLENİRKEN PLACEHOLDER
   ============================================ */

.about-three__img,
.team-three__img,
.gallery-three__img,
.blog-three__img,
.faq-three__img,
.why-choose-one__img {
    background-color: #f8f9fa;
    position: relative;
}

/* Görsel yüklenirken loading efekti */
.about-three__img::before,
.team-three__img::before,
.gallery-three__img::before,
.blog-three__img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.about-three__img img:not([src=""]),
.team-three__img img:not([src=""]),
.gallery-three__img img:not([src=""]),
.blog-three__img img:not([src=""]) {
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   KAYMA SORUNLARI İÇİN GÜVENLİK
   ============================================ */

/* Section overlap düzeltmeleri */
section {
    position: relative;
    clear: both;
}

.contact-two {
    position: relative;
    z-index: 2;
    clear: both;
}

.why-choose-one,
.faq-three,
.blog-three {
    position: relative;
    z-index: 1;
    clear: both;
}

/* Görsellerin parent'tan taşmasını engelle */
.container img,
.row img {
    max-width: 100%;
}

/* Flex container'lardaki görseller */
.d-flex img,
.flex img {
    flex-shrink: 0;
}

/* Grid'deki görseller */
.grid img {
    width: 100%;
    height: 100%;
}

/* ============================================
   PERFORMANS OPTİMİZASYONU
   ============================================ */

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading için */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/*--------------------------------------------------------------
# End
--------------------------------------------------------------*/
