/* =========================================
   1. GENEL AYARLAR (RESET)
   ========================================= */
:root {
    --primary: #00a8e8;     /* Temizlik Mavisi */
    --secondary: #007ea7;   /* Koyu Mavi */
    --accent: #8dc63f;      /* Yeşil */
    --pool: #00B4D8;        /* Havuz */
    --whatsapp: #25D366;
    --instagram: #E1306C;
    --dark: #333;
    --light: #f4f6f8;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden; /* Yatay kaymayı engeller */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

/* =========================================
   2. HEADER (ÜST MENÜ)
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999; /* En üstte durması için */
    height: 90px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* Logo */
.main-logo {
    max-height: 70px;
    width: auto;
}

/* NAVIGASYON (MASAÜSTÜ) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-item {
    font-weight: 600;
    font-size: 1rem;
    color: #444;
}
.nav-item:hover { color: var(--primary); }

/* Masaüstü İkonları */
.desktop-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.icon-link { font-size: 1.2rem; color: var(--dark); display: flex; align-items: center; gap: 5px; }
.icon-link:hover { color: var(--primary); }
.icon-link.instagram:hover { color: var(--instagram); }

/* Hamburger Menü (Masaüstünde Gizli) */
.menu-toggle { display: none; }
.mobile-buttons { display: none; }

/* =========================================
   3. HERO (BANNER)
   ========================================= */
#home {
    position: relative;
    /* Resim yolunun doğru olduğundan emin olun */
    background: url('../img/banner.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 90px;
}

/* Banner üzerindeki karartma katmanı */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-hero {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
}
.btn-hero.whatsapp { background: var(--whatsapp); }

/* =========================================
   4. HİZMET KARTLARI
   ========================================= */
#hizmetler { padding: 80px 0; background: var(--light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 10px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Kartları eşit boy yapar */
}

.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.special-blue .icon-box { color: var(--pool); }
.special-green .icon-box { color: var(--accent); }

.wa-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-top: 20px;
    border: 2px solid var(--whatsapp);
    color: var(--whatsapp);
    border-radius: 8px;
    font-weight: 700;
}
.wa-action-btn:hover { background: var(--whatsapp); color: white; }

/* =========================================
   5. DİĞER BÖLÜMLER
   ========================================= */
#hakkimizda { padding: 80px 0; }
.about-wrapper { display: flex; align-items: center; gap: 40px; }
.about-content, .about-image { flex: 1; }
.about-image img { border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.features-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--accent); }

#iletisim { background: var(--dark); color: white; padding: 60px 0; }
.contact-grid { display: flex; gap: 40px; }
.contact-details { flex: 1; }
.map-box { flex: 1; height: 300px; border-radius: 10px; overflow: hidden; }
.c-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.c-item i { color: var(--primary); font-size: 1.5rem; }

footer { background: #111; color: #888; text-align: center; padding: 20px 0; }

.float-wa {
    position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
    background: var(--whatsapp); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9999;
}

/* =========================================
   6. MOBİL UYUMLULUK (KRİTİK BÖLÜM)
   ========================================= */
@media screen and (max-width: 992px) {
    
    /* Header Düzeni */
    header { height: 80px; }
    .navbar { padding: 0 15px; }
    .main-logo { max-height: 55px; }

    /* Hamburger Menü Butonu */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 10001; /* Menünün de üstünde olmalı */
    }
    .bar { width: 100%; height: 3px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

    /* Animasyon */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

    /* Menü Yapısı (Mobilde Yandan/Üstten Gelme) */
    .nav-menu {
        position: fixed; /* Fixed yaparak ekranı kaplamasını garantiledik */
        top: 80px; /* Header altından başla */
        left: -100%; /* Ekranın solunda gizli */
        width: 100%;
        height: calc(100vh - 80px); /* Kalan tüm yükseklik */
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: 0.4s ease; /* Kayma efekti */
        overflow-y: auto; /* Menü uzunsa kaydırma çubuğu çıksın */
    }

    .nav-menu.active {
        left: 0; /* Ekrana getir */
    }

    .nav-links { flex-direction: column; gap: 25px; text-align: center; }
    .nav-item { font-size: 1.3rem; display: block; }
    
    /* Masaüstü ikonlarını gizle */
    .desktop-icons { display: none; }

    /* Mobil İçi Butonları Aç */
    .mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        width: 80%;
    }
    
    .mobile-btn {
        display: block; width: 100%; text-align: center; padding: 15px;
        border-radius: 8px; color: white; font-weight: bold;
    }
    .insta-btn { background: #E1306C; }
    .call-btn { background: var(--primary); }

    /* Banner ve Yazılar */
    .hero-content h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-hero { width: 100%; justify-content: center; }

    /* Grid Düzeltmeleri */
    .about-wrapper, .contact-grid { flex-direction: column; }
    .map-box { width: 100%; }
}
/* --- MOBİL BANNER DÜZELTMESİ (MEVCUT RESİM) --- */
@media screen and (max-width: 768px) {
    #home {
        /* Resmi sabitleme (fixed) özelliğini kapatıyoruz, bu mobilde zoom sorununu çözer */
        background-attachment: scroll !important;
        
        /* Resmin tam ortasını değil, biraz daha odak noktasını almayı dener */
        /* Eğer resminiz sağ