/* ==========================================================================
   ANIMATIONS & MOTION SUITE - PAKDEV STUDIO
   ========================================================================== */

/* Keyframe Animations */
@keyframes pulseRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 229, 157, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 229, 157, 0);
  }
}

@keyframes pulseGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(30px, -20px) scale(1.15);
    opacity: 0.55;
  }
  100% {
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 0.3;
  }
}

@keyframes shineSweep {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  20%, 100% {
    transform: translateX(100%) rotate(45deg);
  }
}

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

@keyframes borderGlowLoop {
  0%, 100% {
    border-color: rgba(0, 176, 116, 0.2);
  }
  50% {
    border-color: rgba(6, 182, 212, 0.6);
  }
}

/* Floating Elements Utility */
.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

.animate-glow-border {
  animation: borderGlowLoop 4s ease-in-out infinite;
}

/* GSAP Initial Reveal States */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(35px);
  transition: none; /* Controlled by GSAP */
}

[data-animate="fade-in"] {
  opacity: 0;
  transition: none;
}

[data-animate="scale-up"] {
  opacity: 0;
  transform: scale(0.92);
  transition: none;
}

/* Magnetic Button Wrapper */
.magnetic-wrap {
  display: inline-block;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07090e;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #07090e;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-emerald-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--accent-emerald-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
}

.custom-cursor.hovered {
  width: 48px;
  height: 48px;
  background-color: rgba(46, 229, 157, 0.2);
  border-color: var(--accent-cyan);
}

@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}
