html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Yatay kaymayı kesin olarak engeller */
    -webkit-text-size-adjust: 100%; /* iPhone'larda yazıların kendi kendine büyümesini engeller */
}

.container {
    width: 95%; /* Mobilde kenarlardan çok az boşluk bırakır */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Tüm resimlerin ve videoların dışarı taşmasını engeller */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* 1. TEMEL AYARLAR VE RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. TOP BAR (ÜST BİLGİ ŞERİDİ) */
.top-bar {
    background: #d32f2f;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-phones a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
}

/* 3. NAVBAR VE LOGO */
nav {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #333;
}

.logo img {
    height: 55px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-text b {
    color: #d32f2f;
    display: block;
}

/* 4. NAVIGASYON LİNKLERİ */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #d32f2f;
}

/* 5. MOBİL MENÜ TETİKLEYİCİ */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: 0.3s;
    background: #333;
}

/* 6. HERO SECTION (ADS KARŞILAMA) */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/2.jpeg');
    background-size: cover !important;
    background-position: center !important;
    padding: 100px 0;
    text-align: center;
    color: white;
    min-height: 400px; /* Görünürlüğü garanti altına almak için */
}

.hero-bg h1 {
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.urgent-box {
    background: rgba(211, 47, 47, 0.95);
    display: inline-block;
    padding: 30px;
    border-radius: 15px;
    margin-top: 25px;
    border: 3px dashed #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-main {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
    margin: 10px;
}

/* 7. HİZMET KARTLARI (GRID) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-bottom: 5px solid #d32f2f;
    text-align: center;
}

.service-card i {
    font-size: 45px;
    color: #d32f2f;
    margin-bottom: 20px;
}

/* 8. FOOTER */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-box h3 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #bbb;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding: 25px 0 100px; /* Mobilde butonların arkasında kalmaması için alt boşluğu artırdık */
    font-size: 14px;
    color: #888;
}

.footer-bottom b {
    color: #fff;
}

.footer-bottom a:hover {
    color: #d32f2f !important;
}

/* 9. MOBİL ALT SABİT BUTONLAR */
.mobile-sticky-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
}

.m-btn {
    flex: 1;
    text-align: center;
    padding: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.m-call { background: #d32f2f; }
.m-whatsapp { background: #25d366; }

/* Masaüstü Menü (Varsayılan) */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.menu-toggle {
    display: none; /* Masaüstünde gizli */
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}

/* --- MOBİL GÖRÜNÜM (Kritik Alan) --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Mobilde hamburgeri göster */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        left: -100%; /* Menüyü ekranın dışına at */
        top: 0;
        flex-direction: column;
        background-color: #fff;
        width: 80%; /* Ekranın %80'ini kaplasın */
        height: 100vh;
        text-align: left;
        transition: 0.3s;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        padding-top: 100px; /* Logodan aşağıda başlasın */
        z-index: 1000;
    }

    .nav-links.active {
        left: 0; /* Menüyü ekrana getir */
    }

    .nav-links li {
        width: 100%;
        padding: 15px 30px;
        border-bottom: 1px solid #f4f4f4;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        width: 100%;
    }

    /* Hamburger Animasyonu (Aktifken X işareti olur) */
    .menu-toggle.is-active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

/* MOBİL ESTETİK VE SIĞDIRMA AYARLARI */
@media (max-width: 768px) {
    /* Banner (Hero) Alanı */
    .hero-bg {
        padding: 40px 0 !important; /* Dikey boşluğu daralt */
        min-height: auto !important;
    }

    .hero-bg h1 {
        font-size: 22px !important; /* Başlık makul boyuta insa */
        line-height: 1.3;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .hero-bg p {
        font-size: 14px !important;
        padding: 0 15px;
    }

    /* Kırmızı Çizgili Kutu (Urgent Box) */
    .urgent-box {
        width: 92% !important;
        padding: 15px !important;
        margin-top: 10px !important;
        border-width: 2px !important; /* Kesik çizgileri incelt */
    }

    .urgent-box h2 {
        font-size: 19px !important; /* "HEMEN YANINIZDAYIZ" yazısı */
        letter-spacing: 0;
    }

    .urgent-box p {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    /* Butonları Yan Yana Sığdırma Çabası */
    .hero-btns {
        display: flex;
        flex-direction: row; /* Yan yana durmaya zorla */
        justify-content: center;
        gap: 8px;
        padding: 0 5px;
    }

    .btn-main {
        flex: 1; /* Butonlar eşit genişlikte olsun */
        padding: 12px 5px !important;
        font-size: 14px !important; /* Yazı boyutu taşmayı önler */
        margin: 0 !important;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    /* İkonları biraz küçültelim */
    .btn-main i {
        font-size: 14px;
    }

    /* Logoyu Mobilde Küçültme */
    .logo img {
        height: 40px;
    }
    .logo-text {
        font-size: 16px;
    }
}

/* Küçük ekranlı telefonlar (iPhone SE vb.) için ekstra önlem */
@media (max-width: 380px) {
    .hero-btns {
        flex-direction: column; /* Çok dar ekranda mecbur alt alta */
    }
    .hero-bg h1 {
        font-size: 19px !important;
    }
}

/* Hizmet Bölgeleri Tasarımı */
.districts-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    color: #d32f2f;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 28px;
    color: #222;
    margin-top: 5px;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: #ffcc00;
    margin: 15px auto;
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.district-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}

.district-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #d32f2f;
}

.district-card i {
    font-size: 30px;
    color: #d32f2f;
    margin-bottom: 15px;
}

.district-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.district-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
}

.dist-call {
    display: inline-block;
    padding: 8px 20px;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.dist-call:hover {
    background: #d32f2f;
    color: #fff;
}

/* MOBİL AYAR */
@media (max-width: 768px) {
    .districts-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    .section-title h2 {
        font-size: 22px;
    }
}

/* Neden Biz & Özellikler */
.features-section {
    padding: 40px 0;
    background: #f4f4f4;
    border-top: 1px solid #eee;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.feature-item i {
    font-size: 35px;
    color: #d32f2f;
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: #222;
}

.feature-item p {
    font-size: 13px;
    color: #777;
}

/* Yorumlar */
.testimonials {
    padding: 60px 0;
    background: #fff;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testi-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    border-left: 5px solid #ffcc00;
}

.stars {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 14px;
}

.testi-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testi-card h5 {
    color: #222;
    font-weight: bold;
}

/* Mobil İyileştirme */
@media (max-width: 768px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}

/* Anasayfa Hizmet Vitrini Stilleri */
.home-services {
    padding: 80px 0;
    background: #fff;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #777;
    font-size: 16px;
}

.services-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.s-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Öne Çıkan Kart (Akü Takviye) */
.s-card.featured {
    border-top: 5px solid #d32f2f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.s-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #d32f2f;
}

.s-icon {
    width: 70px;
    height: 70px;
    background: #fdf2f2;
    color: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.s-card:hover .s-icon {
    background: #d32f2f;
    color: #fff;
}

.s-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.s-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.s-link {
    text-decoration: none;
    color: #d32f2f;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s-link i {
    margin-left: 5px;
    transition: 0.3s;
}

.s-card:hover .s-link i {
    transform: translateX(5px);
}

/* Mobilde Hizmet Kartları */
@media (max-width: 768px) {
    .home-services {
        padding: 50px 0;
    }
    .services-flex {
        grid-template-columns: 1fr; /* Mobilde tekli şık kartlar */
    }
    .s-card {
        padding: 30px 20px;
    }
}

/* --- MASAÜSTÜ DROPDOWN STİLLERİ --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn i {
    font-size: 12px;
    margin-left: 5px;
    transition: 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-top: 3px solid #d32f2f;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown-content li {
    padding: 0 !important;
}

.dropdown-content li a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content li a:hover {
    background-color: #fdf2f2;
    color: #d32f2f;
}

/* Hover Efekti (Sadece Masaüstünde) */
@media (min-width: 993px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
    .dropdown:hover .dropbtn i {
        transform: rotate(180deg);
    }
}

/* --- MOBİL AÇILIR MENÜ (HAMBURGER İÇİ) --- */
@media (max-width: 992px) {
    .dropdown-content {
        position: static;
        display: none; /* Varsayılan kapalı */
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        border: none;
    }

    /* Mobilde tıklandığında açılması için yardımcı class */
    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
    }

    .nav-links li {
        text-align: left;
    }
}

/* Galeri Hover Efekti (Masaüstü) */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* MOBİL GALERİ AYARLARI */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Mobilde 2 sütun */
        grid-template-rows: auto !important; /* Yüksekliği otomatik yap */
        gap: 10px !important;
    }
    
    .gallery-item.main {
        grid-column: span 2 !important; /* Büyük görsel tam genişlik */
        grid-row: span 1 !important;
        height: 280px !important; /* Mobilde ana görselin yüksekliği */
    }
    
    .gallery-item {
        height: 160px !important; /* Diğer görsellerin yüksekliği */
    }
    
    .overlay {
        padding: 15px !important;
        font-size: 15px !important;
    }
}

/* Mobilde Dropdown'un JS ile açılması için ekle */
@media (max-width: 992px) {
    .dropdown.active .dropdown-content {
        display: block !important;
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 15px;
    }
}