* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* hdiv-1 Styles */
.hdiv-1 {
  display: flex; /* Use flexbox for centering */
  justify-content: center;
  position: relative;
  background-color: #f8f9fa;
  padding: 10px 20px;
  height: 50px; /* Set a fixed height for the header */
  box-sizing: border-box;
  width: 100%; /* Ensure it stretches across full width */
}

/* Menu Styles */
.menu {
  list-style: none;
  display: flex; /* Use flex to layout items horizontally */
  margin: 0;
  padding: 0;
}

.menu li {
  display: inline-block;
  margin-right: 15px;
  font-size: 16px;
  color: #333;
  padding-top: 4%;
}

.menu li:hover {
  color: green; /* Change color on hover */
  cursor: pointer;
}

/* Contact Us Button */
.contact-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: green;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 20px;
  margin-right: 50px;
}

.contact-btn:hover {
  background-color: darkgreen;
}

/* Image Styling */
.img1 {
  position: relative;
  height: 100vh;
  width: 100%;
}

.img1 img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Ensures the image covers the entire container */
}

/* Overlay Text */
.overlay-text {
  position: absolute;
  top: 50%; /* Centers text vertically */
  left: 50%; /* Centers text horizontally */
  transform: translate(-50%, -50%); /* Adjusts for exact centering */
  color: white;
  font-size: 4rem; /* Responsive size */
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Times New Roman", Times, serif;
}
/* About Section Grid Layout */
.about-section {
  display: grid; /* Enable grid layout */
  grid-template-columns: 1fr 1fr; /* Two equal-width columns */
  gap: 20px; /* Space between columns */
  padding-top: 10%; /* Outer padding for the section */
  align-items: center; /* Align vertically */
}

/* Left Column: Text Area */
.about1 {
  padding: 20px; /* Inner spacing for text content */
}

.about1 h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.about1 h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.about1 p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.read {
  background-color: green;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read:hover {
  background-color: darkgreen;
}

/* Right Column: Images */
.about2 {
  display: flex; /* Ensure images stack properly */
  gap: 10px; /* Space between images */
}

.about2 img {
  width: 100%; /* Make images fit the container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Optional: Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  padding-right: 5%;
}
.img2 img {
  justify-content: center;
  height: 100%;
}
.catsec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5% 10%; /* Outer spacing for responsiveness */
  background-color: #f9f9f9; /* Light background color */
}

.catsec h3 {
  font-size: 1.5rem; /* Smaller heading size */
  color: #333;
  margin-bottom: 1rem;
}

.catsec h1 {
  font-size: 2.5rem; /* Main heading size */
  color: #555;
  margin-bottom: 1.5rem;
}

.catsec p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px; /* Restrict width for readability */
}
/* Styling the category cards */
.catdiv {
  display: grid; /* Enable grid layout */
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 20px; /* Space between cards */
  width: 100%; /* Full width of the container */
  margin-top: 10px; /* Space above the grid */
}

.catdiv > div {
  background-color: #fff; /* White background for each card */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  padding: 20px; /* Inner spacing */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effect */
}

.catdiv > div:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.catdiv img {
  width: 100%; /* Image fits the card */
  height: 150px; /* Fixed height for uniformity */
  border-radius: 10px; /* Rounded corners */
  margin-bottom: 1rem; /* Space below the image */
}

/* Responsive Design: Adjust layout for smaller screens */
@media (max-width: 768px) {
  .catdiv {
    grid-template-columns: 1fr; /* Switch to single column layout */
  }
}

@media (max-width: 1200px) {
  .catdiv {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Ensure two-column layout for tablets */
    gap: 15px; /* Adjust spacing for smaller screens */
  }
}

@media (max-width: 480px) {
  .catdiv > div {
    padding: 15px; /* Reduce padding for smaller screens */
  }

  .catdiv img {
    height: 120px; /* Smaller image height for compact design */
  }
}
/* Project Section Layout */
.project-section {
  text-align: center; /* Center-align the text content */
  padding: 20px; /* Outer spacing */
}

.project-section h3 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 10px;
}

.project-section h1 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 20px;
}

.project-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

/* Images Grid Layout */
.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  gap: 15px; /* Space between images */
  justify-content: center; /* Center the grid content */
  margin-top: 20px; /* Space above the grid */
}

.project img {
  width: 100%; /* Make images fit their containers */
  height: 200px; /* Fixed height for uniformity */
  object-fit: cover; /* Ensure images scale properly */
  border-radius: 10px; /* Optional: Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.project img:hover {
  transform: scale(1.05); /* Slight zoom-in on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .project {
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
  }

  .project img {
    height: 150px; /* Reduce height for smaller screens */
  }
}

@media (max-width: 480px) {
  .project {
    grid-template-columns: 1fr; /* Single column for mobile screens */
  }

  .project img {
    height: 120px; /* Further reduce height for very small screens */
  }
}
.viewproject {
  background-color: #4caf50; /* Green background */
  color: white; /* White text color */
  font-size: 0.85rem; /* Smaller font size */
  font-weight: bold; /* Bold text */
  padding: 10px; /* Reduced padding for a smaller button */
  margin: 10px;
  border: none; /* Remove default border */
  border-radius: 20px; /* Slightly smaller rounded edges */
  cursor: pointer; /* Pointer cursor on hover */
  text-transform: uppercase; /* Make text uppercase */
  letter-spacing: 0.8px; /* Slightly reduced letter spacing */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}

.viewproject:hover {
  background-color: #45a049; /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
  transform: translateY(-2px); /* Slight lift effect */
}
.testimonial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap; /* Allows the content to wrap on smaller screens */
}

.testimg {
  flex: 1;
  padding-right: 20px;
}

.test {
  flex: 1;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimg img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

h3,
h1 {
  margin: 0 0 10px;
  color: #333;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* Media Queries for Responsiveness */

/* For devices smaller than 768px */
@media (max-width: 768px) {
  .testimonial {
    flex-direction: column; /* Stack the image and content vertically */
    align-items: center; /* Center content */
  }

  .test {
    width: 100%; /* Full width for the testimonial card */
    margin-top: 20px; /* Add space above the testimonial card */
  }

  .testimg {
    width: 100%; /* Full width for the image container */
    padding-right: 0; /* Remove extra padding */
  }

  h3,
  h1 {
    text-align: center; /* Center the headings */
  }
}

/* For devices smaller than 480px */
@media (max-width: 480px) {
  .testimonial {
    padding: 10px; /* Reduce padding */
  }

  .test {
    padding: 15px; /* Reduce padding for the card */
  }

  p {
    font-size: 0.9rem; /* Reduce font size for smaller screens */
  }
}
/* Styling the section and container */
/* Styling the section and container */
.footer-section {
  position: relative;
  width: 100%;
  height: 80vh; /* Set height for the section so that image height is relative to it */
}

.footer-section img {
  width: 100%;
  height: 100%; /* Set height to 100% of the section's height */
  object-fit: cover; /* Ensure image covers the section */
  opacity: 0.8; /* Slightly dim the image for better visibility of text */
}

/* Position the text and button in the center over the image */
.footer-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the content */
  color: white; /* Make the text white */
  text-align: center;
  z-index: 1; /* Ensure the content appears above the image */
}

.footer-content h2 {
  font-size: 2rem; /* Adjust the font size as per need */
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Optional: Adds shadow to the text for better visibility */
}

.footerbut {
  background-color: green; /* Green background for the button */
  color: white; /* White text for the button */
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 25px; /* Rounded corners */
  border: none; /* Remove default border */
  cursor: pointer; /* Pointer on hover */
  transition: background-color 0.3s ease; /* Smooth transition */
  z-index: 1; /* Ensure the button appears above the image */
}

.footerbut:hover {
  background-color: darkgreen; /* Darker green on hover */
}
/* Styling the footer container */
.footer {
  color: #fff; /* White text color */
  padding: 20px;
  text-align: center;
  padding-left: 40%;
}

/* Styling the list inside the footer */
.footer-links {
  list-style-type: none; /* Remove default bullet points */
  padding: 0;
  display: flex; /* Use flexbox to align the links horizontally */
  justify-content: center; /* Center the links */
  gap: 30px; /* Add space between links */
}

/* Styling individual list items */
.footer-links li {
  display: inline-block;
}

/* Styling the links */
.footer-links a {
  text-decoration: none; /* Remove underline */
  color: black; /* White text color */
  font-size: 1.2rem; /* Slightly larger font size */
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover effect for links */
.footer-links a:hover {
  color: #4caf50; /* Green color on hover */
}
