/* Açılış sayfası: gerçekçi sahneler. Hareket yalnız .hareket (ana.js ekler) altında; "hareketi azalt" açıksa durur. */
.acilis {
  --krem: #faf6f0; --krem-koyu: #f3e9dc; --lacivert: #2f3b48;
  --su: #5aa7a0; --seftali: #f4a582; --seftali-koyu: #ee9068; --soluk-sicak: #6b6259;
  --golge: 0 24px 60px rgba(47, 59, 72, .18), 0 6px 18px rgba(47, 59, 72, .10);
  background: var(--krem); color: var(--lacivert);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
.acilis .ust { background: var(--krem); border-bottom-color: transparent; }
.acilis .ust .logo img { mix-blend-mode: multiply; }
.acilis .icerik { max-width: none; padding: 0; }
.acilis .alt { background: var(--krem); }
.acilis img { display: block; }

.acilis h1, .acilis h2 { letter-spacing: -.01em; line-height: 1.2; color: var(--lacivert); }
.acilis .dugme { border-radius: 999px; padding: 12px 24px; font-weight: 600; transition: transform .15s, background .15s; }
.acilis .ana-dugme { background: var(--seftali); color: #23303d; box-shadow: 0 6px 16px rgba(238, 144, 104, .35); }
.acilis .ana-dugme:hover { background: var(--seftali-koyu); transform: translateY(-1px); }
.acilis .cizgili { background: transparent; color: var(--lacivert); box-shadow: inset 0 0 0 2px var(--lacivert); }
.acilis .cizgili:hover { background: #fff; }
.acilis .dugme:focus-visible { outline: 3px solid var(--su); outline-offset: 3px; }
.dugmeler.sola { justify-content: flex-start; }

/* ---------- Açılış: salon ve duvardaki çerçeve ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px;
        display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.ust-yazi { margin: 0 0 8px; color: var(--su); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0 0 16px; }
.giris-metni { font-size: 1.15rem; color: var(--soluk-sicak); margin: 0 0 24px; max-width: 32em; }
.deneme-notu { font-size: .85rem; color: var(--soluk-sicak); margin-top: 12px; }

.salon { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--golge); }
.salon .zemin { width: 100%; height: auto; }
/* Çerçevenin iç alanı: kaynak 1024 piksel genişlikte (411, 225), 216x277 */
.cerceve-ici { position: absolute; left: 40.14%; top: 21.97%; width: 21.09%; height: 27.05%; overflow: hidden; background: #ddd5c6; }
.cerceve-ici .kare { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cerceve-ici .k1 { opacity: 1; }
/* Pencereden düşen ışık ve gölge çizgileri fotoğrafın üstünde kalır */
.cerceve-ici .isik { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: soft-light; opacity: .9; pointer-events: none; }
.cerceve-ici .cam { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08) 100%);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .35); }
.salon figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: max-content;
  background: rgba(250, 246, 240, .92); color: var(--lacivert); border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); backdrop-filter: blur(6px); }

/* ---------- Anı şeridi ---------- */
.serit { overflow: hidden; padding: 8px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
         mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.serit-yol { display: flex; gap: 14px; width: max-content; }
.serit-yol img { width: 240px; height: 160px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 16px rgba(47, 59, 72, .14); }
.hareket .serit-yol { animation: kay 60s linear infinite; }
.serit:hover .serit-yol { animation-play-state: paused; }
@keyframes kay { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Sahneler ---------- */
.sahne { max-width: 1080px; margin: 0 auto; padding: 56px 16px;
         display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.sahne.ters { grid-template-columns: 1fr 1.1fr; }
.sahne.ters .sahne-gorsel { order: 2; }
.sahne-gorsel { margin: 0; }
.sahne-metin h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; }
.sahne-metin p { font-size: 1.1rem; color: var(--soluk-sicak); margin: 0; max-width: 28em; }
.sahne-metin .adim { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
                     background: var(--seftali); color: #23303d; font-weight: 700; margin-bottom: 12px; }
.foto { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--golge); }
.foto > img { width: 100%; height: auto; }
.rozet { position: absolute; right: 14px; top: 14px; background: rgba(20, 24, 30, .72); color: #fff; border-radius: 999px;
         padding: 6px 12px; font-size: .85rem; backdrop-filter: blur(6px); }

/* 2: albüm arayüzü */
.album-ui { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--golge); }
.album-ust { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.album-ust strong { font-size: 1.1rem; }
.album-ust span { color: var(--soluk-sicak); font-size: .9rem; }
.album-ust .sekme { margin-left: auto; background: var(--krem-koyu); color: var(--lacivert); border-radius: 999px; padding: 3px 12px; }
.album-ust .sekme + .sekme { margin-left: 0; }
.t-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-izgara img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* 3: kitap */
.t-kitap { position: relative; width: min(100%, 480px); aspect-ratio: 2 / 1.3; margin: 0 auto; perspective: 1600px; }
.t-kitap .t-sayfa, .t-kitap .t-yuz { position: absolute; top: 0; width: 50%; height: 100%; box-sizing: border-box; background: #fffdf9;
  padding: 7% 6%; display: flex; flex-direction: column; justify-content: center; gap: 6%; }
.t-kitap img { width: 100%; min-height: 0; flex: 1 1 0; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(47, 59, 72, .22); }
.t-kitap .t-sayfa.sol { left: 0; border-radius: 10px 0 0 10px; box-shadow: -6px 12px 26px rgba(47, 59, 72, .18); }
.t-kitap .t-sayfa.sag { right: 0; border-radius: 0 10px 10px 0; box-shadow: 6px 12px 26px rgba(47, 59, 72, .18); }
.t-kitap .t-sayfa.sol::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22px;
  background: linear-gradient(90deg, transparent, rgba(47, 59, 72, .12)); }
.t-kitap .t-yaprak { position: absolute; top: 0; right: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; }
.t-kitap .t-yaprak .t-yuz { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.t-kitap .t-yaprak .on { border-radius: 0 10px 10px 0; }
.t-kitap .t-yaprak .arka { transform: rotateY(180deg); border-radius: 10px 0 0 10px; }

/* 4: tablet ve bildirimler */
.bildirim { position: absolute; left: 50%; width: min(88%, 360px); display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .94); border-radius: 16px; padding: 10px 14px; font-size: .9rem; line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22); backdrop-filter: blur(8px); transform: translateX(-50%); box-sizing: border-box; }
.bildirim strong { display: block; font-size: .78rem; color: var(--soluk-sicak); font-weight: 600; }
.bildirim .simge { flex: 0 0 34px; height: 34px; border-radius: 9px; background: var(--lacivert); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.b1 { top: 16px; } .b2 { top: 86px; }

/* 5: dizüstü ekranı (ana.js perspektifi kurar) */
.masa-sahne .ekran { position: absolute; left: 0; top: 0; width: 400px; height: 250px; transform-origin: 0 0; overflow: hidden;
  background: #111; visibility: hidden; }
.masa-sahne .ekran.hazir { visibility: visible; }
.ekran .e { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.ekran .e1 { opacity: 1; }
.ekran .parlama { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 45%); }

/* ---------- Özellikler, güven, kapanış ---------- */
.ozellikler, .guven, .kapanis { max-width: 1080px; margin: 0 auto; padding: 48px 16px; }
.ozellikler h2, .guven h2, .kapanis h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 24px; text-align: center; }
.ozellikler ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ozellikler li { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 4px 14px rgba(47, 59, 72, .07); }
.ozellikler strong { display: block; margin-bottom: 6px; }
.ozellikler span { color: var(--soluk-sicak); font-size: .95rem; }
.guven { background: var(--krem-koyu); border-radius: 24px; max-width: 880px; }
.guven ul { list-style: none; margin: 0 auto; padding: 0; max-width: 34em; display: grid; gap: 12px; }
.guven li { padding-left: 30px; position: relative; font-size: 1.05rem; }
.guven li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--su) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.kapanis { text-align: center; padding-bottom: 72px; }

@media (max-width: 760px) {
  .hero, .sahne, .sahne.ters { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-top: 8px; }
  .salon { order: -1; }
  .sahne { padding: 36px 16px; }
  .sahne.ters .sahne-gorsel { order: 0; }
  .sahne-metin, .hero-metin { text-align: center; }
  .sahne-metin p, .giris-metni { margin-left: auto; margin-right: auto; }
  .dugmeler.sola { justify-content: center; }
  .salon figcaption { font-size: .8rem; bottom: 10px; }
  .serit-yol img { width: 180px; height: 120px; }
  .bildirim { font-size: .8rem; } .b2 { top: 76px; }
}

/* ---------- Hareket ---------- */
.hareket .hero-metin > * { animation: yuksel .8s both; }
.hareket .hero-metin > :nth-child(2) { animation-delay: .1s; }
.hareket .hero-metin > :nth-child(3) { animation-delay: .2s; }
.hareket .hero-metin > :nth-child(4) { animation-delay: .3s; }
.hareket .hero-metin > :nth-child(5) { animation-delay: .4s; }
@keyframes yuksel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Çerçeve: 6 fotoğraf x 5 sn, yumuşak geçiş ve hafif yakınlaşma */
.hareket .cerceve-ici .kare { animation: kare 30s linear infinite; }
.hareket .cerceve-ici .k1 { animation-name: kare-ilk; }
.hareket .cerceve-ici .k2 { animation-delay: 4.8s; }
.hareket .cerceve-ici .k3 { animation-delay: 9.8s; }
.hareket .cerceve-ici .k4 { animation-delay: 14.8s; }
.hareket .cerceve-ici .k5 { animation-delay: 19.8s; }
.hareket .cerceve-ici .k6 { animation-delay: 24.8s; }
@keyframes kare {
  0% { opacity: 0; transform: scale(1.02); } 4% { opacity: 1; } 17% { opacity: 1; } 21% { opacity: 0; transform: scale(1.09); } 100% { opacity: 0; }
}
@keyframes kare-ilk {
  0% { opacity: 1; transform: scale(1.02); } 17% { opacity: 1; } 21% { opacity: 0; transform: scale(1.09); } 96% { opacity: 0; } 100% { opacity: 1; transform: scale(1.02); }
}

/* Sahne metni görünür olunca */
.hareket .sahne .sahne-metin { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.hareket .sahne.gorundu .sahne-metin { opacity: 1; transform: none; }

/* 1: telefon fotoğrafı yavaşça yakınlaşır */
.hareket .telefon-sahne > img { transition: transform 9s ease-out; }
.hareket .gorundu .telefon-sahne > img { transform: scale(1.07); }

/* 2: dağınık fotoğraflar ızgaraya yerleşir */
.t-izgara .d { transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.hareket .sahne:not(.gorundu) .d { opacity: 0; }
.hareket .sahne:not(.gorundu) .d1 { transform: translate(110%, 90%) rotate(-14deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d2 { transform: translate(0, 110%) rotate(10deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d3 { transform: translate(-110%, 80%) rotate(-8deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d4 { transform: translate(110%, 0) rotate(12deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d5 { transform: rotate(-16deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d6 { transform: translate(-110%, 0) rotate(9deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d7 { transform: translate(110%, -100%) rotate(-12deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d8 { transform: translate(0, -110%) rotate(14deg) scale(.85); }
.hareket .sahne:not(.gorundu) .d9 { transform: translate(-110%, -90%) rotate(-10deg) scale(.85); }
.t-izgara .d2 { transition-delay: .08s; } .t-izgara .d3 { transition-delay: .16s; } .t-izgara .d4 { transition-delay: .24s; }
.t-izgara .d5 { transition-delay: .32s; } .t-izgara .d6 { transition-delay: .40s; } .t-izgara .d7 { transition-delay: .48s; }
.t-izgara .d8 { transition-delay: .56s; } .t-izgara .d9 { transition-delay: .64s; }

/* 3: yaprak çevrilir */
.hareket .gorundu .t-yaprak { animation: cevir 6s cubic-bezier(.6, .05, .3, 1) infinite; }
@keyframes cevir { 0%, 25% { transform: rotateY(0); } 60%, 90% { transform: rotateY(-180deg); } 100% { transform: rotateY(0); } }

/* 4: bildirimler sırayla iner */
.hareket .bildirim { opacity: 0; transform: translate(-50%, -24px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.hareket .gorundu .bildirim { opacity: 1; transform: translate(-50%, 0); }
.hareket .gorundu .b1 { transition-delay: .6s; }
.hareket .gorundu .b2 { transition-delay: 2.2s; }

/* 5: ekran koruyucu */
.hareket .ekran .e { animation: ekran 16s linear infinite; }
.hareket .ekran .e2 { animation-delay: -12s; }
.hareket .ekran .e3 { animation-delay: -8s; }
.hareket .ekran .e4 { animation-delay: -4s; }
@keyframes ekran { 0% { opacity: 0; transform: scale(1); } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: scale(1.06); } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hareket *, .hareket *::before, .hareket *::after { animation: none !important; transition: none !important; }
  .hareket .sahne .sahne-metin, .hareket .sahne .d, .hareket .bildirim { opacity: 1 !important; }
  .hareket .sahne .d { transform: none !important; }
  .hareket .bildirim { transform: translateX(-50%) !important; }
  .cerceve-ici .k1, .ekran .e1 { opacity: 1 !important; }
}
