/* Modern CSS Reset and Variables */
:root {
  /* Color Palette */
  --primary-color: #2a7a2a;
  --secondary-color: #1e5e1e;
  --accent-color: #f85f06;
  --accent-light: #ff7a2b;
  --text-dark: rgb(242, 105, 7)afa;
  --text-light: #f16f04;
  --white: #f8f6f3;
  --light-bg: #f4f4f4;
  --card-bg: #fff;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 6px 20px rgba(0, 0, 0, 0.2);
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Georgia', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(Poshmama-images/Agro-image/poshmama.png) no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
  font-size: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--accent-light);
  text-decoration: underline;
  outline: none;
}

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  padding: var(--spacing-md) 2rem;
  position: fixed;
  width: 100%;
  height: 80px;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--secondary-color);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navbar ul li a {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  background-color: var(--secondary-color);
  outline: none;
}

/* Hero Section */
.hero-section {
  background: transparent;
  color: var(--white);
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  margin-top: 80px; /* to offset fixed navbar */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-tagline {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 4rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background-color: var(--white);
}

.mySlides {
  display: none;
  position: relative;
}

.mySlides img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: var(--white);
  background-color: rgba(0,0,0,0.5);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  max-width: 90%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Slideshow controls */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  color: var(--white);
  font-weight: bold;
  font-size: 24px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.4);
  border: none;
  user-select: none;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev:hover, .next:hover,
.prev:focus, .next:focus {
  background-color: rgba(0,0,0,0.7);
  outline: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Slide indicators */
.slide-indicators {
  text-align: center;
  padding: 10px 0;
  background-color: var(--light-bg);
  border-top: 1px solid #ddd;
}

.dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: var(--primary-color);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

/* Scroll container for services and about */
.scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.scroll-item {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  padding: 1.5rem;
  min-width: 280px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.scroll-item:hover,
.scroll-item:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  outline: none;
}

.scroll-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.scroll-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  margin: 4rem 2rem;
  box-shadow: var(--shadow-medium);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 30px;
  box-shadow: var(--shadow-light);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--secondary-color);
  color: var(--white);
  outline: none;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 1rem;
  gap: 2rem;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #d4e6d4;
}

.footer-section p,
.footer-section ul {
  margin-bottom: 0.5rem;
  color: #c8d6c8;
}

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

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

.footer-section ul li a {
  color: #c8d6c8;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
  color: var(--white);
  outline: none;
}

.footer-social {
  text-align: center;
  margin-top: 1rem;
}

.footer-social a {
  margin: 0 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  transform: scale(1.2);
  outline: none;
}

.footer-social img {
  filter: brightness(0) invert(1);
  width: 28px;
  height: 28px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .scroll-container {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    min-width: 100%;
    text-align: center;
  }
}
