/* Global Styles */
:root {
  --primary-color: #4a8f29;
  --secondary-color: #f8f1e5;
  --accent-color: #e67e22;
  --text-dark: #333;
  --text-light: #777;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8fff5;
  line-height: 1.6;
}

h2,
h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #2f7b2f;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
  height: 50px;
  width: auto;
}

/* Mobile Menu Toggle */
/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
}

/* Header Container */
header {
  background-color: #2f7b2f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo img {
  height: 50px;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Links */
.nav-links, .auth-links {
  display: flex;
  gap: 1.5rem;
}


.nav-links a,
.auth-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.auth-links a:hover {
  color: greenyellow;
}

/* Auth Buttons */
.register-link {
   --primary-color: #4a8f29;
  color: #2f7b2f;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
}

/* .register-link:hover {
  color: greenyellow;
  color: #4a8f29;
} */

.register-link {
  background-color: #4a8f29;
}

.login-link {
  background-color: #4a8f29;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;;
}

.menu-toggle i {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  nav {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    gap: 1rem;
  }

  nav.open {
    display: flex;
  }

  .nav-links,
  .auth-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-links a,
  .auth-links a {
    width: 100%;
    padding: 0.5rem 0;
  }
}


/* Hero Banner Styles */
.hero {
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1580918577344-fe0a66733a2a?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
    no-repeat center center/cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  text-align: center;
}

/* Headline & Tagline */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease forwards;
}

.tagline {
  font-size: 1.3rem;
  margin-bottom: 40px;
  animation: fadeIn 1s ease forwards;
}

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  opacity: 1;
  transform: translateY(20px);
  animation: slideUp 1s ease forwards;
}

.btn-primary {
  background-color: green;
  color: white;
}

.btn-primary:hover {
  background-color: #e65c00;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: #333;
}

/* Product Highlights Section */
.highlights {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: var(--primary-color);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.highlight-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.card-description {
  color: #666;
  margin-bottom: 1rem;
}

/* Testimonials Section */
#testimonials {
  background-color: #f8f9fa;
  padding: 60px 5%;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.testimonial-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 80px;
}

.testimonial-items {
  display: flex;
  transition: transform 0.5s ease-in-out;
  margin-top: 40px;
  margin-bottom: 0px;
}

.testimonial-item {
  flex: 0 0 100%;
  background: #f8f1e5;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 0 15px;
  transition: transform 0.3s ease-in-out;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.stars {
  font-size: 1.2rem;
  color: #f4c150;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(37, 158, 21, 0.6);
  color: #fff;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 10;
  transition: background-color 0.3s ease-in-out;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Quick Links Section */
.quick-links {
  background-color: #f1f3f5;
  padding: 3rem 2rem;
  text-align: center;
}

.links-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.link-card {
  /* background: white; */
  padding: 2rem;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: translateY(-5px);
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #6e8efb;
}

.link-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #444;
}

.link-btn {
  background-color: #e67e22;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  /* color: #ddd; */
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (min-width: 1200px) {
  /* Adjustments for very large screens */
  .hero-content, .highlights, .links-container {
    max-width: 1400px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  nav {
    gap: 1rem;
  }

  .nav-links, .auth-links {
    gap: 1rem;
  }

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

  .tagline {
    font-size: 1.1rem;
  }
  
  .link-card {
    width: 220px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin-top: 1rem;
    display: none;
  }
  
  .nav-active nav {
    display: flex;
  }
  
  .nav-links, .auth-links {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 0;
  }
  
  .hero {
    padding: 80px 15px;
  }

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

  .tagline {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .testimonial-item {
    padding: 20px;
    margin: 0 10px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .stars {
    font-size: 1rem;
  }

  .carousel-button {
    font-size: 1.2rem;
    padding: 10px;
  }

  .testimonial-img {
    width: 60px;
    height: 60px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 15px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .tagline {
    font-size: 0.95rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
  }
  
  .logo img {
    height: 40px;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  
  .link-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .testimonial-item {
    padding: 15px 10px;
    margin: 0 5px;
  }
  
  .carousel-button {
    padding: 8px;
    font-size: 1rem;
  }
  
  .testimonial-img {
    width: 50px;
    height: 50px;
  }
  
  .footer-column {
    min-width: 100%;
    padding: 0 15px;
  }
  
  .social-links a {
    font-size: 1.5rem;
    padding: 5px;
  }
}