/* --- 1. GENEL AYARLAR & DEĞİŞKENLER --- */
:root {
    --primary-color: #006de8; /* Sanil Mavisi */
    --primary-dark: #004bb5;
    --text-dark: #002249;
    --text-body: #333;
    --bg-light: #fdfdfd;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }

/* --- 2. NAVBAR (MENÜ ÇUBUĞU) --- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100001; /* Overlay'in üstünde */
}
.navbar-brand img { height: 50px; }

/* Desktop Linkler */
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 15px;
    font-size: 16px;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* Desktop Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}
.dropdown-item {
    padding: 10px 15px;
    font-weight: 500;
    color: #555;
    border-radius: 5px;
    transition: 0.2s;
}
.dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding-left: 20px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. HAMBURGER BUTONU (VARSAYILAN: GİZLİ) --- */
/* ÖNEMLİ DÜZELTME: Buton varsayılan olarak gizli (none) başlar */
.custom-toggler {
    display: none; /* Desktop'ta görünmez */
    border: none;
    background: transparent;
    width: 30px;
    height: 24px;
    z-index: 100002; /* Her şeyin en üstünde */
    position: relative;
    padding: 0;
    cursor: pointer;
    outline: none;
    flex-direction: column;
    justify-content: space-between;
}

.custom-toggler span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}

/* BUTONUN "X" DÖNÜŞÜMÜ */
.custom-toggler.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 0px; left: 4px; position: relative;
    background: var(--primary-color);
}
.custom-toggler.active span:nth-child(2) { width: 0%; opacity: 0; }
.custom-toggler.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 0px; left: 4px; position: relative;
    background: var(--primary-color);
}

/* --- 4. RESPONSIVE GÖRÜNÜM AYARLARI --- */
/* Masaüstü (992px ve üzeri) */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu { display: block; }
    .navbar-collapse { display: flex !important; }
    .custom-toggler { display: none !important; } /* Masaüstünde kesinlikle gizle */
}

/* Mobil ve Tablet (991px ve altı) */
@media (max-width: 991px) {
    .navbar-collapse { display: none !important; } /* Standart menüyü gizle */
    .custom-toggler { display: flex !important; } /* Hamburgeri göster */
}

/* --- 5. MOBİL MENÜ OVERLAY --- */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #fff;
    z-index: 100000; /* Navbar'ın altında */
    padding-top: 110px; padding-left: 30px; padding-right: 30px;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu-overlay.open { transform: translateX(0); }

.mobile-menu-content a {
    display: block; font-size: 20px; font-weight: 600; color: var(--text-dark);
    margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.mobile-menu-content a:hover, .mobile-menu-content a.active {
    color: var(--primary-color); padding-left: 10px;
}

/* Mobil Dropdown */
.mobile-dropdown-menu {
    display: none; padding-left: 20px; background: #f8f9fa; margin-bottom: 15px; border-radius: 8px;
}
.mobile-dropdown-menu.show { display: block; animation: slideDown 0.3s ease; }
.mobile-dropdown-menu a {
    font-size: 16px; border: none; margin-bottom: 5px; color: #555; font-weight: 500;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- SLIDER ÖZELLEŞTİRMELERİ --- */

/* Slider Yüksekliği ve Arka Plan */
.main-slider .carousel-item {
    height: 85vh; /* Ekranın %85'i */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Siyah Filtre (Yazıların okunması için hafif karartma) */
.main-slider .carousel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Soldan sağa hafif bir gölge geçişi (Gradyan) */
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
}

/* Yazı Animasyonları (Yukarıdan aşağı kayarak gelme) */
.animate-content {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease-out;
}

/* Slide aktif olduğunda animasyon çalışsın */
.carousel-item.active .animate-content {
    opacity: 1;
    transform: translateY(0);
}

/* Buton Stili */
.btn-demo {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
    color: white;
}
.btn-demo:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,109,232,0.4);
    color: white;
}

/* Liste İkonları */
.list-unstyled i {
    width: 20px;
    text-align: center;
}

/* Mobil Ayarları */
@media (max-width: 768px) {
    .main-slider .carousel-item {
        height: 60vh;
        min-height: 500px;
    }
    .slider-content h1 {
        font-size: 2rem; /* Mobilde başlık küçülsün */
    }
    .slider-content p {
        font-size: 1rem;
    }
}

/* --- 7. İÇERİK ANİMASYONLARI --- */
.hidden-left { opacity: 0; transform: translateX(-100px); transition: 1s; }
.hidden-right { opacity: 0; transform: translateX(100px); transition: 1s; }
.hidden-bottom { opacity: 0; transform: translateY(50px); transition: 1s; }
.show { opacity: 1; transform: translateX(0) translateY(0); }

/* --- 8. ORTAK ALANLAR --- */
.section-padding { padding: 80px 0; }
.feature-img-box img { width: 100%; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); transition: 0.3s; }
.feature-img-box img:hover { transform: scale(1.02); }
.experience-box h2 { color: var(--primary-color); }

.product-card {
    background: #fff; border-radius: 15px; overflow: hidden; height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee;
}
.product-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #f0f0f0; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* --- 9. İLETİŞİM SAYFASI & DİĞER --- */
.page-header {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; height: 350px;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.page-header::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 34, 73, 0.7); }
.header-content { position: relative; z-index: 2; text-align: center; color: #fff; }

.branches-section { margin-top: -80px; position: relative; z-index: 10; padding-bottom: 60px; }
.branch-card {
    border-radius: 20px; padding: 40px 30px; min-height: 280px;
    display: flex; flex-direction: column; justify-content: center; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: 0.4s; height: 100%; background: #fff;
}
.branch-card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.branch-card h3 { font-family: 'Work Sans', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }

.card-white { background: #fff; color: #1d2f52; } .card-white h3 { color: #1d2f52; }
.card-red { background: linear-gradient(135deg, #ea513c 0%, #cf2e2e 100%); color: #fff; } .card-red h3, .card-red p, .card-red a { color: #fff !important; }
.card-blue { background: linear-gradient(135deg, #4f78c6 0%, #006de8 100%); color: #fff; } .card-blue h3, .card-blue p, .card-blue a { color: #fff !important; }

.custom-input { border: none; border-bottom: 2px solid #ddd; border-radius: 0; padding: 15px 0; background: transparent; }
.custom-input:focus { box-shadow: none; border-color: var(--primary-color); }
.btn-demo { background: var(--primary-color); color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: 600; border: none; transition: 0.3s; }
.btn-demo:hover { background: var(--primary-dark); transform: translateY(-3px); color: #fff; }
.contact-image-container img { border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); max-width: 100%; }

.brands-section { padding: 50px 0; border-top: 1px solid #eee; background: #fff; }
.brand-item img { max-width: 130px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.brand-item img:hover { filter: grayscale(0%); opacity: 1; }

footer { background: #182044; padding: 60px 0 20px; color: #c2d1e2; }
footer h5 { color: #fff; margin-bottom: 20px; font-weight: 600; }
footer ul li a { color: #c2d1e2; text-decoration: none; line-height: 2; }
footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; }

/* --- 10. ROKET BUTONU --- */
#scrollTopBtn {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    border: none; background: var(--primary-color); color: white; cursor: pointer;
    border-radius: 50%; width: 50px; height: 50px; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,109,232,0.3); transition: 0.3s;
}
#scrollTopBtn:hover { background: var(--primary-dark); transform: translateY(-5px); }
@keyframes rocketFlyUp {
    0% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(10px) scale(0.9); }
    100% { transform: translateY(-1000px) scale(0.5); opacity: 0; }
}
.flying-rocket { animation: rocketFlyUp 0.8s ease-in forwards !important; pointer-events: none; background: var(--primary-dark) !important; display: flex !important; }

/* --- 11. MOBİL AYARLAR --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .main-slider .carousel-item { height: 60vh; min-height: 400px; }
    .branches-section { margin-top: 30px; }
}

/* --- İLETİŞİM RESMİ ÖZEL EFEKTLERİ (DÜZELTİLDİ) --- */

/* 1. Sarmalayıcı (Şekil ve Işık Burada) */
.shimmer-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden; /* Işık taşmasını engelle */
    
    /* ORGANİK ŞEKİL (Kesilmeyi önlemek için daha yumuşak hatlar) */
    border-radius: 30px; 
    /* İsterseniz daha oval olması için: border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; */
    
    /* ÖNEMLİ: Resmi içeri itmek için boşluk veriyoruz (S harfi kesilmesin diye) */
    padding: 20px; 
    background-color: #fff; /* Boşluklar beyaz görünsün */
    
    /* Gölge Efekti */
    box-shadow: 0 20px 50px rgba(0, 60, 180, 0.15);
    transition: all 0.5s ease;
    max-width: 100%;
}

/* 2. Resmin Kendisi */
.shimmer-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px; /* Resmin kendi köşeleri de hafif yumuşak olsun */
}

/* Hover Efekti */
.shimmer-wrapper:hover {
    transform: translateY(-5px); /* Hafif yukarı kalksın */
    box-shadow: 0 30px 60px rgba(0, 60, 180, 0.25);
}

/* 3. Işık Hüzmesi Animasyonu (Shimmer) */
.shimmer-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    /* Işık gradyanı */
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%, /* Parlaklık artırıldı */
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    /* 3 saniyede bir geçen sonsuz döngü */
    animation: shimmerMove 3.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmerMove {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* Mobil için görseli biraz küçültelim ki taşmasın */
@media (max-width: 768px) {
    .contact-image-container { margin-top: 30px; }
    .shimmer-wrapper { max-width: 80%; }
}


/* Dropdown (Açılır Menü) */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px; /* Köşeleri yuvarlak */
    padding: 15px;
    
    /* DÜZELTME BURADA: */
    margin-top: 0; /* Aradaki boşluğu kaldırdık ki mouse kaçmasın */
    
    animation: fadeIn 0.3s ease;
    display: none; /* Varsayılan gizli */
}

/* Hover alanını genişletmek için (Görünmez Köprü) */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    /* Menüyü çok az aşağı itmek istersen margin yerine transform kullan */
    transform: translateY(0); 
}

.dropdown-item {
    padding: 10px 15px;
    font-weight: 500;
    color: #555;
    border-radius: 5px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding-left: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HAKKIMIZDA SAYFASI ÖZEL STİLLERİ --- */

/* Hakkımızda Görseli Efekti */
.about-image-wrapper {
    position: relative;
}
.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-color);
    color: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 109, 232, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (max-width: 768px) {
    .experience-badge { bottom: -10px; left: 10px; padding: 10px 20px; }
    .experience-badge .display-4 { font-size: 2rem; }
}

/* Misyon Kartları */
.mission-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.mission-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.mission-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* İkon Kutuları (Renkler) */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}
.bg-blue { background: linear-gradient(135deg, #4f78c6 0%, #006de8 100%); }
.bg-red { background: linear-gradient(135deg, #ea513c 0%, #cf2e2e 100%); }
.bg-dark-blue { background: linear-gradient(135deg, #1d2f52 0%, #002249 100%); }

/* Portföy Listesi */
.portfolio-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.portfolio-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.portfolio-item i {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* --- ÜRÜNLER SAYFASI ÖZEL TASARIMI --- */

/* 1. Sidebar (Sol Panel) */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--text-dark);
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li { margin-bottom: 10px; }
.category-list li a {
    display: block;
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    background: #f9f9f9;
}
.category-list li a:hover, .category-list li a.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

/* Yardım Kartı */
.help-card {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #25d366;
}

/* 2. Arama Çubuğu */
.search-container .form-control {
    padding: 15px;
    border-radius: 0 50px 50px 0;
    border-left: none;
    box-shadow: none;
}
.search-container .input-group-text {
    border-radius: 50px 0 0 50px;
    background: #fff;
    padding-left: 20px;
    border-right: none;
}
.search-container .input-group {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 50px;
}
.search-container .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* 3. Ürün Kartları (Pro Card) */
.pro-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.pro-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Resim Alanı */
.pro-card .img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pro-card .img-wrap img {
    max-width: 100%;
    max-height: 100%;
    transition: 0.5s;
}
.pro-card:hover .img-wrap img {
    transform: scale(1.1); /* Resim büyüsün */
}
.badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 5px 12px;
    border-radius: 5px;
    z-index: 2;
}

/* İçerik Alanı */
.pro-card .content { padding: 25px; }
.pro-card .category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.pro-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-dark);
}
.pro-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Buton */
.btn-detail {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}
.btn-detail i {
    margin-left: 5px;
    transition: 0.3s;
}
.pro-card:hover .btn-detail i {
    margin-left: 10px; /* Ok işareti kaysın */
}



/* --- ÜRÜN DETAY SAYFASI STİLLERİ --- */

/* 1. Galeri */
.product-gallery .main-image-box {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 15px;
}
.product-badge {
    position: absolute;
    top: 20px; left: 20px;
    font-size: 0.85rem;
    padding: 8px 12px;
    z-index: 2;
}
.thumb-gallery .thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: 0.3s;
}
.thumb-gallery .thumb-img:hover, 
.thumb-gallery .thumb-img.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* 2. Özellikler Listesi */
.feature-icon {
    width: 45px;
    height: 45px;
    background: #f0f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* 3. Özel Sekmeler (Tabs) */
.custom-tabs {
    border-bottom: 2px solid #eee;
}
.custom-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    padding: 15px 25px;
    font-size: 1.1rem;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}
.custom-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}
.custom-tabs .nav-link:hover {
    color: var(--primary-dark);
}

/* 4. Tablo ve Dökümanlar */
.table th { background-color: #f9f9f9; color: var(--text-dark); }
.doc-card { transition: 0.3s; }
.doc-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    border-color: var(--primary-color) !important;
}

/* Özellik Kutuları (Feature Box) */
.feature-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
}
.feature-box:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}
.feature-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}
.feature-box strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}
.feature-box span {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.3;
    display: block;
}

/* --- LIGHTBOX (MODAL) STİLLERİ - FİNAL VERSİYON --- */

/* 1. Tıklanabilir Resim Efekti (Ana sayfadaki küçük resim için) */
.clickable-image {
    cursor: pointer !important; /* El işareti (Zorunlu) */
    transition: transform 0.3s ease;
}
.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02); /* Üzerine gelince hafifçe büyüsün */
}

/* 2. Arka Plan (Siyah Perde) - Flexbox ile Tam Ortalama */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Arka plan koyuluğu */
    backdrop-filter: blur(5px); /* Arka planı buzla */
    
    /* İŞTE TAM ORTALAMA SİHRİ BURADA: */
    align-items: center;     /* Dikey ortala */
    justify-content: center; /* Yatay ortala */
}

/* 3. Kapsayıcı (Resim + Buton Kutusu) */
.modal-wrapper {
    position: relative; /* Buton buna yapışacak */
    margin: 0; /* Eski margin ayarını sıfırladık, flexbox halledecek */
    padding: 0;
    width: auto;
    max-width: 90%; /* Mobilde taşmasın */
    max-height: 90vh; /* Ekran boyunu geçmesin */
    
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    /* Büyüme Animasyonu */
    animation: zoomIn 0.3s ease-out forwards;
}

/* 4. Resim */
.modal-content-img {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* Resim ekranı taşmasın */
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
}

/* 5. Kapatma Butonu (SAĞ ÜST KÖŞE) */
.modal-close {
    position: absolute;
    top: -20px;    /* Resmin yukarısına taş */
    right: -20px;  /* Resmin sağına taş */
    
    width: 45px;
    height: 45px;
    
    background-color: #ff0000; /* Kırmızı Arka Plan */
    color: #ffffff; /* Beyaz X */
    border: 3px solid #ffffff; /* Beyaz Çerçeve */
    border-radius: 50%; /* Tam yuvarlak */
    
    font-size: 28px;
    font-weight: bold;
    line-height: 40px; /* X işaretini dikey ortala */
    text-align: center;
    
    /* İŞTE EL İŞARETİ KODU: */
    cursor: pointer; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

/* Üzerine gelince */
.modal-close:hover {
    transform: scale(1.15) rotate(90deg); /* Büyü ve dön */
    background-color: #cc0000;
}

/* Büyüme Animasyonu */
@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; } 
    to { transform: scale(1); opacity: 1; }
}

/* Mobilde butonun taşmasını önle */
@media screen and (max-width: 600px) {
    .modal-wrapper { width: 95%; }
    .modal-close { top: -10px; right: -10px; width: 35px; height: 35px; font-size: 20px; line-height: 30px; }
}


/* --- OFİS KARTLARI STİLLERİ --- */

.branch-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    border: 2px solid transparent; /* Çerçeve için yer ayır */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Seçili olan kart (Aktif) */
.branch-card.active {
    border-color: #0d6efd; /* Mavi çerçeve */
    background-color: #f8fbff; /* Hafif mavi zemin */
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

.branch-card .icon-wrap {
    font-size: 3rem;
    margin-bottom: 20px;
}

.branch-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.branch-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 40px; /* Hizalama bozulmasın diye */
}

.branch-card .phone {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* --- OFİS KARTLARI (DÜZELTİLMİŞ VE TEMİZLENMİŞ VERSİYON) --- */

.branch-card {
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Yumuşak geçiş */
    height: 100%;
    position: relative;
    /* Varsayılan şeffaf çerçeve (Tıklanınca renk değiştirecek) */
    border: 3px solid transparent; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff; /* Varsayılan arka plan */
}

/* HOVER EFEKTİ (Üzerine gelince yukarı kalkma) */
.branch-card:hover {
    transform: translateY(-15px); /* Yukarı kalkış */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 1. BEYAZ KART (Merkez) */
.card-white {
    background: #fff;
    color: #333;
}
.card-white .display-5 { color: #0d6efd; } /* İkon rengi */

/* 2. KIRMIZI KART (Kocaeli) */
.card-red {
    background: linear-gradient(135deg, #ea513c 0%, #cf2e2e 100%);
    color: #fff;
}
/* Kırmızı kartın içindeki tüm metinleri beyaz yap */
.card-red h3, .card-red p, .card-red div, .card-red i { color: #fff !important; }

/* 3. MAVİ KART (Bursa) */
.card-blue {
    background: linear-gradient(135deg, #4f78c6 0%, #006de8 100%);
    color: #fff;
}
/* Mavi kartın içindeki tüm metinleri beyaz yap */
.card-blue h3, .card-blue p, .card-blue div, .card-blue i { color: #fff !important; }


/* --- SEÇİLİ OLMA (ACTIVE) DURUMU --- */

.branch-card.active {
    /* ÖNEMLİ: Arka plan rengini değiştirmiyoruz, sadece çerçeve ekliyoruz */
    border-color: #333; /* Seçilince etrafına koyu çerçeve at */
    transform: scale(1.02); /* Hafifçe büyüt */
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Renkli kartlar seçilince çerçevenin beyaz olması daha şık durur (Opsiyonel) */
.card-red.active, .card-blue.active {
    border-color: #fff; 
    box-shadow: 0 0 0 3px #333; /* Çift çerçeve efekti */
}


/* --- ÖZEL FİLTRELEME VE TABLO STİLLERİ (Ultrasonik Sensörler İçin) --- */

.filter-section {
    background-color: #f8f9fa; /* Açık gri zemin */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-select {
    font-size: 0.9rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

/* Tablo Stilleri */
.product-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.product-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #ddd;
    font-weight: 700;
    padding: 15px 10px;
    text-align: left;
}

.product-table td {
    vertical-align: middle;
    padding: 15px 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.product-row:hover {
    background-color: #fbfbfb;
}

.prod-img-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 2px;
}

.prod-link {
    color: #cc0000; /* Sensopart kırmızısı */
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.prod-desc-small {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    line-height: 1.3;
}

/* Hero Açıklama Alanı */
.hero-desc-box {
    border-left: 4px solid #cc0000;
    padding-left: 20px;
    margin-bottom: 30px;
}

.reset-btn {
    cursor: pointer;
    color: #cc0000;
    font-weight: 600;
    font-size: 0.85rem;
}
.reset-btn:hover { text-decoration: underline; }


/* --- 1. LİSTE (TABLO) GÖRÜNÜMÜ İÇİN AYARLAR --- */
/* (Resim 2'deki gibi teknik özellik listesi) */

/* Tablo içindeki resimleri bul ve büyüt */
#brandProductContainer table img, 
#brandProductContainer .table img {
    width: 100px !important;      /* Mobilde görülebilir netlikte bir boyut */
    min-width: 100px !important;  /* Asla sıkışmasın */
    height: auto !important;      /* Orantılı uzasın */
    object-fit: contain;
    display: block;
    margin: 0 auto;               /* Hücre içinde ortalansın */
}

/* Tablonun resim hücresini de genişletelim ki resim sığsın */
#brandProductContainer table td:first-child,
#brandProductContainer .table td:first-child {
    min-width: 130px; /* Resimden biraz daha geniş olsun */
    text-align: center;
}


/* --- 2. KART (KATEGORİ) GÖRÜNÜMÜ İÇİN DÜZELTME --- */
/* (Resim 1'deki Visor, Optik Sensörler vb. kutular) */

/* Tablo OLMAYAN resimleri (yani kartları) hedefle */
#brandProductContainer div:not(table) img {
    width: 100% !important;       /* Kartın genişliğine otursun */
    max-width: 250px !important;  /* Çok devasa olmasın, sınırlayalım */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;    /* Ortaya gelsin */
}

/* style.css - MOBİL MENÜ TAŞMA VE OK SABİTLEME ÇÖZÜMÜ */

/* 1. Tüm menü elemanlarını ekran içine hapseder (Padding taşmasını önler) */
.mobile-menu-overlay, 
.mobile-menu-content, 
.mobile-menu-content a {
    box-sizing: border-box !important;
}

/* 2. Ana kapsayıcının sağa kaymasını kesin olarak engeller */
.mobile-menu-overlay {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Sağa kaydırmayı tamamen iptal eder */
    padding-left: 15px !important; /* Kenar boşluklarını biraz daralttık */
    padding-right: 15px !important;
}

/* 3. Link satırını ekran genişliğine tam sığdırır */
.mobile-menu-content a {
    display: flex !important;
    justify-content: space-between !important; /* Yazı en sola, Ok en sağa */
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 10px !important; /* Satır aralıklarını düzenler */
    border-bottom: 1px solid #eee;
}

/* 4. İkonun görünmesi için gereken kritik Chrome Mobil ayarları */
.mobile-menu-content a i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important; /* İkonun içi boş görünmemesi için şart */
    font-size: 16px !important;
    color: #002249 !important;
    flex-shrink: 0; /* Okun sıkışıp kaybolmasını önler */
    transition: transform 0.3s ease;
}

/* style.css - Yatay kaymayı tamamen engelle */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    /* Mobil cihazlarda "çekince gelme" (overscroll) etkisini kapatır */
    overscroll-behavior-x: none; 
}

.mobile-menu-overlay {
    /* Menü içindeki yatay kaymayı kesin olarak kapatır */
    overflow-x: hidden !important; 
    /* Menünün ekranı tam kapladığından emin olur */
    width: 100vw !important;
    left: 0 !important;
}


/* style.css - Mobil Sayfalama Alt Satıra Geçme Ayarı */
.visor-pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.visor-pagination-wrapper .pagination {
    display: flex;
    flex-wrap: wrap; /* Numaraların alt satıra geçmesini sağlar */
    justify-content: center;
    gap: 5px; /* Numaralar arasındaki boşluk */
}

.visor-pagination-wrapper .page-item {
    margin: 2px 0; /* Satırlar arası dikey boşluk */
}

/* Mobil için buton boyutlarını optimize et */
@media (max-width: 768px) {
    .visor-pagination-wrapper .page-link {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border: 1px solid #dee2e6 !important; /* Kenarlıkları belirginleştir */
        border-radius: 4px !important;
    }
}

/* --- GELİŞMİŞ KATEGORİ KARTI EFEKTLERİ --- */

/* 1. Kartın Temel Ayarları */
.category-card {
    position: relative; /* Işık efekti için gerekli */
    overflow: hidden;   /* Hem ışığın hem de büyüyen resmin köşelerden taşmaması için */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Daha yumuşak bir geçiş efekti */
    /* Performans için tarayıcıya ipucu verelim */
    will-change: transform, box-shadow;
}

/* 2. Görsel Kapsayıcısı Ayarları */
/* Resim büyüdüğünde bu çerçevenin dışına taşmamalı */
.category-card .card-img-top {
    overflow: hidden;
}

/* 3. Görselin Kendisi için Temel Ayarlar */
.category-card .card-img-top img {
    transition: transform 0.5s ease; /* Karttan biraz daha yavaş büyüsün, derinlik hissi verir */
    will-change: transform;
}

/* 4. Işık Efekti (Pseudo-element) */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Başlangıçta solda, görünmez alanda */
    width: 50%;  /* Işık huzmesinin genişliği */
    height: 100%;
    /* Şeffaf -> Beyaz -> Şeffaf geçişli bir ışık huzmesi */
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    /* Işığı hafif eğimli yapalım */
    transform: skewX(-25deg);
    z-index: 2; /* Resmin üzerinde görünsün */
    transition: all 0.75s ease-in-out; /* Kayma hızı */
}

/* --- HOVER (ÜZERİNE GELİNCE) DURUMLARI --- */

/* Kartın Yükselmesi ve Gölgesi */
.category-card:hover {
    transform: translateY(-8px); /* Biraz daha belirgin yükselme */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; /* Daha yumuşak ve geniş gölge */
}

/* Görselin Büyümesi (Zoom) */
.category-card:hover .card-img-top img {
    transform: scale(1.12); /* %12 büyüme oranı */
}

/* Işık Efektinin Hareketi */
.category-card:hover::before {
    left: 125%; /* Soldan sağa doğru kayarak kaybolsun */
}




/* --- FOOTER DÜZENLEME --- */
footer {
    background-color: #05162e !important; /* Kurumsal lacivert arka plan */
    padding: 30px 0;
}

footer .border-top {
    border: none !important; /* BEYAZ ÇİZGİ TAMAMEN SİLİNDİ */
}

footer p {
    color: #ffffff !important; /* Yazılar tamamen beyaz hale getirildi */
    opacity: 0.9;
}

/* --- YUKARI ÇIK BUTONU (KURUMSAL MAVİ/LACİVERT) --- */
#scrollTopBtn {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #007bff; /* Görseldeki mavi tonu */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Tam yuvarlak yapı */
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #05162e; /* Hover durumunda koyu lacivert */
    transform: translateY(-5px);
}









