@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #A5D6A7;
  --accent-color: #00BCD4;
  --white: #ffffff;
  --black: #000000;
  --dark-bg: #1E1E1E;
  --light-bg: #F5F5F5;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-800: #343a40;
  --card-bg: rgba(255, 255, 255, 0.9);
  --dark-card-bg: rgba(0, 0, 0, 0.7);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-800);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

section {
  padding: 80px 0;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 4px;
  padding: 10px 20px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Navbar */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  margin: 0 10px;
  font-size: 16px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar .navbar-toggler {
  border: none;
  outline: none;
}

.navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                    url('https://images.unsplash.com/photo-1592982537447-7440770cbfc9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 30px;
}

/* Weather Section */
.weather-section {
  background-color: var(--light-bg);
  padding: 100px 0;
}

.weather-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.weather-card:hover {
  transform: translateY(-5px);
}

.weather-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.weather-header h2 {
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.weather-header .location {
  font-size: 1.2rem;
  margin: 0;
}

.weather-body {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.weather-temp {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.weather-temp .temp {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-800);
}

.weather-temp .unit {
  font-size: 1.5rem;
  color: var(--gray-400);
}

.weather-icon {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.weather-icon i {
  font-size: 5rem;
  color: var(--accent-color);
}

.weather-details {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.weather-detail {
  text-align: center;
}

.weather-detail i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: block;
}

.weather-detail span {
  font-size: 1rem;
  color: var(--gray-800);
}

/* Crop Tool Section */
.crop-tool-section {
  background-color: var(--white);
  padding: 100px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-800);
  max-width: 700px;
  margin: 0 auto;
}

.crop-form-card,
.guide-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.crop-form-card:hover,
.guide-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.crop-form-card h3,
.guide-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-300);
}

.form-label {
  font-weight: 500;
  color: var(--gray-800);
}

.form-control,
.form-select {
  padding: 10px 15px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.result-box {
  background-color: var(--gray-100);
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
  border-left: 3px solid var(--primary-color);
}

/* Resume Item (Growing Guide) */
.resume-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
}

.resume-item::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  top: 0;
  left: 0;
}

.resume-item h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.resume-item h5 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.resume-item p {
  color: var(--gray-800);
  margin-bottom: 15px;
}

.resume-item ul {
  list-style-type: none;
  padding-left: 15px;
}

.resume-item ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
}

.resume-item ul li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.guide-placeholder {
  color: var(--gray-400);
  text-align: center;
  font-style: italic;
  padding: 40px 0;
}

/* About Section */
.about-section {
  background-color: var(--gray-100);
  padding: 100px 0;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-content {
  padding: 20px;
}

.about-content p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.8;
}

.weather-widget {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
  padding: 100px 0;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 20px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--gray-800);
}

.contact-item p {
  color: var(--gray-800);
  margin: 0;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
  box-shadow: var(--box-shadow);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Footer */
.footer-section {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  text-align: center;
}

.social-icons {
  margin-bottom: 25px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 5px;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: var(--gray-300);
  transition: var(--transition);
  font-size: 16px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.translate-box {
  max-width: 200px;
  margin: 0 auto 20px;
}

.copyright {
  font-size: 14px;
  color: var(--gray-400);
  margin: 0;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .navbar-nav {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 5px;
  }
  
  .guide-card {
    margin-top: 40px;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .footer-links li {
    margin: 0 8px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .weather-body {
    padding: 15px;
  }
  
  .weather-temp .temp {
    font-size: 2.5rem;
  }
  
  .weather-icon i {
    font-size: 3.5rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item i {
    margin: 0 auto 15px;
  }
}

  
