/* Kardelen kurumsal site: slider, logodaki yaprakların animasyonu ve kayarken beliren öğeler.
   "Hareketi azalt" ayarı bilerek yok sayılır (kullanıcı kararı: mağazadaki slider gibi her bilgisayarda hareket etsin). */

/* ===================== Kardelen yaprakları (logodaki simge, 4 ayrı katman) ===================== */
.yapraklar { position: relative; width: 100%; aspect-ratio: 433 / 545; }
.yapraklar img { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 60% 88%; }
/* Açılışta yapraklar sırayla filizlenir, sonra hafifçe salınır */
.yapraklar.canli img { opacity: 0; animation: filizlen 1.1s cubic-bezier(.2,.9,.25,1.25) forwards, salin 7s ease-in-out infinite; }
.yapraklar.canli .y2 { animation-delay: .15s, 1.4s; }
.yapraklar.canli .y4 { animation-delay: .35s, 2.2s; }
.yapraklar.canli .y3 { animation-delay: .6s, .9s; }
.yapraklar.canli .y1 { animation-delay: .85s, 1.8s; }
@keyframes filizlen { from { opacity: 0; transform: scale(.15) rotate(-28deg); } to { opacity: 1; transform: none; } }
@keyframes salin { 0%, 100% { rotate: 0deg; } 50% { rotate: 2.6deg; } }

/* ===================== Ana sayfa slider ===================== */
.slider { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); isolation: isolate; }
.slider-zemin { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }
.slider-zemin::before { content: ""; position: absolute; inset: 0; background: url("../img/bg-pattern.png") center / cover; opacity: .06; }
/* Ağır ağır kayan ışık lekeleri */
.leke { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: leke 18s ease-in-out infinite alternate; }
.leke.l1 { width: 520px; height: 520px; background: #24497f; top: -160px; right: 8%; }
.leke.l2 { width: 420px; height: 420px; background: #1d5aa6; bottom: -200px; left: 20%; opacity: .35; animation-duration: 22s; }
.leke.l3 { width: 300px; height: 300px; background: #a9c1e6; top: 30%; right: 30%; opacity: .12; animation-duration: 26s; }
@keyframes leke { to { transform: translate(-80px, 60px) scale(1.15); } }
.slider > .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; min-height: 620px; padding-block: 56px 130px; }
.slaytlar { position: relative; display: grid; }
.slayt { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; visibility: hidden; }
.slayt.aktif { visibility: visible; }
.slayt > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.slayt.aktif > * { opacity: 1; transform: none; }
.slayt.aktif > :nth-child(2) { transition-delay: .12s; }
.slayt.aktif > :nth-child(3) { transition-delay: .24s; }
.slayt.aktif > :nth-child(4) { transition-delay: .36s; }
.slayt .ust-baslik { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; letter-spacing: .05em; color: var(--ice); }
.slayt .ust-baslik::before { content: ""; width: 34px; height: 2px; background: var(--ice); }
.slayt h1, .slayt h2 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); font-weight: 600; letter-spacing: -.015em; margin: 18px 0; line-height: 1.15; }
.slayt p { font-size: 17px; color: #c9d6ea; max-width: 32em; }
.slayt .dugmeler { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.slider-gorsel { position: relative; justify-self: center; width: min(380px, 100%); }
.slider-gorsel .halka { position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(169,193,230,.18); animation: don 40s linear infinite; }
.slider-gorsel .halka::before { content: ""; position: absolute; top: 8%; left: 14%; width: 10px; height: 10px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 18px var(--ice); }
.slider-gorsel .halka.h2 { inset: -2%; border-style: dashed; border-color: rgba(169,193,230,.14); animation-duration: 60s; animation-direction: reverse; }
.slider-gorsel .halka.h2::before { top: auto; bottom: 10%; left: auto; right: 6%; width: 7px; height: 7px; background: #fff; }
@keyframes don { to { transform: rotate(360deg); } }
/* Slayt değişince simge hafifçe döner */
.slider-gorsel .yapraklar { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.slider[data-slayt="1"] .slider-gorsel .yapraklar { transform: rotate(-6deg) scale(.96); }
.slider[data-slayt="2"] .slider-gorsel .yapraklar { transform: rotate(5deg) scale(1.03); }
.slider[data-slayt="3"] .slider-gorsel .yapraklar { transform: rotate(-3deg) scale(.99); }
/* Denetimler: ilerleme çubuklu noktalar, sayaç ve oklar */
.slider-denetim { position: absolute; left: 0; right: 0; bottom: 70px; }
.slider-denetim .wrap { display: flex; align-items: center; gap: 18px; }
.noktalar { display: flex; gap: 10px; }
.noktalar button { position: relative; width: 54px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; }
.noktalar button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.noktalar button i { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; border-radius: 3px; background: #fff; }
.noktalar button[aria-current="true"] i { animation: dolum var(--sure, 6.5s) linear forwards; }
.slider.durdu .noktalar button[aria-current="true"] i { animation-play-state: paused; }
@keyframes dolum { to { width: 100%; } }
.sayac-yazi { font-size: 13px; color: #a9b9d4; font-variant-numeric: tabular-nums; }
.sayac-yazi b { color: #fff; font-weight: 600; }
.oklar { display: flex; gap: 8px; margin-left: auto; }
.oklar button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.oklar button:hover { background: rgba(255,255,255,.16); }
.oklar svg { width: 18px; height: 18px; }

/* Slider altı: güçlü yönler şeridi */
.gucler { position: relative; z-index: 2; margin-top: -44px; }
.gucler-kart { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(12,28,54,.14); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gucler-kart > div { display: flex; gap: 14px; align-items: center; padding: 26px 22px; }
.gucler-kart > div + div { border-left: 1px solid var(--line); }
.gucler-kart .ilke-ikon { flex: none; margin: 0; width: 48px; height: 48px; transition: transform .3s, background .3s, color .3s; }
.gucler-kart > div:hover .ilke-ikon { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: #fff; }
.gucler-kart b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.gucler-kart span { font-size: 13px; color: var(--muted); }

/* Hakkımızda bloğu: yaprak simgesi + yüzen rozetler + metin */
.tanitim { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.tanitim-gorsel { position: relative; padding: 48px 40px; border-radius: 24px; background: linear-gradient(160deg, var(--ice-soft), #f8fafd); }
.tanitim-gorsel .yapraklar { width: 66%; margin: 0 auto; }
.rozet-kart { position: absolute; right: -18px; bottom: 28px; background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(12,28,54,.14); padding: 12px 16px; display: flex; gap: 12px; align-items: center; animation: yuz 5s ease-in-out infinite; }
.rozet-kart.r2 { right: auto; left: -18px; bottom: auto; top: 30px; animation-delay: -2.5s; }
.rozet-kart .ilke-ikon { margin: 0; width: 38px; height: 38px; }
.rozet-kart .ilke-ikon svg { width: 20px; height: 20px; }
.rozet-kart b { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.rozet-kart span { font-size: 12px; color: var(--muted); }
@keyframes yuz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.liste-tik { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.liste-tik li { display: flex; gap: 12px; align-items: flex-start; }
.liste-tik li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--ice-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Süreç zaman çizelgesi: görününce çizgi soldan sağa dolar, duraklar sırayla yanar */
.surec { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.surec::before, .surec::after { content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.surec::after { background: var(--navy); right: auto; width: 0; transition: width 1.6s cubic-bezier(.4,0,.2,1) .2s; }
.surec.gorundu::after { width: 75%; }
.surec li { position: relative; text-align: center; padding: 0 6px; }
.surec .nokta { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--navy); display: grid; place-items: center; transition: border-color .4s, background .4s, color .4s; }
.surec .nokta svg { width: 26px; height: 26px; }
.surec.gorundu .nokta { border-color: var(--navy); background: var(--navy); color: #fff; }
.surec.gorundu li:nth-child(1) .nokta { transition-delay: .2s; }
.surec.gorundu li:nth-child(2) .nokta { transition-delay: .7s; }
.surec.gorundu li:nth-child(3) .nokta { transition-delay: 1.2s; }
.surec.gorundu li:nth-child(4) .nokta { transition-delay: 1.7s; }
.surec h3 { font-size: 16.5px; margin-bottom: 6px; }
.surec p { font-size: 14px; color: var(--muted); }

/* Kayarken beliren öğeler (--g: gecikme) */
.anim { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--g, 0s); }
.anim.sol { transform: translateX(-36px); }
.anim.sag { transform: translateX(36px); }
.anim.olcek { transform: scale(.94); }
.anim.gorundu { opacity: 1; transform: none; }
.js-yok .anim { opacity: 1; transform: none; }
/* Yandan kayarak gelen öğeler ekran dışındayken sayfa yana kaymasın */
main { overflow-x: clip; }
@supports not (overflow: clip) { main { overflow-x: hidden; } }
.ilke, .hizmet, .deger, .grup { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s, opacity .8s ease; }
.anim.gorundu.ilke:hover, .anim.gorundu.hizmet:hover, .anim.gorundu.deger:hover, .anim.gorundu.grup:hover,
.ilke:not(.anim):hover, .hizmet:not(.anim):hover, .deger:not(.anim):hover, .grup:not(.anim):hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(12,28,54,.10); border-color: var(--ice); }
.ilke .ilke-ikon, .grup .ilke-ikon, .hizmet .ilke-ikon, .deger .ilke-ikon { transition: transform .35s, background .3s, color .3s; }
.ilke:hover .ilke-ikon, .grup:hover .ilke-ikon, .hizmet:hover .ilke-ikon, .deger:hover .ilke-ikon { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: #fff; }

/* İç sayfa bandındaki logo simgesi */
.sayfa-bas .simge-iz { position: absolute; right: 6%; top: 50%; width: 130px; margin-top: -82px; opacity: .16; animation: yuz 7s ease-in-out infinite; pointer-events: none; }

@media (max-width: 1080px) {
  .gucler-kart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gucler-kart > div:nth-child(3) { border-left: 0; }
  .gucler-kart > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .slider > .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 48px 150px; gap: 0; }
  .slider-denetim { bottom: 70px; }
  .slider-gorsel { position: absolute; right: -50px; top: 30px; width: 230px; opacity: .2; pointer-events: none; }
  .slider-gorsel .halka { display: none; }
  .tanitim { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tanitim-gorsel { max-width: 440px; width: 100%; justify-self: center; }
  .surec { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .surec::before, .surec::after { display: none; }
  .sayfa-bas .simge-iz { width: 90px; right: 3%; margin-top: -57px; }
}
@media (max-width: 640px) {
  .slayt p { font-size: 15.5px; }
  .slayt .dugmeler .btn { flex: 1 1 auto; }
  .slider-denetim { bottom: 66px; }
  .noktalar { gap: 6px; }
  .noktalar button { width: 34px; }
  .oklar button { width: 40px; height: 40px; }
  .gucler-kart { grid-template-columns: minmax(0, 1fr); }
  .gucler-kart > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .gucler-kart > div { padding: 18px; }
  .rozet-kart { right: 8px; }
  .rozet-kart.r2 { left: 8px; }
  .surec { grid-template-columns: minmax(0, 1fr); }
}
