/* AgriCore Landing Page - style.css */

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

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgb(234, 255, 221);
  color: black;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgb(220, 255, 198);
  border-bottom: 2px solid black;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: black;
  text-shadow: 2px 2px 0px rgba(76, 175, 80, 0.3);
  transition: all 0.3s;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 3px 3px 0px rgba(76, 175, 80, 0.5);
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid black;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgb(201, 255, 167);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  z-index: -1;
}

.nav-btn:hover::before {
  width: 300px;
  height: 300px;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px black;
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0px black;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 10;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #2c3e50;
  text-shadow: 3px 3px 0px rgba(76, 175, 80, 0.2);
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.typing-container {
  margin-bottom: 25px;
  min-height: 40px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgb(76, 175, 80);
  font-weight: bold;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-description {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.cta-btn {
  padding: 16px 35px;
  font-size: 1.1rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border-radius: 8px;
  border: 3px solid black;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background-color: rgb(76, 175, 80);
  color: white;
  box-shadow: 6px 6px 0px black;
}

.primary-btn:hover {
  background-color: rgb(56, 142, 60);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0px black;
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 3px 3px 0px black;
}

.secondary-btn {
  background-color: white;
  color: black;
  box-shadow: 6px 6px 0px black;
}

.secondary-btn:hover {
  background-color: rgb(220, 255, 198);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0px black;
}

.secondary-btn:active {
  transform: translateY(0);
  box-shadow: 3px 3px 0px black;
}

.btn-icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.cta-btn:hover .btn-icon {
  transform: translateX(5px);
}

.large-btn {
  padding: 20px 45px;
  font-size: 1.2rem;
}

/* Stats Counter */
.stats-counter {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 1s backwards;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 40px;
  background-color: white;
  border: 3px solid black;
  border-radius: 10px;
  box-shadow: 6px 6px 0px black;
  transition: all 0.3s;
}

.counter-item:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px black;
}

.counter-number {
  font-size: 3rem;
  font-weight: bold;
  color: rgb(76, 175, 80);
  line-height: 1;
}

.counter-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: bold;
  margin-top: 8px;
}

/* Features Section */
.features-section {
  padding: 80px 20px;
  background-color: white;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: #2c3e50;
  text-shadow: 2px 2px 0px rgba(76, 175, 80, 0.2);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: #666;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-box {
  background-color: rgb(234, 255, 221);
  border: 3px solid black;
  border-radius: 12px;
  padding: 35px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 5px 5px 0px black;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 255, 167, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 8px 8px 0px black;
  background-color: rgb(220, 255, 198);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s;
}

.feature-box:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: bold;
}

.feature-box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgb(76, 175, 80);
  color: white;
  border: 2px solid black;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s;
}

.feature-box:hover .feature-badge {
  transform: translateY(-3px);
  box-shadow: 2px 2px 0px black;
}

/* Image Section */
.image-section {
  padding: 80px 20px;
  background-color: rgb(234, 255, 221);
}

.image-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border: 3px solid black;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 8px 8px 0px black;
  transition: all 0.4s;
}

.image-container:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 0px black;
}

.centered-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.image-container:hover .centered-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.overlay-content h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-content p {
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 20px;
  background-color: white;
  border-top: 3px solid black;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: rgb(234, 255, 221);
  border: 3px solid black;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: all 0.4s;
  box-shadow: 5px 5px 0px black;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 8px 0px black;
  background-color: rgb(220, 255, 198);
}

.quote-icon {
  font-size: 4rem;
  color: rgb(76, 175, 80);
  line-height: 1;
  margin-bottom: 15px;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  font-size: 3rem;
  background-color: white;
  border: 2px solid black;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: bold;
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 3px;
}

.author-location {
  font-size: 0.9rem;
  color: #666;
}

/* CTA Section */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, rgb(76, 175, 80) 0%, rgb(56, 142, 60) 100%);
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.cta-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.cta-section .primary-btn {
  background-color: white;
  color: rgb(76, 175, 80);
  position: relative;
  z-index: 10;
}

.cta-section .primary-btn:hover {
  background-color: rgb(234, 255, 221);
  color: rgb(56, 142, 60);
}

/* Footer */
.footer {
  background-color: rgb(220, 255, 198);
  border-top: 2px solid black;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2c3e50;
}

.footer-text {
  font-size: 0.95rem;
  color: #555;
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.float-element {
  position: absolute;
  font-size: 3rem;
  opacity: 0;
  transition: all 1s ease-out;
}

.float-1 {
  top: 10%;
  left: 5%;
  animation: float1 6s ease-in-out infinite;
}

.float-2 {
  top: 20%;
  right: 8%;
  animation: float2 7s ease-in-out infinite 1s;
}

.float-3 {
  top: 60%;
  left: 10%;
  animation: float1 8s ease-in-out infinite 2s;
}

.float-4 {
  bottom: 15%;
  right: 12%;
  animation: float2 6.5s ease-in-out infinite 1.5s;
}

.float-5 {
  top: 45%;
  right: 5%;
  animation: float1 7.5s ease-in-out infinite 0.5s;
}

@keyframes float1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(-10deg);
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .stats-counter {
    gap: 20px;
  }

  .counter-item {
    padding: 20px 30px;
  }

  .counter-number {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.1rem;
  }

  .float-element {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stats-counter {
    flex-direction: column;
    align-items: center;
  }

  .counter-item {
    width: 100%;
    max-width: 250px;
  }

  .feature-box {
    padding: 25px;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .floating-elements {
    display: none;
  }
}