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

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

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 70px;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar a {
  color: #333;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #2b7a0b;
}

.header-contact a {
  margin-left: 20px;
  color: #2b7a0b;
  font-size: 0.9rem;
}

.header-contact .whatsapp {
  background: #25D366;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s;
}

/* Hero Section with Carousel */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
  display: none;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 2rem;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-dots span.active {
  background: #2b7a0b;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.hero-content .subheading {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-content .quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #2b7a0b;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 122, 11, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(43, 122, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 122, 11, 0); }
}

/* Section Styles */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2b7a0b;
}

.highlight {
  color: #2b7a0b;
  font-weight: 600;
}

/* About Section */
.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-container p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Projects Section */
.projects-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.project-description {
  text-align: center;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.project-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.project-card {
  flex: 1 1 35%;
  min-width: 250px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin: 0 0 10px;
}

.project-card p {
  font-size: 0.95rem;
  color: #666;
}

.project-features {
  flex: 1 1 55%;
  min-width: 300px;
}

.button-container {
  text-align: center;
  margin-top: 50px;
}

/* Cards (Used in Projects, Location, Why Sections) */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  max-width: 300px;
  text-align: left;
  font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .success-message,
.contact-form .error-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
}

.contact-form .success-message {
  background: #d4edda;
  color: #155724;
}

.contact-form .error-message {
  background: #f8d7da;
  color: #721c24;
}

.map-container {
  margin-top: 30px;
}

.map-container iframe {
  border-radius: 8px;
}

.map-container p {
  text-align: center;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: #2b7a0b;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.tagline {
  font-style: italic;
  margin-bottom: 20px;
}

.footer-details p {
  margin-bottom: 10px;
}

.footer-details a {
  color: #fff;
  text-decoration: none;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #f4f4f4;
}

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

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  background: #2b7a0b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}

.back-to-top.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .navbar.show {
    display: flex;
  }

  .navbar a {
    margin: 10px 0;
  }

  .header-contact {
    margin-top: 20px;
  }

  .hamburger {
    display: block;
  }

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

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

  .project-content {
    flex-direction: column;
  }

  .project-card,
  .project-features {
    flex: 1 1 100%;
  }

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

  .card {
    max-width: 105%; /* Reduced width for compact look */
    padding: 10px; /* Reduced padding */
    max-height: 60px;
    font-size: 0.9rem; /* Smaller font size for mobile */
  }
}

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

  .btn {
    padding: 10px 20px;
  }

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

  .card {
    max-width: 85%; /* Further reduced width for smaller screens */
    padding: 8px; /* Further reduced padding */
    font-size: 0.85rem; /* Even smaller font size */
  }

}

/* Cards (Used in Projects, Location, Why Sections) */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch; /* Ensure same height for all cards */
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1 1 280px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 100px;
}


.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 90%;
    font-size: 0.9rem;
    padding: 16px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .card {
    width: 95%;
    font-size: 0.85rem;
    padding: 14px;
  }
}
