﻿/* ===== STATS SECTION ===== */
.stats-section {
  background: var(--bg-primary);
  padding: 100px 0;
  position: relative;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: var(--card-bg);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid #eee;
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  width: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-img-main:hover img {
  transform: scale(1.05);
}

.about-img-secondary {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
}

.about-img-secondary img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.about-experience {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 25px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-green);
}

.about-experience .exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
}

.about-experience .exp-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.about-text .section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 35px;
}

.about-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-feature .feature-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.about-feature .feature-text h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.about-feature .feature-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: var(--section-padding);
  background: var(--gradient-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center; /* center cards */
  align-items: stretch; /* ensures all cards have equal height */
}

.service-card {
  background: transparent;
  width: 100%;
  max-width: 260px; /* prevent too wide cards */
  perspective: 1000px; /* for 3D flip */
  display: flex;
  flex-direction: column;
  height: 100%; /* make grid-stretched height work */
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%; /* ensures inner flips fill card */
  transition: transform 0.8s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* ensures front and back are equal height */
}

.service-card-front {
  z-index: 2;
}

.service-card-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
}

.services-section .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.services-section .section-title,
.services-section .section-subtitle {
  color: #fff;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
}

.service-link:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .service-card { max-width: 240px; }
}

@media (max-width: 768px) {
  .services-grid { gap: 20px; }
  .service-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { max-width: 100%; }
}




/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
  padding: var(--section-padding);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.how-it-works-section .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.how-it-works-section .section-title,
.how-it-works-section .section-subtitle {
  color: #fff;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.step-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  flex: 1;
  max-width: 280px;
  min-width: 250px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--secondary-color);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 25px;
  font-size: 2rem;
  color: #fff;
}

.step-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  padding-top: 60px;
}

.steps-cta {
  text-align: center;
}

.steps-cta .btn-primary {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.steps-cta .btn-primary:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* ===== PLANT CARE SECTION ===== */
.plant-care-section {
  padding: var(--section-padding);
  background: var(--bg-tertiary);
  height: auto;
   position: relative;
  z-index: 20;
}

.plant-care-content {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 80px;
  align-items: center;
}

.plant-care-text .section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.plant-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 35px;
}

.plant-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.plant-feature i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.plant-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.plant-care-images {
  position: relative;
  height: 500px;
}

.plant-img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 4px 4px 8px black;
}

.plant-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.plant-img:hover img {
  transform: scale(1.05);
}

.plant-img-1 {
  position: relative;
  top: 170px;
  left: 0;
  width: 15vw;
  height: auto;
  z-index: 0;
}

.plant-img-2 {
  position: relative;
  bottom: 0;
  top: 50px;
  right: 170px;
  width: 15vw;
  height: auto;
  border: 5px solid #fff;
  z-index: 2;
}

@media (max-width:768px){
  .plant-img{
    display: none;
  }
}
/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  transition: var(--transition-normal);
}

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

.testimonial-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--gradient-primary);
  padding: 60px 50px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-green);
}

.newsletter-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: #fff;
}

.newsletter-content h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 15px;
}

.newsletter-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-xl);
}

.newsletter-input-group input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.newsletter-input-group .btn {
  white-space: nowrap;
}

.newsletter-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
}

.newsletter-note i {
  margin-right: 5px;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  padding: 60px 20px;
  background: var(--bg-primary);
}

.partners-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.partner-logo {
  opacity: 0.5;
  transition: var(--transition-normal);
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partner-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Dark mode adjustments for partner logos */
[data-theme="dark"] .partner-logo:nth-child(1) img,
[data-theme="dark"] .partner-logo:nth-child(4) img {
  filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE SECTIONS ===== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .about-content,
  .plant-care-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-images {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .plant-care-images {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .stats-container {
    padding: 30px 20px;
    gap: 20px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-img-main img {
    height: 350px;
  }

  .about-img-secondary img {
    height: 200px;
  }

  .newsletter-container {
    padding: 40px 25px;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-input-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-bottom: 1px solid #eee;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .about-experience {
    top: auto;
    bottom: -20px;
    right: 20px;
    padding: 20px;
  }

  .about-experience .exp-number {
    font-size: 2rem;
  }

  .plant-care-images {
    height: 350px;
  }

  .plant-img-1 {
    width: 70%;
    height: 65%;
  }

  .plant-img-2 {
    width: 65%;
    height: 50%;
  }
}
/* ================================
   Eco Challenges Section
================================ */

.eco-challenges-section {
  padding: 80px 0;
  background: var(--bg-color);
}

.eco-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.eco-challenge-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eco-challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.eco-challenge-card i {
  font-size: 36px;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.eco-challenge-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.eco-challenge-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.challenge-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.challenge-btn:hover {
  background: var(--navbar-hover);
  transform: scale(1.05);
}

.challenge-btn.completed {
  background: var(--heading-color);
  cursor: default;
}

/* 3D Icons in Eco Challenges */
.challenge-icon-3d {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  transition: transform 0.4s ease;
}

.challenge-icon-3d img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
}

.eco-challenge-card:hover .challenge-icon-3d {
  transform: scale(1.1) rotate(5deg);
}

/* Card 3D Tilt Effect - Base Styles */
.eco-challenge-card {
  perspective: 1000px; /* Enable 3D space */
  transform-style: preserve-3d;
}

/* Section Wave Divider */
.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.section-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.section-wave .shape-fill {
  fill: #FFFFFF;
}

/* Pulse Animation for Buttons */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.challenge-btn:hover {
  animation: pulse-glow 1.5s infinite;
}

/* 3D Buildings in Services Section */
.service-icon-3d {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 10;
}

.service-icon-3d img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  animation: float-building 6s ease-in-out infinite;
}

@keyframes float-building {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.service-card:hover .service-icon-3d img {
  transform: scale(1.1);
  animation-play-state: paused;
}

/* Adjust Service Card for larger icons */
.service-card {
  padding-top: 50px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fdf9 100%);
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card h3 {
  font-weight: 700;
  color: var(--eco-primary);
}

/* 3D Animations for Animal Section */
.feature-card:hover .card-image img {
  transform: scale(1.1) rotate(2deg);
  transition: transform 0.5s ease;
}

.feature-card .card-btn i {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .card-btn i {
  transform: translateX(5px);
}
