/*
Theme Name: KisanVidhata
Theme URI: https://kisanvidhata.com
Author: Anand Kumar
Author URI: https://kisanvidhata.com
Description: Modern agricultural technology website theme for KisanVidhata - AI-driven drone spraying and smart farming solutions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kisanvidhata
Tags: agriculture, modern, responsive, one-page, business
*/

/* ==========================================================================
   Design System - KisanVidhata Brand Colors
   ========================================================================== */

:root {
  /* Brand Colors - Forest Green */
  --primary: hsl(120, 61%, 34%);
  --primary-light: hsl(120, 61%, 45%);
  --primary-dark: hsl(120, 61%, 25%);
  --primary-foreground: hsl(0, 0%, 100%);
  
  /* Golden Yellow Accent */
  --secondary: hsl(51, 100%, 50%);
  --secondary-foreground: hsl(120, 10%, 20%);
  
  /* Earthy Brown */
  --accent: hsl(25, 47%, 27%);
  --accent-foreground: hsl(0, 0%, 100%);
  
  /* Backgrounds */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(120, 10%, 20%);
  
  /* UI Elements */
  --muted: hsl(120, 20%, 96%);
  --muted-foreground: hsl(120, 10%, 45%);
  --border: hsl(120, 20%, 88%);
  
  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(34, 139, 34, 0.1);
  --shadow-medium: 0 4px 16px rgba(34, 139, 34, 0.15);
  --shadow-strong: 0 8px 32px rgba(34, 139, 34, 0.2);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-menu {
  display: none;
  gap: 2rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--foreground);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.navbar-menu a:hover {
  color: var(--primary);
}

.navbar-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
  
  .navbar-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
  padding: 1rem;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background: hsl(51, 100%, 55%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.9), rgba(255, 215, 0, 0.7)),
              url('images/hero-drone-spraying.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Key Highlights Section
   ========================================================================== */

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.highlight-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid var(--border);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.highlight-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.highlight-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.highlight-description {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

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

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.service-content {
  padding: 1.5rem;
}

.service-title {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--muted);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--primary);
}

.testimonial-quote {
  font-style: italic;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-location {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background: var(--muted);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contact-details p {
  color: var(--muted-foreground);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--primary-dark);
  color: var(--primary-foreground);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--primary-foreground);
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--primary-foreground);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--secondary-foreground);
  transform: translateY(-3px);
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */

.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-button svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

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

.bg-muted {
  background: var(--muted);
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
