/* Custom utilities & animations */

@layer utilities {
  .text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Floating animation (used in some older designs - kept for compatibility) */
.animate-float {
  animation: float 7s ease-in-out infinite;
}

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

/* Slow pulsing glow for hero background effect */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.70;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 12s ease-in-out infinite;
}

/* Custom scrollbar - matches dark theme */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
  border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Smooth hover scaling for images inside .group containers */
.group:hover img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* Optional: subtle lift on hover for cards/buttons */
.group:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Extra shadow on hover for depth (used on project cards, buttons, etc.) */
.group:hover {
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.15),
              0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

/* Smooth focus ring for form inputs (accessibility + style) */
input:focus, textarea:focus, button:focus {
  outline: none;
  ring: 2px solid #3b82f6;
  ring-offset: 2px;
  ring-offset-color: #0f172a;
}