/* RESET & TEMEL */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.main-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.flex-nav { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 26px; font-weight: 700; color: #1a1a1a; text-decoration: none; letter-spacing: 1px; }
.logo span { color: #f39c12; }

.nav-menu ul { display: flex; list-style: none; }
.nav-menu ul li { margin-left: 30px; position: relative; }
.nav-menu ul li a { text-decoration: none; color: #333; font-weight: 500; transition: 0.3s; }
.nav-menu ul li a:hover { color: #f39c12; }

/* --- PROJELER AÇILIR MENÜ (DROPDOWN) KESİN ÇÖZÜM --- */

/* 1. Kapsayıcıyı hizala */
.has-submenu {
    position: relative;
}

/* 2. Menüyü başlangıçta gizle ve dikey (alt alta) ayarla */
.submenu {
    display: none !important; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0; /* İç boşluğu sıfırladık */
    list-style: none;
    border-top: 4px solid #f39c12;
    z-index: 9999;
}

/* 3. Sadece üzerine gelince dikey liste olarak göster */
.has-submenu:hover .submenu {
    display: block !important; /* Alt alta dizilimi garanti eder */
}

/* 4. Menü içindeki her satırı tam genişlik yap */
.submenu li {
    display: block;
    width: 100%;
    margin: 0 !important; /* Dış boşlukları sıfırladık */
}

/* 5. Linkleri blok haline getir (alt alta durmalarını sağlar) */
.submenu li a {
    padding: 15px 25px;
    display: block; /* Her linkin tüm satırı kaplamasını sağlar */
    color: #333 !important; /* Yazı rengini zorunlu siyah yapar */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    text-align: left; /* Yazıları sola yaslar */
}

/* 6. Hover efekti */
.submenu li a:hover {
    background-color: #fcfcfc;
    color: #f39c12 !important;
    padding-left: 35px;
}

/* Son satırdaki çizgiyi kaldır */
.submenu li:last-child a {
    border-bottom: none;
}

/* HERO SECTION */
.hero-section {
    height: 80vh;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content { position: relative; z-index: 1; }
.hero-content span { color: #f39c12; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }
.hero-content h1 { font-size: 48px; margin: 20px 0; line-height: 1.2; }
.hero-btns { margin-top: 30px; display: flex; gap: 15px; }

/* BUTONLAR */
.btn { padding: 12px 30px; text-decoration: none; font-weight: 600; border-radius: 4px; transition: 0.3s; }
.btn-primary { background: #f39c12; color: white; }
.btn-secondary { border: 2px solid white; color: white; }
.btn-primary:hover { background: #d3850f; }
.btn-secondary:hover { background: white; color: #1a1a1a; }

/* İÇ SAYFA HEADER BANNER */
.page-header {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../img/page-banner.jpg') center/cover;
    padding: 100px 0;
    text-align: center;
    color: white;
}
.page-header h1 { font-size: 3rem; color: #f39c12; }

/* GENEL SECTION PADDING */
.section-padding { padding: 80px 0; }

/* GRID YAPISI */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* GÖRSEL ÇERÇEVESİ */
.about-image-frame { position: relative; }
.about-image-frame img { width: 100%; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.experience-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #f39c12;
    color: white;
    padding: 20px 30px;
    font-weight: 700;
    border-radius: 4px;
}

/* DEĞERLERİMİZ GRID */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.value-item { text-align: center; background: #f9f9f9; padding: 20px; border-radius: 8px; border-bottom: 3px solid #f39c12; }
.value-item h4 { font-size: 14px; margin-top: 10px; }

/* AKTİF MENÜ RENGİ */
.nav-menu ul li a.active { color: #f39c12; font-weight: 700; }

/* MOBİL UYUM */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
}

/* PROJELER ANA SAYFA TASARIMI */
.projects-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cat-img {
    height: 100%;
    position: relative;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-img img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    text-align: center;
    color: white;
}

.cat-overlay h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobilde projelerin alt alta gelmesi için */
@media (max-width: 992px) {
    .projects-category-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    .cat-card {
        height: 350px;
    }
}

/* PROJE LİSTELEME (ROW) TASARIMI */
.project-row {
    display: flex;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.3s;
}

.project-row:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-image {
    flex: 1; /* Sol taraf (Resim) */
    min-height: 350px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-specs {
    flex: 1; /* Sağ taraf (Bilgiler) */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-specs h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 3px solid #f39c12;
    display: inline-block;
    padding-bottom: 5px;
}

.spec-item {
    margin-bottom: 12px;
    font-size: 16px;
}

.spec-item strong {
    color: #f39c12;
    width: 160px;
    display: inline-block;
}

.project-desc {
    margin-top: 20px;
    color: #666;
    font-style: italic;
    line-height: 1.8;
}

/* MOBİL UYUM */
@media (max-width: 992px) {
    .project-row {
        flex-direction: column; /* Mobilde resim üste, yazı alta */
    }
    .project-image {
        min-height: 250px;
    }
}

/* İLETİŞİM SAYFASI ÖZEL */
.contact-info-card { background: #fdfdfd; padding: 40px; border-radius: 8px; border: 1px solid #eee; }
.info-box { margin-bottom: 30px; }
.info-item { margin-bottom: 20px; }
.info-item strong { display: block; color: #f39c12; font-size: 14px; margin-bottom: 5px; }
.info-item p, .info-item a { font-size: 16px; color: #333; text-decoration: none; line-height: 1.5; }

.contact-form-container { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Montserrat', sans-serif;
}
.form-group input:focus, .form-group textarea:focus { border-color: #f39c12; outline: none; }
.full-width { width: 100%; cursor: pointer; border: none; font-size: 16px; }
.google-map { border-radius: 8px; overflow: hidden; margin-top: 20px; }

/* WhatsApp Buton Stili */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: bold;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    background-color: #128c7e;
    color: white;
}

/* İkon için (Eğer FontAwesome kullanmıyorsan basit bir 'W' harfi veya emoji de olabilir) */
.whatsapp-btn::before {
    content: '💬'; 
    font-size: 20px;
}

/* --- MOBİL UYUM (RESPONSIVE) --- */

@media (max-width: 768px) {
    /* Genel Boşluklar */
    .section-padding { padding: 40px 0; }
    .container { padding: 0 15px; }

    /* Menü ve Header Ayarı */
    .flex-nav { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
    }
    .nav-menu ul { 
        flex-direction: column; 
        gap: 10px; 
    }


    /* Başlık Boyutları */
    .hero-section h1 { font-size: 28px !important; }
    .page-header h1 { font-size: 24px !important; }
    .sub-title { font-size: 22px; }

    /* Yan Yana Olan Tüm Kutuları Alt Alta Alır */
    .grid-2, 
    .projects-category-grid, 
    .values-grid, 
    .project-row { 
        grid-template-columns: 1fr !important; 
        display: flex; 
        flex-direction: column; 
        gap: 20px;
    }

    /* Proje Sayfaları Görsel ve Yazı Ayarı */
    .project-image { min-height: 250px; width: 100%; }
    .project-specs { padding: 20px; }
    .project-specs h2 { font-size: 20px; }
    .spec-item strong { width: 130px; font-size: 14px; }

    /* İletişim Sayfası */
    .contact-info-card, .contact-form-container { padding: 20px; }

    /* WhatsApp Butonunu Mobilde Sadece Yuvarlak İkon Yapar */
    .whatsapp-btn span { display: none; }
    .whatsapp-btn { 
        bottom: 15px; 
        right: 15px; 
        padding: 15px; 
        border-radius: 50%; 
    }
}

/* --- MOBİL HAMBURGER MENÜ TASARIMI --- */

/* Normalde hamburgeri gizle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Mobilde göster */
        z-index: 1001;
    }

    .nav-menu ul {
        display: none; /* Menüyü varsayılan olarak gizle */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Header yüksekliğine göre ayarla */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Menü açıldığında aktif olacak sınıf */
    .nav-menu ul.active {
        display: flex;
    }

    .nav-menu ul li {
        margin: 15px 0;
        text-align: center;
    }

}

.hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }