/* =========================================================
   demo.css — Apple tarzı scroll animasyonları (yalnızca demo.html)
   Bu dosya style.css'in ÜZERİNE eklenir, onu değiştirmez.
   Pinned (sabitlenmiş) scroll bölümleri + kare dizisi geçişleri +
   dönen rozet + yatay kaydırmalı ürün vitrini + 3B tilt reveal.
   ========================================================= */

/* ---------- Demo rozeti ---------- */
.demo-badge {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  background: var(--ink);
  color: var(--cream-text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55em 1em;
  border-radius: 100px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0.92;
}

/* ---------- Hero pin (zoom + fade) ---------- */
.pin-hero {
  position: relative;
  height: 180vh;
}

.pin-hero .hero {
  position: sticky;
  top: 0;
  height: 100vh;
}

.pin-hero .hero-glow {
  will-change: transform;
  transform-origin: 50% 40%;
}

.pin-hero .hero-content {
  will-change: transform, opacity;
}

/* ---------- Vitrin (kare dizisi / "video" hissi) ---------- */
.pin-vitrin {
  position: relative;
  height: 630vh;
}

.vitrin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--forest);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.vitrin-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 55% at 50% 15%, rgba(232, 163, 61, 0.28), transparent 65%),
    radial-gradient(70% 60% at 50% 100%, rgba(44, 92, 57, 0.7), transparent 60%);
}

.vitrin-hint {
  position: absolute;
  top: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(247, 236, 216, 0.5);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vitrin-spin {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  z-index: 3;
  width: 60px;
  height: 60px;
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  will-change: transform;
}

.vitrin-frames {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vitrin-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.12s linear;
  will-change: opacity, transform;
}

.vitrin-frame:first-child {
  opacity: 1;
}

.vitrin-frame img {
  max-height: 46vh;
  width: auto;
  max-width: min(80vw, 520px);
  object-fit: contain;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.vitrin-frame figcaption {
  text-align: center;
  margin: 0;
}

.vitrin-frame .eyebrow {
  justify-content: center;
  color: var(--citrus);
}

.vitrin-frame h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  color: var(--cream-text);
}

.vitrin-dots {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.vitrin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 236, 216, 0.28);
  transition: background 0.4s ease, transform 0.4s ease;
}

.vitrin-dot.is-active {
  background: var(--citrus);
  transform: scale(1.5);
}

/* ---------- Yatay kaydırmalı ürün vitrini ---------- */
.pin-gallery {
  position: relative;
  height: 580vh;
}

.h-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.h-viewport {
  margin-top: 3rem;
  width: 100%;
  overflow: hidden;
}

.h-track {
  display: flex;
  gap: 1.4rem;
  padding: 0 var(--gutter) 1rem;
  will-change: transform;
}

.h-tile {
  flex: 0 0 clamp(230px, 28vw, 380px);
}

.h-track::after {
  content: "";
  flex: 0 0 1px;
}

/* ---------- 3B tilt reveal (Hakkımızda görseli) ---------- */
.tilt-reveal {
  opacity: 0;
  transform: perspective(1400px) rotateY(-16deg) rotateX(5deg) scale(0.94);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.tilt-reveal.is-visible {
  opacity: 1;
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1);
}

/* ---------- Kelime kelime başlık reveal ---------- */
.split-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.about-copy.is-visible .split-reveal span {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pin-hero, .pin-vitrin, .pin-gallery {
    height: auto;
  }
  .pin-hero .hero {
    position: relative;
  }
  .vitrin-sticky {
    position: relative;
    height: auto;
    padding: 4rem 1.5rem;
  }
  .vitrin-frame {
    position: relative;
    opacity: 1 !important;
    padding: 2rem 0;
  }
  .h-sticky {
    position: relative;
    height: auto;
    padding-bottom: 2rem;
  }
  .h-viewport {
    overflow-x: auto;
  }
  .vitrin-spin {
    animation: none;
  }
}

@media (max-width: 760px) {
  .pin-vitrin { height: 490vh; }
  .pin-gallery { height: 520vh; }
  .vitrin-frame img { max-height: 34vh; }
}
