/* PEKDOĞRU — pd-motion.css v1
   Sinematik animasyon katmanı. Yalnızca transform/opacity/clip-path kullanır.
   Tüm gizleme kuralları yalnızca <html class="pd-js"> varken geçerlidir
   (JS kapalıysa veya IntersectionObserver yoksa içerik %100 görünür kalır). */

:root {
  --pd-red: #d21f26;
  --pd-navy: #0d3d5e;
  --pd-black: #0a1622;
}

/* ---------- 1) Açılış perdesi (oturumda 1 kez) ---------- */
#pd-perde {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--pd-black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: transform .5s cubic-bezier(.76, 0, .24, 1), opacity .5s ease;
  will-change: transform;
}
#pd-perde.pd-gitti { transform: translateY(-100%); opacity: .6; }
#pd-perde .pd-perde-logo { max-height: 68px; max-width: 200px; object-fit: contain; }
#pd-perde .pd-perde-yazi {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; font-size: 18px;
}
#pd-perde .pd-perde-cizgi {
  width: 140px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .14); overflow: hidden;
}
#pd-perde .pd-perde-cizgi::after {
  content: ""; display: block; height: 100%; width: 100%;
  background: var(--pd-red);
  transform: translateX(-101%);
  animation: pd-dolum .65s .08s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes pd-dolum { to { transform: translateX(0); } }

/* ---------- 2) Scroll reveal temelleri ---------- */
html.pd-js [data-pd] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--pd-g, 0ms);
  will-change: opacity, transform;
}
html.pd-js [data-pd="zoom"] { transform: scale(1.045) translateY(18px); }
html.pd-js [data-pd].pd-in { opacity: 1; transform: none; }

/* Başlık maskesi — satır satır açılma hissi */
html.pd-js [data-pd="mask"] {
  clip-path: inset(0 0 105% 0);
  transform: translateY(14px);
  opacity: 1;
  transition: clip-path .8s cubic-bezier(.65, 0, .35, 1), transform .8s cubic-bezier(.65, 0, .35, 1);
  transition-delay: var(--pd-g, 0ms);
}
html.pd-js [data-pd="mask"].pd-in { clip-path: inset(0 0 -12% 0); transform: none; }

/* ---------- 3) Hero açılış animasyonları ---------- */
html.pd-js .pd-hero-baslik {
  clip-path: inset(0 0 105% 0);
  transform: translateY(16px);
  animation: pd-hero-mask .95s cubic-bezier(.65, 0, .35, 1) forwards;
  animation-delay: var(--pd-hero-g, .35s);
}
@keyframes pd-hero-mask { to { clip-path: inset(0 0 -12% 0); transform: none; } }

html.pd-js .pd-hero-alt {
  opacity: 0; transform: translateY(22px);
  animation: pd-hero-alt .8s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: var(--pd-hero-g, .75s);
}
@keyframes pd-hero-alt { to { opacity: 1; transform: none; } }

.pd-kenburns { animation: pd-kb 7s cubic-bezier(.25, .46, .45, .94) forwards; will-change: transform; }
@keyframes pd-kb { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ---------- 4) Kart hover (yalnızca fare aygıtı) ---------- */
@media (hover: hover) and (pointer: fine) {
  main .grid > * {
    transition: transform .25s ease, box-shadow .25s ease;
  }
  main .grid > *:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10, 22, 34, .16);
  }
  main .grid > *:hover > .pd-clip > img,
  main .grid > *:hover > .pd-clip img {
    transform: scale(1.055);
  }
  main .grid img {
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  }
  .pd-clip { overflow: hidden; border-radius: inherit; }

  /* Kırmızı vurgulu CTA hover */
  main a[href*="teklif"]:hover,
  #pd-yuzen .pd-teklif:hover {
    box-shadow: 0 10px 26px rgba(210, 31, 38, .35);
  }

  /* Genel buton/bağlantı yumuşaklığı */
  main a, main button {
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
  }
  main a:hover, main button:hover { filter: brightness(1.06); }

  /* Özel imleç halkası (yerel imleç gizlenmez) */
  #pd-imlec {
    position: fixed; z-index: 99998; left: 0; top: 0;
    width: 30px; height: 30px;
    border: 1.5px solid rgba(210, 31, 38, .75);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .18s ease, height .18s ease, background-color .18s ease, border-color .18s ease, opacity .3s ease;
    opacity: 0;
  }
  #pd-imlec.pd-acik { opacity: 1; }
  #pd-imlec.pd-buyuk {
    width: 46px; height: 46px;
    background: rgba(210, 31, 38, .09);
    border-color: var(--pd-red);
  }
}

/* ---------- 5) Parallax ---------- */
.pd-parallax { will-change: transform; }

/* ---------- 6) Azaltılmış hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  html.pd-js [data-pd],
  html.pd-js .pd-hero-baslik,
  html.pd-js .pd-hero-alt {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
  .pd-kenburns { animation: none !important; }
  #pd-perde { display: none !important; }
  #pd-imlec { display: none !important; }
}

/* Mobilde ekstra hafiflik */
@media (hover: none), (pointer: coarse) {
  html.pd-js [data-pd] { transform: translateY(18px); transition-duration: .55s; }
  #pd-imlec { display: none !important; }
  .pd-parallax { transform: none !important; }
}