/* Resetting default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo-header {
    width: 50px;
    height: auto;
    margin-left: 20px;
}

header h1 {
    text-align: center;
    flex-grow: 1;
}

nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 60px 0;
    position: relative; /* Ensure this does not interfere with the positioning of the slideshow */
}

/* Home section styling */
#home {
    position: relative;
    overflow: hidden; /* Ensure no scrollbars appear */
    height: 100vh; /* Full viewport height */
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 1; /* Ensure text is above the slideshow */
    padding: 0 20px; /* Adjust padding as needed */
}

.text h2 {
    font-size: 2em; /* Adjust as needed */
    font-weight: bold;
}

.text p {
    font-size: 1.2em; /* Adjust as needed */
}

/* Slideshow container styling */
#slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure slideshow is below the text */
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mySlides {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
}

/* General section styling */
section {
    padding: 60px 0;
}

h2, h3 {
    color: #333;
}

.service, .team-member {
    margin: 20px 0;
}

/* Contact form styling */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

form button:hover {
    background: #555;
}

footer {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

footer .logo-footer {
    width: 50px;
    height: auto;
    margin: 0 auto;
}

footer p {
    margin: 5px 0;
}

/* Media Queries for Responsiveness */

/* General styles for small screens */
@media only screen and (max-width: 600px) {
    .slideshow-container img {
        width: 100%; /* Make the images take up the full width of the screen */
        height: auto; /* Maintain the aspect ratio */
    }

    .text h2 {
        font-size: 24px; /* Adjust the font size for smaller screens */
    }

    .text p {
        font-size: 16px; /* Adjust the paragraph text size */
    }

    header {
        padding: 10px; /* Reduce padding for smaller screens */
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        margin-bottom: 10px;
    }
}

/* For very small screens (e.g., smartphones in portrait mode) */
@media only screen and (max-width: 400px) {
    .text h2 {
        font-size: 20px; /* Further reduce font size */
    }

    .text p {
        font-size: 14px;
    }

    header h1 {
        font-size: 24px;
    }
}
