/* Resetting margins and paddings, and setting box-sizing globally */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header styling */
header {
    background: transparent; /* Initial transparent background */
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background when scrolled */
    color: #fff; /* Text color set to white for contrast */
}

header .logo img {
    width: 150px; /* Adjusted for better appearance on large screens */
    height: auto;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-links a.scrolled {
    background: transparent;
}
.nav-links a.quick-contact {
    background: #20c20e;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    text-shadow: none;
    background-color: #15690c; /* Darker background on hover */
}

/* Hero section styling */
.hero {
    background: url(../../assets/img/im3.jpg) no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f2f3f5;
    text-align: center;
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem; /* Larger font size for prominent display */
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 2rem; /* Larger font size for prominent display */
    margin-bottom: 2rem;
}

.hero-content .btn {
    background: #20c20e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

/* Section styling */
section {
    padding: 4rem 2rem;
    text-align: center;
}

/* Contact section styling */
.contact-container {
    display: flex;
    align-items: center; /* Align items horizontally */
    justify-content: center; /* Center the container */
    gap: 20px;
    max-width: 1200px; /* Limit the width for large screens */
    margin: 0 auto;
}

.contact-image {
    flex: 1; /* Allow image to take up available space */
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

.contact-form {
    flex: 1; /* Allow form to take up available space */
    max-width: 600px; /* Limit form width for readability */
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.contact-form button {
    padding: 10px;
    background: #20C20E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.contact-form button:hover {
    background-color: #15690c; /* Darker background on hover */
}

/* Footer styling */
footer {
    background-image: url(../../assets/img/im3.jpg);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Services section styling */
.services-section {
    padding: 4rem 2rem; /* Increased padding for larger screens */
    background-color: #f4f4f4;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem; /* Larger font size for headings */
    margin-bottom: 2rem;
    color: #333;
}

.services-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
}

.service-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    flex: 1 1 30%;
    max-width: 30%;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-item img {
    max-width: 120px; /* Adjusted for better appearance */
    height: auto;
}

.service-item h3 {
    font-size: 1.5rem; /* Larger font size */
    margin: 1rem 0;
    color: #333;
}

.service-item p {
    font-size: 1rem; /* Adjusted font size */
    margin-bottom: 1rem;
}

.service-item .learn-more {
    color: #20C20E;
    text-decoration: none;
    font-weight: bold;
}

.service-item .learn-more:hover {
    text-decoration: underline;
    color: #15690c; /* Darker color on hover */
}

/* Responsive Styles for mobile screens */
@media (max-width: 768px) {
    /* Navigation links for mobile view */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: #fff;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        padding: 10px;
    }

    /* Hero section for mobile view */
    .hero-content h1 {
        font-size: 2.5rem; /* Adjusted font size */
    }

    .hero-content p {
        font-size: 1.25rem; /* Adjusted font size */
    }

    .hero-content .btn {
        font-size: 1rem; /* Adjusted font size */
        padding: 0.5rem 1rem; /* Adjusted padding */
    }

    /* Contact section for mobile view */
    .contact-container {
        flex-direction: column;
        align-items: center; /* Center items vertically */
    }

    .contact-image {
        max-width: 100%; /* Allow image to take full width */
    }

    .contact-form {
        max-width: 100%; /* Allow form to take full width */
    }
    /* Services section for mobile view */
    .services-container {
        flex-direction: column; /* Stack service items vertically */
    }

    .service-item {
        flex: 1 1 100%;
        max-width: 100%; /* Allow service items to take full width */
        margin: 10px 0; /* Adjust margin for vertical stacking */
    }
}

/* Responsive Styles for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-container {
        flex-direction: row; /* Align service items in a row */
        flex-wrap: wrap; /* Allow wrapping */
    }

    .service-item {
        flex: 1 1 45%; /* Adjust width for tablets */
        max-width: 45%;
    }
}
/* General Button Styling */
.btn {
    display: inline-block; /* Ensures the button respects text alignment */
    padding: 10px 20px; /* Adds padding inside the button */
    margin-top: 10px; /* Adds space above the button */
    background-color: #20C20E; /* Button background color */
    color: #fff; /* Button text color */
    text-decoration: none; /* Removes underline from link */
    border-radius: 5px; /* Rounds the button corners */
    font-weight: bold; /* Makes the button text bold */
    font-size: 1rem; /* Font size */
}

/* Optional: Add hover effect for the button */
.btn:hover {
    background-color: #15690c; /* Darker background on hover */
}

/* Ensure the button fits within mobile screens */
@media (max-width: 768px) {
    .btn {
        font-size: 0.9rem; /* Adjust font size for mobile */
        padding: 8px 16px; /* Adjust padding for mobile */
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: #fff;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        padding: 10px;
        color: #fff;
        background: #333; /* Background color for mobile menu items */
        border-bottom: 1px solid #444; /* Separator line for mobile items */
    }

    .nav-links a.quick-contact {
        background: #20c20e;
        color: #fff;
        border-bottom: none; /* Remove bottom border for the last item */
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #fff;
        margin: 5px auto;
        transition: 0.3s;
    }
}
/* Hide navigation bar when scrolling down on mobile devices */
@media (max-width: 768px) {
    nav.hide {
        top: -100px; /* Adjust based on the height of the navigation bar */
    }
}