:root {
  --primary-green: #2ecc71; /* Emerald */
  --secondary-green: #27ae60; /* Nephritis */
  --accent-blue: #3498db; /* Peter River */
  --neutral-light: #f4f6f8; /* Light Whisper */
  --neutral-dark: #2c3e50; /* Midnight Blue */
  --text-light: #ffffff;
  --text-dark: #34495e; /* Wet Asphalt */
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--text-light);
  font-weight: 300;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--text-light);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px var(--shadow-medium);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex; /* Added for alignment */
  align-items: center; /* Added for alignment */
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
}
.logo img {
  /* Added for logo image styling */
  height: 44px; /* Increased by 10% from 40px */
  margin-right: 10px; /* Space between logo and text */
}
.logo span {
  color: var(--secondary-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none; /* For future mobile menu */
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(39, 174, 96, 0.5)),
    url('https://images.unsplash.com/photo-1621451537084-482c73073a0f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80')
      no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  padding-top: 80px; /* Account for fixed header */
}

.hero-content {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-md);
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.2rem; /* Adjusted for Poppins */
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .tagline {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--primary-green); /* Make tagline stand out */
  background: rgba(46, 204, 113, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  text-shadow: none;
}

.hero-content .description {
  font-size: 1.1rem; /* Adjusted for Poppins */
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--primary-green),
    var(--secondary-green)
  );
  color: var(--text-light);
  padding: 14px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  box-shadow: none;
}
.cta-button.secondary:hover {
  background: var(--primary-green);
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* General Section Styling */
.section {
  padding: 80px 0;
}
.section-bg-light {
  background-color: var(--neutral-light);
}
.section-bg-green-gradient {
  background: linear-gradient(
    135deg,
    var(--secondary-green),
    var(--primary-green)
  );
  color: var(--text-light);
}
.section-bg-image {
  /* For solution section */
  background: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(244, 246, 248, 0.7)
    ),
    url('husk.jpeg') no-repeat center center/cover;
  background-attachment: fixed;
}
.problem-section-bg-image {
  background: linear-gradient(
      rgba(255, 255, 255, 0.8),
      /* Light overlay for dark text readability */ rgba(244, 246, 248, 0.7)
    ),
    url('problem-background.jpg') no-repeat center center/cover;
  background-attachment: fixed; /* Consistent with other parallax backgrounds */
}

.section-title {
  text-align: center;
  font-size: 2.6rem; /* Adjusted for Poppins */
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-green);
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-title.light {
  color: var(--text-light);
}
.section-subtitle.light {
  color: rgba(255, 255, 255, 0.85);
}

/* Problem Section */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--text-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 8px 25px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--accent-blue);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px var(--shadow-medium);
}

.stat-number {
  font-size: 3.5rem; /* Adjusted for Poppins */
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.stat-text {
  color: var(--text-dark);
  font-size: 1rem; /* Adjusted for Poppins */
  line-height: 1.5;
}
.problem-summary {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Solution Section */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.solution-card {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 25px var(--shadow-light);
  border-left: 5px solid var(--primary-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow-medium);
}

.solution-card h3 {
  color: var(--secondary-green);
  font-size: 1.6rem; /* Adjusted for Poppins */
  font-weight: 600;
  margin-bottom: 1rem;
}
.solution-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.solution-card ul {
  list-style: none;
  padding-left: 0;
}

.solution-card li {
  margin-bottom: 0.7rem;
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.95rem;
}

.solution-card li:before {
  content: '✔'; /* Modern checkmark */
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1.1rem;
}
.solution-intro-text,
.solution-main-text {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.solution-intro-text {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-green);
  font-weight: 600;
}
.solution-main-text {
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.solution-cta-container {
  text-align: center;
  margin-top: 3rem;
}

/* Company Section */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.company-card {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: box-shadow 0.3s ease;
}
.company-card:hover {
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.company-card h3 {
  color: var(--secondary-green);
  font-size: 1.5rem; /* Adjusted for Poppins */
  font-weight: 600;
  margin-bottom: 1rem;
}
.company-card p,
.company-card ul {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.company-card ul {
  list-style-position: inside;
  padding-left: 0;
}
.company-card li {
  margin-bottom: 0.5rem;
}
.company-quote {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--primary-green);
  font-weight: 400;
  border-left: 3px solid var(--secondary-green);
  padding-left: 1rem;
}

/* Contact Section */
.contact-section .section-title {
  color: var(--text-light);
}
.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.contact-info {
  margin-top: 2rem;
  text-align: center;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem; /* Adjusted for Poppins */
}
.contact-info strong {
  font-weight: 600;
}
.contact-info a {
  color: var(
    --text-light
  ); /* Changed from --primary-green for better contrast */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.contact-info a:hover {
  color: var(
    --text-light
  ); /* Kept as --text-light, underline will indicate hover */
  text-decoration: underline;
}
.contact-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  opacity: 0.8;
}
.contact-cta-container {
  margin-top: 2.5rem;
  text-align: center;
}
.contact-cta-container .cta-button {
  background: var(--text-light);
  color: var(--primary-green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.contact-cta-container .cta-button:hover {
  background: var(--neutral-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--neutral-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 3rem 0;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}
footer a {
  color: var(--primary-green);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

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

.hero-content h1,
.hero-content .tagline,
.hero-content .description,
.hero-content .cta-button {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-content .tagline {
  animation-delay: 0.4s;
}
.hero-content .description {
  animation-delay: 0.6s;
}
.hero-content .cta-button {
  animation-delay: 0.8s;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content .tagline {
    font-size: 1.1rem;
  }
  .hero-content .description {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Basic for now, implement JS toggle for full mobile menu */
    /* Future: position absolute, flex-column, etc. */
  }
  .mobile-nav-toggle {
    display: block; /* Show hamburger icon */
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content {
    padding: 2rem 1rem;
  }
  .problem-stats,
  .solution-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content .tagline {
    font-size: 1rem;
  }
  .hero-content .description {
    font-size: 0.9rem;
  }
  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .stat-number {
    font-size: 2.8rem;
  }
  .solution-card h3 {
    font-size: 1.4rem;
  }
  .company-card h3 {
    font-size: 1.3rem;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    width: 100%;
    background-color: rgba(
      255,
      255,
      255,
      0.98
    ); /* Slightly transparent white */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 15px var(--shadow-medium);
    display: none; /* Hidden by default */
    gap: 0; /* Reset gap for vertical layout */
  }

  .nav-links.active {
    display: flex; /* Show when active */
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--neutral-light); /* Separator lines */
  }
  .nav-links li:last-child a {
    border-bottom: none; /* No border for the last item */
  }

  .nav-links a::after {
    display: none; /* Remove underline animation for mobile */
  }

  .mobile-nav-toggle {
    display: block; /* Show burger icon */
    z-index: 1001; /* Ensure it's above other elements */
    color: var(--primary-green);
    /* Basic Burger Icon Style */
    width: 30px;
    height: 22px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-green);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .mobile-nav-toggle span:nth-child(1) {
    top: 0px;
  }

  .mobile-nav-toggle span:nth-child(2),
  .mobile-nav-toggle span:nth-child(3) {
    top: 9px;
  }

  .mobile-nav-toggle span:nth-child(4) {
    top: 18px;
  }

  .mobile-nav-toggle.active span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .mobile-nav-toggle.active span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
  }
}

/* Contact Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
  padding-top: 60px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeInModal 0.5s ease-out;
}

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

.close-modal-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
  color: var(--neutral-dark);
  text-decoration: none;
  cursor: pointer;
}

.modal-content h3 {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

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

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

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
  border-color: var(--primary-green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

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

#contactForm .cta-button {
  width: 100%;
  margin-top: 1rem;
}
