/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide Up Animation */
.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Results Fade In */
.result-item {
  animation: resultFadeIn 0.3s ease-in-out;
  animation-fill-mode: both;
}

@keyframes resultFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger children animations */
.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }
.result-item:nth-child(5) { animation-delay: 0.5s; }

/* Profile Card Animation */
.profile-card {
  animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }


/* Hover Effects */
.tech-icon {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tech-icon:hover {
  transform: translateY(-2px);
}

.social-link {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

/* Search Bar Focus Animation */
.search-bar-small:focus-within {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Navigation Hover Animation */
#results-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--google-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#results-nav a:hover::after {
  width: 100%;
}

/* Theme Toggle Animation */
.theme-toggle-icon {
  transition: transform 0.3s ease;
}

#theme-toggle:hover .theme-toggle-icon {
  transform: rotate(180deg);
}

