:root {
  --color-background: #E8F0EE;
  --color-accent: #c9bd9d;
  --color-highlight: #F17C67;
  --color-text: #3E4E50;
  --color-header: #1D5C63;
  --transition: 0.6s ease;
  --radius: 12px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  position: relative;
  background: url("YOUR_CLOUDINARY_LINK_HERE") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 92, 99, 0.6);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeIn 2s ease-in-out;
}
.hero h1 {
  font-size: 2.8rem;
  color: #fff;
}
.hero p {
  margin: 1rem 0 2rem;
}
.cta-btn {
  background: var(--color-highlight);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.cta-btn:hover {
  background: var(--color-header);
}

/* Sections */
section {
  padding: 80px 20px;
}
.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.section-image {
  width: 45%;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.text {
  flex: 1;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--color-accent);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition);
  /* Ensure cards are visible by default if animation fails */
  animation: fadeInCard 0.6s ease-out 0.2s forwards;
}
.card.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Fallback for cards without JavaScript animation */
.card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
}
.step {
  background: #fff;
  padding: 20px;
  border-left: 6px solid var(--color-highlight);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transform: translateX(-50px);
  opacity: 0;
  transition: var(--transition);
}
.step.visible {
  transform: translateX(0);
  opacity: 1;
}

/* Testimonials */
.testimonials {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}
.testimony-list blockquote {
  margin: 20px auto;
  max-width: 700px;
  font-style: italic;
}

/* Trust Section */
.trust ul {
  list-style: none;
  max-width: 800px;
  margin: auto;
  padding: 0;
}
.trust li {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid var(--color-header);
  border-radius: var(--radius);
}

/* Contact */
.contact {
  text-align: center;
  background: var(--color-header);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 60px 20px;
}

.contact .cta-btn {
  background: var(--color-highlight);
  margin-top: 20px;
}

/* Payment Methods */
.payment-methods {
  margin: 30px 0;
  text-align: center;
}

.payment-methods h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.payment-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.payment-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-option h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.payment-option p {
  color: #ddd;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.payment-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0070ba;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.payment-btn:hover {
  background: #003087;
}

.paypal-btn {
  background: #0070ba;
}

.paypal-btn:hover {
  background: #003087;
}

.mobile-money-options {
  text-align: left;
}

.mobile-option {
  margin: 8px 0;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-option:last-child {
  border-bottom: none;
}

.mobile-option strong {
  color: #fff;
}

.contact-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

/* Mobile responsive for payment methods */
@media (max-width: 768px) {
  .payment-options {
    flex-direction: column;
    gap: 20px;
  }

  .payment-option {
    min-width: auto;
    width: 100%;
  }

  .mobile-money-options {
    text-align: center;
  }
}

/* Footer */
footer {
  background: var(--color-accent);
  text-align: center;
  padding: 15px;
  color: #fff;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: var(--transition);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */

/* Mobile First - Small screens (up to 576px) */
@media (max-width: 576px) {
  .hero {
    height: 60vh;
    padding: 20px;
    position: relative;
  }

  .hero .nav-link {
    position: absolute;
    top: 0px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    color: #1D5C63;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 10;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  section {
    padding: 40px 15px;
  }

  .container {
    flex-direction: column;
    gap: 30px;
  }

  .section-image {
    width: 100%;
    order: -1; /* Image first on mobile */
  }

  .text {
    text-align: center;
  }

  .text h2 {
    font-size: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card {
    padding: 15px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    transform: translateX(0);
    opacity: 1;
  }

  .testimonials blockquote {
    font-size: 0.9rem;
  }

  .trust ul {
    padding: 0 15px;
  }

  .trust li {
    padding: 12px;
    font-size: 0.9rem;
  }

  .contact {
    padding: 30px 15px;
  }

  .contact p {
    font-size: 0.9rem;
  }

  footer {
    padding: 20px 15px;
  }

  footer .container {
    text-align: center;
  }

  footer a {
    display: block;
    margin-top: 10px;
  }
}

/* Tablet - Medium screens (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-image {
    width: 100%;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Small Desktop - Large screens (769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(odd) {
    transform: translateX(-30px);
  }

  .step:nth-child(even) {
    transform: translateX(30px);
  }
}

/* Large Desktop - Extra large screens (993px+) */
@media (min-width: 993px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Ultra-wide screens (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-image {
    width: 50%;
  }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cta-btn {
    border: 2px solid currentColor;
  }

  .card {
    border: 1px solid currentColor;
  }
}

/* Print styles */
@media print {
  .hero {
    display: none;
  }

  .cta-btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  section {
    page-break-inside: avoid;
  }
}
