/* About Section */
.about-section {
  padding: 60px 5%;
  background: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.about-container {
  max-width: 1200px;
  margin: auto;
}

.about-thumb {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.about-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.text-block {
  flex: 1 1 55%;
}

.image-block {
  flex: 1 1 40%;
  text-align: right;
}

.image-block img {
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease;
}

.image-block img:hover {
  transform: scale(1.03);
}

.subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.main-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.2s forwards;
}

.highlight {
  color: #19a914;
  font-weight: bold;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.4s forwards;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}

.features-list li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.features-list li i {
  color: #3ac569;
  margin-right: 10px;
  font-size: 1rem;
}

.btn-learn-more {
  display: inline-block;
  padding: 12px 24px;
  background:#cbae06;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

.btn-learn-more:hover {
  background: #19a914;
}

/* Stats section */
.stats-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stat-box {
  background: #e3e6e5;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stat-box:hover {
  transform: translateY(-5px);
  background: #90EE90;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
  font-size: 1.5rem;
  color: #00bfa5;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.stat-box:hover h3 {
  color: #006400;
}

.stat-box p {
  font-size: 0.9rem;
  color: #666;
  transition: color 0.3s ease;
}

.stat-box:hover p {
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.fadeIn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

/* === Animation Keyframes === */
@keyframes fadeSlideUp {
0% {
  opacity: 0;
  transform: translateY(30px);
}
100% {
  opacity: 1;
  transform: translateY(0);
}
}


.fade-up,
.fade-left {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease-out;
}

.fade-left {
transform: translateX(-30px);
}

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


/* === Animate the text-block === */
.text-block h2,
.text-block p,
.features-list li,
.btn-learn-more {
opacity: 0;
animation: fadeSlideUp 0.8s ease forwards;
}

/* === Cascading delay for list items === */
.features-list li:nth-child(1) {
animation-delay: 0.2s;
}
.features-list li:nth-child(2) {
animation-delay: 0.4s;
}
.features-list li:nth-child(3) {
animation-delay: 0.6s;
}
.features-list li:nth-child(4) {
animation-delay: 0.8s;
}
.features-list li:nth-child(5) {
animation-delay: 1s;
}

/* === Animate headline and paragraph === */
.text-block h2 {
animation-delay: 0.9s;
}
.text-block p {
animation-delay: 1s;
}

/* === Animate button === */
.btn-learn-more {
animation-delay: 1.2s;
}

/* Optional: Animate stat boxes */
.stat-box {
opacity: 0;
animation: fadeSlideUp 0.8s ease forwards;
}

.stats-grid .stat-box:nth-child(1) { animation-delay: 0.2s; }
.stats-grid .stat-box:nth-child(2) { animation-delay: 0.3s; }
.stats-grid .stat-box:nth-child(3) { animation-delay: 0.4s; }
.stats-grid .stat-box:nth-child(4) { animation-delay: 0.5s; }
.stats-grid .stat-box:nth-child(5) { animation-delay: 0.6s; }
.stats-grid .stat-box:nth-child(6) { animation-delay: 0.7s; }
.stats-grid .stat-box:nth-child(7) { animation-delay: 0.8s; }

/* === Trigger animation when in viewport (optional enhancement) === */
.about-section.is-visible .text-block h2,
.about-section.is-visible .text-block p,
.about-section.is-visible .features-list li,
.about-section.is-visible .btn-learn-more,
.about-section.is-visible .stat-box {
opacity: 1;
}