/* Overflow ve Yatay Scroll Düzeltmeleri */

/* Body ve HTML overflow kontrolü */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Tüm container'ların taşmasını engelle */
.container-fluid {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    overflow-x: hidden;
    max-width: 100%;
}

/* Row'ların taşmasını engelle */
.row {
    margin-left: -15px;
    margin-right: -15px;
    max-width: 100%;
}

/* Tablet ekranlarda özel düzeltmeler */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Row'ların margin'lerini sıfırla */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Column padding'lerini düzelt */
    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* İletişim bölümü özel düzeltmeler */
@media (max-width: 991px) {
    #iletisim {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    #iletisim .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #iletisim .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #iletisim .col-md-7,
    #iletisim .col-md-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* About bölümü özel düzeltmeler */
@media (max-width: 991px) {
    #about {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    #about .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #about .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #about .col-lg-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #about .about-image {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Carousel düzeltmeleri */
@media (max-width: 991px) {
    #header-carousel {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    #header-carousel .carousel-inner {
        overflow-x: hidden !important;
    }
    
    #header-carousel .carousel-item {
        overflow-x: hidden !important;
    }
}

/* Navbar düzeltmeleri */
@media (max-width: 991px) {
    .navbar {
        overflow-x: hidden !important;
    }
    
    .navbar-collapse {
        overflow-x: hidden !important;
    }
}

/* Tüm section'ların taşmasını engelle */
section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Main element düzeltmesi */
main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}
