@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg-light: #f4f9ff;
    --blue-primary: #2a75f3;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sitenin İçeriğini Ortalayan Ana Kutu */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- MENÜ (HEADER) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding-left: 20px;
}

.logo span {
    color: var(--blue-primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    padding-right: 20px;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--blue-primary);
}

/* Mavi Buton Stili */
.btn-primary {
    background-color: var(--blue-primary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(42, 117, 243, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 117, 243, 0.5);
}

/* --- ANA SAYFA --- */
.hero { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 700px; }
.blue-section { background-color: var(--blue-primary); padding: 80px 0; color: var(--white); border-radius: 40px 40px 0 0; }
.blue-section h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 50px; text-align: center; }

/* --- HİZMETLERİMİZ SAYFASI ÖZEL --- */
.services-header {
    text-align: center;
    padding: 60px 0 40px;
}

.subtitle {
    color: var(--blue-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.services-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

/* Kutuların Yan Yana Dizilmesi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Her Bir Hizmet Kutusu */
.service-box {
    background-color: var(--white);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(42, 117, 243, 0.15);
    color: var(--blue-primary);
}

.service-icon {
    background-color: var(--bg-light);
    color: var(--blue-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* İletişim Bannerı */
.cta-banner {
    background-color: var(--blue-primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-radius: 30px;
    margin: 40px 0 80px;
}

.cta-banner h2 { font-size: 2rem; margin-bottom: 15px; color: var(--white); }
.cta-banner p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.cta-banner .btn-primary { background-color: var(--white); color: var(--blue-primary) !important; }
.cta-banner .btn-primary:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #1e293b;
    color: #fafafa;
    font-size: 0.9rem;
    margin-top: auto;
}
/* --- HAKKIMIZDA SAYFASI ÖZEL KART TASARIMI --- */
/* --- HAKKIMIZDA SAYFASI ÖZEL KART TASARIMI --- */
.about-card {
    background-color: var(--blue-primary); /* Arka planı mavi tutuyoruz */
    color: var(--white); /* Ana metin rengini beyaza çevirdik */
    padding: 50px 8%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(42, 117, 243, 0.3); /* Gölgeyi maviye uyumlu, şık bir tona getirdik */
    margin: 40px auto 80px;
    max-width: 1000px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-card p {
    margin-bottom: 20px;
    opacity: 0.9; /* Göz yormaması için metinlere çok hafif şeffaflık verdik */
}

.about-card strong {
    color: #ffffff; /* Kalın (vurgulu) yazılar tam parlak beyaz olacak */
    font-weight: 600;
}







/* --- MAVİ ALAN VE GALERİ (33 Resim İçin Optimize Edildi) --- */

.blue-section {
    background-color: var(--blue-primary);
    padding: 80px 5%; /* Yanlardan %5 boşluk bırakarak ekran köşelerine yapışmasını tamamen engeller */
    color: var(--white);
    border-radius: 40px 40px 0 0;
}

.blue-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center; /* Başlığı tam ortaya alır */
}

.grid-container {
    display: grid;
    /* Kutuların boyutunu belirler. Ekrana göre yan yana 3'lü, 4'lü veya mobilde alt alta otomatik dizilir */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 50px; /* Resimler arasındaki boşluğu iyice açtık, ferahladı */
    max-width: 1200px; /* Ekranda sonsuza kadar uzamasını engeller, kutu içine alır */
    margin: 0 auto; /* Tüm galeriyi sayfanın tam ortasına hizalar */
}

.grid-item {
    transition: transform 0.3s ease;
    text-align: center; /* Resmin altındaki "Kamelya Tasarımı" gibi yazıları şık bir şekilde ortalar */
}

.grid-item img {
    width: 100%;
    height: 380px; /* 33 resim ekleneceği için göz yormaması adına yüksekliği ideal orana getirdik */
    object-fit: cover;
    border-radius: 20px; /* Resmin köşelerini yumuşatır */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Hafif gölge ile derinlik katar */
    display: block;
    margin-bottom: 20px; /* Resim ile yazı arasına nefes alma boşluğu ekler */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.grid-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Fareyle Üzerine Gelince (Hover) Oluşan Şık Efekt */
.grid-item:hover img {
    transform: translateY(-10px); /* Resmi hafifçe havaya kaldırır */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Gölgeyi büyütür */
}


/* --- İLETİŞİM SAYFASI ÖZEL STİLLERİ --- */
.contact-grid {
    display: grid;
    /* Bilgisayarda yan yana 3'lü durmaya zorlar, sığması için min genişliği 250px'e düşürdük */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    align-items: stretch; /* Kutuların hepsini en uzun olanla AYNI HİZAYA ve BOYA getirir */
}

/* Şık Bilgi Kartları */
.contact-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center; /* İçindeki yazıları kutunun tam ortasına dikey hizalar */
    align-items: center;
    height: 100%; /* Tüm kutuların boyunu eşitler */
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Tıklanabilir Büyük Telefon Numarası */
.phone-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-primary);
    text-decoration: none;
    display: block;
    margin: 15px 0 25px; 
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--text-dark);
}

/* Zorunlu olarak bilgisayarda tam 3 kolon yapması için ek kural */
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Harita İçin Özel Kutu */
.map-card {
    background-color: var(--white);
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
}

.map-card iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 15px; /* Haritanın köşelerini yumuşatır */
    display: block;
}

/* --- FOOTER VE WHATSAPP BUTONU DÜZENİ --- */
footer {
    background-color: #1e293b;
    color: #fff;
    padding: 20px 5%;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Yazıyı sola, butonu sağa yaslar */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Telefondan girildiğinde alt alta düzgün inmesini sağlar */
    gap: 15px;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Küçük ve Şık Footer WhatsApp Butonu */
.footer-wa-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366; /* Orijinal WhatsApp Yeşili */
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background-color: #20b858;
}

.footer-wa-btn svg {
    fill: currentColor;
}


/* --- ANA SAYFA YAZI ARKASI ŞEFFAF VİTRİN --- */
.hero { 
    position: relative;
    /* Resmi arka plana yayar ve üzerine siyah filtre atar */
    background: linear-gradient(rgba(0, 0, 0, 0.413), rgba(0, 0, 0, 0.75)), url('anasayfa.jpeg') no-repeat center center;
    background-size: cover; /* Resmi ekrana tam sığdırır */
    padding: 120px 20px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh; 
    
    /* İŞTE BURASI ÇOK ÖNEMLİ: Sağdan soldan sıfır boşluk bırakır */
    width: 100vw; 
    max-width: 100%;
    margin: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero .subtitle {
    color: #e2e8f0; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.hero h1 { 
    font-size: 4rem; 
    font-weight: 700; 
    color: #ffffff; 
    line-height: 1.2; 
    margin-bottom: 20px; 
}

.hero p { 
    font-size: 1.2rem; 
    color: #e2e8f0; 
    opacity: 0.9;
    line-height: 1.6; 
    max-width: 700px; 
}

/* ======================================================
   MOBİL UYUMLULUK (TELEFON EKRANLARI İÇİN ÖZEL AYARLAR)
========================================================= */

/* Telefonlarda ekranın sağa sola istenmeyen şekilde kaymasını (taşmayı) kesin olarak engeller */
body {
    overflow-x: hidden;
}

/* Ekran genişliği 768px ve altındaysa (Tablet ve Telefonlar) aşağıdaki kurallar geçerli olur */
@media (max-width: 768px) {
    
    /* 1. MENÜYÜ (HEADER) ORTALA VE KÜÇÜLT */
    header {
        flex-direction: column; /* Logoyu üste, menüyü alta alır */
        gap: 15px;
        padding: 15px 0;
        text-align: center;
    }
    
    .logo {
        padding-left: 0;
        font-size: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap; /* Menü linklerini sığmazsa alt alta atar */
        justify-content: center;
        gap: 12px;
        padding-right: 0;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 5px;
    }

    /* Mavi iletişim butonunu telefonda biraz daha kibar yapar */
    .btn-primary {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* 2. ANA SAYFA DEV VİTRİNİ (HERO) TELEFONA UYDUR */
    .hero {
        padding: 60px 20px;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2.2rem; /* 4rem olan dev yazıyı telefona sığacak boyuta indirdik */
    }

    .hero .subtitle {
        font-size: 1.1rem; /* Alt başlığı daralttık */
    }

    .hero p {
        font-size: 1rem;
    }

    /* 3. BAŞLIKLARI VE BOŞLUKLARI DARALT */
    .blue-section {
        padding: 50px 5%;
        border-radius: 30px 30px 0 0;
    }

    .blue-section h2, .services-header h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .services-header {
        padding: 40px 0 20px;
    }

    /* 4. RESİM GALERİSİ VE HİZMET KUTULARINI TELEFONA SIĞDIR */
    .grid-container, .services-grid {
        /* Kutuların minimum genişliğini 320px'ten 280px'e düşürdük, böylece her telefona sığar */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .grid-item img {
        height: 300px; /* Galerideki resimlerin telefonda çok uzun durmasını engeller */
    }

    /* 5. HAKKIMIZDA KARTI VE FOOTER ORTALAMASI */
    .about-card {
        padding: 30px 5%;
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column; /* Yazıyı ve WhatsApp butonunu alt alta dizer */
        text-align: center;
        gap: 20px;
    }
}