/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background-color: #fefefe;
  line-height: 1.6;
}

/* ===== Containers & Layout ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.text-center {
  text-align: center;
}

/* ===== Navbar ===== */
header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

header .logo img {
  height: 50px;
  width: auto;
}

header .logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #16a34a;
  margin: 0;
}

header nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #16a34a;
}

.auth-buttons a {
  margin-left: 15px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.auth-buttons .btn {
  background: #16a34a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.auth-buttons .btn:hover {
  background: #15803d;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(180deg, #86efac 0%, #ffffff 100%); /* brighter green */
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: #333;
}

.hero .btn {
  background: #16a34a;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #15803d;
}

/* ===== Features ===== */
#features {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

#features h3 {
  color: #16a34a;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

#features p {
  color: #555;
}

/* ===== Products ===== */
#products {
  background: #f0fdf4; /* light green background */
  padding: 80px 20px;
  text-align: center;
}

#products h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-icon.purple { background-color: #e9d5ff; }
.product-icon.blue { background-color: #dbeafe; }
.product-icon.green { background-color: #dcfce7; }
.product-icon.orange { background-color: #ffedd5; }
.product-icon.teal { background-color: #ccfbf1; }
.product-icon.mint { background-color: #a7f3d0; }

.product-icon img,
.product-icon i {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-icon i {
  font-size: 24px;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .product-icon img,
.product-card:hover .product-icon i {
  transform: scale(1.1);
}

.product-card:hover .product-icon {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
}

.product-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.more-btn {
  background: none;
  border: 2px solid #16a34a;
  color: #16a34a;
  padding: 8px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.more-btn:hover {
  background: #16a34a;
  color: white;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 163, 74, 0.98);
  color: white;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card {
  position: relative;
}

.product-card:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

.product-overlay h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #86efac;
  padding-bottom: 10px;
}

.feature-list {
  text-align: left;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.feature h6 {
  color: #86efac;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #f0fdf4;
}

.overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.3s ease;
}

.overlay-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Partners Section ===== */
#partners {
  background: #f0fdf4;
  padding: 80px 20px;
  text-align: center;
}

#partners h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #16a34a;
  margin-bottom: 10px;
}

#partners h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

#partners p {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
}

.partner-slider {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  animation: slide 20s linear infinite;
  width: calc(200px * 8); /* 4 slides * 2 (duplicated) */
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 4)); /* 4 slides */
  }
}

.partner-slide {
  width: 200px;
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-slide img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.prev-btn,
.next-btn {
  background: #16a34a;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
  background: #15803d;
}

/* ===== Pricing Section ===== */
#pricing {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

#pricing h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.pricing-card.featured {
  border: 2px solid #16a34a;
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h4 {
  color: #111;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 30px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 30px 0;
  padding: 0;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.pricing-card .btn:hover {
  background: #15803d;
}

/* ===== Testimonials ===== */
#testimonials {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

#testimonials h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

#testimonials .card {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

#testimonials .card:hover {
  transform: translateY(-4px);
}

#testimonials .testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid #16a34a;
  padding: 3px;
}

#testimonials .testimonial-text {
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

#testimonials .testimonial-author h4 {
  color: #111;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

#testimonials .testimonial-author .position {
  color: #16a34a;
  font-weight: 500;
  margin-bottom: 8px;
}

#testimonials .contact-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

#testimonials .contact-link:hover {
  color: #16a34a;
}

/* ===== CTA Section ===== */
.cta {
  background: #16a34a; /* strong green */
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.cta h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta a {
  background: #ffffff;
  color: #16a34a;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta a:hover {
  background: #f3f4f6;
}

/* ===== Contact Section ===== */
.contact {
  background: #f9fafb;
  padding: 80px 20px;
}

.contact h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  gap: 30px;
}

.contact-item h4 {
  color: #16a34a;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-item p {
  color: #444;
  line-height: 1.6;
}

.contact-item a {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #15803d;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #16a34a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #15803d;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #16a34a;
}

.contact-form .btn {
  width: 100%;
  background: #16a34a;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background: #15803d;
}

/* ===== Footer ===== */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-card {
    padding: 25px 20px;
  }

  .pricing-card.featured {
    transform: scale(1.03);
  }

  .pricing-card.featured:hover {
    transform: scale(1.03) translateY(-5px);
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }

  .flex-between {
    flex-direction: column;
    gap: 15px;
  }

  header nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  header nav a {
    margin: 5px 10px;
  }

  .auth-buttons {
    order: 2;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  #features, #products, #partners, #pricing, #testimonials, .contact {
    padding: 60px 15px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  .product-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .grid-4, .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-logo img {
    max-width: 150px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .product-card {
    padding: 20px 15px;
  }

  .product-icon {
    width: 60px;
    height: 60px;
  }

  .product-icon img {
    width: 30px;
    height: 30px;
  }

  .product-card h4 {
    font-size: 1.2rem;
  }

  .more-btn {
    padding: 6px 20px;
    font-size: 0.9rem;
  }

  .pricing-card {
    padding: 30px 15px;
  }

  .pricing-card .price {
    font-size: 2rem;
  }

  .contact-form {
    padding: 20px;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  #testimonials .card {
    padding: 20px 15px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }
}

/* ===== Mobile Navigation Enhancement ===== */
@media (max-width: 768px) {
  .auth-buttons {
    display: flex;
    gap: 10px;
  }

  .auth-buttons a {
    margin: 0;
  }

  .cta {
    padding: 60px 15px;
  }

  .cta h3 {
    font-size: 1.8rem;
  }
}
