/* Custom CSS & Smooth Animations */

/* Smooth focus rings */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Smooth transitions for theme toggle */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* PULSE GLOW ANIMATION */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.08);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

/* TYPING CURSOR BLINK */
@keyframes cursorBlink {
  0%, 100% { border-color: transparent; }
  50% { border-color: currentColor; }
}

.typing-cursor {
  border-right: 2px solid;
  animation: cursorBlink 0.8s step-end infinite;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered transition delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
