/* Genel Stil ve Reset */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Navigasyon Stili */
header {
    background-color: #2c3e50; /* Koyu Mavi */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Logo Stili (Responsive Logo) */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-size: 1.6em;
    font-weight: 700;
    color: #f1c40f; /* Vinç Sarısı */
}

.logo-title {
    font-size: 0.8em;
    font-weight: 300;
    color: #ecf0f1;
    margin-top: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #34495e;
    color: #f1c40f;
}

.hamburger-menu {
    display: none; /* Masaüstünde gizli */
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px;
}

/* Bölüm Ortak Stili */
section {
    padding: 80px 20px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

section:nth-child(even) {
    background-color: #ecf0f1;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
    border-bottom: 3px solid #f1c40f;
    display: inline-block;
    padding-bottom: 10px;
}

/* 2. Anasayfa ve Slider Stili */
/* 2. Anasayfa ve Slider Stili (GÜNCELLENDİ: Sabit Yükseklik) */
#anasayfa {
    padding: 0;
    position: relative;
    overflow: hidden;
    /* Yüksekliği 90vh yerine 600px olarak sabitliyoruz */
    height: 600px; 
    width: 100%; /* Zaten tam genişlikti, ama belirtelim */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    
    /* Arka Plan Görsel Stilleri */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.slide h1, .slide p, .slide .btn {
    position: relative;
    z-index: 2;
}

.slide.active {
    opacity: 1;
}

.slide h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.btn {
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6b800;
}

/* 4. Hizmetler Stili */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.service-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-top: 5px solid #f1c40f;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* 5. İletişim Stili (GÜNCELLENDİ) */
#iletisim {
    text-align: left;
}

.contact-info-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-details {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-row {
    display: flex;
    margin-bottom: 10px;
}

.contact-row span:first-child {
    font-weight: bold;
    width: 100px;
    color: #34495e;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-container iframe {
    width: 100%;
    border-radius: 8px;
    min-height: 400px;
}

/* Sosyal Medya ve WhatsApp Stili */
.social-links {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-btn {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.social-btn:hover {
    opacity: 0.9;
}

.whatsapp {
    background-color: #25d366; /* WhatsApp Yeşil */
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}


/* 4.5. Galeri Stili */
/* 4.5. Galeri Stili (GÜNCELLENDİ) */
#galeriler {
    background-color: #ecf0f1;
    position: relative; /* Buton konumlandırma için */
}

.gallery-slider-container {
    position: relative;
    overflow: hidden; /* Sadece aktif slayt grubunu göster */
    max-width: 1200px;
    margin: 30px auto;
}

.gallery-slide {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-slide.active {
    position: relative; /* Aktif slaytın akışta görünmesini sağlar */
    opacity: 1;
}

.gallery-grid-item {
    flex: 1 1 23%; /* Esnek büyüme/küçülme. 4 öğe için yaklaşık %25 */
    min-width: 200px; /* Çok daralmasını engeller */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Kaydırma Butonları Stili */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Mobil için 4'lü düzeni bozma */
@media (max-width: 900px) {
    .gallery-slide {
        /* Tek sütun görünümü için alt alta dizilir, slider özelliği devam eder */
        flex-direction: column; 
    }
    .gallery-grid-item {
        min-width: 100%;
        margin-bottom: 20px;
    }
}


/* Lightbox (Resim Büyütme Kutusu) Stili */
.lightbox {
    /* Başlangıçta gizli ve tam ekran */
    display: none; 
    position: fixed; 
    z-index: 2000; /* Her şeyin üstünde olmalı */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Siyah, yarı saydam arka plan */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh; /* Ekran yüksekliğinin %90'ını geçmesin */
    border-radius: 8px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Kapatma Butonu Stili */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Zoom Animasyonu */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}


/* Alt Bilgi (Footer) Stili */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* =========================== */
/* MOBILE (RESPONSIVE) STİLLERİ */
/* =========================== */
@media (max-width: 768px) {
    
    .hamburger-menu {
        display: block; /* Mobil menü ikonunu göster */
    }

    nav ul {
        display: none; /* Menüyü varsayılan olarak gizle */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Header yüksekliğine göre ayarla */
        left: 0;
        background-color: #2c3e50;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        padding: 10px 0;
    }

    nav ul.active {
        display: flex; /* Aktif olduğunda menüyü göster */
    }

    nav ul li {
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        padding: 15px 0;
        border-bottom: 1px solid #34495e;
    }

    .slide h1 {
        font-size: 2em;
    }

    .slide p {
        font-size: 1em;
    }

    section {
        padding: 50px 15px;
    }

    /* İletişim bölümü mobil düzenleme */
    .contact-info-map-container {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
	
	#anasayfa {
        height: 400px; /* Mobil cihazlarda daha az yer kaplar */
    }
}