/* Animations and Transitions */

/* Fade-in animation for service cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Logo subtle glow */
.brand-logo {
  filter: drop-shadow(0 0 8px rgba(255, 213, 88, 0.2));
  transition: filter var(--transition-base);
}

.brand-logo:hover {
  filter: drop-shadow(0 0 12px rgba(255, 213, 88, 0.4));
}

/* Service icon animation */
.service-icon {
  transition: transform var(--transition-base);
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

/* Accent glow animation */
@keyframes accentGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 213, 88, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 213, 88, 0.5);
  }
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Underline animation for links */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.animated-underline:hover::after {
  width: 100%;
}

/* Stagger animation delays for service cards */
.service-card:nth-child(1).fade-in {
  animation-delay: 0s;
}

.service-card:nth-child(2).fade-in {
  animation-delay: 0.1s;
}

.service-card:nth-child(3).fade-in {
  animation-delay: 0.2s;
}

/* Button press effect */
.press-effect {
  transition: transform var(--transition-fast);
}

.press-effect:active {
  transform: scale(0.98);
}

/* Smooth scroll behavior is defined in variables.css */

/* Loading spinner for form submission */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-bg);
  animation: spin 0.6s linear infinite;
}

/* Content fade in on load */
@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-grid {
  animation: contentFadeIn 0.6s ease-out 0.1s backwards;
}

/* Section reveal animation */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
