html {
  scroll-behavior: smooth;
}

/* Basic styling for the header */
header {
  background-color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center; /* Center logo and text vertically */
  justify-content: space-between;
  height: 58px;
  position: fixed;
  width: 100%;
  top: 0; /* Keep it at the top of the viewport */
  left: 0;
  right: 0;
  z-index: 1000; /* Ensures the navbar is above other content */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0);
}

.company-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
}

body {
  padding-top: 58px;
}

/* Ensuring the image covers 100% of the viewport height */
.Landing_page_image {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.Landing_page_image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image covers the entire container */
}

/* Overlay styling to add transparency */
.Landing_page_image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.07); /* Black overlay with 40% transparency */
  z-index: 1; /* Ensures overlay is on top of the image but below any content */
}

/* Styling for the info box inside the image */
.info-box {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for exact centering */
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #333;
  z-index: 2; /* Ensure the info box is above the image */
  width: 80%; /* Limit the width to prevent it from taking up the whole screen */
  max-width: 600px; /* Ensure it's not too wide on larger screens */
}

.info-box h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: auto;
}

.info-box p {
  font-size: 20px;
  margin-bottom: 20px;
  margin-top: 0px;
}

/* "Get in Touch" button styling */
.get-in-touch-btn {
  padding: 10px 20px;
  background-color: #28a745; /* Green color */
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.get-in-touch-btn:hover {
  background-color: #218838; /* Darker green on hover */
}

/* Basic styling for the navbar */
nav {
  background-color: white;
  padding: 10px;
  position: relative;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  position: relative;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: green;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hamburger menu styles */
.burger {
  display: none; /* Initially hidden on large screens */
  flex-direction: column;
  cursor: pointer;
  gap: 6px; /* Space between the lines */
  z-index: 1001; /* Ensure the burger icon is above the menu */
  position: absolute;
  top: 50%; /* Vertically center */
  right: 20px; /* Align burger icon to the right */
  transform: translateY(-50%); /* Adjust for exact centering */
}

.burger .line {
  width: 30px; /* Width of each line */
  height: 4px; /* Height of each line */
  background-color: #333; /* Color of the lines */
  border-radius: 2px; /* Optional: round the corners of the lines */
}

/* Our Services Section CSS */
#second-section {
  padding: 20px 20px;
  background-color: #f9f9f9;
  text-align: center;
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Initially position it below the viewport */
  transition: opacity 1s ease, transform 1s ease; /* Transition for smooth appearance */
}

#second-section.visible {
  opacity: 1; /* Make it visible when scrolled into view */
  transform: translateY(0); /* Move it into place */
}

#second-section .content {
  max-width: 800px;
  margin: 0 auto;
}

#second-section h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

#second-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}

.card {
  width: 330px;
  text-align: center;
  background: #f5f5f5;
  padding: 20px 15px;
  margin-bottom: 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
  background: #d4edda;
}

.card .content {
  transition: 0.3s;
}

.card:hover .content {
  transform: scale(1.07);
}

.card .content .icon {
  padding: 5px 0;
  background: linear-gradient(135deg, #65d090, #f1e6c9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card .content .icon i {
  font-size: 40px;
}

/*.card:hover .content .title {
  color: #2e7d32;
}*/

.card .content .title {
  padding: 5px 0;
  font-size: 24px;
  font-weight: 500;
  color: black;
  transition: 0.3s;
}

/* Our Services Section CSS */

/* About  Section CSS */
#third-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Start below the viewport */
  transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}

#third-section.visible {
  opacity: 1; /* Show when visible */
  transform: translateY(0); /* Slide into place */
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 20px;
}

.about-image {
  position: relative;
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}

.about-text {
  flex: 2;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-text p {
  line-height: 1.6;
  color: #444;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
}

#fourth-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Initially position it below the viewport */
  transition: opacity 1s ease, transform 1s ease; /* Transition for smooth appearance */
}

#fourth-section.visible {
  opacity: 1; /* Show when visible */
  transform: translateY(0); /* Slide into place */
}

/* Main container for the contact form */
.contact-form-container {
  background: linear-gradient(
    135deg,
    #a8d5ba,
    #f1e6c9
  ); /* Soft green to warm gold gradient */
  padding: 40px 50px;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: "Arial", sans-serif;
  color: #333;
}

.contact-form-container h2 {
  text-align: center;
  font-size: 2em;
  color: #000; /* Black for the header */
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-form-container p {
  text-align: center;
  color: #666; /* Lighter gray for a gentle tone */
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: 500;
  color: #000; /* Black for the labels */
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #c8e6c9; /* Light muted green border */
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #81c784; /* Slightly darker green on focus */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888; /* Subtle gray placeholder text */
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px; /* Ensures enough space for typing */
}

.submit-btn {
  padding: 15px 25px;
  background-color: #f1e6c9; /* Soft gold background */
  color: #000; /* Black text for the button */
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  align-self: center;
}

.submit-btn:hover {
  background-color: #c8e6c9; /* Light green on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 5px #000; /* Black focus effect */
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.footer {
  background: linear-gradient(
    135deg,
    #a8d5ba,
    #f1e6c9
  ); /* Soft green to warm gold gradient */
  color: #fff;
  padding: 20px;
  text-align: center;
}

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

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 10px;
  font-size: 12px;
  color: #2c3e50;
}

/* ===================================
   Privacy Policy Page Specific Styles
   =================================== */

/* Main Content Styling */
#privacy-policy-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  color: #333;
}

#privacy-policy-section h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
  border-bottom: 2px solid #a8d5ba;
  padding-bottom: 5px;
}

#privacy-policy-section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

#privacy-policy-section ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

#privacy-policy-section li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.5;
}

#privacy-policy-section strong {
  color: #2c3e50;
}

#privacy-policy-section a {
  color: #28a745;
  text-decoration: none;
  transition: color 0.3s;
}

#privacy-policy-section a:hover {
  color: #218838;
  text-decoration: underline;
}

address {
  text-align: center;
  font-style: normal;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  line-height: 1.6;
}

address a {
  display: inline-block;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #privacy-policy-section {
    margin: 30px auto;
    padding: 0 15px;
  }

  #privacy-policy-section h2 {
    font-size: 1.5rem;
    margin-top: 30px;
  }

  #privacy-policy-section p,
  #privacy-policy-section li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #privacy-policy-section {
    margin: 20px auto;
  }

  #privacy-policy-section h2 {
    font-size: 1.3rem;
  }

  address {
    padding: 15px;
  }
}

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

#loadingSpinner {
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 30px 20px;
  }
}

/* Mobile styles */
@media (max-width: 900px) {
  /* Adjust to 768px for more typical mobile screens */
  nav {
    width: 100%; /* Ensure nav takes up full width */
  }

  /* Hide navigation links by default on mobile */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 100%; /* Make sure the menu takes the full width */
    padding: 0;
    margin-right: 0;
    position: fixed;
    top: 58px; /* Position the nav right below the header */
    left: 0;
    background-color: white; /* Background color for the menu */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add some shadow to the dropdown */
    z-index: 1000; /* Ensure it appears above other content */
  }

  /* Show the navigation links when the 'active' class is added */
  nav ul.active {
    display: flex; /* Show the links when active */
  }

  /* Show the burger icon */
  .burger {
    display: flex; /* Show the burger icon on mobile */
    margin-right: 5px;
  }

  /* Remove the right alignment from the navigation list */
  nav ul li {
    width: 100%; /* Ensure list items take the full width */
    text-align: center; /* Center the text */
  }

  .card-container {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    gap: 20px; /* Maintain spacing between cards */
    justify-content: center; /* Center the cards */
    padding: 0 10px; /* Optional: add padding for better layout */
  }

  .card {
    width: 100%; /* Full width on small screens */
    max-width: 330px; /* Optional: prevent cards from being too wide */
    margin-bottom: 20px; /* Space between cards */
    box-sizing: border-box; /* Ensure padding/margin are included in the width */
  }
}

@media (max-width: 1200px) {
  .about-container {
    flex-direction: column; /* Stack the image and text vertically */
    padding: 30px 15px; /* Adjust padding for smaller screens */
  }

  .about-image {
    flex: none; /* Allow image to take full width */
    margin-bottom: 20px; /* Add space between the image and text */
  }

  .about-text {
    flex: none; /* Allow text to take full width */
  }

  .about-text h2 {
    font-size: 1.8rem; /* Adjust heading size for smaller screens */
  }

  .about-text p {
    font-size: 1.1rem; /* Slightly smaller text for better readability */
  }
}

/* Extra small screen (e.g., mobile phones) */
@media (max-width: 600px) {
  #third-section {
    padding: 40px 15px;
  }

  .about-text h2 {
    font-size: 1.6rem; /* Reduce the font size further */
  }

  .about-text p {
    font-size: 1rem; /* Smaller font size for better fitting */
  }

  .about-container {
    padding: 20px; /* Reduce padding on extra small screens */
  }
}
