/* =========================================
   1. GENEL AYARLAR (GLOBAL)
   ========================================= */
body {
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   2. NAVBAR (MENÜ)
   ========================================= */
.custom-navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 12px 0;
    border-bottom: 4px solid #800020; /* Alt Çizgi */
}

.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand img:hover { transform: scale(1.05); }

.nav-link {
    font-size: 0.95rem;
    margin: 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444 !important;
    position: relative;
    padding: 10px 0;
}

/* Hover Çizgisi */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #800020;
    transition: width 0.3s;
}

.nav-link:hover { color: #800020 !important; }
.nav-link:hover::after { width: 100%; }
.active-page { color: #800020 !important; }

/* Dropdown Menü */
.dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-top: 3px solid #800020;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
    border-radius: 0 0 5px 5px;
    margin-top: 0;
}

.dropdown-item {
    color: #333;
    font-weight: 500;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
    background-color: #f8f1f3;
    color: #800020;
    padding-left: 25px;
}

/* Hover ile menü açma (Masaüstü) */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3. SLIDER (CAROUSEL)
   ========================================= */
.hero-img {
    height: 75vh;
    object-fit: cover;
    filter: brightness(0.5); /* Yazı okunsun diye karartma */
}

.carousel-caption {
    bottom: 30%;
    left: 10%; right: 10%;
    text-align: center;
}

.carousel-caption h1 {
    font-weight: 800;
    font-size: 3.5rem;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.carousel-caption p {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Butonları */
.btn-slider {
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s;
    margin: 5px;
}

.btn-slider-primary {
    background-color: #800020;
    color: white;
}
.btn-slider-primary:hover {
    background-color: #a00028;
    color: white;
    transform: translateY(-3px);
}

.btn-slider-outline {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.1);
}
.btn-slider-outline:hover {
    background-color: white;
    color: #800020;
}

/* =========================================
   4. İÇERİK BÖLÜMLERİ
   ========================================= */
/* Karşılama */
.welcome-section { padding: 80px 0; background-color: #fff; }
.welcome-text h2 {
    font-size: 2.5rem; font-weight: 700; color: #800020; margin-bottom: 20px;
}
.welcome-text p {
    font-size: 1.1rem; line-height: 1.8; color: #555; text-align: justify;
}
.welcome-img img {
    border-radius: 10px;
    box-shadow: 10px 10px 0px rgba(128, 0, 32, 0.1);
}

/* Hizmetler */
.services-highlight { padding: 80px 0; background-color: #f9f9f9; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: #333; font-weight: 700; }
.section-header .divider {
    width: 60px; height: 4px; background-color: #800020; margin: 15px auto; border-radius: 2px;
}

.home-service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}
.home-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.15);
    border-bottom: 4px solid #800020;
}
.home-service-card i {
    font-size: 2.5rem; color: #800020; margin-bottom: 20px; display: inline-block;
}
.home-service-card h4 { font-weight: 700; margin-bottom: 15px; font-size: 1.3rem; }
.home-service-card p { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.link-arrow { color: #800020; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; color: #a00028; }

/* Özellikler */
.features-section {
    background: #ffffff; /* Düz Bordo */
    padding: 60px 0;
    color: #000000;
}
.feature-box { padding: 20px; text-align: center; }
.feature-icon-circle {
    width: 70px; height: 70px; background-color: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px auto; font-size: 1.8rem; color: #ffca3a;
}
.feature-box h4 { margin-bottom: 10px; font-weight: 700; }
.feature-box p { font-size: 0.95rem; opacity: 0.9; }

/* CTA */
.cta-section {
    padding: 80px 0; text-align: center;
    background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=80&w=2070&auto=format&fit=crop') center/cover;
    position: relative;
}
.cta-overlay {
    background-color: rgba(255, 255, 255, 0.9); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-weight: 800; color: #333; margin-bottom: 15px; }

/* Genel Butonlar */
.btn-custom-bordo {
    background-color: #800020; color: white !important; border-radius: 50px; padding: 10px 30px; font-weight: 600; border:none;
}
.btn-custom-bordo:hover { background-color: #a00028; transform: translateY(-2px); }

/* =========================================
   8. FOOTER (DÜZELTİLMİŞ)
   ========================================= */
.footer {
    background-color: #800020; /* Bordo Arka Plan */
    padding-top: 10px; /* Eski değer muhtemelen 60px'ti, yarı yarıya düşürdük */
    
    color: #ffffff; /* Tüm yazılar beyaz */
    margin-top: auto;
    /* Havaya kalkma sorunu için clip-path silindi */
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffffff; /* Başlık altı beyaz çizgi */
    display: inline-block;
}

/* Linkler */
.footer-link-list { list-style: none; padding: 0; }
.footer-link-list li { margin-bottom: 8px; }

/* Link renklerini zorla beyaz yapıyoruz ki mavi olmasın */
.footer-link-list li a { 
    color: #e0e0e0 !important; 
    text-decoration: none; 
    transition: all 0.3s;
    display: flex; 
    align-items: center; 
}
.footer-link-list li a:hover { 
    color: #ffffff !important; 
    padding-left: 5px; 
}
.footer-link-list li a:before { 
    content: "\F285"; font-family: "bootstrap-icons"; margin-right: 8px; font-size: 0.8rem; 
}

/* İletişim Satırları (Mavi renk sorunu çözümü) */
.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-row a {
    color: #ffffff !important; /* Telefon ve mail için beyaz zorlaması */
    text-decoration: none;
    transition: color 0.3s;
}

.contact-row a:hover {
    color: #ffca3a !important; /* Hover'da sarı/gold */
}

.contact-icon {
    background-color: rgba(255,255,255,0.1);
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-right: 12px;
    font-size: 1rem;
}

/* Sosyal Medya */
.social-icons-grid { display: flex; gap: 10px; }
.social-btn img { 
    width: 35px; 
    background: white; 
    border-radius: 50%; 
    padding: 6px; 
    transition: transform 0.3s; 
}
.social-btn img:hover { transform: scale(1.1); }

/* Copyright */
.copyright-section {
    background-color: #4a0012; /* Daha koyu bordo */
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.copyright-section p { margin: 0; opacity: 0.8; }

/* Başa Dön */
.backtotop button {
    border-radius: 50%; width: 45px; height: 45px; position: fixed; bottom: 30px; right: 30px;
    background-color: #333; color: white; border: none; font-size: 1.2rem;
    z-index: 999; cursor: pointer; transition: 0.3s;
}
.backtotop button:hover { background-color: #800020; }

/* Mobil Ayarlar */
@media (max-width: 768px) {
    .hero-img { height: 50vh; }
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption p { font-size: 1rem; }
    .welcome-img { margin-top: 30px; }
    .footer-links-container, .footer-contact-container, .footer-social-container {
        text-align: center; 
        align-items: center; 
        display: flex; 
        flex-direction: column;
    }
}
/* =========================================
   MOBİL İÇİN AYRIK MENÜ (SPLIT DROPDOWN) DÜZELTMESİ
   ========================================= */

/* Dropdown toggle (ok işareti) ayarları */
.dropdown-toggle-split {
    cursor: pointer;
    opacity: 0.8;
}

/* Ok işaretine basınca rengi değişsin */
.dropdown-toggle-split:hover, 
.dropdown-toggle-split[aria-expanded="true"] {
    color: #800020 !important;
    opacity: 1;
}

/* Flex yapısı sayesinde mobilde yazı ve ok yanyana durur */
.nav-item .d-flex {
    flex-wrap: nowrap; /* Asla alt satıra geçmesin */
}

/* Masaüstünde (Geniş Ekran) Hover Mantığını Korumak İçin */
@media (min-width: 992px) {
    /* Masaüstünde 'Ok' işaretini biraz gizleyip sadece hover ile gösterebiliriz veya sabit tutabiliriz. 
       Şimdilik sabit tutuyoruz ki kullanıcı tıklayabileceğini anlasın. */
    
    /* Dropdown menüsünün konumunu düzeltelim */
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Mobilde menü açıldığında hizalama */
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #f9f9f9; /* Mobilde alt menü hafif gri olsun ki ayrışsın */
        padding-left: 20px; /* İçeriden başlasın */
    }
    
    .dropdown-toggle-split {
        padding: 10px 15px !important; /* Mobilde parmakla basmak için alanı büyüt */
        border-left: 1px solid #eee; /* Yazı ile ok arasına ince çizgi */
    }
}
/* WhatsApp Butonuna Özel Hover Efekti */
.social-btn:hover img[alt="WhatsApp"] {
    background-color: #25D366; /* WhatsApp yeşili arka plan */
    transform: scale(1.2) rotate(5deg);
}
/* LinkedIn Butonuna Özel Hover Efekti */
.social-btn.linkedin:hover img {
    background-color: #0077b5; /* Orijinal LinkedIn Mavisi */
    transform: scale(1.2) rotate(-5deg); /* Hafif sola yatma animasyonu */
}
/* =========================================
   SABİT (YÜZEN) WHATSAPP BUTONU
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 90px; /* Yukarı çıkma okunun (genelde 30px) hemen üstünde durması için */
    right: 30px; /* Ok butonu ile aynı hizada sağa dayalı */
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Orijinal WhatsApp Yeşili */
    border-radius: 50%; /* Tam yuvarlak yapar */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2); /* Derinlik veren gölge efekti */
    z-index: 1000; /* Diğer her şeyin üstünde görünmesini sağlar */
    transition: all 0.3s ease;
}

.floating-whatsapp img {
    width: 35px; /* İçindeki logonun boyutu */
}

/* Üzerine gelince büyüme animasyonu */
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 2px 4px 20px rgba(37, 211, 102, 0.6); /* Yeşil parlama efekti */
}
/* =========================================
   PRELOADER (AÇILIŞ ANİMASYONU)
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #800020; /* Bordo arka plan */
    z-index: 9999; /* Her şeyin üstünde durmasını sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.6s ease-out;
}
.preloader-content {
    text-align: center;
}
.preloader-content img {
    width: 120px;
    border-radius: 10px;
    animation: pulse 0,8s infinite alternate; /* Logoya nefes alma efekti */
}
.spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Dönme efekti */
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Sayfa yüklenince eklenecek gizleme sınıfı */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
/* FAQ Accordion Özelleştirmeleri */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}
.accordion-button:not(.collapsed) {
    background-color: #fcf4f6; /* Çok açık bordo arka plan */
    color: #800020 !important;
    box-shadow: none;
}
/* =========================================
   TİMELİNE (HİZMET SÜRECİ)
   ========================================= */
.timeline-section {
    background-color: #ffffff;
}
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
/* Ortadaki dikey gri çizgi */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px; 
    height: 100%;
    width: 4px;
    background-color: #f0f0f0;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px; 
}
.timeline-item:last-child {
    margin-bottom: 0;
}
/* Daire içindeki ikonlar */
.timeline-icon {
    position: absolute;
    left: 20px; 
    top: 0;
    width: 44px;
    height: 44px;
    background-color: #800020;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 0 0 5px #ffffff, 0 4px 10px rgba(0,0,0,0.1);
}
.timeline-content {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    border-color: #800020;
}

/* Masaüstü cihazlar için Zig-Zag Görünümü */
@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        margin-left: 0;
    }
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
    }
    .timeline-icon {
        left: 100%;
        transform: translateX(-50%);
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
        transform: translateX(-50%);
    }
}/* =========================================
   KARANLIK MOD (DARK MODE) SİSTEMİ
   ========================================= */
/* Buton Hover Efekti */
#darkModeToggle:hover i {
    transform: rotate(-20deg);
}
.hover-bordo:hover { color: #800020 !important; }

/* Dark Mode Aktifken Çalışacak Sınıflar */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .custom-navbar, 
body.dark-mode .key-contacts, 
body.dark-mode .practice-card, 
body.dark-mode .home-service-card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

body.dark-mode .nav-link, 
body.dark-mode .content-text p, 
body.dark-mode h1, body.dark-mode h2, 
body.dark-mode h3, body.dark-mode h4, body.dark-mode h5 {
    color: #e0e0e0 !important;
}

/* Koyu Temada Bordo Vurguları Açıklaştır (Okunabilirlik İçin) */
body.dark-mode .content-text .lead {
    background-color: #2a1118;
    color: #ffb3c6 !important; /* Çok açık bordo/pembe */
}

body.dark-mode .footer {
    background-color: #0a0a0a !important;
}
body.dark-mode .copyright-section {
    background-color: #000000 !important;
}
/* =========================================
   OKUMA İLERLEME ÇUBUĞU (SCROLL PROGRESS BAR)
   ========================================= */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Çubuğun ideal zarif kalınlığı */
    background-color: transparent; /* Arka plan sayfa akışını bozmaması için şeffaf */
    z-index: 1060; /* Bootstrap sticky-top (1020) sınırının üstünde görünmesi için */
    pointer-events: none; /* Altındaki elementlere tıklanmasını engellemek için */
}

.scroll-progress-bar {
    height: 100%;
    width: 0%; /* Başlangıçta boş, sayfa kaydırıldıkça dolacak */
    background-color: #800020; /* Kurumsal Bordo */
    box-shadow: 0 1px 8px rgba(128, 0, 32, 0.4); /* Zarif bir parlama efekti */
    transition: width 0.08s ease-out; /* Kaydırma esnasında çubuğun akıcı dolması için */
}

/* Karanlık Mod (Dark Mode) Entegrasyonu */
body.dark-mode .scroll-progress-bar {
    background-color: #ff4d79; /* Koyu temada okunabilirlik için daha açık/canlı bir bordo-pembe */
    box-shadow: 0 1px 8px rgba(255, 77, 121, 0.5);
}
/* Google Fonts importunu index.css en üstüne ekleyin */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

h1, h2, h3, .sub-hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0.5px;
}

/* =========================================
   MOBİL İÇİN DROPDOWN OKUNU DÜZELTME
   ========================================= */
@media (max-width: 991px) {
    /* Tıklama alanını konforlu yapmaya devam ediyoruz */
    .navbar-nav .dropdown-toggle-split {
        padding: 12px 20px !important;
        margin-left: 5px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
    }
    
    /* Okun çizgiye dönüşmesini engelleyen pürüzsüz üçgen ayarı */
    .navbar-nav .dropdown-toggle-split::after {
        transform: none !important; /* Çizgiye sebep olan scale efektini sıfırladık */
        display: inline-block !important;
        content: "" !important;
        
        /* Üçgenin gerçek boyutlarını border ile netleştiriyoruz */
        border-top: 0.45em solid !important; 
        border-right: 0.45em solid transparent !important;
        border-left: 0.45em solid transparent !important;
        border-bottom: 0 !important;
        
        margin-left: 0 !important;
        vertical-align: middle !important;
    }
}






/* =========================================
   MOBİL ANA EKRAN (SLIDER) DÜZELTMESİ
   ========================================= */
@media (max-width: 768px) {
    /* 1. Slider resimlerine mobilde yükseklik veriyoruz ki alan daralmasın */
    .carousel-inner .carousel-item {
        height: 75vh !important; /* Telefon ekranının %75'ini kaplasın */
        min-height: 450px !important;
    }
    
    /* 2. Resimlerin uzayıp sünmemesi için keserek sığdırma ayarı */
    .carousel-inner .carousel-item img {
        height: 100% !important;
        object-fit: cover !important; 
    }

    /* 3. Yazıları ve butonları yukarıya sıkışmaktan kurtarıp TAM ORTAYA alıyoruz */
    .carousel-caption {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        left: 5% !important;
        right: 5% !important;
        padding: 0 !important;
    }

    /* 4. Yazı boyutlarını mobilde okunaklı olacak şekilde bir miktar küçültüyoruz */
    .carousel-caption h1, 
    .carousel-caption h2 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    .carousel-caption p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        padding: 0 10px;
    }

    /* 5. Butonları yan yana sıkıştırmak yerine alt alta, şık ve geniş yapıyoruz */
    .carousel-caption .btn {
        display: block !important;
        width: 80% !important; /* Buton genişliği */
        margin: 10px auto !important; /* Butonların arasına boşluk koy */
    }
}


/* =========================================
   MOBİL İÇİN ÜST BEYAZ BARI (NAVBAR) KÜÇÜLTME
   ========================================= */
@media (max-width: 991px) {
    /* Menünün alt ve üstündeki gereksiz boşlukları kısıyoruz */
    .custom-navbar {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: auto !important;
    }
    
    /* Logoyu mobilde biraz daha kibar bir boyuta çekiyoruz (65px'ten 48px'e) */
    .navbar-brand img {
        height: 48px !important; 
        width: auto !important;
    }
    
    /* Hamburger menü (üç çizgi) butonunu da hafifçe küçültüp ortalıyoruz */
    .navbar-toggler {
        padding: 4px 8px !important;
        font-size: 1.1rem !important;
        margin-top: 2px !important;
    }
}