* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ========== 2. Header ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px; /* jarak antara menu dan tombol */
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  color: #38a169; /* warna hijau logo SmartAgri */
}

/* ========== 3. Navigation Menu ========== */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0; /* pastikan tidak ada margin default */
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav ul li a:hover {
  color: #38a169;
}

nav .auth-buttons {
  display: flex;
  gap: 10px;
}

nav .auth-buttons a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 500;
}

nav .auth-buttons .login {
  color: #38a169;
}

nav .auth-buttons .signup {
  background-color: #38a169;
  color: #fff;
}

/* ========== 4. Hero Section ========== */
/* Container hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 120px;
}

/* Teks kiri */
.hero-text {
  flex: 1;
  max-width: 50%;
}

.hero-text h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero-text p {
  color: #555;
  margin-bottom: 30px;
}

.btn-consult {
  display: inline-block;
  background-color: #38a169;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
}

/* Gambar kanan */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  width: 400px; /* atur lebar gambar */
  height: auto;
}


/* ========== 5. Responsive ========== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hero {
    flex-direction: column;
    padding: 50px 20px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-image img {
    max-width: 400px; /* atur ukuran maksimal gambar */
  width: 100%;
  height: 100%;
  }
}

/* ====== Kenapa Banyak Petani Belum Mengadopsi Teknologi ====== */
.why-section {
  padding: 80px 100px;
  background-color: #f9f9f9;
}

.why-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.why-image img {
  max-width: 300px;
  height: auto;
}

.why-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.why-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.why-text ul li {
  margin-bottom: 10px;
  font-size: 18px;
  color: #555;
}

.read-more {
  display: inline-block;
  background-color: #38a169;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

/* ====== Solusi Praktis dan Teruji ====== */
.solution-section {
  padding: 80px 100px;
  text-align: center;
}

.solution-section h2 {
  font-size: 28px;
  margin-bottom: 50px;
}

.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.solution-item img {
  width: 50px;
  height: auto;
  margin-bottom: 20px;
}

.solution-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.solution-item p {
  font-size: 16px;
  color: #555;
}

/* statistik */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 120px;
  background-color: #f9f9f9; /* opsional */
  gap: 250px;
}

/* Teks kiri */
.stats-text {
  flex: 1;
  max-width: 40%;
}

.stats-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.stats-text h2 span {
  color: #38a169; /* hijau */
}

.stats-text p {
  color: #555;
}

/* Statistik kanan */
.stats-numbers {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
}

.stat-item .icon {
  font-size: 30px;
  margin-right: 15px;
  color: #38a169;
}

.stat-item h3 {
  margin: 0;
  font-size: 22px;
}

.stat-item p {
  margin: 0;
  color: #777;
  font-size: 14px;
}

/* benefit */
.benefit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 120px;
  gap: 80px; 
}

.benefit-text {
  flex: 1;
}

.benefit-image {
  flex: 1;
  text-align: center;
}

.benefit-text h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.benefit-text p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #555;
}

.btn-learn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-learn:hover {
  background-color: #27ae60;
}

.benefit-image img {
  max-width: 100%;
  height: auto;
}

/*ulasan*/
.testimonial {
  text-align: center;
  padding: 80px 60px;
}

.testimonial h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.testimonial p {
  color: #555;
  margin-bottom: 40px;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-cards .card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.testimonial-cards .card img {
  width: 100%;
  height: auto;
  display: block;
}

.testimonial-cards .card p {
  padding: 20px;
  font-size: 15px;
  color: #333;
}

.testimonial-cards .card span {
  display: block;
  padding: 0 20px 20px;
  font-weight: bold;
  color: #555;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cta button {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.cta button:hover {
  background: #45a049;
}

/* Footer */
.footer {
  background: #1d1f2f;
  color: #fff;
  padding: 60px 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 250px;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  margin-bottom: 20px;
}

.social-icons a {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  margin-right: 15px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #4CAF50; /* efek hover jadi hijau */
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links div {
  min-width: 150px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.subscribe {
  display: flex;
  margin-top: 10px;
}

.subscribe input {
  padding: 8px;
  border: none;
  border-radius: 4px 0 0 4px;
  flex: 1;
}

.subscribe button {
  padding: 8px 12px;
  border: none;
  background: #4CAF50;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
