/* =================================================================== */
/* TEMEL SAYFA VE BOOTSTRAP AYARLARI (GÜVENLİ - DOKUNULMADI)          */
/* =================================================================== */

body {
    font-family: 'Lato', sans-serif;
    padding-top: 75px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}


:root {
    --bs-primary: #005A9C;
    --bs-primary-rgb: 0, 90, 156;
    --bs-body-color: #343a40;
    --bs-body-bg: #f8f9fa;
    --bs-light: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-light {
    background-color: #ffffff !important;
    border: 1px solid #e9ecef;
}

.rounded.shadow,
.bg-light.p-5.my-5.rounded {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.btn {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* İkonları Orantılı Daire İçine Alan Esnek Stil */
.icon-daire {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Sabit ölçüler yerine, font boyutuna göre orantılı boşluk ve oran */
    padding: 0.7em; 
    aspect-ratio: 1 / 1; /* Genişlik ve yüksekliğin her zaman eşit olmasını sağlar */
}

.row.my-5 {
    margin-top: 6rem !important;
    margin-bottom: 6rem !important;
}

.hero-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* h1.display-4 {
    font-size: 3.5rem;
} */

p.lead {
    font-size: 1.25rem;
    color: #6c757d;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}


/* =================================================================== */
/* DİNAMİK VİTRİN STİLLERİ                                             */
/* Bu kısmın nasıl çalıştığını anlamak için customCss_Not.txt'i oku    */
/* =================================================================== */

.metin-fader {
    position: relative;
    min-height: 2.25rem;
}

.image-fader {
    position: relative;
    aspect-ratio: 16 / 7;
    max-height: 500px;
    overflow: hidden; 
}

/* === TEMEL KURALLAR === */
.image-fader img,
.metin-blogu {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    animation-duration: 36s;
    animation-iteration-count: infinite;
}

.image-fader img {
    object-fit: cover;
}

.vitrin-aciklama .h5 { color: #6c757d; font-size: 1.1rem; }
.vitrin-aciklama a { color: var(--bs-primary); }


/* === ANİMASYON TARİFLERİ (@keyframes) === */
/* Birim Zaman (6s) = 16.66% */

/* 1. ANİMASYON: İlk resim   */
@keyframes firstImage_Final {
    0%      { opacity: 1; visibility: visible; transform: scale(1.03) translate(0, 0); }
    8%      { opacity: 1; visibility: visible; transform: scale(1.03) translate(0, 0); } 
    8.5%    { opacity: 0; transform: scale(1.03) translate(-10px, 5px); }
    9%      { opacity: 1; transform: scale(1.03) translate(10px, -5px); }
    9.5%    { opacity: 0; transform: scale(1.03) translate(-5px, 10px); }
    10%     { opacity: 0; transform: scale(1.03) translate(0, 0); }
    16.66%  { opacity: 0; visibility: hidden; }
    100%    { opacity: 0; visibility: hidden; }
}

/* 2. ANİMASYON: İkinci Resim  */
@keyframes secondImage_ZoomingOut { 
    0%, 8.4% { opacity: 0; visibility: hidden; }
    /* Glitch sonunda resim 1.03 büyük olarak belirir */
    8.5%    { opacity: 1; transform: scale(1.03) translate(5px, -5px); }
    9%      { opacity: 0; }
    9.5%    { opacity: 1; transform: scale(1.03) translate(0, 0); }
    /* Kalan sürede 1.03'ten 1.06'ya doğru büyür.   */
    15.66%  { opacity: 1; visibility: visible; transform: scale(1.06); }
    /* Ve bu büyümüş haldeyken kaybolur            */
    16.66%  { opacity: 0; visibility: hidden; transform: scale(1.06); }
    100%    { opacity: 0; visibility: hidden; }
}

/* 3. ANİMASYON: Diğer Resimler */
@keyframes imageCycle_KenBurns { 
    0% { opacity: 0; visibility: hidden; transform: scale(1.0); }
    1% { opacity: 1; visibility: visible; transform: scale(1.0); }
    15.66% { opacity: 1; visibility: visible; transform: scale(1.03); }
    16.66% { opacity: 0; visibility: hidden; transform: scale(1.03); }
    100% { opacity: 0; visibility: hidden; }
}

/* YAZI ANİMASYONLARI */
@keyframes textStay { 
    0% { opacity: 1; visibility: visible; }
    15.66% { opacity: 1; }
    16.66% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}
@keyframes textCycle { 
    0% { opacity: 0; visibility: hidden; }
    1% { opacity: 1; visibility: visible; }
    15.66% { opacity: 1; visibility: visible; }
    16.66% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}


/* === ANİMASYON ATAMA VE SENKRONİZASYON === */

.image-fader img:first-child { animation-name: firstImage_Final; opacity: 1; visibility: visible; }
.image-fader img:nth-child(2) { animation-name: secondImage_ZoomingOut; }
.image-fader img:nth-child(n+3) { animation-name: imageCycle_KenBurns; }

.metin-fader .metin-blogu:first-child { animation-name: textStay; opacity: 1; visibility: visible; }
.metin-fader .metin-blogu:nth-child(2) { display: none; }
.metin-fader .metin-blogu:nth-child(n+3) { animation-name: textCycle; } 

/* Gecikmeler */
.image-fader img:nth-child(2), .metin-fader .metin-blogu:nth-child(2) { animation-delay: 0s; }
.image-fader img:nth-child(3), .metin-fader .metin-blogu:nth-child(3) { animation-delay: 6s; }
.image-fader img:nth-child(4), .metin-fader .metin-blogu:nth-child(4) { animation-delay: 12s; }
.image-fader img:nth-child(5), .metin-fader .metin-blogu:nth-child(5) { animation-delay: 18s; }
.image-fader img:nth-child(6), .metin-fader .metin-blogu:nth-child(6) { animation-delay: 24s; }
.image-fader img:nth-child(7), .metin-fader .metin-blogu:nth-child(7) { animation-delay: 30s; }

/* =================================================================== */
/* HİZMETLER CAROUSEL AYARLARI                                         */
/* =================================================================== */

#hizmetlerCarousel .carousel-control-prev-icon,
#hizmetlerCarousel .carousel-control-next-icon {
    /* Varsayılan beyaz SVG ikonunu siyaha çevirir */
    filter: invert(1);
}

#hizmetlerCarousel .carousel-control-prev {
    left: -15px; /* Oku çerçevenin biraz dışına taşı */
}

#hizmetlerCarousel .carousel-control-next {
    right: -15px; /* Oku çerçevenin biraz dışına taşı */
}

/* =================================================================== */
/* İLETİŞİM SAYFASI STİLLERİ                                           */
/* =================================================================== */

/* Çoktan seçmeli hizmet kutularının mobil cihazlarda taşmasını engeller */
.hizmet-secenekleri {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem; /* Dikey ve yatay boşluk */
}
.form-check-inline {
    margin-right: 0; /* Bootstrap'in varsayılanını sıfırla, gap kullan */
}

/* "İletişim Sonrası Süreç" bölümü için numaralı liste stili */
.surec-listesi {
    list-style: none;
    padding-left: 0;
    counter-reset: surec-counter;
}

.surec-listesi li {
    counter-increment: surec-counter;
    display: flex;
    align-items: flex-start; /* Numarayı metnin üstüne hizala */
    margin-bottom: 1.25rem;
}

.surec-listesi li::before {
    content: counter(surec-counter);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    
    /* Numarayı yuvarlak içine al */
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    
    /* Numarayı ortala */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Metinle arasına boşluk koy */
    margin-right: 1rem;
    flex-shrink: 0; /* Küçülmesini engelle */
}
.zorunlu-isaret {
    color: var(--bs-primary); /* Ana rengimizi kullanır */
    font-weight: 700;
    margin-left: 2px;
}
/* =================================================================== */
/* FORM GÖNDERİMİ YÜKLEME EKRANI                                       */
/* =================================================================== */

#loading-overlay {
    display: none; /* Sayfa ilk yüklendiğinde gizli */
    position: fixed; /* Sayfayı tamamen kaplaması için */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Arkadaki içeriği hafifçe karartır */
    z-index: 1060; /* Navbar dahil her şeyin üzerinde olmasını sağlar */

    /* İçeriği (spinner ve metin) dikey/yatay ortalamak için */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Spinner'ı biraz daha büyük ve belirgin yapalım */
#loading-overlay .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
}


/* ---- Mini Nav (pill) modern görünüm ---- */
.dfr-chips { gap: .5rem; flex-wrap: wrap; }
.dfr-chips .chip {
  --chip-bg: #fff;
  --chip-border: #ced4da;
  --chip-text: #343a40;
  --chip-bg-hover: #f8f9fa;
  --chip-border-hover: #868e96;
  --chip-bg-active: #f1f3f5;
  --chip-border-active: #212529;

  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.dfr-chips .chip:hover {
  background: var(--chip-bg-hover);
  border-color: var(--chip-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.dfr-chips .chip:focus-visible { outline: 2px solid rgba(33,37,41,.25); outline-offset: 2px; }
.dfr-chips .chip.active { background: var(--chip-bg-active); border-color: var(--chip-border-active); color: #212529; }

.dfr-chips .chip .bi { font-size: 1rem; }
.dfr-chips .chip .chev { opacity: 0; transform: translateX(-3px); transition: all .15s ease; }
.dfr-chips .chip:hover .chev { opacity: 1; transform: translateX(0); }

/* SVG ikonlar: gri çizgi, dolgusuz */
.dfr-chips .chip .icon {
  width: 1.05rem; height: 1.05rem;
  stroke: currentColor; fill: none; stroke-width: 1.75; vector-effect: non-scaling-stroke;
}

/* Anchor atlama offset (sabit navbar) */
section[id] { scroll-margin-top: 90px; }

/* Akıcı kaydırma (opsiyon) */
html { scroll-behavior: smooth; }


/* Örnek rapor butonu için css */
.alert-clickable { cursor: pointer; transition: box-shadow .15s ease, transform .05s ease; }
.alert-clickable:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }

/* Üst menüdeki TÜM metinler seçilemesin */
.navbar {
  user-select: none;
  -webkit-user-select: none; /* Safari/iOS */
  -moz-user-select: none;    /* Firefox */
}

/* (İsteğe bağlı) iOS seç-tap parıltısını da kapatmak istersen: */
.navbar * {
  -webkit-tap-highlight-color: transparent;
}

.btn.rounded-pill { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn.rounded-pill:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); border-color:#6c757d; }

/* İki butonun genişliğini en uzun olana eşitle (JS'siz) */
.cta-equal-grid{
  display: grid;
  grid-auto-flow: column;   /* iki sütun */
  grid-auto-columns: 1fr;   /* eşit pay; max-content modunda ikisi de en uzun kadar olur */
  gap: 12px;
  width: max-content;       /* kapsayıcı, içerik kadar genişler -> eşitleme çalışır */
  margin-inline: auto;      /* ortala */
}
.cta-equal-grid > a{ white-space: nowrap; } /* metin kırılmasın */

/* Mobilde alt alta; genişlik yine en uzun buton kadar kalır */
@media (max-width: 576px){
  .cta-equal-grid{ grid-auto-flow: row; }   /* tek sütun, iki satır */
}


