/* Component Styles */

/* App Icon Animation */
.app-icon {
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-md);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.5);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 3.2rem;
  height: 5.6rem;
  border: 2px solid var(--color-gray-500);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: var(--space-1);
}

.scroll-indicator::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--color-gray-500);
  border-radius: 50%;
  animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Header Scroll Styles */
.header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Feature Card Icon Hover */
.feature-card:hover .feature-icon img {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Screenshot Slider Animations */
.screenshot img {
  transition: transform var(--transition-medium);
}

.screenshot:hover img {
  transform: scale(1.02);
}

/* Button Animations */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Contact Method Hover Effect */
.contact-method:hover .contact-icon {
  animation: bounce 0.6s ease;
}

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

/* Footer Social Hover */
.footer-social a svg {
  transition: transform var(--transition-medium);
}

.footer-social a:hover svg {
  transform: scale(1.2);
}