/* =========================================================
   BaranLowes — Animasyonlar
   ========================================================= */

/* ------- Fade In Up ------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------- Fade In Down ------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------- Fade In Left ------- */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------- Fade In Right ------- */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------- Scale In ------- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ------- Glow Pulse ------- */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), 0 0 60px rgba(0, 229, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35), 0 0 80px rgba(0, 229, 255, 0.1);
  }
}

/* ------- Neon Flicker ------- */
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 7px rgba(0, 229, 255, 0.6),
      0 0 20px rgba(0, 229, 255, 0.4),
      0 0 40px rgba(0, 229, 255, 0.2);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* ------- Float ------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ------- Gradient Shift ------- */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ------- Spin ------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ------- Slide In Nav ------- */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ------- Typing Cursor Blink ------- */
@keyframes cursorBlink {
  0%, 100% { border-color: var(--clr-accent-blue); }
  50%      { border-color: transparent; }
}

/* ------- Border Glow ------- */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(0, 229, 255, 0.2);
  }
  50% {
    border-color: rgba(0, 229, 255, 0.5);
  }
}

/* ------- Shimmer ------- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* =========================================================
   ANIMATION UTILITY CLASSES
   ========================================================= */

.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ------- Animation Delays ------- */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ------- Initially Hidden (for JS-triggered animations) ------- */
.animate-on-scroll {
  opacity: 0;
}

/* =========================================================
   PREFERS REDUCED MOTION OVERRIDE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-fade-in-down,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-scale-in,
  .animate-glow,
  .animate-float,
  .animate-gradient,
  .animate-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
