/* Genel Stil Sıfırlamaları ve Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Hafif kirli beyaz zemin */
    position: relative; /* WhatsApp butonu için konumlandırma bağlamı */
    min-height: 100vh; /* Minimum tam ekran yüksekliği */
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* --- LOADING EKRANI STİLLERİ BAŞLANGICI --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Beyaz bir arka plan */
    z-index: 9999; /* Diğer tüm içeriklerin üzerinde */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out; /* Pürüzsüz gizlenme efekti */
    opacity: 1;
    visibility: visible;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Gizlendikten sonra tıklamaları engelle */
}

.spinner {
    border: 8px solid #f3f3f3; /* Açık gri */
    border-top: 8px solid #a08e6f; /* Ana renk */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* --- LOADING EKRANI STİLLERİ SONU --- */


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

h1 {
    font-size: 3.5em; /* Büyük ve dikkat çekici */
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #a08e6f; /* Vurgu rengi */
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Buton Stilleri */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #a08e6f; /* Vurgu rengi */
    color: #fff;
    border: 2px solid #a08e6f;
}
.btn-primary:hover {
    background-color: #8a7c5b;
    border-color: #8a7c5b;
}

.btn-secondary {
    background-color: transparent;
    color: #a08e6f; /* Vurgu rengi */
    border: 2px solid #a08e6f;
}
.btn-secondary:hover {
    background-color: #a08e6f;
    color: #fff;
}

/* Header Stilleri */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Logo yüksekliği */
    width: auto;
}

.main-nav ul {
    display: flex;
    position: relative; /* Alt menülerin konumlandırılması için */
}

.main-nav ul li {
    margin-left: 30px;
    position: relative; /* Alt menülerin konumlandırılması için */
}

.main-nav ul li a {
    font-weight: 500;
    color: #555;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    display: block; /* Tıklanabilir alanı genişletir */
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #a08e6f; /* Vurgu rengi */
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: #a08e6f;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Submenu (Alt Menü) Stilleri */
.main-nav .submenu {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    top: 100%; /* Ana menü öğesinin hemen altında başlar */
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Alt menü genişliği */
    z-index: 100;
    border-radius: 5px;
    padding: 10px 0;
    flex-direction: column; /* Alt menü öğelerini dikey sırala */
}

.main-nav ul li:hover > .submenu {
    display: flex; /* Ana menü öğesinin üzerine gelince alt menüyü göster */
}

.main-nav .submenu li {
    margin: 0; /* Alt menü öğeleri arasında boşluk bırakma */
}

.main-nav .submenu li a {
    padding: 10px 20px; /* Alt menü bağlantılarının dolgusu */
    color: #555;
    white-space: nowrap; /* Metnin tek satırda kalmasını sağlar */
}

.main-nav .submenu li a:hover {
    background-color: #f5f5f5; /* Alt menü öğesi üzerine gelince arka plan rengi */
    color: #a08e6f;
}

.main-nav .submenu li a::after {
    display: none; /* Alt menü öğelerinde alt çizgi olmasın */
}


/* Hamburger Menü İkonu */
.menu-toggle {
    display: none; /* Varsayılan olarak gizli */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Navigasyondan daha üstte olması için */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animasyonu */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background-color: #333; /* Resim yüklenene kadar veya yoksa gösterilecek renk */
    color: #fff;
    text-align: center;
    padding: 150px 20px; /* Masaüstü için varsayılan padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum yükseklik */
    position: relative;
    overflow: hidden; /* Taşmaları engelle */
    transition: background-image 1s ease-in-out; /* Geçiş efekti */
    background-size: cover; /* Resmi kapsayacak şekilde ayarla */
    background-position: center center; /* Resmi ortala */
}
/* Hero section üzerindeki karartma katmanı */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı şeffaf siyah katman */
    z-index: 1;
}

/* Hero Content: Yazıların bulunduğu kutu */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0; /* İç boşluklar sıfırlandı */
    border-radius: 0; /* Köşeler sıfırlandı */
    backdrop-filter: none; /* Bulanıklık kaldırıldı */
    border: none; /* Kenarlık kaldırıldı */
}

.hero-content h1 {
    font-size: 4.5em; /* Masaüstü için varsayılan font boyutu */
    margin-bottom: 25px;
    color: #fff; /* Metin rengi beyaz yapıldı */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Metin gölgesi */
}

.hero-content p {
    font-size: 1.4em; /* Masaüstü için varsayılan font boyutu */
    margin-bottom: 40px;
    opacity: 0.9;
    color: #fff; /* Metin rengi beyaz yapıldı */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Metin gölgesi */
}

/* Hizmetler Bölümü */
.services-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Beyaz yerine hafif gri yaptık ki kartlar öne çıksın */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Her hizmet kartı için genel stil */
.service-card {
    background-color: #fff; /* Kartın kendi arka planı */
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Görselin taşmasını engeller */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Her hizmet kartı için görsel alanı */
.service-card .service-image {
    width: 100%;
    height: 200px; /* Görselin yüksekliği */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 20px; /* Görsel ile metin arasına boşluk */
}

/* Her hizmet için özel görsel yolları */
.service-card.duvar-kagidi .service-image { background-image: url('services_images/duvar-kagidi.webp'); }
.service-card.asma-tavan .service-image { background-image: url('services_images/asma-tavan.webp'); }
.service-card.rolyefler .service-image { background-image: url('services_images/rolyefler.webp'); }
.service-card.boya-isleri .service-image { background-image: url('services_images/boya-isleri.webp'); }
.service-card.alci-isleri .service-image { background-image: url('services_images/alci-isleri.webp'); }
.service-card.tamirat-tadilat .service-image { background-image: url('services_images/tamirat-tadilat.webp'); }


.service-card h3 {
    color: #a08e6f;
    margin-bottom: 10px;
    padding: 0 20px; /* Metin etrafında boşluk */
}

.service-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 25px;
    padding: 0 20px; /* Metin etrafında boşluk */
}

.service-card .btn-secondary {
    margin-bottom: 20px; /* Butonun altında boşluk */
}


/* Hakkımızda Bölümü */
.about-section {
    padding: 80px 0;
    background-color: #fff; /* Tekrar beyaz zemin */
    text-align: center;
}
.about-section h2::after {
    background-color: #333; /* Hakkımızda için farklı bir alt çizgi rengi */
}
.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

/* İletişim Bölümü */
.contact-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Hafif gri zemin */
    text-align: center;
}

.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geçiş için */
    gap: 40px; /* Form ile bilgi kartları arasındaki boşluk */
    justify-content: center;
    align-items: flex-start; /* Üstten hizala */
}

.contact-form {
    flex: 1; /* Esnek boyutlandırma */
    min-width: 300px; /* Minimum genişlik */
    max-width: 700px; /* Maksimum genişlik */
    margin: 0; /* Otomatik ortalamayı kaldır */
    padding: 30px;
    background-color: #fff; /* Beyaz form arka planı */
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left; /* Form elemanlarını sola hizala */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a08e6f;
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.contact-info-cards {
    flex: 1; /* Esnek boyutlandırma */
    min-width: 300px; /* Minimum genişlik */
    max-width: 400px; /* Maksimum genişlik */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Kartlar arası boşluk */
}

.info-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px; /* İkon ve metin arası boşluk */
    text-align: left;
    transition: transform 0.2s ease;
}
.info-card:hover {
    transform: translateY(-5px);
}

.info-card .icon {
    flex-shrink: 0; /* Küçülmesini engelle */
    width: 30px;
    height: 30px;
    color: #a08e6f; /* Vurgu rengi ikonlar için */
}

.info-card h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}
.info-card p, .info-card a {
    margin: 0;
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
}
.info-card a:hover {
    color: #a08e6f;
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #bbb;
    padding: 50px 0; /* İç boşluğu artır */
    font-size: 0.9em;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-around; /* Sütunları eşit aralıklarla dağıt */
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geçiş için */
    gap: 30px; /* Sütunlar arası boşluk */
    padding-bottom: 30px; /* Alt kısımdan boşluk */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Alt çizgi */
    margin-bottom: 20px; /* Alt çizgi ile alt kısım arasına boşluk */
}

.main-footer .footer-column {
    flex: 1; /* Esnek boyutlandırma */
    min-width: 180px; /* Minimum sütun genişliği */
    margin-bottom: 20px; /* Mobil görünümde sütunlar arası boşluk */
    text-align: left; /* Varsayılan olarak sola hizala */
}

/* Her sütun başlığı */
.main-footer .footer-column h4 {
    color: #fff; /* Başlık rengi */
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Footer logo ve motto */
.main-footer .footer-brand {
    display: flex; /* İçerikleri Flexbox ile yönet */
    flex-direction: column; /* Dikey sırala */
    align-items: flex-start; /* Sola hizala */
}

.main-footer .footer-brand .footer-logo img {
    height: 60px; /* Footer logosunun yüksekliği */
    width: auto;
    margin-bottom: 15px;
}

.main-footer .footer-brand .footer-motto {
    color: #aaa;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
    /* Metin hizalamasını kontrol et */
    text-align: left; /* Metni sola hizala */
}

/* Footer sosyal medya ikonları */
.main-footer .footer-social-icons {
    display: flex; /* İkonları yatayda sırala */
    gap: 15px; /* İkonlar arası boşluk */
    justify-content: flex-start; /* Sola hizala */
}

.main-footer .footer-social-icons a {
    color: #bbb;
    font-size: 1.8em; /* İkon boyutunu artır */
    transition: color 0.3s ease;
}

.main-footer .footer-social-icons a:hover {
    color: #a08e6f;
}

/* Footer navigasyon linkleri */
.main-footer .footer-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-nav-links ul li {
    margin-bottom: 10px;
}

.main-footer .footer-nav-links ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.main-footer .footer-nav-links ul li a:hover {
    color: #a08e6f;
}

/* Footer iş ortakları ve iletişim bilgileri */
.main-footer .footer-partners ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-partners ul li {
    margin-bottom: 10px;
}

.main-footer .footer-partners ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.main-footer .footer-partners ul li a:hover {
    color: #a08e6f;
}

.main-footer .footer-contact-info .footer-phone,
.main-footer .footer-contact-info .footer-address {
    display: flex;
    align-items: flex-start; /* Telefon/adres ikonu ve metni üstten hizala */
    margin-bottom: 10px;
    color: #bbb;
}

.main-footer .footer-contact-info .footer-phone i,
.main-footer .footer-contact-info .footer-address i {
    color: #a08e6f; /* İkon rengi */
    margin-right: 10px;
    font-size: 1.1em;
    flex-shrink: 0; /* İkonun küçülmesini engelle */
}

.main-footer .footer-contact-info .footer-phone a {
    color: #bbb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-footer .footer-contact-info .footer-phone a:hover {
    color: #a08e6f;
}

.main-footer .footer-contact-info .footer-address p {
    margin: 0; /* P etiketinin varsayılan marginini kaldır */
}

/* Footer alt kısmı */
.main-footer .footer-bottom {
    text-align: center;
    padding-top: 20px; /* Üstteki çizgiden boşluk */
}

.main-footer .footer-bottom p {
    color: #888;
    margin-bottom: 0;
}

/* WhatsApp Butonu Stilleri */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, bottom 0.2s ease;
    background-color: transparent; /* ICON ARKAPLANI İÇİN */
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
}


/* Responsive Tasarım */
@media (max-width: 992px) { /* Tablet boyutları ve altı */
    .main-nav ul li {
        margin-left: 20px; /* Menü öğeleri arasındaki boşluğu azalt */
    }
    .hero-content h1 {
        font-size: 3.2em; /* Tablette biraz küçült */
    }
    .hero-content p {
        font-size: 1.2em; /* Tablette biraz küçült */
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .main-nav {
        /* Mobil menü kapalıyken varsayılan durum */
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Header yüksekliğine göre ayarlanmalı */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
        z-index: 999; /* Mobil menünün diğer her şeyin üzerinde olduğundan emin ol */
    }
    .main-nav.open {
        display: flex; /* JavaScript ile açıldığında görünür */
    }
    .main-nav ul {
        flex-direction: column;
        margin-top: 0;
        align-items: center; /* Mobil menü öğelerini ortala */
    }
    .main-nav ul li {
        margin: 10px 0; /* Mobil menüde dikey boşluk */
        text-align: center;
        width: 100%; /* Mobil menüde tam genişlik */
    }

    /* Mobil Menü Alt Menü Stilleri */
    .main-nav .submenu {
        position: static; /* Mobil menüde statik konum */
        display: none; /* Varsayılan olarak gizli */
        width: 100%; /* Tam genişlik */
        box-shadow: none; /* Gölgelendirme kaldırıldı */
        border-radius: 0;
        padding: 0;
        background-color: #f9f9f9; /* Hafif bir arka plan rengi */
        border-top: 1px solid #eee; /* Üst çizgi */
        margin-top: 10px; /* Üst öğeden biraz boşluk */
    }

    /* Mobil menüde, ana öğeye tıklayınca alt menüyü göster */
    .main-nav ul li.active > .submenu { /* 'has-submenu' yerine 'active' sınıfını kullanıyoruz */
        display: flex;
    }

    .main-nav .submenu li a {
        padding: 10px 30px; /* İçeriği biraz daha içeri kaydır */
        text-align: center; /* Metni ortala */
        border-bottom: 1px dashed #eee; /* Ayırıcı çizgi */
    }
    .main-nav .submenu li:last-child a {
        border-bottom: none; /* Son öğede çizgi olmasın */
    }


    .menu-toggle {
        display: flex;
    }

    /* Hero Section Mobil Düzeltmeleri */
    .hero-section {
        padding: 100px 20px; /* Mobilde dikey boşluğu ayarla */
        min-height: 450px; /* Mobilde minimum yüksekliği ayarla */
    }
    .hero-content h1 {
        font-size: 2.5em; /* Mobil için daha uygun boyut */
        margin-bottom: 20px;
    }
    .hero-content p {
        font-size: 1.1em; /* Mobil için daha uygun boyut */
        margin-bottom: 30px;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }


    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.5em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
    /* Küçük ekranlarda WhatsApp butonu */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .contact-content-wrapper {
        flex-direction: column; /* Küçük ekranlarda dikey düzen */
        align-items: center; /* Ortala */
    }

    .contact-form,
    .contact-info-cards {
        width: 100%; /* Tam genişlik */
        max-width: 500px; /* Biraz daha daraltılabilir */
        margin-bottom: 20px; /* Alt boşluk */
    }

    /* Footer Responsive Düzenlemeleri */
    .main-footer .footer-content {
        flex-direction: column; /* Dikey sıralama */
        align-items: center; /* Merkezle */
        text-align: center; /* Metni ortala */
    }

    .main-footer .footer-column {
        width: 100%; /* Tam genişlik */
        max-width: 300px; /* Çok geniş olmamasını sağla */
        margin-bottom: 30px; /* Bölümler arası boşluk */
    }

    .main-footer .footer-column h4 {
        text-align: center;
    }

    .main-footer .footer-social-icons {
        justify-content: center; /* Mobil'de ikonları ortala */
    }

    .main-footer .footer-contact-info .footer-phone,
    .main-footer .footer-contact-info .footer-address {
        justify-content: center; /* Mobil'de iletişim ikonlarını ortala */
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 15px; /* Daha küçük mobil ekranlarda boşluğu azalt */
        min-height: 350px; /* Daha da azaltılmış minimum yükseklik */
    }
    .hero-content h1 {
        font-size: 2em; /* Daha da küçült */
    }
    .hero-content p {
        font-size: 0.95em; /* Daha da küçült */
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}