/* ==========================================================================
   İNTERODİT HAREKETLİ ANİMASYON SİSTEMİ
   Scroll Reveal, SVG Data Flow, Gauge Needle, Seal Rotation, Ambient Motion
   ========================================================================== */

/* Scroll Reveal States */
[data-io-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-io-reveal="left"] {
  transform: translateX(-32px);
}

[data-io-reveal="right"] {
  transform: translateX(32px);
}

[data-io-reveal="scale"] {
  transform: scale(0.92);
}

[data-io-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Elementor Editöründe Görünürlük Garantisi */
.elementor-editor-active [data-io-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Keyframes */
@keyframes ioSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ioFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes ioPulseGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(30, 200, 245, 0.35)); }
  50% { filter: drop-shadow(0 0 22px rgba(30, 200, 245, 0.75)); }
}

@keyframes ioDashFlow {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}

@keyframes ioModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ioPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Applied Motion Classes */
.io-anim-spin-slow {
  animation: ioSpinSlow 24s linear infinite;
}

.io-anim-float {
  animation: ioFloat 5.5s ease-in-out infinite;
}

.io-anim-pulse-glow {
  animation: ioPulseGlow 3.2s ease-in-out infinite;
}

.io-anim-dash {
  stroke-dasharray: 10 6;
  animation: ioDashFlow 2.6s linear infinite;
}

.io-anim-pin {
  animation: ioPinBounce 3s ease-in-out infinite;
}

/* SVG Path Draw on Scroll */
.io-draw-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .io-draw-path,
.elementor-editor-active .io-draw-path {
  stroke-dashoffset: 0;
}

/* Gauge Needle Sweep */
.io-gauge-needle {
  transform-origin: 150px 145px;
  transform: rotate(-72deg);
  transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-visible .io-gauge-needle,
.elementor-editor-active .io-gauge-needle {
  transform: rotate(26deg);
}

/* Radar Polygon Pop */
.io-radar-poly {
  transform-origin: center;
  transform: scale(0.35);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.is-visible .io-radar-poly,
.elementor-editor-active .io-radar-poly {
  transform: scale(1);
  opacity: 1;
}

/* Scroll Progress Bar */
.io-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--io-teal), var(--io-cyan-glow), var(--io-orange));
  z-index: 99999;
  transition: width 0.1s linear;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-io-reveal] {
    opacity: 1;
    transform: none;
  }
}
