/* --- DEĞİŞKENLER VE TEMEL AYARLAR --- */
:root {
    --bs-primary-rgb: 36, 74, 120;
    --bs-primary: #204881;
    --bs-link-hover-color: #224abe;
    --section-title-border: #dddfeb;
    --card-hover-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --card-border-color: #e3e6f0;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #03070c;
    --bs-body-color: #03070c;
    --bs-tertiary-bg: #2c3034;
    --section-title-border: #03070c;
    --card-border-color: #03070c;
    --bs-primary-rgb: 36, 74, 129;
    --bs-primary: #204881;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- NAVBAR VE LOGO AYARI --- */
.navbar-brand img {
    transition: opacity 0.3s ease;
}
[data-bs-theme="light"] .logo-dark,
[data-bs-theme="dark"] .logo-light {
    display: none;
}
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch-wrapper .form-check-input {
    margin: 0 0.5rem;
}

/* Dropdown menu fixes */
.navbar {
    position: relative;
    z-index: 1035;
}
.navbar .dropdown {
    position: static; /* This allows mega menu to be positioned relative to navbar */
}
.dropdown-menu.show {
    display: block !important;
}

/* --- ANA SAYFA SLIDER --- */
.main-slider {
    height: 80vh;
    color: #fff;
}
.swiper-slide {
    background-size: cover;
    width: 100%!important;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.slider-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
}

/* --- BÖLÜM BAŞLIKLARI --- */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.section-title span {
    background-color: var(--bs-body-bg);
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.section-title:before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--bs-primary);
}
.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--section-title-border);
}


/* --- KARTLAR (Hizmet/Ürün) --- */
.service-card, .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: var(--card-border-color);
}
.service-card:hover, .product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}
.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--card-border-color);
}

/* --- KAYAN İLETİŞİM BARI (Masaüstü) --- */
.floating-contact-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1040;
    transition: all 0.3s ease;
}
.floating-contact-bar .bar-content {
    display: flex;
    align-items: center;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    overflow: hidden;
    width: 60px; /* Sadece ikon görünecek */
    height: 60px;
    transition: all 0.3s ease-in-out;
}
.floating-contact-bar:hover .bar-content {
    width: 300px; /* Genişleyecek */
}
.floating-contact-bar .icon-wrapper {
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.floating-contact-bar .details {
    padding: 0 20px 0 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s 0.2s; /* Genişleme bittikten sonra belirsin */
}
.floating-contact-bar:hover .details {
    opacity: 1;
}
.floating-contact-bar .details p {
    margin-bottom: 0.5rem;
}

/* --- MOBİL ALT BAR --- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bs-tertiary-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1040;
}
.mobile-bottom-bar .bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.8rem;
}
.mobile-bottom-bar .bar-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* --- REFERANS TOAST (Pop-up) --- */
#referenceToast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1055;
    min-width: 250px;
    transition: opacity 0.5s, transform 0.5s;
}
#referenceToast.hide {
    opacity: 0;
    transform: translateY(20px);
}
#referenceToast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-header {
    background-color: var(--bs-primary);
    color: white;
}
.toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- İLETİŞİM SAYFASI LİSTE --- */
.contact-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-info-list i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: var(--bs-primary);
    margin-right: 15px;
}

/* Masaüstü Alt İletişim Barı */
.desktop-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212529; /* Koyu arkaplan */
    padding: 1.5rem 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1045;
    color: #fff;
}

.desktop-bottom-bar .bar-cta h4 {
    font-weight: 600;
}

.desktop-bottom-bar .bar-cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.desktop-bottom-bar .bar-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    height: 50px;
}

.desktop-bottom-bar .bar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.desktop-bottom-bar .bar-form .form-check-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.desktop-bottom-bar .btn-cta {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
}
a {
  color: inherit;           /* Bulunduğu yerin metin rengini kullanır */
  text-decoration: none;    /* Altı çizili olmasın */
}

a:hover,
a:focus,
a:active {
  color: inherit;           /* Üzerine gelince de rengi değişmesin */
  text-decoration: none;    /* Altı çizili olmasın */
}

#mainNav a{
font-weight: 400;}

p{
letter-spacing: -0.01em;!important;
line-height: 1.4!important;

}

#textslide {
    /* Yatayda ekranı tamamen kaplamasını sağlar */
    width: width: 100vw;

    display: flex;
    justify-content:space-around;
    align-items: center;
}

#textslide h1 {
    /* Bootstrap'in varsayılan h1 margin'ini sıfırlayarak hizalamayı düzeltir */
    margin: 0;
    font-size:12.06vw;
    margin:0px;
    letter-spacing: -0.06em; /* Harfler arasındaki boşluğu azaltır */
    font-weight: bold;
    color:#0c1a2d;
    padding:0!important;
    text-align:center;
}

/* GSAP'nin transform uygulayabilmesi için span'ların blok olarak davranması faydalı olabilir */
#textslide span {
    display: inline-block;
    padding: 0 0.2em; /* Kelimeler arasına hafif boşluk */
}
.btn-gri{
background-color: #e7e4e3!important;
color:black;
  }


 .bg-gri{
 background-color:#e7e4e3!important;
 }

 .bg-koyu{
 background-color: #1f4781!important;
 }

.text-koyu{
color: #2b4383!important;}
 }
 .text-dark{
 color:#1f4781!important;
 }

 /* ========================================= */
/* MEGA MENÜ DÜZELTMELERİ           */
/* ========================================= */

/* 1. ADIM: Mega menünün genişlemesine izin vermek için kapsayıcı 'li' elementinin pozisyonunu sıfırlıyoruz.
Bu, açılan menünün kendini sayfanın tamamına göre konumlandırmasını sağlar. */
.navbar-expand-lg .navbar-nav .dropdown {
    position: static;
}

/* 2. ADIM: Mega menünün kendisini tam genişlik yapıyoruz.
'left: 0' ve 'width: 100%' komutlarıyla navbar'ı tamamen kaplamasını sağlıyoruz. */
.navbar .dropdown-menu.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 0; /* Navbar ile arasındaki varsayılan boşluğu kaldırır */
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0; /* İsteğe bağlı: Köşeleri sıfırlar */
    border-top: 1px solid #dee2e6; /* Üstte ince bir ayırıcı çizgi */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1030; /* Ensure it appears above other elements */
}

/* 3. ADIM: Ürünler menüsündeki başlık stillerini belirliyoruz. */
.mega-menu-title {
    font-weight: 600;
    color: #343a40;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 2px solid #0d6efd; /* Sitenizin ana rengiyle değiştirebilirsiniz */
}

/* 4. ADIM: Alt kategori linklerinin stillerini düzenliyoruz. */
.mega-menu .list-unstyled li a {
    text-decoration: none;
    color: #495057;
    padding: 6px 0;
    display: block;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

/* Üzerine gelince renk değiştirip hafifçe sağa kaymasını sağlıyoruz. */
.mega-menu .list-unstyled li a:hover {
    color: #0d6efd; /* Sitenizin ana rengiyle değiştirebilirsiniz */
    padding-left: 5px;
}

/* 5. ADIM: Menüdeki resimlerin düzgün görünmesini sağlıyoruz. */
.mega-menu img {
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

    .projenav img {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.projenav img:hover {
  filter: grayscale(0%);
}