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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Color Scheme */
:root {
  --primary: #181a1d;
  --primary-dark: #3a3f39;
  --secondary: #3aa749;
  --accent: #f8f9fa;
  --dark: #212529;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo span {
  color: #e3f2fd;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
#hero-section {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 0;
  height: calc(100vh - 72px); /* 72px = header height (adjust if needed) */
  margin-top: 72px; /* offset for fixed header */
  background: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin: 1rem 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn, .hero button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  background-color: #16a34a;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover, .hero button:hover {
  background-color: #15803d;
  transform: translateY(-3px);
}

.hero canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--accent);
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--accent);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  text-align: center;
  padding: 2rem;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-dark);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-nav button {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin: 0 1rem;
  transition: color 0.3s;
}

.testimonial-nav button:hover {
  color: var(--primary-dark);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info, .contact-form {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background-color: var(--secondary);
  color: white;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-form {
  background-color: white;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: var(--primary-dark);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary);
}

.copyright {
  font-size: 0.9rem;
  color: #adb5bd;
  margin-top: 2rem;
}

/* Helper Classes */
.text-center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
      flex-direction: column;
  }

  .about-text, .about-image {
      flex: none;
      width: 100%;
  }
}

@media (max-width: 768px) {
  nav ul {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--primary);
      flex-direction: column;
      padding: 1rem 0;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
      display: flex;
  }

  nav li {
      margin: 0;
      text-align: center;
      padding: 0.8rem 0;
  }

  .mobile-menu {
      display: block;
  }

  .hero {
      height: calc(100vh - 60px); /* adjust for smaller header on mobile */
      margin-top: 60px;
  }

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

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

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

  section h2 {
      font-size: 2rem;
  }
}