/* ==========================================================================
   ŞENYÜZ OTO KURTARMA - MODERN & KURUMSAL CSS (ULTRA OPTİMİZE)
   Düzenleme: Mobil taşmalar, SSS, Hover Efektleri ve Boyutlar İyileştirildi.
   ========================================================================== */

/* --- 1. RENK PALETİ VE TEMEL DEĞİŞKENLER --- */
:root {
    --brand-yellow: #ffb703; /* Logondaki profesyonel altın sarısı tonu */
    --brand-dark: #1d2027; /* Kurumsal antrasit (Tam siyah değil, daha şık) */
    --brand-light: #f8f9fa; /* Göz yormayan açık gri/beyaz arkaplan */
    --text-main: #333333; /* Tam siyah olmayan, okunabilir metin rengi */
    --text-muted: #6c757d;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--brand-light);
    color: var(--text-main);
    overflow-x: hidden;
    font-size: 15px;
}

/* --- 2. ÜST MENÜ (NAVBAR) --- */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

/* İki renkli kurumsal logo */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--brand-dark) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-yellow) !important;
    transform: translateY(-2px);
}

/* Açılır Menü (Dropdown) */
.dropdown-menu {
    border: none;
    border-top: 3px solid var(--brand-yellow); /* Kırmızı yerine marka sarısı yapıldı */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.dropdown-item {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    color: var(--text-main);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(255, 183, 3, 0.08); /* Hover sarı tonuna çekildi */
    color: var(--brand-yellow); /* Kırmızı yerine sarı vurgu */
    padding-left: 25px;
}

/* --- 3. HERO (GİRİŞ) ALANI - GARANTİLİ OKUNABİLİRLİK --- */
.hero-video {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--brand-dark); 
    overflow: hidden;
    border-bottom: 5px solid var(--brand-yellow); /* Çizgi kibarlaştırıldı */
}

/* Koyu Perde (Overlay) - Beyaz yazıları her koşulda okutur */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(29, 32, 39, 0.85), rgba(29, 32, 39, 0.7), rgba(29, 32, 39, 0.9));
    z-index: 1;
}

#bg-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.hero-content .lead {
    font-size: 1.1rem;
    color: #e9ecef;
    margin-bottom: 30px;
}

/* Kayan Yazı Kapsayıcısı (Çerçeve Alanı) */
.kayan-yazi-kapsayici {
    width: 90%;
    max-width: 700px;
    margin: 0 auto 30px;
    overflow: hidden;
    white-space: nowrap;
    /* Yazıların okunması için hafif koyu arka plan */
    backdrop-filter: blur(8px);
    border: 1px solid #ffb8038a !important; /* Çerçeve Rengi: Marka Sarısı */
    border-radius: 40px;
    padding: 10px 0;
}

/* Kayan Yazı (Metin) */
.kayan-yazi {
    display: inline-block;
    animation: kaydirma 20s linear infinite;
    font-size: 1.05rem;
    font-weight: 700; /* Yazıyı daha kalın ve belirgin yapar */
    color: #ff00009e !important; /* Yazı Rengi: Saf Kırmızı */
    letter-spacing: 1px;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Kırmızının siyah üstünde parlaması için hafif gölge */
}

@keyframes kaydirma {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- 4. HİZMETLER ALANI --- */
section h2.fw-bold {
    font-size: 2.1rem;
    letter-spacing: -0.5px;
    color: var(--brand-dark);
}

.hizmet-kart {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hizmet-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.hizmet-kart::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--brand-yellow); transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.hizmet-kart:hover::after { transform: scaleX(1); }

.icon-box {
    width: 70px; height: 70px;
    background-color: rgba(255, 183, 3, 0.1);
    color: var(--brand-yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}
.hizmet-kart:hover .icon-box {
    background-color: var(--brand-yellow);
    color: #fff;
}

.hizmet-kart h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.hizmet-kart p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }

/* --- 5. GALERİ ALANI (SİYAH ZEMİN) --- */
#galeri {
    background-color: var(--brand-dark);
}
#galeri h2.fw-bold { color: #ffffff; }

/* Galeri kartlarına özel yumuşak geçiş eklendi */
.galeri-kart-ozel {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    background: #fff;
}
.galeri-kart-ozel:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--brand-yellow); 
}

.galeri-img-wrapper {
    position: relative;
    height: 220px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.galeri-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.galeri-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(29, 32, 39, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition); cursor: pointer;
}
.galeri-img-wrapper:hover .galeri-overlay { opacity: 1; }
.galeri-img-wrapper:hover img { transform: scale(1.08); }

/* --- 6. HAKKIMIZDA & DİĞER (Tecrübe Rozeti Rengi Güncellendi) --- */
.hakkimizda-deneyim {
    position: absolute; bottom: -20px; right: 20px;
    background-color: var(--brand-yellow); /* Kırmızı yerine kurumsal sarı yapıldı */
    color: #000;
    padding: 15px 30px; border-radius: 8px; text-align: center;
    box-shadow: 0 10px 25px rgba(255, 183, 3, 0.3);
    border: 3px solid #fff;
}
.hakkimizda-deneyim span { font-size: 1.8rem; line-height: 1; }
.hakkimizda-deneyim p { font-size: 0.85rem; }

/* --- 7. SIKÇA SORULAN SORULAR (SSS) ÖZEL TASARIMI --- */
.custom-accordion .accordion-item {
    background-color: #fff;
    transition: var(--transition);
}

.custom-accordion .accordion-button {
    font-size: 1.05rem;
    padding: 20px 25px;
    background-color: #fff;
    box-shadow: none !important; 
    border: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(255, 183, 3, 0.05); 
    color: var(--brand-dark) !important;
}

.custom-accordion .accordion-button::after {
    transition: var(--transition);
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(70%) sepia(80%) saturate(2000%) hue-rotate(360deg) brightness(105%) contrast(105%); 
}

.custom-accordion .accordion-body {
    padding: 5px 25px 25px 60px; 
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- 8. SABİT BUTONLAR (WHATSAPP & YUKARI) --- */
/* --- WHATSAPP BUTONU DÜZELTMESİ (ŞIK KAPSÜL TASARIMI) --- */
.float-btn-left {
    position: fixed; bottom: 30px; left: 30px;
    background-color: #25d366; color: white;
    padding: 12px 24px !important; /* Genişlik/Yükseklik iptal, padding devrede */
    border-radius: 50px !important; /* Kapsül görünümü */
    font-size: 16px !important; font-weight: 600; text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
    width: auto !important; height: auto !important;
}
.float-btn-left i { font-size: 22px !important; margin: 0 !important; }
.float-btn-left:hover {
    background-color: #1eb954; color: white; transform: translateY(-4px);
}

/* Yukarı çık butonu kırmızıdan koyu antrasite çevrildi (Sarı ok işaretiyle) */
#backToTop {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--brand-dark); 
    color: var(--brand-yellow) !important; 
    width: 50px; height: 50px; border-radius: 50%;
    border: none; font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 999; display: none; align-items: center; justify-content: center;
    transition: var(--transition); cursor: pointer;
}
#backToTop:hover {
    background-color: #000; transform: translateY(-4px);
}

/* --- 9. MOBİL UYUMLULUK (RESPONSIVE & KAYDIRMA) KESİN ÇÖZÜM --- */
@media (max-width: 767px) {
    /* 1. Üst Menü ve Logo Küçültme */
    .navbar-brand { font-size: 1.1rem !important; } 
    .navbar { padding: 8px 0 !important; } 

    /* 2. Ana Başlıklar ve Boşlukları Küçültme */
    section h2.fw-bold { font-size: 1.4rem !important; letter-spacing: 0px !important; }
    section h6 { font-size: 0.75rem !important; margin-bottom: 5px !important; }
    .mb-5 { margin-bottom: 2rem !important; } 
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; } 

    /* 3. Hizmet Kartları ve İkonları Küçültme */
    .hizmet-kart { padding: 20px 15px !important; } 
    .icon-box { 
        width: 50px !important; 
        height: 50px !important; 
        font-size: 1.5rem !important; 
        margin-bottom: 10px !important; 
    }
    .hizmet-kart h4 { font-size: 1rem !important; margin-bottom: 5px !important; }
    .hizmet-kart p { font-size: 0.8rem !important; line-height: 1.4 !important; }

    /* 4. En Üstteki Karşılama (Hero) Alanı Küçültme */
    .hero-content h1 { font-size: 1.8rem !important; margin-bottom: 10px !important; }
    .hero-content .lead { font-size: 0.9rem !important; margin-bottom: 20px !important; }
    .kayan-yazi-kapsayici { padding: 6px 0 !important; margin-bottom: 20px !important; }
    .kayan-yazi { font-size: 0.8rem !important; }

    /* 5. Galeri Kartları Başlıkları */
    .galeri-kart-ozel .p-4 { padding: 15px !important; }
    .galeri-kart-ozel h6 { font-size: 0.95rem !important; }
    .galeri-kart-ozel small { font-size: 0.75rem !important; }

    /* 6. MOBİLDE YANA KAYDIRMA (Taşma Sorunu Çözümü) */
    #hizmetler .row, 
    #galeri .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        justify-content: flex-start !important; 
        gap: 15px !important;
        padding: 10px 15px 30px 15px !important; 
        margin: 0 !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important; 
        scrollbar-width: none !important; 
    }

    #hizmetler .row::-webkit-scrollbar, 
    #galeri .row::-webkit-scrollbar {
        display: none !important;
    }

    #hizmetler .row > div, 
    #galeri .row > div {
        flex: 0 0 85% !important; 
        max-width: 85% !important;
        scroll-snap-align: center !important; 
    }
    
    /* 7. Mobilde Sabit Buton Boyutları */
    .float-btn-left { bottom: 15px; left: 15px; width: 45px; height: 45px; font-size: 24px; }
    #backToTop { bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 1rem; }
}
/* Galeri Sayfası Mobil Kart Boşlukları */
    .galeri-kart-ozel {
        margin: 0 10px 20px 10px !important; /* Kartların sağdan ve soldan nefes almasını sağlar */
    }