@import url(./header.css);
body {
  font-family: 'AvenirMedium';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.5;
  padding-top: 25px;
  min-height: 100vh;
}


.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Agriculture Carousel Section */
.agriculture-carousel {
  width: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 50px 0;
  overflow: hidden;
}

.carousel-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-content h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--dark);
  font-weight: 700;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  width: fit-content;
  padding: 0 20px;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  flex: 0 0 250px;
  min-width: 250px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeInImage 0.6s ease-out forwards;
}

.carousel-item:nth-child(1) img {
  animation-delay: 0s;
}

.carousel-item:nth-child(2) img {
  animation-delay: 0.1s;
}

.carousel-item:nth-child(3) img {
  animation-delay: 0.2s;
}

.carousel-item:nth-child(4) img {
  animation-delay: 0.3s;
}

.carousel-item:nth-child(5) img {
  animation-delay: 0.4s;
}

.carousel-item:nth-child(6) img {
  animation-delay: 0.5s;
}

.carousel-item:nth-child(7) img {
  animation-delay: 0.6s;
}

.carousel-item:nth-child(8) img {
  animation-delay: 0.7s;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

.carousel-item p {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  background-color: #fafafa;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Contact Info Section */
.contact-info {
  background-color: var(--primary);
  color: white;
  padding: 30px 0;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About Section */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: var(--secondary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray);
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Subsidiaries Section */
.subsidiaries {
  background-color: var(--light-gray);
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.subsidiary-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.subsidiary-card:hover {
  transform: translateY(-10px);
}

.subsidiary-img {
  height: 200px;
  overflow: hidden;
}

.subsidiary-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.subsidiary-card:hover .subsidiary-img img {
  transform: scale(1.1);
}

.subsidiary-content {
  padding: 25px;
}

.subsidiary-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
}

.subsidiary-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* Clients Section */
.clients-section {
  padding: 50px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  position: relative;
}

.clients-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--primary) 80%, transparent 100%);
}

.clients-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--primary) 80%, transparent 100%);
}

.clients-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.25rem 0;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.clients-carousel-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollClientsRightToLeft 40s linear infinite;
  width: fit-content;
  padding: 0 1.5rem;
}

.clients-carousel-track:hover {
  animation-play-state: paused;
}

.client-logo {
  background-color: white;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  min-width: 150px;
  flex: 0 0 150px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #f0f0f0;
  opacity: 0;
  animation: fadeInClientsScale 0.6s ease-out forwards;
}

.client-logo:nth-child(1) {
  animation-delay: 0s;
}
.client-logo:nth-child(2) {
  animation-delay: 0.1s;
}
.client-logo:nth-child(3) {
  animation-delay: 0.2s;
}
.client-logo:nth-child(4) {
  animation-delay: 0.3s;
}
.client-logo:nth-child(5) {
  animation-delay: 0.4s;
}
.client-logo:nth-child(6) {
  animation-delay: 0.5s;
}

.client-logo:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 28px rgba(10, 93, 54, 0.15);
  border-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  max-width: 100%;
  max-height: 100%;
}

.client-logo:hover img {
  transform: scale(1.1);
}

.client-logo span {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
  padding: 0.5rem;
}

@keyframes scrollClientsRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInClientsScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-date {
  background-color: var(--primary);
  color: white;
  padding: 10px 15px;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-content {
  padding: 25px;
}

.news-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.news-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 15px;
}

.pagination a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 4px;
  transition: var(--transition);
}

.pagination a:hover {
  background-color: var(--light-gray);
}

.pagination a.active {
  background-color: var(--primary);
  color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  body {
  padding-top: 45px;
}
  .hero-container {
    gap: 40px;
    padding: 50px 30px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-image-content {
    height: 420px;
  }

  .hero-slide-title {
    font-size: 2.8rem;
  }

  .hero-slide-subtitle {
    font-size: 1.1rem;
  }

  .carousel-arrow {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .carousel-controls {
    padding: 0 20px;
  }

  .hero-headline h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .hero-slide-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 25px;
  }

  /* Hide bubbles on mobile */
  .bubble {
    display: none;
  }

  /* New Hero Section Mobile Styles */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image-content {
    height: 350px;
    margin-top: 20px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .hero-dots {
    gap: 10px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .carousel-controls {
    padding: 0 15px;
  }

  .hero-slide-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero-slide-subtitle {
    font-size: 1rem;
  }

  .carousel-dots {
    bottom: 25px;
    gap: 10px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .hero-headline {
    bottom: 40px;
  }

  .hero-headline h2 {
    font-size: 1.5rem;
  }

  /* Agriculture Carousel Mobile */
  .agriculture-carousel {
    padding: 40px 0;
  }

  .carousel-content h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .carousel-item {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .carousel-item img {
    height: 180px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .section {
    padding: 60px 0;
  }

  /* Clients Section Mobile */
  .clients-carousel-track {
    gap: 1.5rem;
    padding: 0 1rem;
    animation: scrollClientsRightToLeft 35s linear infinite;
  }

  .client-logo {
    height: 120px;
    min-width: 160px;
    flex: 0 0 160px;
    padding: 1rem;
  }

  .client-logo span {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-slide-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .hero-slide-subtitle {
    font-size: 0.9rem;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .carousel-controls {
    padding: 0 10px;
  }

  .carousel-dots {
    bottom: 20px;
    gap: 8px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .hero-headline {
    bottom: 30px;
  }

  .hero-headline h2 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .clients-carousel-wrapper {
    padding: 1.5rem 0;
  }

  .clients-carousel-track {
    gap: 1rem;
    padding: 0 0.75rem;
    animation: scrollClientsRightToLeft 30s linear infinite;
  }

  .client-logo {
    height: 100px;
    min-width: 140px;
    flex: 0 0 140px;
    padding: 0.75rem;
    font-size: 0.7rem;
  }

  .client-logo span {
    font-size: 0.65rem;
  }
}

.imigongo-section {
  width: 100%;
}

.imigongo-pattern {
  height: 160px;
  background-image: url("../img/imigog.png");
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .imigongo-pattern {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .imigongo-pattern {
    height: 120px;
  }
}
