/* Mali müşavirlik 3D sahne ve ikon animasyonları */
.scene-3d {
  position: relative;
  width: min(440px, 92vw);
  height: 360px;
  perspective: 900px;
  pointer-events: none;
}

.scene-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
}

.iso-card {
  position: absolute;
  border-radius: 18px;
  transform-style: preserve-3d;
  box-shadow:
    0 18px 0 rgba(0,0,0,.12),
    0 28px 40px rgba(11,31,51,.28);
}

.iso-face {
  border-radius: 18px;
  padding: 1rem;
  height: 100%;
  box-sizing: border-box;
  color: #0b1f33;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.iso-face.center {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.iso-title {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .55rem;
  opacity: .75;
}

.iso-face i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(11,31,51,.12);
  margin: .35rem 0;
}
.iso-face i:nth-child(2) { width: 88%; }
.iso-face i:nth-child(3) { width: 72%; }
.iso-face i:nth-child(4) { width: 64%; }
.iso-face i:nth-child(5) { width: 80%; }

.iso-ledger {
  width: 170px; height: 210px; left: 18%; top: 12%;
  background: linear-gradient(160deg, #fff, #e8eef6);
}
.iso-ledger .iso-face {
  background: linear-gradient(160deg, #ffffff, #edf2f8);
}

.iso-calc {
  width: 130px; height: 160px; right: 8%; top: 28%;
  background: linear-gradient(145deg, #c4a35a, #8d6b2f);
  z-index: 2;
}
.iso-calc-face {
  background: linear-gradient(145deg, #dbb86c, #c4a35a);
  color: #0b1f33;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.iso-calc-face b { font-size: 1.8rem; line-height: 1; }
.calc-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.calc-keys s {
  display: block;
  height: 14px;
  border-radius: 5px;
  background: rgba(11,31,51,.18);
  text-decoration: none;
}

.iso-chart {
  width: 150px; height: 120px; left: 42%; bottom: 8%;
  background: linear-gradient(145deg, #1a3a58, #0b1f33);
  z-index: 1;
}
.iso-chart .iso-face {
  background: linear-gradient(145deg, #1f4568, #132c45);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  padding-top: .4rem;
}
.bars em {
  flex: 1;
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #dbb86c, #c4a35a);
  animation: barPulse 2.8s ease-in-out infinite;
}
.bars em:nth-child(1) { height: 42%; animation-delay: 0s; }
.bars em:nth-child(2) { height: 68%; animation-delay: .2s; }
.bars em:nth-child(3) { height: 55%; animation-delay: .4s; }
.bars em:nth-child(4) { height: 82%; animation-delay: .6s; }

.iso-shield {
  width: 150px; height: 170px; left: 22%; top: 18%;
  background: linear-gradient(145deg, #5eead4, #0d9488);
}
.iso-shield.big { width: 180px; height: 200px; left: 28%; top: 16%; }
.iso-doc {
  width: 140px; height: 170px; right: 12%; top: 22%;
  background: linear-gradient(160deg, #fff, #e7eef7);
}
.iso-stamp {
  width: 100px; height: 100px; left: 48%; bottom: 12%;
  border-radius: 50%;
  background: linear-gradient(145deg, #86efac, #16a34a);
}
.iso-stamp .iso-face { border-radius: 50%; color: #fff; }

.iso-gift {
  width: 150px; height: 150px; left: 24%; top: 20%;
  background: linear-gradient(145deg, #ff8dc8, #e11d74);
}
.iso-gift .iso-face { color: #fff; font-size: 2.4rem; }
.iso-tag {
  width: 130px; height: 90px; right: 14%; bottom: 22%;
  background: linear-gradient(145deg, #ffd56a, #f0a202);
}
.iso-mail {
  width: 160px; height: 120px; left: 20%; top: 28%;
  background: linear-gradient(145deg, #7dd3fc, #0284c7);
}
.iso-mail .iso-face { font-size: 2rem; color: #fff; }
.iso-pin {
  width: 110px; height: 110px; right: 16%; bottom: 18%;
  border-radius: 50%;
  background: linear-gradient(145deg, #fdba74, #ea580c);
}
.iso-pin .iso-face { border-radius: 50%; font-size: 1.8rem; }

.iso-orb {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0,0,0,.2), inset 0 2px 4px rgba(255,255,255,.5);
}
.orb-gold { right: 18%; top: 8%; background: radial-gradient(circle at 30% 30%, #ffe6a8, #c4a35a 60%, #8d6b2f); }
.orb-cyan { left: 8%; bottom: 18%; background: radial-gradient(circle at 30% 30%, #b8f3ff, #0891b2 60%, #0e7490); }
.orb-pink { right: 10%; top: 20%; background: radial-gradient(circle at 30% 30%, #ffc1df, #e11d74 60%, #9f1239); }

.float-a { animation: floatY 5.5s ease-in-out infinite; }
.float-b { animation: floatY 6.5s ease-in-out infinite .6s; }
.float-c { animation: floatY 7s ease-in-out infinite 1s; }
.pulse { animation: pulseOrb 3.5s ease-in-out infinite; }
.pulse-delay { animation: pulseOrb 3.5s ease-in-out infinite 1.2s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes pulseOrb {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); transform-origin: bottom; }
  50% { transform: scaleY(1.12); transform-origin: bottom; }
}

.ico-tile-3d {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; margin-bottom: .9rem;
  transform: perspective(140px) rotateX(10deg) rotateY(-8deg);
  box-shadow: 0 8px 0 rgba(0,0,0,.12), 0 14px 24px rgba(11,31,51,.18), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .2s ease;
}
.ico-tile-3d svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.feature:hover .ico-tile-3d {
  transform: perspective(140px) rotateX(2deg) rotateY(-2deg) translateY(-3px);
}
.t-blue { background: linear-gradient(145deg, #5aa8ff, #1d5fd4 55%, #1347a8); }
.t-gold { background: linear-gradient(145deg, #ffd56a, #c4a35a 55%, #8d6b2f); }
.t-teal { background: linear-gradient(145deg, #5eead4, #0d9488 55%, #0f766e); }
.t-rose { background: linear-gradient(145deg, #fda4af, #e11d48 55%, #9f1239); }
.t-violet { background: linear-gradient(145deg, #c4b5fd, #7c3aed 55%, #5b21b6); }
.t-green { background: linear-gradient(145deg, #86efac, #16a34a 55%, #166534); }

.page-hero { position: relative; overflow: hidden; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: center;
}
.page-hero .scene-3d {
  height: 280px;
  width: min(360px, 100%);
  margin-left: auto;
}
.page-hero .scene-stage { transform: rotateX(10deg) rotateY(-14deg) scale(.85); }

.hero { display: grid; align-items: center; }
.hero-wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 3.75rem;
  position: relative;
  z-index: 1;
}
.hero-inner { padding: 0; max-width: none; }
.hero .scene-3d { margin-left: auto; }

.reveal-up { animation: revealUp .8s ease both; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.campaign-tile {
  transition: transform .25s ease, box-shadow .25s ease;
}
.campaign-tile:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 22px 40px rgba(11,31,51,.28);
}

@media (max-width: 900px) {
  .hero-wrap, .page-hero-grid { grid-template-columns: 1fr; }
  .hero .scene-3d, .page-hero .scene-3d {
    height: 240px;
    margin: 0 auto;
  }
  .scene-stage { transform: rotateX(8deg) rotateY(-10deg) scale(.8); }
  .hero .photo-hero {
    width: min(420px, 100%);
    margin: .5rem auto 0;
  }
}

.auth-aside .scene-3d {
  height: 220px;
  width: min(320px, 100%);
}
.auth-aside .scene-stage {
  transform: rotateX(10deg) rotateY(-12deg) scale(.72);
}

@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .pulse, .pulse-delay, .bars em, .reveal-up,
  .photo-3d-frame, .photo-3d-orb, .photo-hero .photo-3d-frame,
  .photo-3d-frame img, .photo-3d-sweep, .photo-3d-glow, .photo-3d-rim,
  .ref-photo img, .ref-photo::after {
    animation: none !important;
  }
  .photo-3d-frame img,
  .ref-photo img {
    transform: none !important;
  }
}

/* Premium animasyonlu fotoğraflar */
.photo-3d {
  position: relative;
  width: min(480px, 100%);
  margin: 0;
  perspective: 1400px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}
.photo-3d.is-inview .photo-3d-frame {
  animation: photoReveal .9s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes photoReveal {
  from { opacity: 0; transform: translateY(28px) scale(.94) rotateY(-12deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotateY(var(--tilt-y, -6deg)); }
}

.photo-3d-glow {
  position: absolute;
  inset: 8% 4% -4%;
  border-radius: 40%;
  background: radial-gradient(ellipse at center, rgba(196, 163, 90, .35), transparent 68%);
  filter: blur(18px);
  opacity: .55;
  animation: glowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes glowPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.06); }
}

.photo-3d-frame {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  transform: rotateY(var(--tilt-y, -6deg)) rotateX(var(--tilt-x, 3deg));
  transform-style: preserve-3d;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(196, 163, 90, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  background: #0b1f33;
  will-change: transform;
}

.photo-3d:hover .photo-3d-frame {
  box-shadow:
    0 36px 72px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(196, 163, 90, .5),
    0 0 40px rgba(196, 163, 90, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.photo-3d-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  animation: kenBurns 18s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05) brightness(1.02);
  transition: filter .4s ease;
}
.photo-3d:hover .photo-3d-frame img {
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
  animation-duration: 12s;
}
@keyframes kenBurns {
  0% { transform: scale(1.12) translate(0, 0); }
  50% { transform: scale(1.2) translate(-2.5%, 1.5%); }
  100% { transform: scale(1.16) translate(2%, -1.5%); }
}

.photo-3d-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, .2) 0%, transparent 38%, transparent 62%, rgba(196, 163, 90, .14) 100%);
  pointer-events: none;
  z-index: 2;
}

.photo-3d-sweep {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .28) 49%, rgba(196, 163, 90, .22) 51%, transparent 60%);
  transform: translateX(-60%) skewX(-12deg);
  animation: lightSweep 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: soft-light;
}
@keyframes lightSweep {
  0%, 35% { transform: translateX(-70%) skewX(-12deg); opacity: 0; }
  45% { opacity: 1; }
  55%, 100% { transform: translateX(70%) skewX(-12deg); opacity: 0; }
}

.photo-3d-rim {
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(135deg, rgba(255, 230, 170, .55), transparent 40%, transparent 60%, rgba(196, 163, 90, .35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  opacity: .65;
  animation: rimGlow 3.8s ease-in-out infinite;
}
@keyframes rimGlow {
  0%, 100% { opacity: .45; }
  50% { opacity: .9; }
}

.hero .photo-3d,
.page-hero .photo-3d {
  margin-left: auto;
}

/* Ana sayfa hero: laciverte karışan, sinematik */
.hero .photo-hero {
  width: min(560px, 100%);
  perspective: 1600px;
}
.hero .photo-hero .photo-3d-frame {
  border-radius: 28px;
  transform: rotateY(var(--tilt-y, -4deg)) rotateX(var(--tilt-x, 2deg));
  animation: heroPhotoLift 7s ease-in-out infinite;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(196, 163, 90, .35),
    0 0 50px rgba(196, 163, 90, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
}
.hero .photo-hero.is-inview .photo-3d-frame {
  animation: photoReveal .95s cubic-bezier(.22, 1, .36, 1) both, heroPhotoLift 7s ease-in-out 1s infinite;
}
.hero .photo-hero .photo-3d-frame img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 45% 40%;
  animation: kenBurnsHero 22s ease-in-out infinite alternate;
}
@keyframes kenBurnsHero {
  0% { transform: scale(1.14) translate(0, 0); }
  100% { transform: scale(1.24) translate(-3%, 2%); }
}
.hero .photo-hero .photo-3d-shine {
  background:
    linear-gradient(105deg, rgba(11, 31, 51, .5) 0%, rgba(11, 31, 51, .1) 26%, transparent 52%),
    linear-gradient(180deg, transparent 50%, rgba(11, 31, 51, .32) 100%);
  opacity: 1;
}
.photo-hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 65% 35%, transparent 25%, rgba(11, 31, 51, .32) 100%);
  pointer-events: none;
  z-index: 2;
}
@keyframes heroPhotoLift {
  0%, 100% { transform: rotateY(var(--tilt-y, -4deg)) rotateX(var(--tilt-x, 2deg)) translateY(0); }
  50% { transform: rotateY(var(--tilt-y, -4deg)) rotateX(var(--tilt-x, 2deg)) translateY(-10px); }
}

.page-hero .photo-3d-frame {
  animation-duration: 7s;
}

.auth-aside .photo-3d {
  width: min(300px, 100%);
}
.auth-aside .photo-3d-frame {
  transform: rotateY(var(--tilt-y, -5deg)) rotateX(var(--tilt-x, 2deg));
}

.ref-photo {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 22px 48px rgba(11, 31, 51, .2);
  isolation: isolate;
}
.ref-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(11, 31, 51, .15), transparent 40%, rgba(196, 163, 90, .12));
  pointer-events: none;
}
.ref-photo::after {
  content: '';
  position: absolute;
  inset: -30% -40%;
  z-index: 3;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .25) 50%, transparent 58%);
  animation: lightSweep 7s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.ref-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  animation: kenBurns 20s ease-in-out infinite alternate;
  transition: transform .5s ease, filter .4s ease;
}
.ref-photo:hover img {
  filter: saturate(1.12) brightness(1.04);
}

@media (max-width: 900px) {
  .photo-3d { margin: 0 auto; }
  .photo-3d-frame {
    transform: none;
  }
  .hero .photo-hero .photo-3d-frame {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
    border-radius: 22px;
    animation: heroPhotoLiftMobile 6s ease-in-out infinite;
  }
  @keyframes heroPhotoLiftMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}
