/* =====================================================================
   HAREKET: giriş perdesi, çalışan makine canlandırması, hero ve
   mikro etkileşimler. stil.css'ten sonra yüklenir.
   ===================================================================== */

/* ---------- Giriş perdesi ---------- */
body.perde-acik { overflow: hidden; }
#giris-perde {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px;
  background: radial-gradient(800px 480px at 25% 20%, rgba(196,69,45,.22), transparent 60%),
              radial-gradient(700px 500px at 85% 90%, rgba(111,168,216,.18), transparent 55%),
              linear-gradient(160deg, #0b1522 0%, #152638 55%, #1d3350 100%);
  color: #fff; cursor: pointer; transition: opacity .8s ease, visibility .8s; overflow: hidden; text-align: center;
}
#giris-perde.kapan { opacity: 0; visibility: hidden; pointer-events: none; }
#giris-perde.kapan .perde-ic { transform: scale(1.08); filter: blur(5px); }
.perde-ic { width: min(560px, 92vw); transition: transform .8s ease, filter .8s ease; }
.perde-ic .sahne { width: 100%; height: auto; opacity: 0; animation: belir .7s ease .05s forwards; }
.perde-logo { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; opacity: 0; transform: translateY(14px); animation: belir .7s cubic-bezier(.2,.7,.2,1) 1.1s forwards; }
.perde-logo img { height: 44px; width: auto; }
.perde-logo .logo-ad { color: #fff; font-size: 1.8rem; }
.perde-logo .logo-ad i { color: inherit; }
.perde-alt { margin: 10px 0 0; font-size: .95rem; letter-spacing: 6px; text-transform: uppercase; color: #ffcfb8; font-weight: 700; opacity: 0; animation: slogan .9s ease 1.5s forwards; }
@keyframes slogan { to { opacity: 1; letter-spacing: 2px; } }
.perde-cubuk { width: 220px; height: 2px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; margin: 18px auto 0; }
.perde-cubuk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c4452d, #ffcfb8); animation: dol 3.2s cubic-bezier(.3,.1,.2,1) .1s forwards; }
@keyframes dol { to { width: 100%; } }
@keyframes belir { to { opacity: 1; transform: none; } }
.perde-gec {
  position: absolute; right: 20px; bottom: 20px; background: transparent; color: #c9d6e3; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-size: .85rem; cursor: pointer; opacity: 0; animation: belir .5s ease .8s forwards; z-index: 2;
}
.perde-gec:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Perde kapanınca hero içeriği süzülür */
body.perde-bitti .hero .kap > * { animation: suzul .9s cubic-bezier(.2,.7,.2,1) both; }
body.perde-bitti .hero .kap > :nth-child(2) { animation-delay: .15s; }
@keyframes suzul { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Çalışan makine canlandırması (SVG) ---------- */
.sahne .bant-cizgi { stroke-dasharray: 10 14; animation: bantAk .4s linear infinite; }
@keyframes bantAk { to { stroke-dashoffset: -24; } }
.sahne .makara { transform-box: fill-box; transform-origin: center; animation: don 1.1s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
.sahne .piston { animation: piston .75s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes piston { 0%, 100% { transform: translateY(0); } 40%, 55% { transform: translateY(24px); } }
.sahne .kofte { opacity: 0; animation: kofteYol 6s linear infinite; }
@keyframes kofteYol {
  0%, 5% { opacity: 0; transform: translate(141px, 150px) scale(.5); }
  6% { opacity: 1; transform: translate(141px, 152px) scale(.7); }
  11% { opacity: 1; transform: translate(141px, 176px) scale(1); }
  96% { opacity: 1; transform: translate(462px, 176px) scale(1); }
  100% { opacity: 0; transform: translate(482px, 182px) scale(.9); }
}
.sahne .lamba { animation: lamba 1.5s ease-in-out infinite; }
@keyframes lamba { 50% { opacity: .35; } }

/* ---------- Hero ---------- */
.hero-arka img { animation: yakinlas 22s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes yakinlas { from { transform: scale(1); } to { transform: scale(1.12) translateX(-2%); } }
.hero h1 .satir { display: inline-block; opacity: 0; transform: translateY(18px); animation: suzul .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .satir:nth-child(2) { animation-delay: .12s; } .hero h1 .satir:nth-child(3) { animation-delay: .24s; }
.hero .rozetler li { animation: suzul .7s ease both; }
.hero .rozetler li:nth-child(1) { animation-delay: .45s; } .hero .rozetler li:nth-child(2) { animation-delay: .55s; }
.hero .rozetler li:nth-child(3) { animation-delay: .65s; } .hero .rozetler li:nth-child(4) { animation-delay: .75s; }
.canli-ust .nokta { animation: nabizYesil 1.6s ease-out infinite; }
@keyframes nabizYesil { 0% { box-shadow: 0 0 0 0 rgba(60,207,126,.6); } 70% { box-shadow: 0 0 0 8px rgba(60,207,126,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,126,0); } }
.canli-kart { animation: yuz 7s ease-in-out infinite alternate; }
@keyframes yuz { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Süzülen baharat taneleri */
.taneler { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.taneler i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,140,105,.55); animation: yuksel 12s linear infinite; opacity: 0; }
.taneler i:nth-child(1) { left: 7%; animation-delay: 0s; } .taneler i:nth-child(2) { left: 19%; animation-delay: 2.5s; width: 4px; height: 4px; }
.taneler i:nth-child(3) { left: 33%; animation-delay: 5s; background: rgba(111,168,216,.5); } .taneler i:nth-child(4) { left: 47%; animation-delay: 1.2s; }
.taneler i:nth-child(5) { left: 60%; animation-delay: 7s; width: 3px; height: 3px; } .taneler i:nth-child(6) { left: 73%; animation-delay: 3.5s; background: rgba(255,207,184,.6); }
.taneler i:nth-child(7) { left: 85%; animation-delay: 9s; } .taneler i:nth-child(8) { left: 94%; animation-delay: 6s; width: 4px; height: 4px; }
@keyframes yuksel { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: .5; } 100% { transform: translateY(-105vh); opacity: 0; } }

/* Sayfa başlığında hafif ışık */
.sayfa-bas::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(196,69,45,.28), transparent 65%); animation: isikGez 9s ease-in-out infinite alternate; pointer-events: none; }
.sayfa-bas .kap { position: relative; z-index: 1; }
@keyframes isikGez { from { transform: translate(0, 0); } to { transform: translate(-90px, 50px); } }

/* Kayan şerit */
.serit { background: var(--isot); color: #fff; overflow: hidden; position: relative; }
.serit-ic { display: flex; align-items: center; gap: 26px; width: max-content; padding: 12px 0; animation: kay 36s linear infinite; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; white-space: nowrap; }
.serit-ic i { color: #ffcfb8; font-style: normal; font-size: .6rem; }
.serit:hover .serit-ic { animation-play-state: paused; }
@keyframes kay { to { transform: translateX(-50%); } }

/* Hareket azaltma açıksa yalnız arka plandaki sürekli süslemeler durur; giriş perdesi,
   makine canlandırması ve sayfa animasyonları yine gösterilir (telefonlar bu ayarı güç
   tasarrufunda kendiliğinden açıyor). */
@media (prefers-reduced-motion: reduce) {
  .hero-arka img, .taneler i, .serit-ic { animation: none !important; }
  .taneler { display: none; }
}
@media (max-width: 600px) {
  .perde-logo .logo-ad { font-size: 1.4rem; }
  .perde-logo img { height: 34px; }
  .perde-alt { font-size: .78rem; }
}

/* ---------- Açılış perdesi: ürün adı büyük, logo altta küçük ---------- */
.perde-urun { margin: 8px 0 0; font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.05; letter-spacing: -.01em; color: #fff; opacity: 0; transform: translateY(14px); animation: belir .7s cubic-bezier(.2,.7,.2,1) 1s forwards; }
.perde-urun em { font-style: normal; color: #ffb79f; }
.perde-logo.kucuk { margin-top: 12px; gap: 8px; opacity: 0; animation-delay: 1.45s; }
.perde-logo.kucuk img { height: 22px; }
.perde-logo.kucuk .logo-ad { font-size: .95rem; letter-spacing: .1em; opacity: .75; }

/* ---------- Bant şeridi: konveyörde akan köfteler ---------- */
.bant-serit { position: relative; background: linear-gradient(180deg, #2a3d52, #1c2e42); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.bant-yazi { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; padding: 14px 16px 4px; color: #c9d6e3; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.bant-yazi span::before { content: "●"; color: #ffb79f; font-size: .55rem; margin-right: 10px; vertical-align: 2px; }
.bant-yol { position: relative; height: 54px; margin: 6px 0 14px; }
.bant-yol::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 14px; border-radius: 7px; background: repeating-linear-gradient(90deg, #e9e3d6 0 22px, #ddd5c5 22px 26px); background-size: 52px 100%; box-shadow: inset 0 2px 3px rgba(0,0,0,.25), 0 6px 14px -8px rgba(0,0,0,.6); animation: bantKay 1.1s linear infinite; }
.bant-yol::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; background: #9aa6b2; opacity: .7; }
@keyframes bantKay { to { background-position: 52px 0; } }
.bant-ic { position: absolute; left: 0; bottom: 16px; display: flex; gap: 46px; width: max-content; animation: kofteAk 26s linear infinite; }
.bant-ic i { display: block; width: 46px; height: 26px; }
.bant-ic i:nth-child(3n) { transform: translateY(-1px) rotate(-3deg); }
.bant-ic i:nth-child(4n) { transform: rotate(2deg); }
.bant-ic svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
@keyframes kofteAk { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.bant-serit:hover .bant-ic, .bant-serit:hover .bant-yol::before { animation-play-state: paused; }

/* ---------- Kaydırma çizgisi (sayfanın üstünde, okuma ilerlemesi) ---------- */
.kaydirma-cizgisi { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 80; pointer-events: none; }
.kaydirma-cizgisi i { display: block; height: 100%; background: linear-gradient(90deg, var(--isot), #ffb79f); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Ürün kartı: fareye hafifçe döner, ışık gezer ---------- */
.urun-kart { transition: transform .35s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; will-change: transform; }
.urun-kart::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%); transform: translateX(-120%); animation: parilti 7s ease-in-out 2.5s infinite; }
@keyframes parilti { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Küçük canlılıklar ---------- */
.gorun.goruldu .ust-etiket::before, .bolum-bas.goruldu .ust-etiket::before { animation: cizgiUza .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cizgiUza { from { width: 0; } to { width: 26px; } }
.dert { animation: notSalla 7s ease-in-out infinite; }
.dert:nth-child(2) { animation-delay: -2s; } .dert:nth-child(3) { animation-delay: -4s; } .dert:nth-child(4) { animation-delay: -5.5s; }
.dert:hover { animation-play-state: paused; }
@keyframes notSalla { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.model .resim img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.model:hover .resim img { transform: scale(1.06); }
.model { transition: transform .3s ease, box-shadow .3s ease; }
.model:hover { transform: translateY(-5px); box-shadow: var(--golge-buyuk); }
.menu .btn::after { animation: butonParla 6s ease-in-out 3s infinite; }
@keyframes butonParla { 0%, 82% { left: -80%; } 100% { left: 130%; } }
#s-sure.oynat { animation: sayiZipla .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes sayiZipla { 0% { transform: scale(.92); opacity: .6; } 100% { transform: none; opacity: 1; } }
.wa-dugme { animation: waSalla 8s ease-in-out 4s infinite; }
@keyframes waSalla { 0%, 90%, 100% { rotate: 0deg; } 92% { rotate: -6deg; } 94% { rotate: 6deg; } 96% { rotate: -4deg; } 98% { rotate: 3deg; } }

@media (prefers-reduced-motion: reduce) {
  .bant-ic, .bant-yol::before, .urun-kart::after, .dert, .wa-dugme, .menu .btn::after { animation: none !important; }

}
@media (max-width: 600px) {
  .bant-yazi { font-size: .66rem; gap: 4px 16px; padding-top: 12px; }
  .bant-yazi span:nth-child(n+3) { display: none; }
  .bant-yol { height: 44px; }
  .bant-ic i { width: 38px; height: 22px; }
  .bant-ic { gap: 34px; animation-duration: 20s; }
}

/* ---------- Açılış perdesi (marka): ANATOLIA FORM logosu + slogan, toplam 2 sn ---------- */
.perde-ic .sahne { animation-duration: .5s; }
.perde-marka { display: block; width: min(440px, 82vw); height: auto; margin: 6px auto 0; opacity: 0; transform: translateY(10px); animation: belir .5s cubic-bezier(.2,.7,.2,1) .35s forwards; }
.perde-slogan { margin: 12px 0 0; font-family: "Saira", var(--font); font-weight: 600; font-size: clamp(1.05rem, 3.6vw, 1.35rem); letter-spacing: .01em; white-space: nowrap; color: #ffe1d6; opacity: 0; transform: translateY(8px); animation: belir .5s ease .65s forwards; }
.perde-cubuk i { animation-duration: 1.85s; }
.perde-gec { animation-delay: .4s; }
