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

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -10%);
  }

  20% {
    transform: translate(-15%, 5%);
  }

  30% {
    transform: translate(7%, -25%);
  }

  40% {
    transform: translate(-5%, 25%);
  }

  50% {
    transform: translate(-15%, 10%);
  }

  60% {
    transform: translate(15%, 0%);
  }

  70% {
    transform: translate(0%, 15%);
  }

  80% {
    transform: translate(3%, 35%);
  }

  90% {
    transform: translate(-10%, 10%);
  }
}

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

/* Color Scheme */
:root {
  --primary-color: #21940e;
  /* Green color for agriculture theme */
  --secondary-color: #4CAF50;
  /* Light green */
  --accent-color: #FFC107;
  /* Amber for CTA */
  --light-color: #FFF;
  --dark-color: #333;
  --gray-color: #f5f5f5;
}

/* Top Bar Styles */
.top-bar {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 101;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info {
  display: flex;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
  font-size: 14px;
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  color: var(--light-color);
  margin-left: 15px;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.8;
}

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 102;
  /* Increased z-index to be higher than top-bar */
  border-radius: 0 0 50px 50px;
  padding: 0 15px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-text span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
  padding: 5px 0;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.header-icons {
  display: flex;
  align-items: center;
}

.header-icons a {
  margin-left: 20px;
  color: var(--dark-color);
  text-decoration: none;
  font-size: 18px;
  position: relative;
}


/* Mobile Menu Styles */
.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--light-color);
  z-index: 200;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-nav-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  color: var(--dark-color);
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 10px 0;
}

/* Page Banner */
.page-banner {
  height: 300px;
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1932&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  padding-top: 120px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.page-title {
  position: relative;
  z-index: 1;
  color: var(--light-color);
  font-size: 48px;
  font-weight: bold;
}

/* products Section */
.products-section {
  padding: 80px 20px;
  background-color: var(--light-color);
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

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

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

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

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-description {
  color: #666;
  margin-bottom: 15px;
}

.project-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.project-link:hover::after {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
}

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

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

.footer-column ul li a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

/* Jump to top button */
.jump-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.jump-to-top:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {

  /* Top bar and header */
  .top-bar {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    padding: 1px 0;
    text-align: center;
    position: fixed;    
  }

  .top-bar-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }

  .contact-info span {
    margin: 2px 0;
    font-size: 14px;
  }

  .social-icons {
    display: none;
  }

  .social-icons a {
    margin: 0 8px;
    font-size: 16px;
  }

  header {
    width: 100%;
    position:fixed;
    top: 90px;
    /* Adjusted to accommodate the taller top bar */
    border-radius: 0;
    padding: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
  }

  .logo-text {
    font-size: 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    /* Hide the regular navigation on mobile */
  }

  .header-icons {
    display: flex;
    align-items: center;
  }

  .header-icons a {
    margin-left: 15px;
  }

  .page-header {
    margin-top: 200px;
    height: 200px;
  }

  .page-title {
    font-size: 36px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  /* Further adjustments for very small screens */
  .hero h1 {
    font-size: 28px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .features-grid {
    justify-content: space-around;
  }

  .feature-card {
    min-width: 130px;
    max-width: 130px;
    margin-bottom: 15px;
  }

  .footer-column {
    min-width: 100%;
  }

  .image-stack {
    height: 300px;
  }

  .image-1,
  .image-2 {
    width: 80%;
    left: 10%;
    right: auto;
  }

  .image-1 {
    height: 200px;
    top: 0;
  }

  .image-2 {
    height: 180px;
    bottom: 0;
    top: auto;
  }

  /* Add this to your existing CSS styles */
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .social-icons a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
  }

  .social-icons svg,
  .social-icons i {
    font-size: 14px;
  }

}