/* Animations for AccessPoint Africa */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: none; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s forwards;
}
@keyframes slideInLeft {
  to { opacity: 1; transform: none; }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s forwards;
}
@keyframes slideInRight {
  to { opacity: 1; transform: none; }
}

.zoom-in {
  opacity: 0;
  transform: scale(0.95);
  animation: zoomIn 0.7s forwards;
}
@keyframes zoomIn {
  to { opacity: 1; transform: scale(1); }
}

.animated-btn {
  transition: transform 0.2s, box-shadow 0.2s;
}
.animated-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(118,75,162,0.15);
}

.animated-field {
  transition: border-color 0.3s, box-shadow 0.3s;
}
.animated-field:focus {
  border-color: #764ba2;
  box-shadow: 0 0 0 2px #764ba233;
}

/* Responsive Design Enhancements */
@media (max-width: 900px) {
  .nav-container, .container {
    padding: 0 10px;
  }
  .blog-post-container {
    padding: 24px 4px;
  }
  .blog-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-content, .about-content, .services-grid, .process-steps, .stats-grid, .footer-content {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .request-match-section .container {
    padding: 24px 4px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .nav {
    padding: 8px 0;
  }
  .logo {
    font-size: 18px;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .btn-primary, .btn-secondary, .cta-button, .animated-btn {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 20px;
  }
  input, select, textarea {
    font-size: 1rem;
    padding: 12px;
  }
  .blog-image, .featured-image {
    height: 140px !important;
    max-height: 180px !important;
  }
  .blog-post-container, .request-match-section .container {
    padding: 12px 2px;
  }
  .footer {
    padding: 30px 0 15px;
  }
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
} 