.py-5 {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.display-5 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: black !important;
}

.text-success {
  color: var(--success-color) !important;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Statistics Cards */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-in-out;
  text-align: center;
  padding: 2rem 1rem;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.text-primary {
  color: var(--primary-color) !important;
}
.text-warning {
  color: var(--warning-color) !important;
}
.text-muted {
  color: var(--muted-color) !important;
}

.image-container {
  width: 100%;
  height: 90%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1rem;

  background-image: url("/img/home\ right.png");
  background-size: cover;
  background-position: center;
  margin-left: -130px;
  background-repeat: no-repeat;
  margin-top: 50px;
  animation: float 3s ease-in-out infinite;
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

/* Scroll Animation Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease-out;
}

.scroll-animate-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.8s ease-out;
}

.scroll-animate-scale.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) {
  transition-delay: 0.1s;
}
.scroll-animate:nth-child(2) {
  transition-delay: 0.2s;
}
.scroll-animate:nth-child(3) {
  transition-delay: 0.3s;
}

.stat-card:nth-child(1) {
  transition-delay: 0.2s;
}
.stat-card:nth-child(2) {
  transition-delay: 0.4s;
}
.stat-card:nth-child(3) {
  transition-delay: 0.6s;
}
.stat-card:nth-child(4) {
  transition-delay: 0.8s;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 1199.98px) {
  .display-5 {
    font-size: 2.8rem;
  }
  .counter {
    font-size: 2.2rem;
  }
  .image-container {
    width: 100%;
    margin-top: 0;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    margin-left: 0px !important;
  }
}

@media (max-width: 991.98px) {
  .py-5 {
    padding: 4rem 0;
  }
  .display-5 {
    font-size: 2.5rem;
  }
  .lead {
    font-size: 1.1rem;
  }
  .stat-card {
    padding: 1.5rem 0.8rem;
  }
  .counter {
    font-size: 2rem;
  }
  .about-mobile-order {
    display: flex;
    flex-direction: column;
  }
  .about-image-mobile {
    order: 1;
  }
  .about-content-mobile {
    order: 2;
  }
  .image-container {
    width: 100%;
    margin-top: 0;
    margin-bottom: 2rem;
    min-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .py-5 {
    padding: 3rem 0;
  }
  .display-5 {
    font-size: 2rem;
    text-align: center;
  }
  .lead,
  .mb-4 {
    font-size: 0.95rem;
    text-align: center;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .stat-card {
    padding: 1.2rem 0.6rem;
  }
  .counter {
    font-size: 1.8rem;
  }
  .image-container {
    min-height: 250px;
    margin-bottom: 2rem;
    background-size: contain;
    background-position: center;
    margin-left: 0px !important;
  }
}

@media (max-width: 575.98px) {
  .py-5 {
    padding: 2rem 0;
  }
  .display-5 {
    font-size: 1.8rem;
  }
  .lead,
  .mb-4 {
    font-size: 0.9rem;
  }
  .stats-container {
    gap: 0.8rem;
  }
  .stat-card {
    padding: 1rem 0.5rem;
  }
  .counter {
    font-size: 1.6rem;
  }
  .image-container {
    min-height: 300px;
    background-size: contain;
    margin-left: 0px !important;
  }
}

@media (max-width: 375px) {
  .py-5 {
    padding: 1.5rem 0;
  }
  .display-5 {
    font-size: 1.6rem;
  }
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .stat-card {
    padding: 0.8rem 0.4rem;
  }
  .counter {
    font-size: 1.4rem;
  }
  .image-container {
    min-height: 200px;
  }
}
