/* 2026-12-02 Ana sayfa hero v2 (TR + EN): tam ekran, kenardan kenara; ust menu hero'nun ustunde seffaf, kaydirinca beyaz bant.
   Yapi: .section.hero-section.hx-tam > .container > .hx > .hx-media (slaytlar) + .hx-body (metinler) + .hx-nav (proje sekmeleri).
   JS: assets/js/hero-v2.js. Eski hero (.hero-stage, hero-slider.css) artik kullanilmiyor. */

/* tam genislik: bolum ve container bosluklari sifir */
html:not(#_) body > .section.hero-section.hx-tam, html:not(#_) .section.hero-section.hx-tam { padding: 0 !important; margin: 0 !important; }
html:not(#_) .hero-section.hx-tam > .container { max-width: none !important; width: 100%; padding: 0 !important; margin: 0; }

.hx {
    --hx-dur: 7s; --hx-gold: #fdca7d; --hx-navy: #13202a;
    /* icerik ust banttaki logo ile ayni hizada baslar (bant 1296px, logo 24px iceride) */
    --hx-pad: max(24px, calc((100vw - 1296px) / 2 + 24px));
    position: relative; isolation: isolate; overflow: hidden; background: var(--hx-navy); color: #fff;
    height: 100vh; height: 100svh; min-height: 640px; max-height: 1080px;
    display: flex; flex-direction: column; justify-content: flex-end;
    font-family: 'Futura PT', Arial, sans-serif; container-type: inline-size;
}
@supports (width: 1cqw) { .hx { --hx-pad: max(24px, calc((100cqw - 1296px) / 2 + 24px)); } }
.hx.is-link { cursor: pointer; }
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }

/* gorseller: yumusak gecis + yavas yakinlasma */
.hx-media { position: absolute; inset: 0; z-index: -1; }
.hx-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hx-slide.on { opacity: 1; }
.hx-slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, center); transform: scale(1.08); transform-origin: center; will-change: transform; }
.hx-slide.on img { animation: hxZoom calc(var(--hx-dur) + 1.4s) ease-out forwards; }
.hx-slide:nth-child(1) img { top: auto; bottom: 0; height: 130%; object-position: center bottom; transform-origin: center bottom; }
.hx-slide-soon img { filter: blur(6px) saturate(.6) brightness(.75); animation: none !important; transform: scale(1.15); }
.hx-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(19, 32, 42, .55) 0%, rgba(19, 32, 42, 0) 22%),
        linear-gradient(90deg, rgba(19, 32, 42, .8) 0%, rgba(19, 32, 42, .45) 34%, rgba(19, 32, 42, 0) 62%),
        linear-gradient(0deg, rgba(19, 32, 42, .92) 0%, rgba(19, 32, 42, 0) 45%);
}
.hx-soon-mark { position: absolute; right: 10%; top: 22%; font-size: clamp(8rem, 18vw, 16rem); line-height: 1; font-weight: 600; color: rgba(253, 202, 125, .9); text-shadow: 0 10px 50px rgba(0, 0, 0, .35); }

/* metin */
.hx-body { position: relative; display: grid; padding: 0 var(--hx-pad); }
.hx-tx { grid-area: 1 / 1; align-self: end; max-width: 900px; opacity: 0; visibility: hidden; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.hx-tx.on { opacity: 1; visibility: visible; transform: none; transition: opacity .9s ease .3s, transform .9s ease .3s; }
.hx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 24px; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .9); line-height: 1.4; }
.hx-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--hx-gold); flex: none; }
.hx-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hx-status i { width: 8px; height: 8px; border-radius: 50%; background: #cfd6db; position: relative; flex: none; }
.hx-status.live i { background: #7ee3a1; }
.hx-status.live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #7ee3a1; animation: hxPing 1.8s ease-out infinite; }
.hx-title { display: block; margin: 0; color: #fff; text-decoration: none; font-family: inherit; font-size: clamp(46px, 6.2vw, 104px); line-height: .96; font-weight: 600; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
a.hx-title:hover, a.hx-title:focus { color: #fff; text-decoration: none; }
a.hx-title:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: 8px; border-radius: 6px; }
.hx-tag { margin: 20px 0 0; font-size: 22px; line-height: 1.35; font-weight: 500; color: var(--hx-gold); }
.hx-sub { margin: 12px 0 0; max-width: 48ch; font-size: 19px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .86); }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; text-decoration: none; line-height: 1.2; white-space: nowrap;
    font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.hx-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.hx-btn:hover svg { transform: translateX(4px); }
.hx-btn-gold, .hx-btn-gold:focus { background: var(--hx-gold); color: #1d2a33; text-decoration: none; }
.hx-btn-gold:hover { background: #ffd796; color: #1d2a33; text-decoration: none; }
.hx-btn-ghost, .hx-btn-ghost:focus { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; }
.hx-btn-ghost:hover { color: #1d2a33; background: #fff; border-color: #fff; text-decoration: none; }
.hx-btn:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: 3px; }

/* proje sekmeleri: ilerleme cizgisi + numara + ad */
.hx-nav { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(36px, 6vh, 64px) var(--hx-pad) 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.hx-nav button { position: relative; display: flex; align-items: baseline; gap: 12px; min-width: 0; padding: 20px 16px 30px 0; border: 0; border-radius: 0; background: none; color: rgba(255, 255, 255, .55); text-align: left; cursor: pointer; font: inherit; transition: color .3s; }
.hx-nav button:hover, .hx-nav button.on { color: #fff; }
.hx-nav button:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: -2px; border-radius: 6px; }
.hx-nav .bar { position: absolute; left: 0; right: 16px; top: -1px; height: 2px; overflow: hidden; }
.hx-nav .bar i { display: block; width: 0; height: 100%; background: var(--hx-gold); }
.hx-nav button.on .bar i { animation: hxFill var(--hx-dur) linear forwards; }
.hx.paused .hx-nav button.on .bar i { animation-play-state: paused; }
.hx-nav .n { flex: none; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--hx-gold); }
.hx-nav .t { font-size: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-count { display: none; }

@keyframes hxFill { from { width: 0; } to { width: 100%; } }
@keyframes hxZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hxPing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- ust menu hero'nun ustunde (yalniz ana sayfa, sayfa en ustteyken) ---------- */
.tb-logo .tb-logo-w { display: none; }
body.home .topbar .tb-bar { transition: background .3s, border-color .3s, box-shadow .3s; }
body.home .topbar:not(.solid) .tb-bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.home .topbar:not(.solid) .tb-logo .tb-logo-b { display: none; }
body.home .topbar:not(.solid) .tb-logo .tb-logo-w { display: block; }
body.home .topbar:not(.solid) .tb-links a, body.home .topbar:not(.solid) .tb-cta { color: #fff; }
body.home .topbar:not(.solid) .tb-links a:hover, body.home .topbar:not(.solid) .tb-cta:hover { background: rgba(255, 255, 255, .14); color: #fff; }
body.home .topbar:not(.solid) .tb-lang-btn { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.home .topbar:not(.solid) .tb-lang-btn:hover, body.home .topbar:not(.solid) .tb-lang.acik .tb-lang-btn { background: rgba(255, 255, 255, .24); }
body.home .topbar:not(.solid) .tb-lang-dunya { color: #fdca7d; }

@media (max-width: 1199px) {
    .hx-nav .t { font-size: 14px; }
    .hx-nav button { gap: 9px; }
}
@media (max-width: 991px) {
    .hx-media::after { background:
        linear-gradient(180deg, rgba(19, 32, 42, .6) 0%, rgba(19, 32, 42, 0) 22%),
        linear-gradient(0deg, rgba(19, 32, 42, .95) 0%, rgba(19, 32, 42, .55) 45%, rgba(19, 32, 42, .05) 75%); }
    .hx-nav .t { display: none; }
    .hx-nav button { padding: 18px 0 26px; }
    .hx-nav .bar { right: 10px; }
}
/* telefon */
@media (max-width: 767px) {
    .hx { --hx-pad: 20px; min-height: 600px; max-height: 900px; }
    .hx-slide:nth-child(1) img { height: 160%; }
    .hx-slide:nth-child(3) img { top: auto; bottom: 0; height: 125%; object-position: center bottom; transform-origin: center bottom; }
    .hx-media::after { background:
        linear-gradient(180deg, rgba(19, 32, 42, .65) 0%, rgba(19, 32, 42, 0) 20%),
        linear-gradient(0deg, #13202a 0%, rgba(19, 32, 42, .88) 40%, rgba(19, 32, 42, .1) 74%); }
    .hx-top { gap: 10px 12px; margin-bottom: 16px; }
    .hx-eyebrow { font-size: 12px; letter-spacing: .16em; gap: 10px; }
    .hx-eyebrow::before { width: 22px; }
    .hx-status { font-size: 11.5px; padding: 5px 11px 5px 9px; }
    .hx-title { font-size: clamp(36px, 11vw, 48px); line-height: 1; }
    .hx-tag { margin-top: 12px; font-size: 18px; }
    .hx-sub { font-size: 17px; line-height: 1.55; }
    .hx-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
    .hx-cta .hx-btn:only-child { grid-column: 1 / -1; }
    .hx-btn { min-height: 50px; padding: 0 12px; font-size: 13px; letter-spacing: .03em; gap: 8px; }
    /* sag alttaki sohbet + WhatsApp butonlarina degmesin: cubuklar solda ve butonlarin ustunde biter */
    .hx-nav { margin: 22px 84px 0 var(--hx-pad); border-top: 0; gap: 8px; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: center; padding-bottom: 100px; }
    .hx-nav button { padding: 14px 0; }
    .hx-nav .n { display: none; }
    .hx-nav .bar { position: relative; top: auto; right: auto; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
    .hx-nav button.done .bar i { width: 100%; }
    .hx-count { display: block; order: -1; padding-right: 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .7); white-space: nowrap; }
    .hx-count b { color: #fff; font-weight: 600; }
    .hx-soon-mark { top: 14%; right: 8%; font-size: 9rem; }
    body.home .topbar:not(.solid) .tb-bar { border-bottom-color: transparent; }
}
@media (max-width: 400px) { .hx-btn svg { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .hx-slide, .hx-tx { transition: none !important; }
    .hx-slide.on img { animation: none; transform: none; }
    .hx-status.live i::after { animation: none; }
}
/* yatay kaydirma slider'in: tarayicinin geri/ileri hareketi tetiklenmesin, dikey sayfa kaydirma serbest */
.hx { touch-action: pan-y; overscroll-behavior-x: contain; }
@media (max-width: 767px) { .hx-nav button { padding: 20px 0; } .hx-nav { padding-bottom: 94px; } }

/* ---------- 2026-12-02 v13: metin ortada; masaustunde sag altta slayt kontrolu (buyuk sayac + 4 parcali ilerleme + ileri/geri ok);
   alt kenarda kayan dalga + oynayan asagi ok; menu cam bant ---------- */
.hx-body { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; column-gap: 56px; }
.hx-texts { display: grid; min-width: 0; }
.hx-kontrol { min-width: 0; }
.hx-oklar, .hx-dalga, .hx-asagi { display: none; }
@media (max-width: 991px) { .hx-nav { margin-left: 0; margin-right: 0; } }
@media (max-width: 767px) { .hx-nav { margin: 22px 64px 0 0; } }

@media (min-width: 992px) {
    .hx { justify-content: center; padding: 100px 0 124px; }
    .hx-body { grid-template-columns: minmax(0, 1fr) auto; }
    .hx-kontrol { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; align-self: end; }
    .hx-nav { margin: 0; border-top: 0; grid-template-columns: repeat(4, 50px); gap: 8px; align-items: center; }
    .hx-count { display: block; grid-column: 1 / -1; grid-row: 1; justify-self: end; margin-bottom: 10px; font-size: 16px; font-weight: 500; letter-spacing: .14em; color: rgba(255, 255, 255, .6); white-space: nowrap; }
    .hx-count b { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: 0; color: #fff; margin-right: 6px; }
    .hx-nav button { display: block; grid-row: 2; padding: 12px 0; color: #fff; }
    .hx-nav .n, .hx-nav .t { display: none; }
    .hx-nav .bar { position: relative; inset: auto; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); transition: background .25s; }
    .hx-nav button:hover .bar { background: rgba(255, 255, 255, .55); }
    .hx-nav button.done .bar i { width: 100%; }
    .hx-oklar { display: flex; gap: 10px; }
    .hx-oklar button { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; cursor: pointer;
        border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        transition: background .25s, color .25s, border-color .25s; }
    .hx-oklar button:hover { background: #fff; border-color: #fff; color: #1d2a33; }
    .hx-oklar button:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: 3px; }
    .hx-oklar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    /* alt kenar: alttaki bolumun renginde, yavas kayan iki katmanli dalga */
    .hx-dalga { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 58px; overflow: hidden; pointer-events: none; z-index: 2; }
    .hx-dalga svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
    .hx-dalga .arka { fill: rgba(239, 230, 218, .38); animation: hxDalga 24s linear infinite reverse; }
    .hx-dalga .on { fill: #efe6da; height: 74%; animation: hxDalga 34s linear infinite; }
    /* asagi ok: cam daire icinde yukari-asagi oynayan ok */
    .hx-asagi { display: flex; align-items: center; justify-content: center; position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 3;
        width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer; color: #fff; font: inherit;
        border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s, border-color .25s; }
    .hx-asagi:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
    .hx-asagi:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: 3px; }
    .hx-asagi span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .hx-asagi i { display: block; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; animation: hxOk 1.8s ease-in-out infinite; }
}
@keyframes hxDalga { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hxOk { 0%, 100% { transform: translateY(-5px) rotate(45deg); opacity: .55; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-dalga svg, .hx-asagi i { animation: none !important; } }

/* ust menu: hero ustunde seffaf beyaz (cam) bant */
body.home .topbar:not(.solid) .tb-bar {
    background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26);
    backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
body.home .topbar:not(.solid) .tb-lang-btn { background: rgba(255, 255, 255, .16); }
@media (max-width: 767px) {
    body.home .topbar:not(.solid) .tb-bar { background: rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .2); }
}
@media (min-width: 992px) { .hx-count { color: rgba(255, 255, 255, .8); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); } .hx-nav .bar { box-shadow: 0 1px 8px rgba(0, 0, 0, .25); } }

/* v15: ileri/geri oklari alt alta (2 satir), sayac + ilerleme cubugunun saginda */
@media (min-width: 992px) {
    .hx-kontrol { flex-direction: row; align-items: center; gap: 28px; }
    .hx-oklar { flex-direction: column; gap: 10px; }
}

/* v16: hero ustundeyken dil menusu koyu cam (sari/bej yerine), dunya ikonu beyaz */
body.home .topbar:not(.solid) .tb-lang-dunya { color: #fff; }
body.home .topbar:not(.solid) .tb-lang-menu {
    background: rgba(19, 32, 42, .78); border-color: rgba(255, 255, 255, .16); box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
    backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
body.home .topbar:not(.solid) .tb-lang-kod { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
body.home .topbar:not(.solid) .tb-lang-menu a:hover .tb-lang-kod { background: rgba(255, 255, 255, .18); color: #fff; }
body.home .topbar:not(.solid) .tb-lang-menu a.on .tb-lang-kod,
body.home .topbar:not(.solid) .tb-lang-menu a.on:hover .tb-lang-kod { background: #fff; color: #1d2a33; }
body.home .topbar:not(.solid) .tb-lang-menu a:hover { background: transparent; }
body.home .topbar:not(.solid) .tb-lang-bayrak { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }

/* v17: ust yazinin solundaki cizgi kaldirildi; durum etiketi (Tamami Satildi) yazinin ustunde */
.hx-eyebrow::before { content: none; display: none; }
.hx-top { flex-direction: column; align-items: flex-start; gap: 14px; }
.hx-top .hx-status { order: -1; }
@media (max-width: 767px) { .hx-top { gap: 10px; } }

/* v18: ilerleme cizgileri 2li, 2 satir (sayac ustte) */
@media (min-width: 992px) {
    .hx-nav { grid-template-columns: repeat(2, 64px); column-gap: 10px; row-gap: 0; }
    .hx-nav button { grid-row: auto; padding: 9px 0; }
}

/* v19: ilerleme cizgileri sayacin ("02 / 04") genisliginde; sol kenarlari rakamin basiyla hizali */
@media (min-width: 992px) {
    .hx-nav { width: max-content; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
    .hx-count { justify-self: start; }
}
