/* Set the overall body background to a light grey */
body {
  background-color: #f0f0f0; /* Light grey background for the body */
  color: #333; /* Dark text for contrast */
  font-family: Arial, sans-serif; /* Optional: Set a default font for the page */
}

/* Hero section background */
.Banner-section {
  display: flex;
  height: 100vh;
  width: 100%;
  background-color: #ffffff; /* White background for hero section */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow to create separation */
}

/* Text container - takes up 35% of the width */
.text-container {
  flex: 0 0 35%; /* Flexbox: Don't grow, don't shrink, take 35% of the space */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center the text */
  padding-left: 5%;
  color: #333; /* Dark text color for contrast */
  z-index: 2;
}

/* Image container - takes up 65% of the width */
.image-container {
  flex: 0 0 65%; /* Flexbox: Don't grow, don't shrink, take 65% of the space */
  position: relative;
}

/* Hero image styling */
.hero-image {
  width: 100%; /* Image takes full width of the container */
  height: 100%; /* Image fills the container's height */
  object-fit: cover; /* Ensure the image covers the area without distortion */
  filter: brightness(0.95); /* Apply a slight darkening effect to the image for contrast */
}

/* Gradient text effect for headline */
.headline {
  font-size: 4.5rem; /* Set font size to a typical h1 size (you can adjust this as needed) */
  font-weight: bold; /* Ensure boldness for the headline */
  background-image: linear-gradient(to right, #6c757d, #adb5bd); /* Gradient of light grey tones */
  -webkit-background-clip: text; /* Clip the background to the text */
  color: transparent; /* Make text transparent so gradient shows through */
  display: inline; /* Make sure text is inline for gradient */
}

/* Gradient text effect for description */
.description {
  font-size: 1rem; /* Adjust description font size */
  background-image: linear-gradient(to right, #adb5bd, #6c757d); /* Lighter grey gradient */
  -webkit-background-clip: text; /* Clip the background to the text */
  color: transparent; /* Make text transparent so gradient shows through */
  margin-bottom: 20px; /* Add some space below the description */
}

/* Navbar styles */
.navbar {
  background-color: #f8f9fa; /* Light grey background for navbar */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for navbar */
  padding-right: 30px; /* Ensure there's some space on the right side of the navbar */
  padding-left: 30px; /* Add padding to the left side of navbar for better alignment */
  display: flex;
  justify-content: space-between; /* Ensure the logo and navbar are spaced apart */
  align-items: center; /* Align items vertically in the middle */
}

/* Update navbar link styles to make them transparent */
.navbar-nav .nav-link {
  color: #5a5a5a; /* Light grey text for nav items */
  font-weight: 500; /* Medium font weight for nav items */
  padding: 10px 20px; /* Add padding to make it look more like a button */
  border: 2px solid transparent; /* Transparent border initially */
  border-radius: 5px; /* Slight rounding of the edges for button-like appearance */
  background-color: transparent; /* Make background transparent */
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Navbar link hover effect - grey background, white text, and border */
.navbar-nav .nav-item .nav-link:hover {
  color: white !important; /* White text on hover */
  background-color: #6c757d !important; /* Grey background color on hover */
  border-color: #6c757d !important; /* Grey border on hover */
  font-weight: 600 !important; /* Bold text on hover */
  transform: scale(1.05); /* Slightly enlarge the link on hover */
}

/* Remove active state styling by default - ensure same hover effect */
.nav-item.active .nav-link {
  color: #5a5a5a; /* Keep the color same as the default text */
  background-color: transparent; /* No background color for active item initially */
  border-color: transparent; /* Transparent border */
  font-weight: 500; /* Normal font weight for active item */
  transform: none; /* Remove the scale effect for active item */
}

/* Active link behavior - same as hover effect, no special treatment */
.nav-item.active .nav-link:hover {
  color: white !important; /* White text on hover */
  background-color: #6c757d !important; /* Grey background color on hover */
  border-color: #6c757d !important; /* Grey border on hover */
  font-weight: 600 !important; /* Bold text on hover */
  transform: scale(1.05); /* Slightly enlarge the active link on hover */
}

/* Navbar active link - transparent button style */
.nav-item.active .nav-link:focus {
  color: #5a5a5a !important; /* Keep color normal when focused */
  background-color: transparent !important; /* Ensure no background on focus */
  border-color: transparent !important; /* Keep border transparent */
}

/* Navigation container - Ensure items align to the right but with proper margins */
.navbar-collapse {
  justify-content: flex-end; /* Align nav items to the right */
  margin-right: 80px; /* Add some margin on the right side of the navbar items */
}

/* Mobile navigation toggler styles */
.navbar-toggler-icon {
  background-color: #6c757d; /* Grey color for the toggler icon */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    font-weight: 400; /* Normal font weight on smaller screens */
    padding-right: 15px; /* Adjust space between links on mobile */
  }

  .navbar-collapse {
    justify-content: flex-start; /* Align navbar items to the left on small screens */
  }
}

/* Footer styling */
footer {
  background-color: #f1f1f1; /* Lighter grey background */
  padding: 20px;
  text-align: center;
  color: #6c757d; /* Light grey text */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .text-container {
    flex: 0 0 100%; /* Take up full width on small screens */
    padding-left: 10%;
    text-align: center; /* Center text on mobile */
  }

  .image-container {
    flex: 0 0 100%; /* Take up full width on small screens */
  }

  .headline {
    font-size: 3rem; /* Reduce headline size on smaller screens */
  }

  .description {
    font-size: 0.9rem; /* Smaller text size for description on mobile */
  }
}

/* Product Section Styling */
.services {
  background-color: #f8f9fa;
  margin-top: 50px;
}

.services h1 {
  font-size: 2.5rem;
  font-weight: bold;
  background-image: linear-gradient(to right, #6c757d, #adb5bd);
  -webkit-background-clip: text;
  color: transparent;
}

/* Card styling */
.card {
  position: relative;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 500px; /* Fixed height for consistency */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Image styling */
.card-img-top {
  object-fit: cover;
  width: 100%;
  height: 40%; /* Image takes 40% of the card height */
}

/* Card Body Styling */
.card-body {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  position: relative;
  bottom: 0;
  flex-grow: 1; /* Allow text to take up remaining space */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-body h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px; /* Space between title and paragraph */
}

.card-body p {
  font-size: 1rem;
  margin: 10px 0;
  flex-grow: 1; /* Allow paragraph to take up available space */
  overflow: hidden; /* Prevent text from overflowing */
  text-overflow: ellipsis; /* Truncate overflow text with ellipsis */
  white-space: normal; /* Allow text to wrap */
}

/* Responsive styling */
@media (max-width: 768px) {
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .card-body h2 {
    font-size: 1.2rem;
  }

  .card-body p {
    font-size: 0.9rem;
  }

  .card-img-top {
    height: 45%; /* Adjust image height for smaller screens */
  }
}

@media (max-width: 576px) {
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-body h2 {
    font-size: 1.1rem;
  }

  .card-body p {
    font-size: 0.8rem;
  }
}



/* About Us Section Styling */
.about-us {
  color: #333; /* Dark text color for readability */
}

h1.text-gradient {
  font-size: 2.5rem;
  font-weight: bold;
  background-image: linear-gradient(to right, #6c757d, #adb5bd);
  -webkit-background-clip: text;
  color: transparent;
}

.about-text {
  font-size: 1.2rem; /* Text size */
  line-height: 1.8; /* Line height for readability */
  color: #333; /* Dark text for description */
}

/* Contact Us Section Styling */
.contact-us {
  background-color: #f8f9fa; /* Light grey background to match the theme */
  color: #333; /* Dark text for readability */
  text-align: center;
}

.contact-us h1 {
  font-size: 2.5rem; /* Larger font size for the section title */
  font-weight: bold; /* Bold font for the heading */
  background-image: linear-gradient(to right, #6c757d, #adb5bd); /* Gradient effect for title */
  -webkit-background-clip: text; /* Gradient clipped to text */
  color: transparent; /* Make text transparent so gradient shows */
  margin-bottom: 2rem;
}

.contact-us p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333; /* Dark text for readability */
}

/* Flexbox for Centering Address and Heading */
.address-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-us .col-md-6 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure map container takes up full width */
  height: 400px; /* Ensure a specific height for the map */
}

.map-container iframe {
  border-radius: 10px; /* Rounded corners for the map */
  width: 100%; /* Ensure the iframe takes the full width of its container */
  height: 100%; /* Ensure the iframe takes the full height of its container */
}


/* Mobile adjustments for About Us and Contact Us Sections */
@media (max-width: 768px) {
  .contact-us p {
    font-size: 1rem; /* Smaller text for mobile screens */
    line-height: 1.5;
  }

  .contact-us h1 {
    font-size: 2rem; /* Smaller heading font size for mobile */
  }

  /* Center-align address text on mobile */
  .address-container {
    text-align: center;
  }

  /* Ensure map is centered as well */
  .map-container iframe {
    height: 300px; /* Reduced height for mobile devices */
  }
}

/* Footer Container */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style-type: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #007bff;
}

/* Social Icons */
.social-icons {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex; /* Ensures icons are displayed horizontally */
  justify-content: center; /* Center icons horizontally */
}

.social-icons li {
  margin-right: 20px; /* Space between icons */
}

.social-icons li a {
  font-size: 2.5rem !important; /* Increase icon size with !important */
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons li a:hover {
  color: #007bff; /* Change color on hover */
}

/* Footer Bottom (Copyright Section) */
.footer-bottom {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  color: #333;
  font-size: 0.9rem;
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Stack the columns vertically */
    align-items: center; /* Center-align content */
  }

  .footer-column {
    min-width: auto;
    text-align: center; /* Center content in columns */
  }

  .social-icons li {
    margin-right: 15px; /* Reduce space on smaller screens */
  }

  .social-icons li a {
    font-size: 2.2rem; /* Slightly smaller icon size on medium screens */
  }
}

@media (max-width: 480px) {
  .social-icons li {
    margin-right: 10px; /* Further reduce space on very small screens */
  }

  .social-icons li a {
    font-size: 2rem; /* Smaller icon size on very small screens */
  }
}
