/* ============================================
   ESKİ TARAYICI VE DÜŞÜK ÇÖZÜNÜRLÜK FİX'LERİ
   ============================================ */

/* Yatay kaydırma önleme */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

* {
    max-width: 100%;
}

/* Container overflow kontrolü */
.container {
    overflow-x: hidden;
}

/* Section overflow kontrolü */
section {
    overflow-x: hidden;
    position: relative;
}

/* Grid sistemi fallback - Eski tarayıcılar için */
@supports not (display: grid) {
    .services-grid,
    .gallery-grid,
    .stats-grid,
    .testimonials-grid {
        display: flex !important;
        flex-wrap: wrap;
        margin: -10px;
    }
    
    .service-card,
    .gallery-item,
    .stat-item,
    .testimonial-card {
        flex: 0 0 calc(33.333% - 20px);
        margin: 10px;
    }
    
    @media (max-width: 992px) {
        .service-card,
        .gallery-item,
        .testimonial-card {
            flex: 0 0 calc(50% - 20px);
        }
    }
    
    @media (max-width: 768px) {
        .service-card,
        .gallery-item,
        .stat-item,
        .testimonial-card {
            flex: 0 0 calc(100% - 20px);
        }
    }
}

/* IE11 için özel düzenlemeler */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* Flexbox fix'leri */
    .hero-content {
        max-width: 90%;
    }
    
    .services-grid {
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }
    
    .service-card {
        -ms-flex: 0 0 30%;
        flex: 0 0 30%;
    }
    
    /* Grid yerine flex kullan */
    .gallery-grid {
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }
    
    .gallery-item {
        -ms-flex: 0 0 30%;
        flex: 0 0 30%;
    }
}

/* 1366px çözünürlük için özel ayarlar */
@media (max-width: 1366px) and (min-width: 1025px) {
    body {
        font-size: 15px;
    }
    
    .hero-brand {
        font-size: 3.2rem !important;
        letter-spacing: 8px !important;
    }
    
    .hero-tagline {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    .service-card {
        padding: 35px 25px !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    .gallery-item {
        height: 350px !important;
    }
    
    .work-image {
        height: 500px !important;
    }
}

/* 1024px çözünürlük için */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px !important;
    }
    
    .hero-brand {
        font-size: 2.8rem !important;
        letter-spacing: 6px !important;
    }
    
    .hero-tagline {
        font-size: 1.8rem !important;
    }
    
    .section-title {
        font-size: 2.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .service-card {
        padding: 30px 20px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .gallery-item {
        height: 300px !important;
    }
    
    .work-image {
        height: 450px !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Çok eski monitörler - 800x600 */
@media (max-width: 800px) {
    body {
        font-size: 13px;
    }
    
    .hero-brand {
        font-size: 2rem !important;
        letter-spacing: 4px !important;
    }
    
    .hero-tagline {
        font-size: 1.3rem !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
}

/* Görseller için güvenlik */
.hero-background,
.work-image img,
.gallery-image img,
.about-image {
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

/* Nav bar taşma önleme */
.navbar .container {
    max-width: 100%;
}

.nav-menu {
    flex-wrap: wrap;
}

/* WhatsApp button pozisyon ayarı */
.whatsapp-float {
    right: 15px !important;
    bottom: 15px !important;
}

/* Footer overflow fix */
.footer-content {
    flex-wrap: wrap;
}

/* Form genişliği */
.contact-form-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

.form-group input,
.form-group textarea {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Horizontal scroll kesinlikle olmasın */
body {
    position: relative;
    width: 100%;
}

/* Swiper slider fix */
.works-slider {
    max-width: 100%;
    overflow: hidden;
}

.swiper-slide {
    max-width: 100%;
}

/* Çok geniş elementleri zorla sığdır */
h1, h2, h3, h4, h5, h6, p, div, section {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Minimum genişlik kontrolü */
@media (max-width: 320px) {
    * {
        font-size: 12px !important;
    }
    
    .hero-brand {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
    }
    
    .btn-luxury,
    .btn-hero {
        padding: 12px 20px !important;
        font-size: 0.8rem !important;
    }
}
