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

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

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Apply animations */
.hero-content {
  animation: slideInRight 0.8s ease-out both;
}

.browser-showcase {
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.solution-card {
  animation: fadeIn 0.5s ease-out both;
}

.solution-card:nth-child(1) {
  animation-delay: 0.1s;
}

.solution-card:nth-child(2) {
  animation-delay: 0.2s;
}

.solution-card:nth-child(3) {
  animation-delay: 0.3s;
}

.solution-card:nth-child(4) {
  animation-delay: 0.4s;
}

.solution-card:nth-child(5) {
  animation-delay: 0.5s;
}

.feature {
  animation: fadeIn 0.5s ease-out both;
}

.feature:nth-child(1) {
  animation-delay: 0.1s;
}

.feature:nth-child(2) {
  animation-delay: 0.2s;
}

.feature:nth-child(3) {
  animation-delay: 0.3s;
}

/* Add animation to gallery transition */
.gallery-content {
  transition: opacity 0.5s ease-out;
}

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

.fade-out {
  opacity: 0;
}

/* Button animation */
.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}

.cta {
  animation: fadeIn 1s ease-out both;
}

.cta .btn-primary {
  animation: pulse 2s infinite;
}

/* Header animation on scroll */
.scroll-header {
  box-shadow: var(--shadow);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Mobile menu animation */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-open {
  animation: slideInDown 0.3s ease-out both;
}