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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    transition: margin-left 0.3s ease; /* Smooth transition for sidebar toggle */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar (Navigation) */
header {
    width: 250px;
    background-color: #2c3e50;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 20px;
    transition: transform 0.3s ease;
    transform: translateX(0);
    /* display: flex; */
    /* justify-content: space-between; */
    align-items: center;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    /* display: block; */
}

nav ul {
    list-style: none;
    padding-left: 0;
}

nav ul li {
    margin: 20px 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #1abc9c;
}

/* Sidebar Toggle (Hamburger Icon) */
.menu-toggle {
    display: none;
    font-size: 2em;
    color: #8B4513;
    position: absolute;
    top: 10px; /* Adjusted top for tighter spacing */
    right: -50px; /* Adjusted right for tighter positioning */
    cursor: pointer;
    z-index: 1001; /* Ensure it stays on top of other elements */
}

@media (max-width: 768px) {
    header {
        transform: translateX(-250px); /* Hide sidebar on mobile */
    }

    header.open {
        transform: translateX(0); /* Show sidebar when open */
    }

    .menu-toggle {
        display: block; /* Show the hamburger icon on mobile */
    }

    /* Ensure the hamburger icon stays visible even when the header is hidden */
    header .menu-toggle {
        position: fixed; /* Position it relative to the viewport */
        top: 20px;
        left: 20px;
        z-index: 1001; /* Ensure it's on top */
    }

    main {
        margin-left: 0; /* Remove left margin on mobile */
    }

    main.open {
        margin-left: 250px; /* Adjust margin when sidebar is open */
        position: relative;
        z-index: 1; /* Content behind the sidebar */
    }
}


main {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        transform: translateX(-250px); /* Hide sidebar on mobile */
    }

    header.open {
        transform: translateX(0); /* Show sidebar when open */
    }

    .menu-toggle {
        display: block; /* Show the hamburger icon on mobile */
        position: fixed;
        top: 20px;
        left: 20px;
    }

    main {
        margin-left: 0; /* Remove left margin on mobile */
    }

    main.open {
        margin-left: 250px; /* Adjust margin when sidebar is open */
        position: relative;
        z-index: 1; /* Content behind the sidebar */
        width: 100%;
        min-width:100vw;
    }
}



/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero p {
    font-size: 1.0em;
    margin-bottom: 20px;
}

.hero h2 {
    margin: 0;
    font-size: 2.5rem;
}

.highlighted-text {
    color: #47c5ff;
}

.highlighted-wecome-text{
    color: #FF6347;
}

/* Other Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cta {
    background-color: #1abc9c;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: #16a085;
}

/******************************************************************************/
/* Section Styling */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Core Services Section */
.core-services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between service items */
}
.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* flex-basis: 48%; */
    overflow-y: auto;
    overflow-x: auto;
    width: calc(50% - 20px);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
}

.service h3 {
    color: #1abc9c;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .service {
        width: 100%; /* Stack items vertically on smaller screens */
    }
}

/* Remove underline from hyperlinks */
a {
    text-decoration: none;
}

/* Optional: Add styles for hover state */
a:hover {
    text-decoration: underline; /* Optional: Add underline on hover for better user experience */
}

/* Team Section */
.team {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    margin: 10px;
}

.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit:contain;
}

.team-member h3 {
    margin-top: 10px;
    color: #2c3e50;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    margin-top: 2px;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative; /* Changed from relative to absolute */
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center; /* Horizontally centers the content */
    align-items: center; /* Vertically centers the content */
    margin-top: auto;
}

footer p {
    margin: 0;
}


/* footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    clear: both;
} */


/* Contact Form */
form {
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #1abc9c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

form button:hover {
    background-color: #16a085;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .core-services {
        flex-direction: column;
    }

    .service {
        flex-basis: 100%;
    }

    .team {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .cta {
        font-size: 1em;
        padding: 8px 16px;
    }

    nav ul li {
        margin: 5px 0;
    }
}