/* Ana sayfa (index.php) — animasyonlu bölümler. Ortak stiller site.css'te. */

/* Kaydırınca beliren öğeler */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Giriş (hero) ---------- */
.h-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 90px; isolation: isolate; }
.h-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hKen 24s ease-in-out infinite alternate; }
.h-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(12, 9, 20, .95) 0%, rgba(12, 9, 20, .82) 42%, rgba(30, 14, 60, .55) 75%, rgba(12, 9, 20, .55) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
@keyframes hKen { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.h-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .h-hero-grid { grid-template-columns: 1fr; } .h-hero { padding-top: 100px; } }
.h-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: .88rem; font-weight: 600; color: #e9e5f2; margin-bottom: 22px; text-decoration: none; }
.h-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(163, 230, 53, .7); animation: hPulse 1.8s infinite; }
@keyframes hPulse { 70% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); } }
.h-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.04; margin-bottom: 22px; }
.h-type { min-height: 3.4em; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: #e2ddeb; max-width: 600px; margin-bottom: 8px; }
.h-type .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--lime); margin-left: 3px; vertical-align: -3px; animation: hBlink 1s steps(1) infinite; }
@keyframes hBlink { 50% { opacity: 0; } }
.h-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.h-scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hWheel 1.6s infinite; }
@keyframes hWheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Telefon + yüzen bildirimler */
.h-stage { position: relative; display: flex; justify-content: center; }
.h-stage .s-phone { animation: hFloat 6s ease-in-out infinite; }
@keyframes hFloat { 50% { transform: translateY(-14px); } }
.h-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: #17131f; font-size: .86rem; font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); white-space: nowrap; animation: hChip 7s ease-in-out infinite; }
.h-chip b { display: block; font-size: .78rem; color: #6b6478; font-weight: 500; }
.h-chip .em { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.h-chip.c1 { top: 12%; left: -4%; } .h-chip.c1 .em { background: #ecfccb; }
.h-chip.c2 { bottom: 16%; right: -6%; animation-delay: -2.3s; } .h-chip.c2 .em { background: #ede9fe; }
.h-chip.c3 { bottom: 4%; left: 2%; animation-delay: -4.6s; } .h-chip.c3 .em { background: #fef3c7; }
@keyframes hChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) { .h-chip.c1 { left: 0; } .h-chip.c2 { right: 0; } .h-chip.c3 { display: none; } }

/* ---------- Logo şeridi ---------- */
.h-marquee { padding: 34px 0 10px; }
.h-marquee p { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 18px; letter-spacing: .02em; }
.h-mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.h-mq-track { display: flex; gap: 18px; width: max-content; animation: hMq 40s linear infinite; }
.h-mq:hover .h-mq-track { animation-play-state: paused; }
@keyframes hMq { to { transform: translateX(-50%); } }
.h-mq a { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-decoration: none; color: #ddd8e6; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: border-color .2s; }
.h-mq a:hover { border-color: var(--lime); }
.h-mq img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }

/* Sayaçlar */
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .h-stats { grid-template-columns: repeat(2, 1fr); } }
.h-stat { padding: 26px 18px; text-align: center; border-radius: 18px; background: linear-gradient(180deg, rgba(124, 58, 237, .14), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.h-stat b { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 2.8rem); background: linear-gradient(90deg, #fff, var(--purple2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Kaydırmalı QR sahnesi ---------- */
.h-story { position: relative; height: 320vh; }
.h-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 64px; }
.h-story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; width: 100%; }
.h-steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: st; }
.h-steps li { position: relative; padding: 14px 0 14px 60px; color: #6f6880; transition: color .4s; counter-increment: st; }
.h-steps li::before { content: counter(st); position: absolute; left: 0; top: 12px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; border: 2px solid #3a3346; color: #6f6880; transition: all .4s; }
.h-steps li b { display: block; font-size: 1.15rem; color: inherit; font-family: 'Montserrat', sans-serif; }
.h-steps li.on { color: #e9e5f2; }
.h-steps li.on::before { background: var(--lime); border-color: var(--lime); color: #111; box-shadow: 0 0 0 6px rgba(163, 230, 53, .15); }
.h-bar { height: 4px; border-radius: 2px; background: #2a2433; margin-top: 18px; overflow: hidden; }
.h-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--purple), var(--lime)); }

.h-scene { position: relative; aspect-ratio: 4 / 3.2; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.h-scene > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.15 - var(--p, 0) * .1)); }
.h-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
/* QR kartı: yukarıdan dönerek gelir, masaya oturur */
.h-qr { position: absolute; z-index: 2; left: 14%; top: 22%; width: 31%; padding: 4.5% 4.5% 3%; background: #fff; border-radius: 16px; text-align: center; box-shadow: 0 25px 50px rgba(0, 0, 0, .45);
    --q: min(1, calc(var(--p, 0) * 3.2));
    transform: translate(calc((1 - var(--q)) * 160%), calc((1 - var(--q)) * -150%)) rotate(calc((1 - var(--q)) * -38deg + 4deg)) scale(calc(1 + (1 - var(--q)) * .5));
    opacity: calc(var(--q) * 1.6); }
.h-qr img { width: 100%; height: auto; display: block; }
.h-qr span { display: block; margin-top: 8px; font-size: clamp(.55rem, 1vw, .8rem); font-weight: 700; color: #1b1440; letter-spacing: .02em; }
.h-qr::before { content: ''; position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 14px var(--lime); top: calc(10% + var(--scan, 0) * 62%); opacity: var(--scanOn, 0); }
/* Telefon: alttan çıkar, QR'ı okutur, menüyü gösterir */
.h-mini { position: absolute; z-index: 3; right: 9%; bottom: -6%; width: 34%; aspect-ratio: 9 / 18.5; border-radius: 26px; background: #0b0b0f; padding: 2.2%; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 2px #2c2836;
    --m: min(1, max(0, calc((var(--p, 0) - .3) * 3.4)));
    transform: translateY(calc((1 - var(--m)) * 110%)) rotate(calc((1 - var(--m)) * 12deg - 3deg)); }
.h-mini-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #1c1c1e; }
.h-cam, .h-menu { position: absolute; inset: 0; transition: opacity .4s; }
.h-cam { background: #000; display: flex; align-items: center; justify-content: center; }
.h-cam i { width: 62%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .85); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.h-cam img { position: absolute; width: 56%; opacity: .9; }
.h-menu { opacity: var(--menuOn, 0); background: #1c1c1e; color: #fff; font-size: clamp(.42rem, .8vw, .62rem); }
.h-menu header { background: #6d28d9; padding: 9% 7% 6%; font-weight: 800; font-size: 1.2em; }
.h-menu .row { display: flex; gap: 6%; align-items: center; margin: 6% 6% 0; padding: 5%; background: #2a2a2d; border-radius: 9px; }
.h-menu .row img { width: 32%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.h-menu .row b { display: block; } .h-menu .row em { font-style: normal; color: #c4b5fd; font-weight: 700; }
.h-toast { position: absolute; z-index: 4; left: 8%; bottom: 8%; padding: 12px 16px; border-radius: 14px; background: #fff; color: #17131f; font-weight: 700; font-size: clamp(.72rem, 1.1vw, .92rem); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); display: flex; align-items: center; gap: 10px;
    opacity: var(--toastOn, 0); transform: translateY(calc((1 - var(--toastOn, 0)) * 20px)); transition: opacity .4s, transform .4s; }
.h-toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-style: normal; }
.h-scan-hint { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) {
    .h-story { height: 300vh; }
    .h-story-grid { grid-template-columns: 1fr; gap: 18px; }
    .h-story-text h2 { font-size: 1.5rem; margin-bottom: 0; }
    .h-story-text p.s-muted, .h-scan-hint { display: none; }
    .h-steps { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
    .h-steps li { padding: 8px 0 8px 40px; font-size: .82rem; }
    .h-steps li::before { width: 30px; height: 30px; top: 8px; font-size: .85rem; }
    .h-steps li b { font-size: .9rem; }
    .h-steps li span { display: none; }
}

/* ---------- Sektörler (fotoğraflı) ---------- */
.h-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; }
.h-tile { position: relative; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.h-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 8, 16, .88)); }
.h-tile:hover img { transform: scale(1.08); }
.h-tile div { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.h-tile h3 { font-size: 1.3rem; margin: 0 0 4px; }
.h-tile p { margin: 0; color: #ddd8e6; font-size: .92rem; }
.h-tile.big { grid-column: span 2; grid-row: span 2; } .h-tile.big h3 { font-size: 1.8rem; }
.h-tile.wide { grid-column: span 2; }
@media (max-width: 960px) { .h-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; } .h-tile.big { grid-column: span 2; grid-row: span 1; } }

/* Özellik kartları: üzerine gelince parlama */
.h-feat .s-card { position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.h-feat .s-card::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 230, 53, .18), transparent 70%); top: -110px; right: -110px; opacity: 0; transition: opacity .4s; }
.h-feat .s-card:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, .35); }
.h-feat .s-card:hover::before { opacity: 1; }

/* Masa siparişi: eğik fotoğraf + mutfak fişi */
.h-photo { position: relative; }
.h-photo > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.h-ticket { position: absolute; left: -26px; bottom: -26px; width: 230px; padding: 16px 18px; border-radius: 16px; background: #fff; color: #17131f; box-shadow: 0 25px 50px rgba(0, 0, 0, .45); font-size: .86rem; }
.h-ticket .t { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 8px; }
.h-ticket .t span { background: #ecfccb; color: #3f6212; padding: 2px 8px; border-radius: 6px; font-size: .74rem; }
.h-ticket li { list-style: none; padding: 4px 0; border-top: 1px dashed #ddd; }
.h-ticket ul { margin: 0; padding: 0; }
.h-badge-float { position: absolute; right: -18px; top: 26px; padding: 10px 14px; border-radius: 14px; background: var(--purple); color: #fff; font-weight: 700; font-size: .86rem; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); animation: hChip 6s ease-in-out infinite; }
@media (max-width: 960px) { .h-ticket { left: 10px; bottom: -20px; width: 200px; } .h-badge-float { right: 10px; } }

/* Parallax bant */
.h-band { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(60px, 9vw, 120px) clamp(24px, 6vw, 80px); isolation: isolate; }
.h-band img { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; z-index: -2; transform: translateY(calc(var(--py, 0) * 1px)); }
.h-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 9, 20, .92), rgba(60, 20, 120, .55)); }
.h-band h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); max-width: 720px; }
.h-band p { color: #e2ddeb; font-size: 1.12rem; max-width: 560px; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .h-hero-bg, .h-stage .s-phone, .h-chip, .h-mq-track, .h-badge-float { animation: none; }
}
