body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}


/* Preserve existing navbar settings */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    padding: 10px 20px;
}

/* Style the nav links while preserving current structure */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    color: #555; /* Neutral gray */
    padding: 8px 15px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
    font-weight: bold; /* Make the text bold */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Hover and Active state - Minimal but effective */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #dee1e4; /* Hover background color */
    color: white;
}

/* Dropdown menu enhancements */
.dropdown-menu {
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 1rem;
    color: #555;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background-color: #b5bdc5;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        margin-top: 15px;
    }
}

/*Top bar*/
/* Top Bar Styling */
.top-bar {
  background-color: #002E5D; /* Dark blue background */
  color: white; /* White text */
  font-size: 0.9rem; /* Font size */
  padding: 3px 0; /* Padding for spacing */
}

/* Icon spacing */
.top-bar .fas {
  margin-right: 5px; /* Spacing between icon and text */
}

/* Spacing between elements */
.top-bar span {
  margin-right: 20px; /* Space between spans */
  
}

/* Align contact information to the right */
.top-bar .container {
  display: flex;
  justify-content: space-between; /* Distribute space evenly between contact info */
  align-items: flex-end; /* Vertically align the items */
}

/* Responsive adjustments for the top bar */
@media (max-width: 768px) {
  /* Hide top bar on screens smaller than 768px */
  .top-bar {
    display: none; /* Hide top bar on smaller screens */
  }
  /* Adjust logo size for smaller screens */
  .navbar-brand img {
    height: 40px; /* Reduce logo size on smaller screens */
  }

  /* Adjust company name font size for smaller screens */
  .company-name {
    font-size: 1rem; /* Decrease the font size on smaller screens */
    white-space: nowrap; /* Allow text wrapping */
  }
}
/* Responsive adjustments for even smaller screens (screens smaller than 576px) */
@media (max-width: 576px) {
  /* Further reduce logo size for very small screens */
  .navbar-brand img {
    height: 30px; /* Smaller logo on mobile */
  }

  /* Further decrease company name size for very small screens */
  .company-name {
    font-size: 1.1rem;
    white-space: nowrap; /* Allow wrapping */
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  /* Adjust layout for tablet-sized screens */
  .top-bar .container {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align to the start of the container */
  }
  .top-bar span {
    display: block; /* Stack elements */
    margin-bottom: 10px; /* Spacing between stacked elements */
  }
}

/* Hero Section Styling */
.carousel-item {
    height: 100vh; /* Full height for larger screens */
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  @media (max-width: 1024px) { /* For tablets */
    .carousel-item {
      height: 70vh; /* Reduce height for tablets */
    }
  
    .carousel-caption h1 {
      font-size: 3rem; /* Reduce heading size */
    }
  
    .carousel-caption p {
      font-size: 1.2rem; /* Reduce paragraph text size */
    }
  
    .carousel-caption .btn {
      font-size: 1rem; /* Make button slightly smaller */
      padding: 8px 16px;
    }
  }
  
  @media (max-width: 768px) { /* For mobile screens */
    .carousel-item {
      height: 60vh; /* Reduce height further on mobile */
    }
  
    .carousel-caption h1 {
      font-size: 1rem; /* Further reduce heading size */
    }
  
    .carousel-caption p {
      font-size: .5rem; /* Reduce paragraph size for mobiles */
    }
  
    .carousel-caption .btn {
      font-size: 0.9rem; /* Smaller button on mobile */
      padding: 6px 12px;
    }
  }
  
  .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Black overlay with 60% opacity */
    z-index: 1;
  }
  
  .carousel-indicators [data-bs-target] {
    background-color: #000; /* Black indicators */
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    filter: invert(100%); /* Make arrows white */
  }

  
  footer {
    background-color: #343a40; /* Dark background */
  }
  
  footer h5 {
    font-weight: bold;
  }
  
  footer p {
    color: #dcdcdc; /* Lighter text for readability */
  }
  
  footer a {
    color: #dcdcdc; /* Lighter link color */
    text-decoration: none;
  }
  
  footer a:hover {
    color: #ffffff; /* Brighter on hover */
  }
  
  footer .btn-floating {
    border-radius: 50%;
  }
  
  footer .fab {
    font-size: 1.2rem;
  }

  
  #overview h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40; /* Dark color for heading */
  }
  
  #overview p.lead {
    font-size: 1.2rem;
    font-weight: 300;
  }
  
  #overview .btn-primary {
    background-color: #004d00;
    border-color: #004d00;
    transition: background-color 0.3s, border-color 0.3s;
  }
  
  #overview .btn-primary:hover {
    background-color: #228B22;
    border-color: #004d00;
  }
  
  #overview .p-3 {
    font-size: 1.1rem;
  }
  
  #overview .img-fluid {
    border-radius: 0.5rem; /* Rounded corners for the image */
  }
  
  #overview .bg-light {
    background-color: #f8f9fa; /* Light background for key stats */
  }
  
  #about-us h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40;
  }
  
  #about-us .nav-tabs .nav-link {
    color: #343a40;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
  }
  
  #about-us .nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
  }
  
  #about-us .tab-content h4 {
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  #about-us .tab-content p {
    font-size: 1.1rem;
  }
  
  #about-us .btn-primary {
    background-color: #004d00;;
    transition: background-color 0.3s ease-in-out;
  }
  
  #about-us .btn-primary:hover {
    background-color: #228B22;
  }
  
  #about-us .img-fluid {
    border-radius: 0.5rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  #about-us .rounded-circle {
    width: 100px;
    height: 100px;
    object-fit: cover;
  }
  #our-services h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40;
  }
  
  #our-services p.lead {
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d;
  }
  
  .service-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    background-color: #004d00;;
    border: none;
  }
  
  .btn-primary:hover {
    background-color: #004d00;;
  }


  .project-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
  }
  
  .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .project-image-container:hover .overlay {
    opacity: 1;
  }
  
  @media (max-width: 768px) {
    .project-image-container {
      height: 200px;
    }
  }

  .project-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
  }
  
  .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .project-image-container:hover .overlay {
    opacity: 1;
  }
  
  /* Adjustments for mobile responsiveness */
  @media (max-width: 768px) {
    .project-image-container {
      height: 200px;
    }
    .overlay-content h5 {
      font-size: 1rem;
    }
    .overlay-content p {
      font-size: 0.9rem;
    }
  }
  
  /* Contact Section Styles */
#contact-us {
  background-color: #f9f9f9;
}

#contact-us h2 {
  color: #006400; /* Matches your green header color */
  letter-spacing: 2px;
}

#contact-us p {
  color: #555;
}

#contact-us .form-control {
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  transition: box-shadow 0.3s ease;
}

#contact-us .form-control:focus {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
  border-color: #006400;
}

#contact-us .btn-success {
  background-color: #006400;
  border: none;
  transition: all 0.3s ease;
}

#contact-us .btn-success:hover {
  background-color: #228B22;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Social Media Icon Animation */
#contact-us .social-icons i {
  transition: transform 0.3s ease, color 0.3s ease;
}

#contact-us .social-icons i:hover {
  color: #006400;
  transform: scale(1.1);
}

/* Map Styles */
#map-container {
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
.animate__animated {
  animation-duration: 1s;
}

/* solar energy solution */
.hero-section {
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}

.card {
  border: none;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-body {
  flex-grow: 1; /* Ensures equal height */
}

.card:hover {
  transform: scale(1.05);
}

.why-solar h2, .our-solutions h2 {
  color: #004d40;
}

.solution-item:hover {
  background-color: #e0f2f1;
}

.cta {
  background-image: url('solar-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}
