/* Basic Reset & Global Styles */




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
      background-color: hwb(258 91% 5%);
    color: #161515e0; /* body color*/
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    color: #333;
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #007bff;
}

.logo img {
    max-height: 450px; /* Adjust if using an image logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}
.main-nav a.active,
.main-nav a:hover {
    color: #007bff;
}
.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}


.mobile-nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Carousel (Home Page) */
.hero-carousel {
    position: relative;
    width: 100%;
    max-height: 500px; /* Adjust as needed */
    overflow: hidden;
    background-color: #eee; /* Fallback if images don't load */
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.carousel-slide.active {
    display: block;
}
.carousel-slide img {
    width: 100%;
    height: 500px; /* Match max-height of .hero-carousel */
    object-fit: cover;
}
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
}
.carousel-caption h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: #fff;
}
.carousel-caption p {
    margin: 0;
    font-size: 1rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.4s ease;
}
.carousel-control:hover {
    background-color: rgba(0,0,0,0.7);
}
.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }


/* Main Content Area */
main {
    padding: 2rem 0;
}
.page-content { /* For pages other than home */
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.page-content h1 {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 2.2rem;
    color: #007bff;
}

/* Home Page Specific Sections */
.home-intro, .home-services {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.home-intro h2, .home-services h2 {
    font-size: 2rem;
    color: #007bff;
}
.home-intro p, .home-services p {
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    /*transition: background-color 0.3s ease;*/
}
.btn:hover {
    background-color: #0056b3;
    color: #fff;
}

.service-highlights {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}
.service-item {
    flex-basis: calc(33.333% - 20px); /* Adjust for gap */
    min-width: 250px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}
.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* About Page */
.about-section img.about-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.5rem;
}
.about-section h2 {
    margin-top: 1.5rem;
    color: #0066cc;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}
.service-card {
    background-color: #fdfdfd;
    padding: 25px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.service-icon-large {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
    color: #333;
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}


.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(241, 238, 238, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 200px; /* Adjust as needed */
    object-fit: cover;
    transition: transform 0.1s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f3ededb3;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

/* Contact Page */
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}
.contact-form-container {
    flex: 2;
    min-width: 300px;
}
.contact-details-container {
    flex: 1;
    min-width: 280px;
    background-color: hsl(18, 46%, 85%); /* Light blue background */
    padding: 20px;
    border-radius: 8px;
}
.contact-details-container h3 {
    color: #007bff;
    margin-bottom: 0.7em;
}
.contact-details-container p {
    margin-bottom: 0.8em;
    line-height: .8;
}
.contact-details-container p i {
    margin-right: 10px;
    color: #007bff;
    width: 20px; /* Align icons */
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
#contactForm button[type="submit"] {
    margin-top: 1rem;
}
.map-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden; /* Ensures iframe respects border-radius */
}

/* Footer */
footer {
    background-color: rgb(7, 3, 54); /* footer color*/
    color: #ecf0f1;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
}
.footer-address, .footer-social {
    flex-basis: calc(50% - 10px); /* Adjust for gap */
    min-width: 250px;
}
.footer-address h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-address p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-social a {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: #3498db; /* Lighter blue on hover */
}
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}


/* General styles for the form */
.form-container select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  color: #34495e;
  cursor: pointer;
}

/* Styling for when the select is hovered or focused */
.form-container select:hover,
.form-container select:focus {
  border-color: #007bff;
  outline: none;
}

/* Option styles */
.form-container select option {
  padding: 10px;
  font-size: 16px;
}

/* Add spacing between the select box and message textarea */
.form-container select {
  margin-bottom: 25px; /* Adjust this value as needed */
}



/* Responsive Design */

/* Tablets and larger phones (landscape) */
@media (max-width: 992px) {
    .logo h1 {
        font-size: 1.6rem;
    }
    .service-item {
        flex-basis: calc(50% - 10px); /* 2 items per row with gap */
    }
    .contact-flex {
        flex-direction: column;
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding-bottom: 10px;
    }
    .main-nav.active {
        display: flex; /* Show when active */
        
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav interior
    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none; /* No underline for mobile nav items */
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger */
    }
    /* Hamburger animation */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-carousel {
        max-height: 350px;
    }
    .carousel-slide img {
        height: 350px;
    }
    .carousel-caption h2 {
        font-size: 1.4rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }

    .home-intro h2, .home-services h2, .page-content h1 {
        font-size: 1.8rem;
    }
    
    .service-highlights {
        flex-direction: column;
    }
    .service-item {
        flex-basis: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-address, .footer-social {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .logo h1 {
        font-size: 1.4rem;
    }
    .hero-carousel {
        max-height: 250px;
    }
    .carousel-slide img {
        height: 250px;
    }
    .carousel-caption {
        padding: 10px 15px;
    }
    .carousel-caption h2 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    .carousel-caption p {
        display: none; /* Hide p on very small screens for carousel */
    }
    .carousel-control {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .gallery-item img {
        height: 250px; /* Taller images for single column */
    }
}




.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /*galley box size adjuset*/
  gap: 15px;
  padding: 5px;
  justify-items: center;
}
.gallery img {
  width: 100%;
  height: 250px; /*gallery img adjust*/
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.gallery img:hover {
  transform: scale(1.05);
  border-color: #007bff;
}
.pagination a {
  padding: 10px 15px;
  margin: 5px;
  text-decoration: none;
  color: white;
  background: #007bff;
  border-radius: 5px;
  justify-content: right;
}
.pagination a:hover {
  background: #0056b3;
}


/* Add a black background color to the top navigation */
.topnav {
  background-color: hwb(95 79% 9%);
  overflow: hidden;

}


/* Style the links inside the navigation bar */
.topnav a {
  float: right;
  color: #ca8f8f;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}




.form-container {
    background: hwb(96 86% 12%); /*contact form color*/
    max-width: 800px;
    margin: 40px auto;
    margin-top: 50px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

input,
textarea {
    width: 100%;
    height: 70px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;

}

button {
    padding: 10px 20px;
    background: hsl(323, 49%, 47%);
    color: white;
    border: none;
   border-radius: 10px;
   


}

.filters button {
    background: #007bff;
    color: white;
    margin-right: 10px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}


/* Dropdown Navigation */
.main-nav ul li.dropdown {
    position: relative;
}

.main-nav ul li.dropdown .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #28e661;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0; /* Align dropdown with the parent link */
    top: 100%; /* Position below the parent link */
    border-radius: 5px;
    overflow: hidden; /* Ensures border-radius applies to content */
}

.main-nav ul li.dropdown .dropdown-content a {
    color: #333;
    padding: 5px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee; /* Separator for dropdown items */
}

.main-nav ul li.dropdown .dropdown-content a:last-child {
    border-bottom: none; /* No separator for the last item */
}

.main-nav ul li.dropdown .dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

.main-nav ul li.dropdown:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}

/* Adjustments for Mobile Navigation (if needed) */
@media (max-width: 768px) {
    .main-nav.active .dropdown .dropdown-content {
        position: static; /* Stack dropdown items normally in mobile */
        box-shadow: none;
        background-color: transparent;
        min-width: auto;
    }
    .main-nav.active .dropdown .dropdown-content a {
        padding-left: 35px; /* Indent dropdown items for mobile */
        border-bottom: none; /* Remove border in mobile */
    }
     .main-nav a.active::after,
     .main-nav a:hover::after {
        content: ''; /* Ensure hover effect is removed for dropdown parent */
     }
     .main-nav ul li.dropdown > a::after { /* Specific targeting for the dropdown parent link */
        display: none; /* Hide the underline for the "Project" link in mobile */
     }
}


h1 {
    color: #0066cc;
}