/* Meikai — ortak efekt katmanı (index, magaza, studio). Hepsi ek özelliktir: bozulursa site yine çalışır. */

/* Film greni + vinyet */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 35; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: fx-grain 1.2s steps(6) infinite;
}
@keyframes fx-grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -3%); }
  50% { transform: translate(-2%, -1%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-1%, 2%); } 100% { transform: translate(0, 0); }
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 34; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgb(0 0 0 / .45) 100%);
}

/* Kaydırma çubuğu */
#fx-progress {
  position: fixed; left: 0; top: 0; z-index: 70; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #6b1219, #b3212b 60%, #ff4d5a); box-shadow: 0 0 12px rgb(179 33 43 / .8); pointer-events: none;
}

/* Özel imleç (yalnızca fare olan cihazlarda) */
#fx-dot, #fx-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
#fx-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ff4d5a; }
#fx-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgb(179 33 43 / .75); transition: opacity .3s, width .25s, height .25s, margin .25s, background-color .25s, border-color .25s; }
#fx-ring.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgb(179 33 43 / .14); border-color: rgb(255 77 90 / .9); }
#fx-ring.down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
html.fx-mouse #fx-dot, html.fx-mouse #fx-ring { opacity: 1; }

/* Hero: kor parçacıkları, fare ışığı, kaydır ipucu */
#fx-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-content, .s-hero > .container, .s-hero .container, .shop-hero > .container { position: relative; z-index: 1; }
.hero-glow, .s-hero::before { transition: transform .25s ease-out; }
.fx-scroll { position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-family: var(--mono, monospace); font-size: .62rem; letter-spacing: .4em; text-indent: .4em; color: var(--muted, #8f8f8f); text-transform: uppercase; transition: opacity .4s; pointer-events: none; }
.fx-scroll i { position: relative; width: 1px; height: 44px; background: rgb(255 255 255 / .12); overflow: hidden; }
.fx-scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: linear-gradient(#ff4d5a, transparent); animation: fx-drop 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes fx-drop { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.fx-scroll.gone { opacity: 0; }

/* Başlık parlaması */
.hero h1 {
  background-image: linear-gradient(100deg, transparent 38%, #ffffff 50%, transparent 62%), linear-gradient(#ededed, #ededed);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; background-position: 120% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: fx-shine 6s ease-in-out 3.6s infinite;
}
@keyframes fx-shine { 0%, 55% { background-position: 120% 0, 0 0; } 100% { background-position: -40% 0, 0 0; } }
@media (max-height: 760px) { .fx-scroll { display: none; } }

/* Bölüm başlıklarının altına kırmızı çizgi */
.section h2 { position: relative; padding-bottom: 1rem; }
.section h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 3rem; height: 2px; background: linear-gradient(90deg, #b3212b, transparent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.16, 1, .3, 1) .25s; }
.section h2.in::after { transform: scaleX(1); }
.contact h2::after { left: 50%; margin-left: -1.5rem; }

/* Kayan yazı bandı */
.fx-marquee { position: relative; overflow: hidden; border-block: 1px solid var(--border, rgb(255 255 255 / .08)); background: linear-gradient(90deg, #0b0b0b, #121212 50%, #0b0b0b); padding: 1.25rem 0; user-select: none; }
.fx-marquee::before, .fx-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 5rem; z-index: 2; pointer-events: none; }
.fx-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg, #0e0e0e), transparent); }
.fx-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg, #0e0e0e), transparent); }
.fx-track { display: flex; width: max-content; animation: fx-marq 38s linear infinite; }
.fx-marquee:hover .fx-track { animation-play-state: paused; }
.fx-track span { display: inline-flex; align-items: center; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .35); }
.fx-track span::after { content: '✦'; margin: 0 1.6rem; font-size: .55em; color: #b3212b; -webkit-text-stroke: 0; }
.fx-track span:nth-child(3n) { color: #b3212b; -webkit-text-stroke: 0; text-shadow: 0 0 28px rgb(179 33 43 / .55); }
.fx-track .en { display: none; }
html[lang='en'] .fx-track .tr { display: none; }
html[lang='en'] .fx-track .en { display: inline-flex; }
@keyframes fx-marq { to { transform: translateX(-50%); } }
.fx-marquee.alt .fx-track { animation-direction: reverse; animation-duration: 46s; }

/* Kartlarda fare ışığı + eğim */
.services li, .project, .card { position: relative; isolation: isolate; }
.services li::before, .project::before, .card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(179 33 43 / .16), transparent 60%);
}
.services li:hover::before, .project:hover::before, .card:hover::before { opacity: 1; }
.fx-tilt { transform-style: preserve-3d; will-change: transform; }
.shot::after { z-index: 1; }

/* Üst kısım: logo hafif süzülme */
.hero-logo { animation: fx-float 7s ease-in-out infinite; }
@keyframes fx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Gelişmiş beliriş (mevcut .reveal üzerine bulanıklık) */
.js .reveal.in { animation-name: fx-reveal; animation-duration: 1s; }
@keyframes fx-reveal { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Sayfa geçişi */
body { transition: opacity .25s ease; }
html.fx-leave body { opacity: 0; }

/* Seçili metin */
::selection { background: #b3212b; color: #fff; }

/* Dokunmatik ve az hareket */
@media (hover: none), (pointer: coarse) {
  #fx-dot, #fx-ring { display: none; }
  .hero-logo { animation: none; }
}
@media (max-width: 640px) { .fx-marquee { padding: 1rem 0; } .fx-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  body::after, .fx-track, .hero-logo, .fx-scroll i::after, .hero h1 { animation: none !important; }
  #fx-embers, #fx-dot, #fx-ring { display: none; }
  .hero h1 { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
  body { transition: none; }
}
