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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Prevent horizontal overflow on sections with slide animations */
section {
  overflow-x: hidden;
  max-width: 100vw;
}

.about-section,
.gallery-section,
.process-section,
.testimonials-section,
.contact-section {
  overflow-x: hidden;
}

/* Loading Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* WhatsApp Icon Styling */
.whatsapp-icon {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.whatsapp-icon-inline {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  color: #2d5a27;
}

/* Navbar Styles */
.navbar {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .logo {
  color: white;
}

.navbar.scrolled .logo {
  color: #1a1a1a;
}

.navbar a {
  color: white;
  transition: color 0.3s ease;
}

.navbar.scrolled a {
  color: #333333;
}

.navbar a:hover {
  color: #6b7c3a;
}

.nav-cta {
  background: #2d5a27;
  color: white;
}

.nav-cta:hover {
  background: #6b7c3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.navbar.scrolled .nav-cta {
  background: #2d5a27;
  color: white;
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .navbar .container {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  
  .navbar .logo {
    font-size: 1.25rem;
  }
  
  .nav-cta {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e5e7eb;
}

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

.mobile-menu a {
  color: #1a1a1a !important;
}

.mobile-menu a:hover {
  color: #2d5a27 !important;
}

.mobile-menu a.bg-primary {
  color: white !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 40px;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
    min-height: 100vh;
  }
}

.hero-section .container {
  max-width: 100%;
  width: 100%;
}

.hero-section .grid {
  max-width: 100%;
  width: 100%;
}

.hero-headline {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  padding-bottom: 10px;
}

.hero-bg {
  background-image: url('https://wallpapers.com/images/hd/agriculture-background-oiknoaw5ndsbb98o.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 100%;
}

.hero-buttons {
  max-width: 100%;
  padding-bottom: 20px;
}

.hero-cta-primary {
  background: #2d5a27;
  color: white;
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
  padding: 1rem 2rem;
  display: inline-block;
}

.hero-cta-primary:hover {
  background: #6b7c3a;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(45, 90, 39, 0.4);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  padding: 1rem 2rem;
  display: inline-block;
  box-sizing: border-box;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #2d5a27;
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .hero-section .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    max-width: 100vw !important;
    overflow: hidden;
  }

  .hero-section .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    padding-bottom: 10px !important;
  }

  .hero-headline,
  .hero-subheadline {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-buttons {
    padding: 0 !important;
    padding-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .hero-cta-primary {
    border: none !important;
  }

  .hero-cta-secondary {
    padding: 14px 20px !important;
    border: none !important;
  }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 70px;
  }
  
  .hero-headline {
    font-size: 2.5rem !important;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .hero-section {
    padding-top: 60px;
    min-height: 90vh;
  }
  
  .hero-headline {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-subheadline {
    font-size: 1rem !important;
  }
  
  .hero-buttons {
    flex-direction: column !important;
    width: 100%;
    gap: 12px !important;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
  }
}

/* Additional fix for buttons on all small screens */
@media (max-width: 640px) {
  .hero-buttons {
    max-width: 100%;
    padding: 0 !important;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #faf6f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon i {
  color: #2d5a27;
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .service-card-content {
    padding: 18px;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
}

/* Services Section Split Background */
.services-section {
  position: relative;
}

.services-bg-split {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(135deg, #1a3d16 0%, #234d1f 100%);
  z-index: 0;
}

@media (max-width: 768px) {
  .services-bg-split {
    height: 35%;
  }
}

/* Gallery Section - Numbered List with Side Images */
.gallery-section {
  position: relative;
  background: linear-gradient(135deg, #e8f3e5 0%, #f0f5ed 50%, #e5f0e2 100%);
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(150, 150, 150, 0.15) 49px, rgba(150, 150, 150, 0.15) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(150, 150, 150, 0.15) 49px, rgba(150, 150, 150, 0.15) 50px);
  pointer-events: none;
  z-index: 1;
}

.gallery-bg-accent {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 90, 39, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 90, 39, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}

.gallery-item-numbered {
  display: flex;
  align-items: center;
  gap: 32px;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item-numbered::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #2d5a27;
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.gallery-item-numbered:hover::before {
  transform: scaleY(1);
}

.gallery-item-numbered:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(45, 90, 39, 0.15);
}

.gallery-number {
  font-size: 4rem;
  font-weight: 800;
  color: #2d5a27;
  line-height: 1;
  opacity: 0.15;
  font-family: 'Archivo', sans-serif;
  min-width: 100px;
  text-align: center;
}

.gallery-item-numbered:hover .gallery-number {
  opacity: 0.3;
}

.gallery-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.gallery-item-right .gallery-content {
  flex-direction: row-reverse;
}

.gallery-image-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item-numbered:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #2d5a27;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-info {
  flex: 1;
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: 'Archivo', sans-serif;
}

.gallery-desc {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .gallery-item-numbered {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  
  .gallery-number {
    font-size: 3rem;
    min-width: auto;
  }
  
  .gallery-content {
    flex-direction: column !important;
    gap: 16px;
  }
  
  .gallery-image-wrapper {
    width: 100%;
    height: 220px;
  }
}

/* Process Section */
.process-step {
  position: relative;
  text-align: center;
  padding: 24px;
  background: #faf6f0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  background: white;
}

.process-step-number {
  font-size: 3rem;
  font-weight: 800;
  color: #2d5a27;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -20px;
}

.process-step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #2d5a27;
  box-shadow: 0 4px 20px rgba(45, 90, 39, 0.15);
  transition: all 0.3s ease;
}

.process-step:hover .process-step-icon {
  background: #2d5a27;
  color: white;
  transform: scale(1.1);
}

.process-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-family: 'Archivo', sans-serif;
}

.process-step-description {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
}

.process-connector {
  display: none;
}

@media (min-width: 1024px) {
  .process-connector {
    display: block;
    position: absolute;
    top: 80px;
    right: -40px;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, #2d5a27, transparent);
  }
  
  .process-connector::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -10px;
    color: #2d5a27;
    font-size: 1.5rem;
    font-weight: bold;
  }
}

@media (max-width: 1023px) {
  .process-step {
    margin-bottom: 20px;
  }
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #e8f3e5 0%, #f0f5ed 50%, #e5f0e2 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(150, 150, 150, 0.15) 49px, rgba(150, 150, 150, 0.15) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(150, 150, 150, 0.15) 49px, rgba(150, 150, 150, 0.15) 50px);
  pointer-events: none;
  z-index: 1;
}

.testimonials-bg-accent {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 90, 39, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 90, 39, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: #333333;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: #2d5a27;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 2px;
}

.testimonial-company {
  font-size: 0.875rem;
  color: #888888;
  font-weight: 600;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 24px;
  }
}

/* CTA Section */
.cta-bg {
  background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-section .cta-overlay {
  background: rgba(45, 90, 39, 0.75) !important;
}

.cta-button {
  background: #2d5a27;
  color: white;
  box-shadow: 0 4px 20px rgba(45, 90, 39, 0.4);
}

.cta-button:hover {
  background: #6b7c3a;
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(45, 90, 39, 0.5);
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  #cta_1 h2 {
    font-size: 1.75rem !important;
  }
  
  #cta_1 p {
    font-size: 0.95rem !important;
  }
  
  .cta-button {
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
  }
}

/* Contact Cards */
.contact-card {
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-map-container {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 3px solid #2d5a27;
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .contact-map-container {
    height: 350px;
    min-height: 350px;
  }
  
  .contact-card {
    padding: 12px !important;
  }
  
  .contact-card h3 {
    font-size: 0.75rem !important;
  }
  
  .contact-card a,
  .contact-card p {
    font-size: 0.7rem !important;
  }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .contact-card {
    padding: 16px !important;
  }
  
  .contact-card h3 {
    font-size: 0.95rem;
  }
  
  .contact-card a,
  .contact-card p {
    font-size: 0.85rem;
    word-break: break-all;
  }
  
  .contact-map-container {
    height: 280px;
    border-width: 2px;
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #2d5a27;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
  z-index: 40;
}

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

.scroll-top-btn:hover {
  background: #6b7c3a;
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(45, 90, 39, 0.4);
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* About Section with Slanting Background */
.about-section {
  position: relative;
}

.about-bg-slant {
  position: absolute;
  top: 0;
  right: -10%;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, #1a3d16 0%, #234d1f 100%);
  transform: skewX(-8deg);
  transform-origin: top right;
  z-index: 0;
}

.about-featured-img {
  border: 8px solid white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 1023px) {
  .about-bg-slant {
    display: none;
  }
  
  .about-featured-img {
    border: 6px solid white;
  }
}

@media (max-width: 768px) {
  .about-featured-img {
    border: 4px solid white;
  }
}

/* Stats */
.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: #2d5a27;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value-text {
  font-size: 1rem;
  font-weight: 800;
  color: #2d5a27;
  line-height: 1.2;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 0.7rem;
  color: #666666;
  font-weight: 600;
  line-height: 1.3;
}

/* Tablet breakpoint */
@media (max-width: 1023px) {
  .stat-value-text {
    font-size: 0.65rem;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 0.5rem;
    line-height: 1.2;
  }
  
  .stat-item {
    padding: 6px 4px;
  }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .stat-item {
    padding: 8px;
  }
  
  .stat-value-text {
    font-size: 0.75rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .stat-item {
    padding: 6px 4px;
  }
  
  .stat-value-text {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  #about-stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 80px;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .about-featured-img {
    max-width: 100%;
  }
  
  .gallery-image-wrapper {
    max-width: 100%;
  }
}

/* GSAP Animation Classes */
.fade-up {
  opacity: 0;
}

.slide-left {
  opacity: 0;
}

.slide-right {
  opacity: 0;
}

.scale-in {
  opacity: 0;
}

.stagger-parent .stagger-item {
  opacity: 0;
}

/* Hero elements start visible, GSAP will animate them */
.hero-headline,
.hero-subheadline,
.hero-buttons,
.hero-buttons a {
  opacity: 1;
}

/* Fallback - show content if animations don't initialize within 2s */
body.animations-ready .fade-up,
body.animations-ready .slide-left,
body.animations-ready .slide-right,
body.animations-ready .scale-in,
body.animations-ready .stagger-item {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .fade-up,
  .slide-left,
  .slide-right,
  .scale-in,
  .stagger-parent .stagger-item {
    opacity: 1 !important;
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #6b7c3a;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-top-btn,
  #mobile-menu-btn {
    display: none;
  }
}
