/* Reset default margins and paddings */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: #333;
}

/* Base styling for the header */
header {
  background-color: #fff; /* White background */
  padding: 20px 0; /* Increased padding for the default state */
  position: fixed; /* Fixed at the top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensure above other content */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: padding 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

header.shrink {
  padding: 10px 0; /* Reduced padding when scrolled */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Include padding in width calculation */
  overflow: hidden; /* Prevent overflow */
}

/* Logo styling */
header img#logo {
  height: 80px; /* Adjust logo height */
  width: auto;
  transition: height 0.3s ease; /* Smooth logo size change */
}

header.shrink img#logo {
  height: 60px; /* Reduced logo height when scrolled */
}

/* Navigation styles */
nav {
  display: flex;
  align-items: center;
}

/* Hamburger menu styles */
nav .menu-toggle {
  display: none; /* Hidden by default */
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Center align bars */
  margin-left: auto; /* Pushes hamburger menu to the right */
}

nav .menu-toggle .bar {
  background-color: #000; /* Black bars */
  height: 3px;
  width: 25px;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Navigation links */
nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow: hidden; /* Prevent overflow */
}

nav .nav-links li {
  margin-left: 20px;
}

nav .nav-links li a {
  display: block;
  padding: 10px;
  color: #000; /* Black text for menu items */
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* Prevent line breaks */
  overflow: hidden;
  text-overflow: ellipsis; /* Show ellipsis for overflow */
  transition: color 0.3s;
}

nav .nav-links li a:hover {
  color: #004d00; /* Green on hover */
}

/* Mobile Menu */
@media (max-width: 768px) {
  header .container {
    padding: 0 10px; /* Adjust padding for smaller screens */
  }

  nav .menu-toggle {
    display: flex; /* Show hamburger icon on small screens */
  }

  nav .nav-links {
    display: none; /* Hide links by default */
    position: absolute;
    top: 60px; /* Position menu below the header */
    right: 0;
    background-color: #fff;
    width: 100%;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure above other content */
    padding: 20px 0;
    overflow-y: auto; /* Scrollable if content overflows */
  }

  nav .nav-links.active {
    display: flex; /* Show links when active */
  }

  nav .nav-links li {
    margin: 10px 0; /* Adjust spacing for mobile */
  }
}

/* Language Selector Styling */
#language-selector {
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #000;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  appearance: none; /* Remove default styling for a cleaner look */
  outline: none; /* Remove the default focus outline */
  transition: border-color 0.3s ease; /* Smooth transition for border color */

}

/* Additional styling for select dropdown */
#language-selector option {
  padding: 10px;
  background-color: #fff;
  color: #000;
}

/* Hero section styling */
#hero {
  background: linear-gradient(rgba(0, 77, 0, 0.7), rgba(0, 77, 0, 0.7)), url('images/hero-background.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 0px 20px; /* Adjust padding as needed */
  position: relative;
  margin-top: 0px; /* Ensure hero section starts below the header */
  overflow: hidden; /* Ensure content is contained */
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  display: flex;
}

#hero h1 {
  font-size: 3em;
  margin: 0;
}

#hero p {
  font-size: 1.5em;
  margin-top: 10px;
}

#hero .btn {
  background-color: #004d00; /* Green button */
  color: #fff;
  padding: 10px 20px;
  border: 2px solid #004d00; /* Green border */
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}

#hero .btn:hover {
  background-color: #003300; /* Darker green on hover */
  border-color: #003300; /* Darker border on hover */
  transform: scale(1.05);
}

/* Services Section */
#services {
  padding: 50px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

#services h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-card {
  position: relative;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  height: 270px; /* Initial height */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Smooth transition for expansion */
  overflow: hidden; /* Hide overflow content */
}

.service-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.service-card h3 {
  font-size: 1.5em;
  margin: 15px 0 10px;
}

.service-card .service-description {
  opacity: 0; /* Hide description by default */
  font-size: 1em;
  color: #f4f7f4;
  transition: opacity 0.4s ease, transform 0.4s ease; /* Smooth transition */
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  /*background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent background */
  background-color: rgba(0, 77, 0, 0.9); /* Semi-transparent background */
  padding: 10px;
  border-radius: 5px;
  transform: translateY(20px); /* Start below the view */
}

.service-card:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
  height: 300px; /* Expanded height */
}

.service-card:hover .service-description {
  opacity: 1; /* Show description on hover */
  transform: translateY(0); /* Move into view */
}

.service-image {
  width: 100%; /* Full width of the service box */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove any bottom space */
}


/* About Us Section */
/* About Us Section */
#about-us {
  padding: 50px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

#about-us h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #004d00; /* Green for headings */
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.about-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
  padding: 20px;
}

.about-text h3 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #004d00; /* Green for subheadings */
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.about-image {
  flex: 1;
  max-width: 500px;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 15px; /* Optional: Adds rounded corners */
  transition: transform 0.3s ease; /* Smooth transition for the scale effect */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column; /* Stack text and image vertically on small screens */
    text-align: center; /* Center-align text for better readability */
  }

  .about-text {
    max-width: 100%; /* Full width for smaller screens */
    padding: 10px; /* Adjust padding for smaller screens */
  }

  .about-image {
    max-width: 100%; /* Full width for smaller screens */
    margin-top: 20px; /* Add space between text and image */
  }
}

/* Hover Effect for Image */
.about-image img:hover {
  transform: scale(1.1); /* Slightly enlarge the image on hover */
}


/* Contact Section */
#contact {
  padding: 50px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

#contact .container {
  max-width: 800px;
  margin: 0 auto;
}

#contact h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #004d00; /* Green color for heading */
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.form-group {
  width: 100%;
  max-width: 500px; /* Max width for larger screens */
  text-align: left; /* Align text to the left for labels */
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #004d00; /* Green border on focus */
  box-shadow: 0 0 5px rgba(0, 77, 0, 0.3); /* Subtle shadow on focus */
  outline: none; /* Remove default outline */
}

input[type="checkbox"] {
  margin-right: 10px; /* Space between checkbox and label */
}

/* GDPR Consent Styling */
.form-group.checkbox-group {
  display: flex;
  align-items: center;
}

.form-group input[type="checkbox"] {
  margin: 0; /* Remove margin for better alignment */
}

.form-group input[type="checkbox"] + label {
  font-size: 0.9em;
  margin: 10px; 
}

.form-group input[type="checkbox"] + label a {
  color: #004d00;
  text-decoration: none;
}

.form-group input[type="checkbox"] + label a:hover {
  text-decoration: underline;
}

button {
  background-color: #004d00; /* Green button */
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #003300; /* Darker green on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
}


/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 0.9em;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}


/* Back to Top Button Styling */
#back-to-top {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px; /* Distance from the right */
  width: 50px;
  height: 50px;
  background-color: #25c325; /* Green background */
  color: #fff; /* White text */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10%; /* Circle shape */
  text-decoration: none; /* Remove underline */
  font-size: 24px; /* Size of the arrow */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  background-color: #003300; /* Darker green on hover */
}

#back-to-top.show {
  opacity: 1; /* Show the button when scrolled */
  transform: scale(1.1); /* Slightly enlarge on hover */
}
