/*
 * Ana sayfa ince ayarları.
 * 1) "Rakamlarla Çukurova Silo": aynı düzen, daha kırmızı zemin.
 * 2) Ürün grupları şeridi: başlık, otomatik kayma ilerleme çizgisi ve kart efektleri.
 */

/* ------------------------------------------------------------- Rakamlar */
.csi-home-v6 .csi-v7-stats,
.csi-v7-stats {
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(232, 30, 36, .55) 0%, rgba(232, 30, 36, 0) 55%),
    radial-gradient(70% 120% at 100% 100%, rgba(150, 10, 16, .55) 0%, rgba(150, 10, 16, 0) 60%),
    linear-gradient(135deg, #5a0a0e 0%, #3a070a 45%, #1d0608 100%) !important;
}
.csi-v7-stats .csi-v6-overline { color: #ff9a9d !important; }
.csi-v7-stats .csi-v8-stats .csi-v7-stat { border-left-color: rgba(255, 255, 255, .16) !important; }
.csi-v7-stats .csi-v8-stats .csi-v7-stat:hover { background: rgba(255, 255, 255, .07) !important; }
.csi-v7-stats .csi-v8-stats .csi-v7-stat::before { background: #fff !important; }
.csi-v7-stats .csi-v8-stats .csi-v7-stat:hover .csi-v7-stat-icon { color: #fff !important; border-color: rgba(255, 255, 255, .5) !important; background: rgba(255, 255, 255, .1) !important; }
.csi-v7-stats .csi-v8-rule { background: rgba(255, 255, 255, .35) !important; }
.csi-v7-stats-intro::before { background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%) !important; }

/* ------------------------------------------------------- Ürün grupları */
.csi-v6-categories .csi-v6-section-head { margin-bottom: 26px; }

/* Görseller yavaşça nefes alır; kart üzerine gelince yakınlaşır */
.csi-v6-category-card figure img {
  animation: csiKenBurns 14s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
  will-change: transform;
}
.csi-v6-category-card:nth-child(2n) figure img { animation-delay: -5s; transform-origin: 40% 40%; }
.csi-v6-category-card:nth-child(3n) figure img { animation-delay: -9s; }
@keyframes csiKenBurns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.csi-v6-category-card { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .csi-v6-category-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(120, 8, 12, .28); }
  .csi-v6-category-card:hover figure img { animation-play-state: paused; }
  .csi-v6-category-card:hover .csi-v6-category-content > i { background: #d7161b; border-color: #d7161b; color: #fff; transform: rotate(45deg); }
}
.csi-v6-category-content > i { transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .35s ease; }

/* Kayma sonrası öne gelen kartta ışık süpürmesi ve kırmızı alt çizgi */
.csi-v6-category-card::after {
  content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 48%, rgba(255,255,255,0) 66%);
  transform: translateX(-120%);
}
.csi-v6-category-card::before {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: #d7161b;
  transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.csi-v6-category-card.is-lit::after { animation: csiSweep 1.1s ease-out; }
.csi-v6-category-card.is-lit::before { transform: scaleX(1); }
@keyframes csiSweep { to { transform: translateX(120%); } }

/* Otomatik kayma ilerleme çizgisi */
.csi-x-rail-progress { position: relative; height: 3px; margin-top: 22px; border-radius: 3px; background: rgba(17, 24, 39, .08); overflow: hidden; }
.csi-x-rail-progress i { position: absolute; inset: 0; background: #d7161b; transform: scaleX(0); transform-origin: left; }
.csi-x-rail-progress.is-running i { animation: csiRailProgress var(--csi-rail-wait, 5000ms) linear forwards; }
@keyframes csiRailProgress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .csi-v6-category-card figure img { animation: none; }
  .csi-v6-category-card.is-lit::after { animation: none; }
  .csi-x-rail-progress { display: none; }
}

/* Görseli olmayan grup kartları da diğerleri gibi kırmızı tonlu görünsün */
.csi-v6-category-card.is-placeholder { background: linear-gradient(165deg, #8a0d12 0%, #3b070a 55%, #160506 100%); }
.csi-v6-category-card.is-placeholder figure img { filter: grayscale(1) invert(1) brightness(1.4); mix-blend-mode: screen; opacity: .16; }

/* =====================================================================
 * Proje vitrini (ana sayfa · Projeler bölümü)
 * Solda büyük sahne, sağda numaralı liste; tüm içerik kapsayıcının içinde.
 * ===================================================================== */
.csi-x-showcase { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 18px; height: clamp(420px, 38vw, 540px); }
.csi-x-stage { position: relative; overflow: hidden; border-radius: 18px; background: #14171b; isolation: isolate; box-shadow: 0 24px 50px -28px rgba(15, 18, 22, .55); }
.csi-x-slide { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.csi-x-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.csi-x-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s cubic-bezier(.2, .6, .2, 1); }
.csi-x-slide.is-active img { transform: scale(1); }
.csi-x-slide-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 15, .05) 0%, rgba(10, 12, 15, .12) 38%, rgba(10, 12, 15, .82) 100%), linear-gradient(90deg, rgba(10, 12, 15, .45) 0%, rgba(10, 12, 15, 0) 60%); }
.csi-x-slide-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 34px 36px 32px; }
.csi-x-slide-copy > * { transform: translateY(14px); opacity: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; }
.csi-x-slide.is-active .csi-x-slide-copy > * { transform: none; opacity: 1; }
.csi-x-slide.is-active .csi-x-slide-copy > *:nth-child(2) { transition-delay: .08s; }
.csi-x-slide.is-active .csi-x-slide-copy > *:nth-child(3) { transition-delay: .16s; }
.csi-x-slide.is-active .csi-x-slide-copy > *:nth-child(4) { transition-delay: .24s; }
.csi-x-slide-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.csi-x-slide-tags > span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.csi-x-slide-copy strong { max-width: 620px; font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.csi-x-slide-text { max-width: 520px; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.6; }
.csi-x-slide-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .2); }
.csi-x-slide-cap small { display: block; color: rgba(255, 255, 255, .6); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.csi-x-slide-cap b { font-size: 20px; font-weight: 700; }
.csi-x-slide-cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-left: auto; padding: 0 20px; border-radius: 999px; background: #d7161b; color: #fff; font-size: 13px; font-weight: 700; transition: background .2s ease, gap .2s ease; }
.csi-x-slide:hover .csi-x-slide-cta { background: #b70f14; gap: 14px; }
.csi-x-slide:focus-visible { outline: 3px solid #d7161b; outline-offset: -3px; }

.csi-x-list { display: flex; flex-direction: column; margin: 0; padding: 6px; list-style: none; border-radius: 18px; background: #fff; border: 1px solid #e6e8eb; overflow: auto; scrollbar-width: thin; }
.csi-x-list li { flex: 1 1 0; min-height: 64px; display: flex; }
.csi-x-list li + li .csi-x-item::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: #eceef1; }
.csi-x-item { position: relative; flex: 1; display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; border: 0; border-radius: 12px; background: transparent; color: #1b1f24; text-align: left; cursor: pointer; transition: background .25s ease; overflow: hidden; }
.csi-x-item:hover { background: #f6f7f8; }
.csi-x-item.is-active { background: #15181c; color: #fff; }
li:has(> .csi-x-item.is-active) .csi-x-item::before, li:has(> .csi-x-item.is-active) + li .csi-x-item::before { opacity: 0; }
.csi-x-num { font-family: "Roboto Condensed", Arial, sans-serif; font-size: 15px; font-weight: 700; color: #b0b5bb; transition: color .25s ease; }
.csi-x-item.is-active .csi-x-num { color: #d7161b; }
.csi-x-item-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.csi-x-item-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.25; }
.csi-x-item-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #858b92; font-size: 12px; }
.csi-x-item.is-active .csi-x-item-txt small { color: rgba(255, 255, 255, .6); }
.csi-x-item > i { color: #c3c7cc; font-size: 15px; transform: translateX(-4px); opacity: 0; transition: transform .25s ease, opacity .25s ease, color .25s ease; }
.csi-x-item:hover > i, .csi-x-item.is-active > i { transform: none; opacity: 1; }
.csi-x-item.is-active > i { color: #fff; }
.csi-x-item-bar { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); opacity: 0; }
.csi-x-item.is-active .csi-x-item-bar { opacity: 1; }
.csi-x-item-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: #d7161b; transform: scaleX(0); transform-origin: left; }
.csi-x-item.is-running .csi-x-item-bar i { animation: csiXBar 6s linear forwards; }
@keyframes csiXBar { to { transform: scaleX(1); } }

@media (max-width: 1100px) {
  .csi-x-showcase { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); height: clamp(460px, 58vw, 560px); }
  .csi-x-list li { min-height: 54px; }
  .csi-x-slide-text { display: none; }
}
@media (max-width: 760px) {
  .csi-x-showcase { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .csi-x-stage { aspect-ratio: 4 / 3.2; border-radius: 16px; }
  .csi-x-list { border-radius: 16px; overflow: visible; }
  .csi-x-list li { flex: none; min-height: 58px; }
}
@media (max-width: 575px) {
  .csi-x-stage { aspect-ratio: 4 / 4.4; }
  .csi-x-slide-copy { padding: 22px 20px 20px; gap: 10px; }
  .csi-x-slide-copy strong { font-size: 25px; }
  .csi-x-slide-tags > span { height: 26px; font-size: 11px; padding: 0 10px; }
  .csi-x-slide-cap b { font-size: 17px; }
  .csi-x-slide-cta { height: 40px; padding: 0 16px; font-size: 12px; }
  .csi-x-item { grid-template-columns: 30px minmax(0, 1fr) 16px; padding: 10px 14px; gap: 10px; }
  .csi-x-item-txt b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .csi-x-slide img, .csi-x-slide-copy > * { transition: none !important; transform: none !important; }
}
.csi-x-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.csi-x-side .csi-x-list { flex: 1; min-height: 0; }
.csi-x-all { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 14px; background: #d7161b; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; transition: background .2s ease, gap .2s ease; }
.csi-x-all small { margin-left: auto; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 600; }
.csi-x-all:hover { background: #b70f14; }
.csi-x-all i { transition: transform .2s ease; }
.csi-x-all:hover i { transform: translate(2px, -2px); }
@media (max-width: 760px) { .csi-x-all { height: 50px; } }

/* -------------------------------------------------------------
 * Slider → Rakamlar geçişi: slider'ın alt kenarı oval biter,
 * kırmızı bölüm köşelerden yukarı sarılır. Rakamlar bölümü daha basık.
 * Yalnızca rakamlar slider'ın hemen altındaysa uygulanır.
 * ------------------------------------------------------------- */
body:has(.csi-home-v6 > h1 + .csi-v7-stats) .csi-studio-slider {
  z-index: 2;
  clip-path: ellipse(150% 100% at 50% 0);
}
.csi-home-v6:has(> h1 + .csi-v7-stats) { margin-top: -64px; }
.csi-home-v6 .csi-v7-stats { padding: clamp(40px, 4.6vw, 64px) 0 !important; }
.csi-home-v6 > h1 + .csi-v7-stats { padding-top: calc(64px + clamp(30px, 3.4vw, 48px)) !important; }
.csi-home-v6 .csi-v7-stats .csi-v8-stats .csi-v7-stat { padding: 22px 22px 20px !important; }
.csi-home-v6 .csi-v7-stats .csi-v8-rule { margin-top: 12px !important; margin-bottom: 14px !important; }
.csi-home-v6 .csi-v7-stats .csi-v7-stat-icon { margin-bottom: 14px !important; }
@media (max-width: 767px) {
  body:has(.csi-home-v6 > h1 + .csi-v7-stats) .csi-studio-slider { clip-path: ellipse(165% 100% at 50% 0); }
  .csi-home-v6:has(> h1 + .csi-v7-stats) { margin-top: -40px; }
  .csi-home-v6 > h1 + .csi-v7-stats { padding-top: calc(40px + 28px) !important; }
  .csi-home-v6 .csi-v7-stats { padding-bottom: 30px !important; }
}
.csi-home-v6 .csi-v7-stats .csi-v7-stat-icon { width: 38px !important; height: 38px !important; padding: 8px !important; margin-bottom: 10px !important; }
.csi-home-v6 .csi-v7-stats .csi-v8-deger { margin-top: 6px !important; }
.csi-home-v6 .csi-v7-stats .csi-v8-rule { margin-top: 10px !important; margin-bottom: 12px !important; }
/* Tablet: dört rakam tek sırada */
@media (min-width: 700px) and (max-width: 991px) {
  .csi-home-v6 .csi-v7-stats .csi-v7-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .csi-home-v6 .csi-v7-stats .csi-v8-stats .csi-v7-stat { border-top: 0 !important; border-left: 1px solid rgba(255, 255, 255, .14) !important; padding: 18px 14px !important; }
  .csi-home-v6 .csi-v7-stats .csi-v8-stats .csi-v7-stat:first-child { border-left: 0 !important; }
  .csi-home-v6 .csi-v7-stats .csi-v8-deger strong { font-size: 32px !important; }
  .csi-home-v6 .csi-v7-stats .csi-v7-stats-shell { gap: 22px !important; }
}

/* Proje vitrini: üzerine gelince yazılar beyaz kalır (temanın bağlantı hover rengi uygulanmaz) */
.csi-x-slide, .csi-x-slide:hover, .csi-x-slide:focus, .csi-x-slide:active { color: #fff !important; }
.csi-x-slide:hover strong, .csi-x-slide:hover b, .csi-x-slide:hover .csi-x-slide-tags > span { color: #fff !important; }
.csi-x-slide:hover .csi-x-slide-text { color: rgba(255, 255, 255, .78) !important; }
.csi-x-slide:hover .csi-x-slide-cap small { color: rgba(255, 255, 255, .6) !important; }
.csi-x-slide:hover img { transform: scale(1.03); transition-duration: 1.2s; }
