/* 
  Green Horizon Group - Main Stylesheet
  Author: SANVI SOFTECH
  Version: 1.0
*/

/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --secondary-color: #f9a825;
  --accent-color: #ff6f00;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --bg-dark: #1c2331;

  /* Typography */
  --heading-font: "Playfair Display", serif;
  --body-font: "Poppins", sans-serif;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

ul {
  list-style: none;
}

section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(46, 125, 50, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background-color: var(--bg-light);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 50px;
}

.section-header .subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
}

.section-header .subtitle:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-header h2 {
  margin-bottom: 20px;
  position: relative;
}

.section-header h2 span {
  color: var(--primary-color);
}

.section-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  transition: var(--transition-fast);
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: var(--text-dark);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
  padding: 0;
}

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

.logo-img {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.navbar-toggler {
  border: none;
  color: white;
  font-size: 1.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 10px 20px !important;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-fast);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: calc(100% - 40px);
}

/* ===== AGRONOMIC SECTION ===== */
.agronomic-section {
  background-color: var(--bg-white);
}

.agro-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  margin-bottom: 30px;
}

.agro-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.agro-image {
  overflow: hidden;
}

.agro-image img {
  transition: var(--transition-medium);
  width: 100%;
}

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

.agro-content {
  padding: 25px;
  background-color: white;
}

.agro-content h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.agro-content p {
  margin-bottom: 0;
}


/* ===== PROJECTS SECTION ===== */
.projects-section {
  background-color: var(--bg-light);
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  transition: var(--transition-medium);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 125, 50, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-medium);
}

.project-item:hover .project-image img {
  transform: scale(1.1);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-content {
  text-align: center;
  color: white;
  padding: 20px;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.project-item:hover .project-content {
  transform: translateY(0);
}

.project-content h4 {
  color: white;
  margin-bottom: 5px;
}

.project-content p {
  margin-bottom: 15px;
}

.project-link {
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  margin: 0 auto;
  transition: var(--transition-fast);
}

.project-link:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 80px 0 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
}

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

.footer-widget {
  margin-bottom: 30px;
}

.footer-widget p {
  margin-bottom: 20px;
}

.footer-widget .social-links {
  position: static;
  background-color: transparent;
  padding: 0;
  justify-content: flex-start;
}

.footer-widget .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-widget .social-links a:hover {
  background-color: var(--primary-color);
}

.widget-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-item .icon {
  color: var(--primary-light);
  font-size: 1.2rem;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin-bottom: 0;
}

.footer-bottom-links p {
  margin-bottom: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accessories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }

  .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
  }

  .navbar-brand,
  .nav-link {
    color: var(--text-dark) !important;
  }

  .navbar-toggler {
    color: var(--text-dark);
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content {
    padding-top: 120px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-image {
    margin-bottom: 50px;
  }

  .experience-badge {
    right: 20px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-item {
    min-width: 100%;
  }

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

  .cta-content .btn {
    margin-top: 20px;
  }

  .logo-img {
    height: 30px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .accessories-grid {
    grid-template-columns: 1fr;
  }

  .counter-card {
    margin-bottom: 20px;
  }

  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}









