/* Import theme system */
@import url('theme.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
      /* Light mode colors */
      --bg-primary: #ffffff;
      --bg-secondary: #f8fafc;
      --bg-tertiary: #f1f5f9;
      --text-primary: #1e293b;
      --text-secondary: #64748b;
      --text-muted: #94a3b8;
      --border-color: #e2e8f0;
      --shadow-light: rgba(0, 0, 0, 0.05);
      --shadow-medium: rgba(0, 0, 0, 0.1);
      --shadow-heavy: rgba(0, 0, 0, 0.15);
      
      /* Agricultural green palette */
      --primary-green: #16a34a;
      --secondary-green: #22c55e;
      --accent-green: #4ade80;
      --light-green: #f0fdf4;
      --dark-green: #15803d;
      --green-hover: #15803d;
    }

    [data-theme="dark"] {
      /* Dark mode colors */
      --bg-primary: #0f172a;
      --bg-secondary: #1e293b;
      --bg-tertiary: #334155;
      --text-primary: #f8fafc;
      --text-secondary: #cbd5e1;
      --text-muted: #94a3b8;
      --border-color: #334155;
      --shadow-light: rgba(0, 0, 0, 0.3);
      --shadow-medium: rgba(0, 0, 0, 0.4);
      --shadow-heavy: rgba(0, 0, 0, 0.6);
      
      /* Adjusted green colors for dark mode */
      --light-green: #1a2e1a;
      --green-hover: #22c55e;
    }
.serif {
      font-family: 'Libertinus Serif', Georgia, serif;
    }

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-secondary, #f0f4f7);
  color: var(--text-primary, #333);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-green);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

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

    body {
      font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      transition: all 0.3s ease;
    }

    .serif {
      font-family: 'Libertinus Serif', Georgia, serif;
    }

    /* Navigation */
    .navbar {
      display:flex;
      justify-content: space-between;
      background: var(--bg-primary);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 1rem 2rem;
      transition: all 0.3s ease;
    }

    .navbar-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand .logo {
      font-family: 'Libertinus Serif', serif;
      font-size: 1.75rem;
      font-weight: 600;
      color: var(--primary-green);
      text-decoration: none;
    }

    .nav-buttons {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .btn {
      padding: 0.5rem 1rem;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.875rem;
      transition: all 0.2s ease;
      border: none;
      cursor: pointer;
    }

    .btn-primary {
      background: var(--primary-green);
      color: white;
    }

    .btn-primary:hover {
      background: var(--green-hover);
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: transparent;
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }

    .btn-secondary:hover {
      background: var(--bg-secondary);
    }


/* Main content */
main {
  flex: 1;
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Section styles */
section {
  background: var(--bg-primary, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px var(--shadow-light, rgba(0, 0, 0, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

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

section:nth-child(1) {
  animation-delay: 0.1s;
}
section:nth-child(2) {
  animation-delay: 0.2s;
}
section:nth-child(3) {
  animation-delay: 0.3s;
}
section:nth-child(4) {
  animation-delay: 0.4s;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-green),
    var(--accent-green)
  );
}

/* Headings */
h2 {
  font-size: 2.2rem;
  color: var(--primary-green, #2e7d32);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary-green),
    var(--accent-green)
  );
  border-radius: 2px;
}

/* Paragraphs */
p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary, #666);
  margin-bottom: 1.5rem;
  text-align: justify;
  font-weight: 400;
}

/* Services list */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.services-list li {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1),
    rgba(42, 122, 42, 0.05)
  );
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid var(--secondary-green);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.services-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.services-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
  border-left-width: 6px;
}

.services-list li:hover::before {
  opacity: 1;
}

.services-list li strong {
  color: var(--primary-green);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Why it matters list */
.why-it-matters-section ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.why-it-matters-section ul li {
  background: rgba(76, 175, 80, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--primary-green);
  transition: var(--transition);
  border: 2px solid transparent;
}

.why-it-matters-section ul li:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: var(--secondary-green);
  transform: scale(1.05);
}

/* Footer */
    .site-footer {
      background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
      color: white;
      margin-top: auto;
      padding: 3rem 2rem 2rem;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      align-items: flex-start;
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .footer-logo {
      width: 60px;
      height: 60px;
      border-radius: 12px;
      object-fit: cover;
      background: white;
      padding: 8px;
    }

    .site-footer h3,
    .site-footer h4 {
      font-family: 'Libertinus Serif', serif;
      margin: 0 0 1rem 0;
      font-weight: 600;
    }

    .site-footer h3 {
      font-size: 1.5rem;
    }

    .site-footer p {
      margin: 0;
      opacity: 0.9;
      line-height: 1.6;
    }

    .site-footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .site-footer a {
      color: white;
      text-decoration: none;
      opacity: 0.9;
      transition: all 0.2s ease;
    }

    .site-footer a:hover {
      opacity: 1;
      transform: translateX(4px);
    }

    .footer-bottom {
      max-width: 1200px;
      margin: 2rem auto 0;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      text-align: center;
      font-size: 0.875rem;
      opacity: 0.8;
    }

    .social-media {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .social-media a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      transition: all 0.3s ease;
      font-size: 1.25rem;
    }

    .social-media a:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }

    /* Scroll to Top Button */
    .scroll-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 50px;
      height: 50px;
      background: var(--primary-green);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px var(--shadow-medium);
      transition: all 0.3s ease;
      opacity: 0;
      visibility: hidden;
      z-index: 1000;
    }

    .scroll-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    .scroll-to-top:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px var(--shadow-heavy);
    }

/* Responsive design */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 3%;
  }

  main {
    padding: 2rem 3%;
  }

  .nav-buttons a.btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

  section {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
  }

  .navbar h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  main {
    padding: 1.5rem;
  }

  section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  h2 {
    font-size: 1.6rem;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .why-it-matters-section ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar h1 {
    font-size: 1.4rem;
  }

  .nav-buttons a.btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  section {
    padding: 1rem;
    border-radius: 15px;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.95rem;
  }

  .services-list li {
    padding: 1rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeIn 0.5s ease-in;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.nav-buttons a.btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.scroll-to-top:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
