/* Custom Styles for Portfolio Website */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Utilities */
.line-clamp-2 {
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Project cards hover */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Active filter buttons */
.filter-btn.active {
  font-weight: 600;
}

/* Contact form focus styles */
input:focus, textarea:focus {
  outline: none;
  border-color: #4f46e5; /* indigo-600 */
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }
  
  .stats-item {
    margin-bottom: 2rem;
  }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #4f46e5;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.scroll-top.visible {
  opacity: 1;
}

/* Loading animation */
.loading {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.loading-dot {
  background-color: #4f46e5;
  border-radius: 50%;
  width: 0.75rem;
  height: 0.75rem;
  margin: 0 0.25rem;
  animation: loading 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.loading-dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes loading {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}