/* Ziyaretçiye tepki veren efektler (interact.js ile birlikte çalışır).
   .fx-ready sınıfı yalnızca JS açıkken ve "hareketi azalt" kapalıyken eklenir. */

/* 1) İmleci takip eden ışık */
.fx-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    #ffffff14,
    transparent 70%
  );
}
.fx-spot.is-on {
  opacity: 1;
}
.fx-spot-hero {
  z-index: -1;
  background:
    radial-gradient(
      260px circle at var(--mx, 50%) var(--my, 50%),
      #ff4d6a2e,
      transparent 70%
    ),
    radial-gradient(
      620px circle at var(--mx, 50%) var(--my, 50%),
      #c8102e1f,
      transparent 72%
    );
}
.values-section > .wrap,
.cta-band > .wrap {
  position: relative;
  z-index: 1;
}

/* 2) Egzoz dumanı */
.fx-smoke {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.fx-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 45% 40%,
    #e9ebef,
    #c4c7cd99 40%,
    transparent 70%
  );
  filter: blur(4px);
  opacity: 0;
  will-change: transform, opacity;
}

/* 3) Kart eğilmesi ve parlama */
.fx-ready .fx-tilt {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition:
    transform 550ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease;
}
.fx-ready .fx-tilt.is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg)) translateY(-5px);
  transition:
    transform 160ms ease-out,
    box-shadow 300ms ease;
  box-shadow: 0 22px 40px #17191d14;
}
.fx-ready .values-grid .fx-tilt.is-tilting,
.fx-ready .gallery-open.is-tilting {
  box-shadow: none;
}
.fx-ready .values-grid .fx-tilt.is-tilting {
  transform: translateY(-4px);
}
.fx-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 300ms ease;
  background: radial-gradient(
    380px circle at var(--gx, 50%) var(--gy, 50%),
    #ffffff2e,
    transparent 60%
  );
  mix-blend-mode: soft-light;
}
.inquiry-card > .fx-glare,
.service-card > .fx-glare,
.statement-card > .fx-glare,
.article-card > .fx-glare {
  mix-blend-mode: normal;
  background: radial-gradient(
    340px circle at var(--gx, 50%) var(--gy, 50%),
    #c8102e0d,
    transparent 65%
  );
}
.values-grid article > .fx-glare {
  inset: -18px -18px -18px -18px;
  mix-blend-mode: normal;
  background: radial-gradient(
    260px circle at var(--gx, 50%) var(--gy, 50%),
    #ffffff0f,
    transparent 70%
  );
}
.values-grid article .icon {
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-ready .values-grid article.is-tilting .icon {
  transform: translateY(-3px) scale(1.12);
}
.fx-ready .inquiry-card.is-tilting .card-top > .icon {
  transform: rotate(-8deg) scale(1.08);
}
.card-top > .icon {
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-tilt.is-tilting > .fx-glare {
  opacity: 1;
}

/* 4) Mıknatıs butonlar */
.fx-ready .fx-magnet {
  transition:
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s,
    box-shadow 0.2s;
}
.fx-ready .fx-magnet:hover {
  transform: translate3d(var(--bx, 0px), calc(var(--by, 0px) - 2px), 0);
  transition:
    transform 120ms ease-out,
    background 0.2s,
    box-shadow 0.2s;
}

/* 5) Tıklama dalgası */
.fx-ready .fx-ripple-host {
  position: relative;
  overflow: hidden;
}
.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
}

/* 6) Menü göstergesi */
.fx-nav {
  position: relative;
}
.fx-nav-bar {
  position: absolute;
  left: 0;
  bottom: 24px;
  height: 2px;
  width: 0;
  background: var(--red);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    width 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 250ms ease;
}
.fx-nav-bar.is-on {
  opacity: 1;
}
@media (min-width: 761px) {
  .fx-nav a[aria-current]::after {
    display: none;
  }
}
@media (max-width: 760px) {
  .fx-nav-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-spot,
  .fx-smoke,
  .fx-glare,
  .fx-ripple,
  .fx-nav-bar {
    display: none;
  }
}
@media print {
  .fx-spot,
  .fx-smoke,
  .fx-glare,
  .fx-ripple,
  .fx-nav-bar {
    display: none;
  }
}

/* 7) Egzoz imleci ve duman katmanı */
.fx-cursor-on,
.fx-cursor-on * {
  cursor: none !important;
}
.fx-smoke-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483646;
  pointer-events: none;
}
.fx-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  will-change: transform;
}
.fx-cursor.is-on {
  opacity: 1;
}
.fx-cursor > svg {
  display: block;
  transform-origin: 6px 6px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 3px 4px #0005);
}
.fx-cursor.is-link > svg {
  transform: rotate(-12deg) scale(1.12);
}
.fx-cursor.is-down > svg {
  transform: scale(0.9) translate(2px, 2px);
}
@media (prefers-reduced-motion: reduce), print {
  .fx-cursor,
  .fx-smoke-canvas {
    display: none;
  }
}
