 /* Vendor prefixes and enhancements for better cross-browser compatibility */
nav {
    position: relative;
    right: 0;
    left: 0;
    height: 6em;
    z-index: 10;
    width: 100%;
    padding: 0 2em; /* Adjusted padding */
}
@media (min-width: 1000px) {
    nav {
        padding: 0 2em; /* Consistent padding for larger screens */
    }
}
nav ul {
    position: relative;
    top: .5em;
    left: 0; /* Adjusted left alignment */
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;

}
nav ul li.logo h1{
    position: relative;
    left: -1em; /* Adjusted logo position */
    width: auto; /* Adjusted logo width */
}
 
@media (min-width: 1000px) {
    nav ul li.logo h1{
        position: relative;
        top: .5em;
        left: 1em;
        width: auto;
    }
}

@media (min-width: 810px) {
    nav ul  .logo img{
        position: relative;
        left: 0em; /* Adjusted logo image position */
        width: 5em;
    }
    }
nav a {
    position: relative;
    height: 100%;
    padding: 0 1em; /* Adjusted link padding */
    display: flex;
    align-items: center;
    color: black;

}

nav li:first-child {
    margin-right: auto;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: var( --secondary-color);
    opacity: 0.8;
    backdrop-filter: blur(.8em);
    box-shadow: -.8em 0 .8em rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar a svg {
    position: relative;
}

.sidebar li {
    position: relative;
    top: 2em;
    width: 100%;
}

.sidebar a {
    width: 100%;
    padding:1em 2em; /* Adjusted sidebar link padding */
    color: #fff;
}

.menu-btn {
    display: none;
}

.top-nav {
    padding: 1em 2em;
}

.top-nav .fa {
    color: var(--primary-color);
}

@media (max-width: 1000px) {
    .hideOnMobile {
        display: none;
    }

    .menu-btn {
        position: absolute; /* Changed to absolute for better positioning */
        top: 1.5em; /* Adjusted vertical position */
        right: 1em; /* Adjusted horizontal position */
        display: block;
        z-index: 1000; /* Ensure it's above the sidebar */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .menu-btn svg {
        fill: black; /* Ensure the menu icon is visible */
    }
}
@media (max-width: 700px) {
    .hideOnMobile {
        display: none;
    }

    .menu-btn {
        position: absolute;
        top: 1.5em;
        right: 1em;
        display: block;
    }
}
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }
}


/* Hero Section */

.hero{
    position: relative;
    top: -6em; /* Adjusted top to account for fixed nav */
    height: 80vh; /* Adjusted height */
    display: flex; /* Use flexbox for better alignment */
    align-items: center;
    background-size: cover;
    background-position: center;
    padding-top: 6em; /* Add padding to avoid overlap with fixed nav */
}
.hero .hero-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 !important;
    align-items: center; /* Vertically align content */
    height: 100%;
}
.hero .hero-info h1 {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight:bold;
    font-size: clamp(2rem, 1rem + 3vw, 4rem); /* Adjusted font size */
    font-style: normal;
}
.hero .hero-info p{
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.5rem); /* Adjusted font size */
    line-height: 1.6;
    margin-top: 1em;
}
.hero .hero-info{
    background-color: var(--primary-color);
    padding: 2em; /* Adjusted padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}
.hero  .grid-auto{
    gap: 0 !important;
}
.hero .hero-image {
    height: 100%;
}
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        height: auto; /* Adjust height for smaller screens */
    }
    .hero .hero-info {
        padding: 2em;
    }
    .hero .hero-image {
        order: -1; /* Place image above text on smaller screens */
        height: 50vh;
    }
}

@media(min-width:800px){

}


img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 
 

/* About Section */

.about-us{
    position: relative;
    padding-top: 4em; /* Added padding for spacing */
    padding-bottom: 4em;
}

.about-us-content .about-us-image img{
border-radius: 1em;
}
.about-content {
    padding: 2em;
}
.about-content .section-title{
    position: relative;
    top: 0; /* Reset top positioning */
    font-size: 1.5em !important; /* Adjusted font size */
    text-align: center; /* Center the title */
    margin-bottom: 1em; /* Add some spacing below the title */
}
.about-content .about-info p{
    position: relative;
    top: 0; /* Reset top positioning */
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight:bold;
    font-size:  1.5em; /* Adjusted font size */
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 0.5em;
}
.about-content .about-info span{
    position: relative;
    top: 0; /* Reset top positioning */
    text-align: center; /* Center the span text */
    color: var(--dark-gray);
    display: block; /* Make it a block element to center properly */
}
@media(min-width:800px){
    .about-us {
        padding-top: 6em;
        padding-bottom: 6em;
    }
    .about-content{
        display: grid;
        grid-template-columns: 30% 70%;
        gap: 2em;
        padding: 2em;
        text-align: left; /* Reset text alignment for larger screens */

    }

    .about-content .section-title{
        position: relative;
        top: 0;
        font-size: 2em !important;
        text-align: left; /* Reset title alignment */
        margin-bottom: 1em;
    }
    .about-content .about-info p{
        position: relative;
        top: 0;
        text-align: left;
        font-size: 1.2em;
        font-weight: 400; /* Adjusted font weight */
        line-height: 1.5;
        padding: 0em;
        margin-bottom: 1em;
    }
    .about-content .about-info span{
        text-align: left; /* Reset span alignment */
    }
}


 /* count */
.count {
    padding: 2em 0; /* Added some padding around the section */
}

.count .container {
    max-width: 1200px; /* Added a max-width for better centering on larger screens */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add some horizontal padding inside the container */
}

.count .count-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em; /* Increased the gap for better spacing */
    /* position: relative; /* Removed relative positioning unless you have a specific reason for it */
    /* left: 25em; /* Removed the fixed left positioning which likely caused it to be off-center */
    text-align: center; /* Centered the content within each grid item */
}

.count-content .rate,
.count-content .projects {
    padding: 1em; /* Added some padding around the individual count items */
}

.count-content span {
    font-size: 4em;
    display: block; /* Make the span a block element to center the text within its container */
    margin-bottom: 0.5em; /* Add some space below the number */
}

.count-title {
    font-size: 1.2em; /* Adjusted font size for the title */
    color: var(--dark-gray); /* Assuming you have this variable defined */
}

/* Services Section - Option 3: Left Border Highlight with Image Background */
.services {
    padding: 6em 0;
    background-image: url('../images/9347.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: for a parallax effect */
    color: #fff; /* Set text color to white or light */
    position: relative;
    overflow: hidden;
}

/* Add an overlay for better text readability on the image */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Adjust opacity for desired darkness */
    z-index: 1; /* Ensure overlay is above the background image */
}

.services > .container {
    position: relative; /* Bring container content above the overlay */
    z-index: 2;
}

.services .section-title {
    font-size: 2.2em !important;
    color: var(--secondary-color);
    margin-bottom: 3em;
    position: relative;
    padding-bottom: 0.8em;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
}

.services .section-title::before,
.services .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--primary-color);
    width: 70px;
}

.services .section-title::before {
    left: 50%;
    transform: translateX(-100%);
}

.services .section-title::after {
    left: 50%;
    transform: translateX(30%);
}

.services-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.8s ease-in-out;
}

.services-content.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.services-content ul {
    list-style: none;
    padding: 0;
}

.services-content li {
    font-size: 1.1em;
    color: #eee;
    padding: 1.5em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Semi-transparent border */
    position: relative;
    display: block;
    padding-left: 1.5em;
    border-left: 5px solid var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.4); /* Optional: slight background for list items */
    border-radius: 4px; /* Optional: rounded corners for list items */
    margin-bottom: 0.5em; /* Add some spacing between list items */
}

.services-content li:last-child {
    border-bottom: none;
}

.services-content li span {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1em;
    font-size: 1.5em;
    display: inline-block;
    margin-bottom: 0.5em;
    position: absolute;
    left: -0.5em;
}

.services-content li p {
    line-height: 1.6;
    margin-top: 0.5em;
    margin-left: 0;
    padding-left: 2em;
}
 
 /* Why Choose Us Section */
.why-choose-us {
    padding: 6em 0;
    background-color: #fff; /* Or a light background */
    text-align: center;
}

.why-choose-us .section-title {
    font-size: 2.2em !important;
    color: var(--primary-color);
    margin-bottom: 3em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.why-choose-us .section-title i {
    color: var(--secondary-color); /* Highlight the lightbulb icon */
    margin-right: 0.3em;
}

.why-choose-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.why-choose-item {
    padding: 2em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.why-choose-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 0.8em;
}

.why-choose-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-weight: 600;
}

.why-choose-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.why-choose-bottom-text p {
    font-size: 1.1em;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    .why-choose-item {
        text-align: center;
    }
}


/* Contact Section */
.contact {
    padding: 6em 0;
    background-color: #f9f9f9;
    text-align: center;
}

.contact .section-title {
    font-size: 2.2em !important;
    color: var(--primary-color);
    margin-bottom: 3em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.contact .section-title i {
    color: var(--secondary-color);
    margin-right: 0.3em;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3em;
    margin-top: 2em;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 1em;
}

.contact-info p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8em;
    color: var(--dark-gray);
}

.contact-details li i {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-right: 0.8em;
    width: 20px; /* Ensure consistent icon width */
    text-align: center;
}

.contact-details li strong {
    font-weight: 700;
    margin-right: 0.5em;
}

.contact-form {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form textarea.form-control {
    resize: vertical;
}

.contact-form .btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1em 2em;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: 100%; /* Make button full width on smaller screens */
}

.contact-form .btn-primary:hover {
    background-color: darken(var(--secondary-color), 10%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-info {
        text-align: center;
    }
}


 
/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

@keyframes fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

@-webkit-keyframes zoomIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (min-width: 800px) {
    nav {
        position: relative;
    }

    .logo {
        position: relative;
        top: -1em;
        left: -4em;
    }

}
  



 /* Footer Section */
.footer {
    padding: 6em 0;
    background-color: #333; /* Dark background for the footer */
    color: #eee; /* Light text color */
    position: relative;
    z-index: 1;
}

.footer a {
    color: #eee;
    text-decoration: none;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer .ftco-heading-2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 1.5em;
    font-weight: 700;
}

.footer p {
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-size: 0.9em;
}

.footer .ftco-footer-widget .list-unstyled li a {
    color: #ccc;
    padding: 0.5em 0;
    display: block;
}

.footer .ftco-footer-widget .list-unstyled li a:hover {
    color: var(--secondary-color);
}

.footer .ftco-footer-social li {
    list-style: none;
    margin: 0 10px 0 0;
    display: inline-block;
}

.footer .ftco-footer-social li a {
    height: 40px;
    width: 40px;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    position: relative;
    text-align: center;
    line-height: 40px;
    font-size: 1.2em;
}

.footer .ftco-footer-social li a span {
    color: #eee;
}

.footer .ftco-footer-social li a:hover span {
    color: var(--secondary-color);
}

.footer .fa-chevron-right {
    font-size: 0.8em;
}

.footer .fa-map-marker,
.footer .fa-phone,
.footer .fa-envelope,
.footer .fa-clock-o {
    color: var(--primary-color);
    margin-right: 0.8em;
}

.footer .row.mt-5 {
    margin-top: 3em !important;
    padding-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .text-center p {
    font-size: 0.8em;
    color: #999;
}

.footer .text-center p a {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer .grid-auto {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    .footer .ml-md-5 {
        margin-left: 0 !important;
    }
    .footer .float-md-left {
        float: none !important;
        text-align: center;
        margin-bottom: 1em;
    }
}

/* Back to Top Button in Footer (Far Right - Responsive) */
.footer .back-to-top {
    position: fixed; /* Fixed position for better visibility during scroll */
    bottom: 20px; /* Position it 20px from the bottom */
    right: 20px; /* Position it 20px from the right */
    background-color: var(--secondary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.8; /* Slightly visible by default */
    z-index: 1000; /* Ensure it's above all other content */
    transition: opacity 0.3s ease-in-out;
}

.footer .back-to-top:hover {
    opacity: 1;
}

.footer .back-to-top a {
    color: #fff;
    text-decoration: none;
}

.footer .back-to-top a:hover {
    color: #eee;
}

/* Hide by default and show on scroll */
.footer .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Optional: Adjust position for smaller screens if needed */
@media (max-width: 600px) {
    .footer .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }
}