/* --- MODERN RESET & VARIABLES --- */
:root {
    --primary-color: #0066cc;     /* Ana Mavi */
    --primary-dark: #004a94;      /* Koyu Mavi */
    --text-dark: #2c3e50;         /* Koyu Gri/Siyah */
    --text-light: #5f6c7b;        /* Açık Gri */
    --white: #ffffff;
    --bg-light: #f8f9fa;          /* Açık Arka Plan */
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.nav-logo img { height: 45px; width: auto; }
.nav-logo h1 { 
    font-size: 1.1rem; 
    color: var(--primary-color); 
    font-weight: 700; 
    letter-spacing: -0.5px;
}

/* Sağ Taraf: Menü + Dil + Buton */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* --- NAVIGATION MENÜ STİLLERİ (GÜNCEL) --- */

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease; /* Hızlı ve yumuşak geçiş */
    display: inline-block;     /* Büyüme efektinin düzgün çalışması için */
}

/* Çizgiyi (::after) tamamen iptal ediyoruz */
.nav-link::after {
    display: none !important;
    content: none !important;
}

/* HOVER DURUMU: Renk değişir + %10 Büyür (~1-2 punto etkisi) */
.nav-link:hover {
    color: var(--primary-color);
    transform: scale(1.1); /* Yazıyı olduğu yerde büyütür */
}

/* AKTİF SAYFA: Sadece Mavi ve Kalın (Büyüme yok, sabit durur) */
.nav-link.active-link {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

/* Dil Seçeneği */
.lang-selector {
    display: flex;
    gap: 8px;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-item {
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-item.active {
    color: var(--primary-color);
}

.lang-item:hover { color: var(--primary-color); }

/* Randevu Butonu */
.btn-appointment {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-appointment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1003;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #333; /* SİYAH YAPILDI - Görünürlük için */
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger Animasyonu */
.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- HERO SECTION (SLIDER) --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden; /* Taşmaları gizle */
}

/* Slayt Taşıyıcı */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* En altta */
}

/* Tekil Slayt */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Varsayılan gizli */
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 7s linear; /* Geçiş Süreleri */
}

/* Aktif Slayt Efekti */
.hero-slide.active {
    opacity: 1;
    transform: scale(1.1); /* Hafif yakınlaşma (Ken Burns efekti) */
}

/* Görsellerin Üzerine Siyah Filtre (Yazı okunması için) */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* %50 Siyah Perde */
    z-index: 1;
}

/* İçerik Kutusu */
.hero-content {
    position: relative;
    z-index: 2; /* Slaytların üstünde */
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-hero {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary-hero:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-hero {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-hero:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Mobilde Font Ayarı */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
}

/* --- GENERAL SECTIONS --- */
section { padding: 100px 0; }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-light);
    flex-grow: 1; /* Metni uzatıp butonu aşağı iter */
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-box h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* Map Section */
.map-container {
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
    text-align: center;
}

footer p { margin-bottom: 10px; font-size: 0.9rem; }
footer strong { color: var(--white); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .nav-menu.active { 
        right: 0; 
    }
    
    .nav-right {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    
    .section-title h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 280px; }
    
    .nav-logo h1 { font-size: 0.9rem; }
    .nav-logo img { height: 35px; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BLOG CARD STYLES --- */
.blog-posts .service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-posts .service-card .date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.blog-posts .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Hakkımda bölümündeki credentials kutusu için mobil ayar */
@media (max-width: 768px) {
    .credentials-box {
        margin-top: 20px;
    }
    
    /* İletişim Formunu Mobilde Daha İyi Göstermek İçin */
    .contact-wrapper {
        padding: 20px !important;
    }
    
    .map-container {
        height: 30px;
    }
}

/* --- NAVIGATION ACTIVE & HOVER STATES --- */

/* Genel Link Stili */
.nav-link {
    font-weight: 600;
    color: var(--text-dark); /* Varsayılan koyu renk */
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Mouse ile üzerine gelince (Hover) */
.nav-link:hover {
    color: var(--primary-color); /* Mavi renk */
}

/* Aktif Olduğunda (O sayfada veya o bölümdeysen) */
.nav-link.active-link {
    color: var(--primary-color) !important; /* Mavi */
    font-weight: 800 !important; /* Kalın (Bold) */
}

/* Aktif linkin altına çizgi efekti (İstersen kullanabilirsin, istemezsen sil) */
.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* --- MOBİL MENÜ KESİN ÇÖZÜM (styles.css EN ALTINA EKLE) --- */

@media (max-width: 768px) {
    /* Hamburger İkonu: Her zaman en üstte ve görünür */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        z-index: 9999; /* En üst katman */
        position: relative;
        gap: 5px;
    }

    .bar {
        width: 30px;
        height: 3px;
        background-color: #333; /* Siyah renk */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Menü Kutusu: Başlangıçta GİZLİ ve SAĞDA */
    .nav-menu {
        position: fixed !important; /* Sayfa akışından çıkar */
        top: 0;
        right: -100% !important; /* Ekranın tamamen dışında */
        width: 100% !important;
        height: 100vh !important; /* Tam ekran yükseklik */
        background-color: #ffffff !important; /* Beyaz arka plan */
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 30px;
        
        transition: right 0.4s ease-in-out, opacity 0.4s ease-in-out;
        z-index: 9998; /* Hamburgerin bir tık altında */
        opacity: 0; /* Görünmez */
        visibility: hidden; /* Tıklanmaz */
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Menü AKTİF Olduğunda (Javascript ile eklenir) */
    .nav-menu.active {
        right: 0 !important; /* Ekrana getir */
        opacity: 1 !important; /* Görünür yap */
        visibility: visible !important; /* Tıklanabilir yap */
    }

    /* Hamburger Animasyonu (Çarpı işareti olur) */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobilde Linkler */
    .nav-link {
        font-size: 1.5rem !important;
        color: #333 !important;
        display: block !important;
    }

    /* Masaüstü öğeleri gizle */
    .desktop-only, .lang-selector {
        display: none !important;
    }
    
    /* Mobil butonu göster */
    .mobile-only {
        display: inline-block !important;
        margin-top: 20px;
    }
    
    /* Header yüksekliğini koru */
    .navbar {
        padding: 0 20px !important;
        height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

/* --- ANASAYFA MENU DÜZELTMESİ (EN ALTA EKLE) --- */

/* Header'ı her şeyin üstüne çıkar */
header {
    z-index: 9999 !important;
    position: fixed;
    top: 0;
    width: 100%;
}

/* Hamburger ikonunu tıklanabilir yap (Slider'ın üstüne al) */
.hamburger {
    z-index: 10000 !important; /* En yüksek değer */
    cursor: pointer;
    position: relative;
}

/* Menü açıldığında */
.nav-menu {
    z-index: 9998 !important;
}

/* Slider'ın z-indexini düşür (Garanti olsun) */
.hero, .hero-slideshow {
    z-index: 1;
}

/* --- MOBİL HARİTA DÜZELTMESİ (4:2 ORANI) --- */

@media (max-width: 768px) {
    .map-container {
        display: block !important;       /* Kesinlikle görünür yap */
        width: 100% !important;          /* Genişlik tam ekran */
        height: auto !important;         /* Yüksekliği serbest bırak (oran belirleyecek) */
        aspect-ratio: 4 / 2;             /* İstenilen 4:2 (2:1) Oranı */
        min-height: 200px;               /* Çok küçük ekranlar için güvenlik payı */
        margin-top: 30px !important;     /* Üstteki formdan biraz uzaklaşsın */
        border-radius: 15px !important;  /* Köşeleri yumuşat */
        overflow: hidden !important;     /* Taşmaları gizle */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Hafif gölge */
    }

    .map-container iframe {
        width: 100% !important;
        height: 100% !important;         /* Container'ın oranına uy */
        display: block !important;
    }
}
