/* Zeytrade — Hero Bölümü (cinematic redesign) */

@keyframes zt-rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes zt-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zt-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 40px) scale(1.15); } }
@keyframes zt-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }
@keyframes zt-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes zt-drive-fallback { 0% { transform: translateX(-56vw); } 100% { transform: translateX(102vw); } }
@keyframes zt-road { to { stroke-dashoffset: -120; } }

@media (prefers-reduced-motion: reduce) {
    .hero-blob, .hero-scan, .hero-eyebrow .dot,
    .hero-truck-rig, .hero-truck-wheel, .hero-truck-body, .hero-truck-shadow, .hero-truck-parallax {
        animation: none !important;
    }

    .hero-truck-rig {
        opacity: 0.5;
    }
}

.hero {
    position: relative;
    /* Orijinal tasarımda header body'yi itmiyordu, hero kendi üst boşluğuyla
       (9rem) header'ı temizliyordu. Burada body zaten header-height kadar
       padding-top veriyor, o yüzden hero'nun kendi üst boşluğu farkı
       (9rem - header-height) kadar olmalı — toplam görsel boşluk tasarımdaki
       gibi kalır, çift sayılmaz. Alt boşluk (3rem) ve min-height (100vh)
       tasarımla birebir aynı. 100svh mobilde dinamik tarayıcı çubuğunu
       hariç tutar, desteklenmeyen tarayıcılarda 100vh'ye düşer. */
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: flex-end;
    padding: calc(9rem - var(--header-height)) var(--gutter) 5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 96px 96px;
}

.hero-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-blob--blue {
    width: 760px;
    height: 760px;
    top: -260px;
    right: -180px;
    opacity: 0.5;
    background: radial-gradient(circle, var(--zt-blue-500) 0%, transparent 68%);
    animation: zt-drift 24s ease-in-out infinite;
}

.hero-blob--amber {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: 22%;
    opacity: 0.35;
    background: radial-gradient(circle, var(--zt-amber-500) 0%, transparent 70%);
    animation: zt-drift 30s ease-in-out infinite reverse;
}

.hero-drive-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* GSAP yüklenemezse: sade, tek katmanlı yatay kayma (hero-truck.js .no-gsap ekler) */
body.no-gsap .hero-truck-rig {
    animation: zt-drive-fallback 26s linear infinite;
}

.hero-truck-parallax {
    position: relative;
    width: 100%;
}

.hero-truck-rig {
    position: relative;
    width: 52vw;
    max-width: 860px;
    will-change: transform, filter, opacity;
}

.hero-truck-body {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.3;
    filter: grayscale(1) brightness(1.35) sepia(0.5) hue-rotate(-10deg) saturate(1.5);
    will-change: transform;
}

.hero-truck-wheel {
    position: absolute;
    display: block;
    width: 9.7%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    opacity: 0.3;
    filter: grayscale(1) brightness(1.35) sepia(0.5) hue-rotate(-10deg) saturate(1.5);
    will-change: transform;
}
.hero-truck-wheel img { display: block; width: 100%; height: 100%; }

/* Koordinatlar body.png'nin orijinal 1672x941 canvas'ına göre (kırpılmamış), merkez nokta */
.hero-truck-wheel--trailer      { left: 18%;   top: 71%; }
.hero-truck-wheel--tractor-rear { left: 60.2%; top: 71.2%; }
.hero-truck-wheel--tractor-front { left: 86.7%; top: 71%; }

.hero-truck-shadow {
    position: absolute;
    left: 6%;
    right: 4%;
    bottom: 10%;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 72%);
    filter: blur(6px);
    opacity: 0.4;
    will-change: transform, opacity;
}

/* Yol artık .hero-truck-parallax'ın (tam genişlik, rig'in kardeşi değil
   üst konteyneri) çocuğu — rig xPercent ile kayarken yol ekranın tam
   genişliğinde sabit ve sürekli kalır, tırın altında hiç kesilmez. */
.hero-drive-road {
    position: absolute;
    left: 0;
    right: 0;
    /* Ölçülen değer: tekerlek alt kenarı rig yüksekliğinin ~%82.7'sinde
       (merkez top:71.2% + yarıçap). parallax'ın height'ı rig'inkiyle aynı
       olduğu için aynı yüzde burada da geçerli. */
    top: 83.5%;
    width: 100%;
    height: 10px;
}

.hero-drive-road line {
    animation: zt-road 2.2s linear infinite;
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    display: grid;
    gap: var(--space-8);
    align-items: end;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 100%;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--zt-amber-500);
    margin-bottom: var(--space-6);
    opacity: 0;
    animation: zt-fade 0.7s var(--ease-standard) 0.1s forwards;
}

.hero-eyebrow .dot {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        white-space: normal;
        line-height: 1.4;
    }
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    background: var(--zt-amber-500);
    border-radius: 50%;
    animation: zt-blink 2.4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.25rem, 6vw + 1rem, 9.5rem);
    line-height: 0.86;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--zt-white);
    margin: 0 0 var(--space-6);
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line span {
    display: block;
    animation: zt-rise 0.9s var(--ease-standard) both;
}

.hero-title-line:nth-child(1) span { animation-delay: 0.15s; }
.hero-title-line:nth-child(2) span { animation-delay: 0.27s; }
.hero-title-line:nth-child(3) span { animation-delay: 0.39s; color: var(--zt-amber-500); }

.hero-sub-grid {
    display: grid;
    gap: var(--space-6);
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
    opacity: 0;
    animation: zt-fade 0.8s var(--ease-standard) 0.62s forwards;
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(228, 232, 238, 0.66);
    max-width: 44ch;
    margin: 0;
    border-left: 1px solid rgba(255, 168, 61, 0.5);
    padding-left: 1.25rem;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    opacity: 0;
    animation: zt-fade 1s var(--ease-standard) 0.5s forwards;
}

.hero-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(15, 38, 87, 0.55), rgba(5, 14, 36, 0.9));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(76, 141, 255, 0.22), transparent 62%);
}

.hero-scan {
    position: absolute;
    inset-inline: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(76, 141, 255, 0.16), transparent);
    animation: zt-scan 7s linear infinite;
}

.hero-card-photos {
    position: absolute;
    inset: 12%;
    z-index: 1;
}

.hero-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.94);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px rgba(255, 168, 61, 0.2));
    transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
}

.hero-card-photo.is-active {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero-card-photo {
        transition: opacity 0.3s linear;
        transform: none;
    }
}

.hero-card-spec {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: rgba(228, 232, 238, 0.45);
    text-align: right;
    line-height: 1.7;
    z-index: 1;
}

.hero-card-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0.55rem 0.8rem;
    background: var(--zt-amber-500);
    color: var(--zt-navy-950);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    z-index: 1;
}

.hero-rotator-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    row-gap: 0.3rem;
    margin-top: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: rgba(228, 232, 238, 0.4);
}

.hero-rotator {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    height: 1.4em;
    overflow: hidden;
    min-width: 32ch;
    max-width: 100%;
    text-align: right;
}

.hero-rotator-word {
    position: absolute;
    right: 0;
    top: 0;
    max-width: 100%;
    color: var(--zt-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 420px) {
    .hero-rotator {
        min-width: 100%;
        text-align: left;
    }
    .hero-rotator-word {
        right: auto;
        left: 0;
    }
}

@media (max-width: 1099.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 360px;
        width: 100%;
        margin-inline: auto;
    }

    /* İçerik metin+kart olarak alt alta dizildiğinde tam ekran yüksekliğine
       zorlamak yerine kendi doğal yüksekliğine göre boyutlanır — hem üstte
       hem altta gereksiz boşluk oluşmaz. */
    .hero {
        min-height: 0;
        padding-top: calc(9rem - var(--header-height));
    }

    .hero-truck-rig {
        width: 78vw;
        max-width: 620px;
        opacity: 0.85;
    }
}

@media (max-width: 767.98px) {
    /* Mobil "splash": sayfa açılınca tır tam ekranı (header altı) kaplar.
       hero-truck.js bunu ScrollTrigger'ın native pin özelliğiyle yapar
       (pin:true) — GSAP katmanı kendisi position:fixed'e alıp scroll'la
       senkron transform uygular, kendi spacer'ını da otomatik oluşturur.
       Manuel position:fixed + ayrı spacer div'i yerine bu; mobil
       tarayıcılarda (özellikle iOS) çok daha az gecikmeli çalışır. */
    body.hero-truck-splash-active {
        overflow-x: hidden;
    }

    /* .hero varsayılan olarak flex-direction:row; layer artık her zaman
       normal akışta bir flex item olduğu için (position:absolute değil),
       hero-grid ile yan yana dizilip align-items:flex-end ile yanlış
       hizalanmaması için column'a alınır. */
    .hero {
        flex-direction: column;
        align-items: stretch;
    }

    /* Splash aktifken .hero'nun üst padding'i (~66px) ScrollTrigger'ın
       pin start:'top top' noktasını viewport tepesinden o kadar aşağı
       kaydırır — kullanıcı ilk ~66-144px'i "boşa" kaydırmış gibi hisseder.
       Splash süresince kaldırılır, layer'ın kendi üst kenarı viewport'un
       gerçek tepesiyle çakışır, tır ilk pikselden itibaren tepki verir. */
    body.hero-truck-splash-active .hero {
        padding-top: 0;
    }

    .hero-drive-layer {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        z-index: 900; /* header (1100+) altında, site içeriğinin (z-index:1) üstünde */
        width: 100%;
        height: 100svh;
        background: var(--zt-navy-950);
        display: flex;
        align-items: center;
    }

    .hero-truck-rig {
        width: 92vw;
        max-width: 480px;
        opacity: 0.95;
    }

    .hero-truck-body,
    .hero-truck-wheel {
        filter: grayscale(0.4) brightness(1.15) sepia(0.15) hue-rotate(-10deg) saturate(1.2);
    }
}

@media (max-width: 575.98px) {
    .hero-sub-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 359.98px) {
    .hero-visual {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .hero-visual {
        max-width: 460px;
    }

    .hero-truck-rig {
        width: 60vw;
        max-width: 620px;
        opacity: 0.75;
    }
}
