/* Animation effects for cards */
.card-animated {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card-animated::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 0;
  height: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
  transform: rotate(45deg);
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

.card-animated:hover::before {
  width: 200%;
  height: 200%;
}

/* Glow effect */
.glow-on-hover {
  position: relative;
}

.glow-on-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-on-hover:hover::after {
  box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.3);
  opacity: 1;
}

/* Colorful borders */
.border-rainbow {
  position: relative;
  border: none !important;
  z-index: 1;
}

.border-rainbow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #ff9a9e 0%, 
    #fad0c4 20%, 
    #a1c4fd 40%, 
    #c2e9fb 60%, 
    #a78bfa 80%, 
    #ddd6fe 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-rainbow:hover::before {
  opacity: 1;
}

.border-rainbow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-radius: calc(0.5rem - 2px);
  z-index: -1;
}

/* Float animation */
.float-on-hover {
  transition: transform 0.3s ease;
}

.float-on-hover:hover {
  transform: translateY(-10px);
}

/* Pulse animation */
@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pulse-on-hover:hover {
  animation: pulse-border 1.5s infinite;
}

/* Custom button styles */
.btn-3d {
  position: relative;
  box-shadow: 0 6px 0 #0369a1;
  transform: translateY(0);
  transition: all 0.2s ease;
}

.btn-3d:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #0369a1;
}

.btn-3d:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #0369a1;
}

/* For form inputs */
.input-fancy {
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.input-fancy:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  outline: none;
}

.input-fancy:hover {
  border-color: #d1d5db;
}

/* Gradient text */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #3b82f6, #8b5cf6);
  display: inline-block;
}

/* Shimmer effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}
