/* =====================================================================
   ANA SAYFA HERO SLIDER
   ---------------------------------------------------------------------
   Eski slider-style.css + Swiper yerine. Tasarim kararlari:

   - Metin her zaman koyu bir katmanin uzerinde: fuar/uygulama
     fotograflari acik zeminli olabiliyor, beyaz yazi okunmuyordu.
   - Yukseklik 600px'ten 440px'e indi; ilk ekranda hero'nun altindaki
     icerik de gorunuyor.
   - Mobilde urun gorseli gizlenir, metin tam genisligi kullanir.
   ===================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #05052b;
    /* Slaytlar mutlak konumlu; yukseklik buradan belirleniyor */
    height: 440px;
    z-index: 10;
}

.hero-raylar {
    position: absolute;
    inset: 0;
}

.hero-slayt {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}

.hero-slayt.aktif {
    opacity: 1;
    visibility: visible;
}

/* --- arka plan gorseli --- */
.hero-arka {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-arka img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Yazinin oturdugu koyu katman. Soldan saga acilir; sagdaki urun
   gorseli net kalir. */
.hero-slayt::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(3, 3, 40, .90) 0%,
        rgba(3, 3, 40, .78) 40%,
        rgba(3, 3, 40, .22) 78%,
        rgba(3, 3, 40, .10) 100%);
}

/* --- icerik --- */
.hero-govde {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr .8fr;
    align-items: center;
    gap: 24px;
    color: #fff;
}

.hero-metin {
    max-width: 540px;
}

.hero-cizgi {
    display: block;
    width: 54px;
    height: 4px;
    border-radius: 2px;
    background: #fe6b3d;
    margin-bottom: 18px;
}

.hero-baslik {
    font-size: 38px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.7px;
    color: #fff;
    margin: 0 0 14px;
    text-align: left;
}

.hero-aciklama {
    font-size: 16px;
    line-height: 1.55;
    color: #d8ddf5;
    margin: 0 0 26px;
    max-width: 480px;
}

.hero-dugme {
    display: inline-block;
    background: #fe6b3d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    padding: 13px 34px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, transform .15s;
}

.hero-dugme:hover,
.hero-dugme:focus {
    background: #e85a2c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-urun {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 28px 0;
}

.hero-urun img {
    max-width: 100%;
    max-height: 310px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .45));
}

/* --- kontroller --- */
.hero-kontrol {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
    width: 100%;
    max-width: 1140px;
    padding: 0 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-noktalar {
    display: flex;
    gap: 9px;
}

.hero-nokta {
    width: 36px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .32);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-nokta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.hero-dolum {
    position: absolute;
    inset: 0;
    background: #fe6b3d;
    transform: scaleX(0);
    transform-origin: left;
}

/* Aktif noktanin dolumu slayt suresince ilerler. Sure JS tarafindan
   --hero-sure degiskenine yaziliyor. */
.hero-nokta.aktif .hero-dolum {
    animation: hero-dolum var(--hero-sure, 6500ms) linear forwards;
}

.hero.duraklatildi .hero-nokta.aktif .hero-dolum {
    animation-play-state: paused;
}

/* Otomatik gecis kapaliyken (kullanici durdurdu ya da sistem hareket
   azaltma istiyor) cubuk tamamen dolu dursun */
.hero.otomatik-yok .hero-nokta.aktif .hero-dolum {
    animation: none;
    transform: scaleX(1);
}

@keyframes hero-dolum {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.hero-sayac {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, .6);
}

.hero-sayac b {
    color: #fff;
}

.hero-oynat {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}

.hero-oynat:hover {
    background: rgba(255, 255, 255, .2);
}

/* Duraklat simgesi: iki dikey cubuk */
.hero-simge-duraklat {
    width: 8px;
    height: 10px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

/* Durdurulmusken oynat ucgenine doner */
.hero.duraklatildi .hero-simge-duraklat,
.hero.otomatik-yok .hero-simge-duraklat {
    width: 0;
    height: 0;
    border: 0;
    border-left: 9px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 3px;
}

.hero-oklar {
    position: absolute;
    right: max(24px, calc(50% - 570px + 24px));
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-ok {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, border-color .15s;
}

.hero-ok svg {
    width: 20px;
    height: 20px;
}

.hero-ok:hover {
    background: rgba(255, 255, 255, .22);
    border-color: #fff;
}

.hero-ok:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* =====================================================================
   HERO ALTI GUVEN SERIDI
   ===================================================================== */
.hero-serit {
    background: #00006b;
    color: #fff;
}

.hero-serit-ic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-serit-ic > div {
    padding: 16px 20px;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.hero-serit-ic > div:last-child {
    border-right: 0;
}

.hero-serit-ic b {
    display: block;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
}

.hero-serit-ic small {
    display: block;
    font-size: 11.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a9b2e8;
    margin-top: 2px;
}

/* =====================================================================
   DAR EKRANLAR
   ===================================================================== */
@media (max-width: 991.98px) {
    .hero {
        height: 400px;
    }

    .hero-govde {
        grid-template-columns: 1fr;
    }

    /* Urun gorseli gizli: metin tam genisligi kullansin. srcset'te
       bu genislik icin 0px verildigi icin dosya indirilmez. */
    .hero-urun {
        display: none;
    }

    .hero-slayt::after {
        background: linear-gradient(180deg,
            rgba(3, 3, 40, .82) 0%,
            rgba(3, 3, 40, .88) 100%);
    }

    .hero-baslik {
        font-size: 30px;
    }

    .hero-aciklama {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        height: 380px;
    }

    .hero-baslik {
        font-size: 25px;
    }

    .hero-aciklama {
        margin-bottom: 20px;
    }

    .hero-dugme {
        padding: 12px 26px;
    }

    .hero-oklar {
        display: none;
    }

    .hero-kontrol {
        bottom: 16px;
        gap: 12px;
    }

    .hero-serit-ic {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-serit-ic > div:nth-child(2) {
        border-right: 0;
    }

    .hero-serit-ic > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }
}

/* Hareket azaltma tercihi: gecisler aninda olsun */
@media (prefers-reduced-motion: reduce) {
    .hero-slayt {
        transition: none;
    }

    .hero-nokta.aktif .hero-dolum {
        animation: none;
        transform: scaleX(1);
    }
}
