/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-green: #2d5a27;
  --secondary-green: #4a7c59;
  --accent-green: #6ab04c;
  --light-green: #7bed9f;
  --dark-green: #1e3a1a;
  --earth-brown: #8b4513;
  --warm-yellow: #f39c12;
  --sky-blue: #3498db;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --gradient-green: linear-gradient(135deg, #2d5a27, #4a7c59, #6ab04c);
  --gradient-earth: linear-gradient(135deg, #8b4513, #a0522d, #cd853f);
}

/* Global Styles */
* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*::selection {
  background: var(--accent-green);
  color: var(--white);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  line-height: 1.6;
  color: var(--dark-gray);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-green);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-green);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 7%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 90, 39, 0.1);
  box-shadow: 0 2px 20px var(--shadow);
}

.header.active {
  background: var(--white);
  box-shadow: 0 2px 30px var(--shadow-dark);
}

.header .logo h1 {
  font-size: 3.5rem;
  color: var(--primary-green);
  font-weight: 700;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px var(--shadow);
}

.header .navbar a {
  font-size: 1.7rem;
  margin: 0 1rem;
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
}

.header .navbar a:hover,
.header .navbar a.active {
  color: var(--primary-green);
}

.header .navbar a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-green);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.header .navbar a:hover::before,
.header .navbar a.active::before {
  width: 100%;
}

.header .navbar .btn {
  background: var(--gradient-green);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 1rem;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.header .navbar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

#menu-btn {
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--primary-green);
  display: none;
}

/* Hero Guide Section */
.hero-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6ab04c 100%);
  position: relative;
  text-align: center;
  padding: 12rem 7% 8rem;
}

.hero-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hero-guide .content {
  z-index: 2;
  color: var(--white);
}

.hero-guide .content h1 {
  font-size: 6rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px var(--shadow-dark);
}

.hero-guide .content p {
  font-size: 2.2rem;
  margin-bottom: 4rem;
  font-family: 'Inter', sans-serif;
  opacity: 0.9;
}

/* Dropdown Styles */
.dropdown-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: var(--white);
  color: var(--primary-green);
  padding: 1.5rem 3rem;
  font-size: 1.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 25rem;
  justify-content: space-between;
}

.dropbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--light-gray);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 30px var(--shadow-dark);
  border-radius: 15px;
  z-index: 1000;
  max-height: 30rem;
  overflow-y: auto;
  margin-top: 1rem;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  color: var(--dark-gray);
  font-size: 1.6rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--light-gray);
}

.dropdown-content a:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

.dropdown-content a:first-child {
  border-radius: 15px 15px 0 0;
}

.dropdown-content a:hover {
  background: var(--light-green);
  color: var(--white);
  padding-left: 2.5rem;
}

/* Crop Details Section */
.crop-details {
  padding: 8rem 7%;
  background: var(--light-gray);
  display: none;
}

.crop-details.show {
  display: block;
}

.crop-info-container {
  max-width: 120rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 4rem;
  box-shadow: 0 10px 40px var(--shadow);
}

.crop-info-container h2 {
  color: var(--primary-green);
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.crop-info-container h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10rem;
  height: 4px;
  background: var(--gradient-green);
  border-radius: 2px;
}

.crop-info-container h3 {
  color: var(--secondary-green);
  font-size: 2.4rem;
  margin: 3rem 0 1rem;
  border-left: 4px solid var(--accent-green);
  padding-left: 2rem;
}

.crop-info-container h4 {
  color: var(--dark-green);
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.crop-info-container p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

.crop-info-container ul {
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.crop-info-container ul li {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  color: var(--dark-gray);
  font-family: 'Inter', sans-serif;
}

.crop-info-container ul li strong {
  color: var(--primary-green);
  font-weight: 600;
}

/* Features Guide Section */
.features-guide {
  padding: 8rem 7%;
  background: var(--white);
}

.heading {
  text-align: center;
  padding-bottom: 5rem;
}

.heading h1 {
  font-size: 4.5rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

.heading h1::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10rem;
  height: 4px;
  background: var(--gradient-green);
  border-radius: 2px;
}

.heading p {
  font-size: 1.8rem;
  color: var(--medium-gray);
  line-height: 1.8;
  max-width: 80rem;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.feature-card {
  background: var(--white);
  padding: 4rem 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-green);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-dark);
}

.feature-card .icon {
  width: 8rem;
  height: 8rem;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .icon {
  transform: scale(1.1);
}

.feature-card .icon i {
  font-size: 3.5rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 2.4rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 1.6rem;
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}

.card-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--gradient-green);
  color: var(--white);
  border-radius: 50px;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

/* Crop Conditions Section */
.crop-conditions {
  padding: 8rem 7%;
  background: var(--light-gray);
}

.table-container {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  margin-top: 3rem;
}

#crop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

#crop-table thead {
  background: var(--gradient-green);
}

#crop-table th {
  padding: 2rem 1.5rem;
  color: var(--white);
  font-weight: 600;
  text-align: left;
  font-size: 1.6rem;
}

#crop-table th i {
  margin-right: 0.5rem;
}

#crop-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--dark-gray);
  font-family: 'Inter', sans-serif;
}

#crop-table tbody tr:hover {
  background: rgba(106, 176, 76, 0.1);
}

#crop-table tbody tr:nth-child(even) {
  background: rgba(248, 249, 250, 0.5);
}

/* How It Works Section */
.how-it-works {
  padding: 8rem 7%;
  background: var(--white);
}

.process-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 4rem;
  margin-top: 5rem;
}

.process-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow-dark);
}
/* Continuing from where the CSS left off */
.process-number {
  width: 6rem;
  height: 6rem;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-content h3 {
  font-size: 2.2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.process-content h3 i {
  margin-right: 1rem;
  color: var(--accent-green);
}

.process-content p {
  font-size: 1.6rem;
  color: var(--medium-gray);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

/* Footer Section */
.footer {
  background: var(--dark-green);
  padding: 5rem 7% 2rem;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer .box h3 {
  font-size: 2.2rem;
  color: var(--white);
  padding: 1rem 0;
  font-weight: 600;
  margin-bottom: 2rem;
  position: relative;
}

.footer .box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 3px;
  background: var(--accent-green);
}

.footer .box a {
  display: block;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 0;
  transition: all 0.3s ease;
  text-transform: none;
}

.footer .box a:hover {
  color: var(--accent-green);
  padding-left: 2rem;
}

.footer .box a i {
  padding-right: 1rem;
  color: var(--accent-green);
}

/* Social Links */
.social-links {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.social-links a {
  display: inline-block;
  width: 5rem;
  height: 5rem;
  line-height: 5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 2rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(106, 176, 76, 0.3);
}

/* Copyright */
.footer .credit {
  text-align: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
}

.footer .credit span {
  color: var(--accent-green);
  font-weight: 600;
}

.footer .credit a {
  color: var(--accent-green);
  text-decoration: none;
}

.footer .credit a:hover {
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .header {
    padding: 2rem;
  }

  .header .logo h1 {
    font-size: 3rem;
  }

  section {
    padding: 2rem;
  }

  .hero-guide {
    padding: 10rem 2rem 6rem;
  }

  .hero-guide .content h1 {
    font-size: 4.5rem;
  }

  .hero-guide .content p {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: initial;
  }

  .header .navbar {
    position: absolute;
    top: 115%;
    right: 7%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 30rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    transform: scale(0);
    opacity: 0;
    transform-origin: top right;
    transition: none;
  }

  .header .navbar.active {
    transform: scale(1);
    opacity: 1;
    padding: 2rem;
    transition: 0.2s ease-out;
  }

  .header .navbar a {
    color: var(--dark-gray);
    display: block;
    margin: 1.5rem 0;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .header .navbar .btn {
    background: var(--gradient-green);
    border-radius: 5px;
    color: var(--white);
    margin-top: 2rem;
    text-align: center;
  }

  .hero-guide .content h1 {
    font-size: 3.5rem;
  }

  .hero-guide .content p {
    font-size: 1.6rem;
  }

  .dropbtn {
    min-width: 20rem;
    font-size: 1.6rem;
    padding: 1.2rem 2rem;
  }

  .heading h1 {
    font-size: 3.5rem;
  }

  .features-cards {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  }

  .process-container {
    grid-template-columns: 1fr;
  }

  .process-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .table-container {
    overflow-x: auto;
  }

  #crop-table {
    min-width: 70rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .hero-guide .content h1 {
    font-size: 3rem;
  }

  .dropbtn {
    min-width: 18rem;
    font-size: 1.4rem;
  }

  .heading h1 {
    font-size: 3rem;
  }

  .features-cards {
    grid-template-columns: 1fr;
  }

  .footer .box-container {
    grid-template-columns: 1fr;
  }

  .social-links a {
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    font-size: 1.8rem;
    margin: 0 0.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(106, 176, 76, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-green);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .hero-guide,
  .features-guide,
  .how-it-works {
    display: none;
  }

  .crop-details {
    display: block !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
}
