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

:root {
  --agri-green: #2e7d32;
  --agri-light: #8bc34a;
  --agri-dark: #1b5e20;
  --agri-bg: #f5f5f5;
  --agri-card: #ffffff;
  --agri-text: #333333;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--agri-bg);
  color: var(--agri-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1522px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background-color: var(--agri-green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  max-width: 200px;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s;
  padding: 8px 15px;
  border-radius: 5px;
}

.nav-menu a:hover {
  background-color: var(--agri-light);
}

.nav-menu a.active {
  background-color: var(--agri-dark);
  color: white;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
              url('farm-field.jpg') center/cover no-repeat;
  color: var(--agri-text);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--agri-dark);
}

.hero h1 span {
  color: var(--agri-green);
}

.hero img {
  max-width: 400px;
  margin: 20px 0;
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 40px;
}

/* Feature Sections */
.feature-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0;
  gap: 30px;
}

.feature-card {
  flex: 1 1 300px;
  min-width: 300px;
  max-width: 450px;
  padding: 30px;
  background: var(--agri-card);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h2 {
  color: var(--agri-green);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.feature-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-card p {
  margin-bottom: 20px;
  color: var(--agri-text);
}

/* Developer Cards */
.developers-section {
  text-align: center;
  margin: 80px 0;
  padding: 40px 0;
  background-color: rgba(139, 195, 74, 0.1);
}

.developers-section h2 {
  color: var(--agri-dark);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.developer-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.developer-card {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 30px;
  background: var(--agri-card);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.developer-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--agri-light);
  margin: 0 auto 20px;
}

.developer-card h3 {
  color: var(--agri-green);
  margin-bottom: 10px;
}

.developer-card p {
  color: var(--agri-text);
  font-style: italic;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 50px 20px;
  background-color: var(--agri-green);
  color: white;
}

.footer-section {
  flex: 1 1 300px;
  margin: 20px;
}

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

.footer-section a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--agri-light);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: var(--agri-green);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
  margin: 10px 0;
}

.btn:hover {
  background: var(--agri-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn img {
  margin-left: 10px;
  width: 20px;
  height: 20px;
}

/* Language Selector */
.language-selector {
  position: relative;
  display: inline-block;
}

/* Google Translate Overrides */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  color: white !important;
}

.goog-te-menu-value span {
  color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .nav-menu {
    margin-top: 15px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .feature-card {
    flex: 1 1 100%;
  }
  
  .developer-card {
    flex: 1 1 100%;
  }
  
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .hero img {
    max-width: 250px;
  }
}
/* ANIMATION: Fade-in + Slide-up for hero */
.hero h1, .hero p, .hero img {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s forwards;
}
.hero h1 { animation-delay: 0.2s; }
.hero img { animation-delay: 0.5s; }
.hero p { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMATION: Feature cards pop on hover */
.feature-card {
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
}
.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(30,60,20,0.25);
}

/* ANIMATION: Button Pulse */
.btn {
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn:hover {
  animation: pulse 0.7s;
  box-shadow: 0 0 10px #6fcf97, 0 0 0px #fff inset;
  transform: scale(1.05);
}
@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.1);}
  100% { transform: scale(1);}
}

/* ANIMATION: Developer Cards fade in */
.developer-card {
  opacity: 0;
  transform: translateY(30px);
  animation: devFadeUp 0.7s forwards;
}
.developer-card:nth-child(1) { animation-delay: 0.3s; }
.developer-card:nth-child(2) { animation-delay: 0.5s; }
.developer-card:nth-child(3) { animation-delay: 0.7s; }
.developer-card:nth-child(4) { animation-delay: 0.9s; }
@keyframes devFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMATION: Logo spins on hover */
.logo img {
  transition: transform 0.6s cubic-bezier(.41,.38,.65,1.42);
}
.logo img:hover {
  transform: rotate(360deg);
}
