/* ==========================================================================
   KOZLOW STUDIO — Animations & Interactive Micro-Motions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MASK TEXT REVEAL ENGINE
   -------------------------------------------------------------------------- */
.mask-reveal-wrap {
  overflow: hidden;
  display: block;
}

.mask-reveal-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.is-revealed .mask-reveal-inner {
  transform: translateY(0%);
}

/* Stagger delay helpers */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   2. CUSTOM CURSOR (DESKTOP INTERACTION)
   -------------------------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--primary-turquoise-border);
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s var(--ease-out-smooth),
    height 0.25s var(--ease-out-smooth),
    border-color 0.25s ease,
    background-color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: normal;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-turquoise);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.custom-cursor.cursor-active,
.custom-cursor.cursor-view,
.custom-cursor.cursor-explore,
.custom-cursor.cursor-hover {
  width: 46px;
  height: 46px;
  border-color: var(--primary-turquoise);
  background: var(--primary-turquoise-subtle);
}

/* --------------------------------------------------------------------------
   3. EXPANDING ISLAND EFFECT (PHYSICAL DEPTH SCROLL)
   -------------------------------------------------------------------------- */
.island-expanding {
  transform: scale(0.94);
  transform-origin: center center;
  transition:
    box-shadow 0.5s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

/* Seçili kartlar küçük başlar, scroll ilerledikçe yavaş yavaş tam boyuta açılır.
   Yalnızca transform (GPU) kullanılır; genişlik animasyonu layout maliyeti yaratır. */
.island-expanding--width {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transform: scale(0.86);
}

/* --------------------------------------------------------------------------
   4. MARQUEE STREAM ANIMATION
   -------------------------------------------------------------------------- */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   5. PULSE GLOW
   -------------------------------------------------------------------------- */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow:
      0 0 4px var(--primary-turquoise),
      0 0 10px rgba(90,171,187, 0.4);
    opacity: 0.9;
  }
  50% {
    box-shadow:
      0 0 12px var(--primary-turquoise),
      0 0 25px rgba(90,171,187, 0.8);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   6. PREFERS-REDUCED-MOTION (ACCESSIBILITY COMPLIANCE)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  .mask-reveal-inner {
    transform: none !important;
  }

  .island-expanding {
    transform: none !important;
  }

  .island-expanding--width {
    width: 100% !important;
  }

  .marquee-stream {
    animation: none !important;
    overflow-x: auto;
  }
}
