body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    background: #161616; /* Assuming you want a black header but not a black block around the logo */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns items vertically to the center */
    padding: 10px 20px;
    position: fixed; /* Make the header fixed */
    top: 0; /* Ensure it sticks to the top */
    width: 100%; /* Make sure the header spans the full width */
    z-index: 1000; /* Place it above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for better visibility */
}

#logo {
    width: auto; /* Adjusts width automatically based on the height */
    height: 50px; /* You can adjust the height based on your preference */
    display: block;
    background: transparent; /* Ensures no background color is affecting it */
}

header nav ul {
    list-style: none;
    margin-right: 40px;
    display: flow;
}

header nav ul li {
    font-size: 16px;
    display: inline;
    padding: 15px 10px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #FFD700; /* Gold color for hover */
}

.main-banner {
    position: relative; /* Necessary for positioning the overlay */
    background: url('../resources/banner.jpg') no-repeat center;
    background-size: cover;
    height: 60vh; /* Adjust the height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.main-banner::before {
    content: ""; /* Required to display the pseudo-element */
    position: absolute; /* Overlay covers the entire banner */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Grey overlay with 50% opacity */
    z-index: 1; /* Ensures the overlay is above the background but below the content */
}

.main-banner img {
    max-width: 400px; /* Set a maximum width for the logo */
    height: auto; /* Maintain the aspect ratio */
    margin-bottom: 20px; /* Space below the logo */
    z-index: 2;
}

.main-banner p {
    font-size: 1.5rem; /* Adjust font size for the paragraph */
    color: #ffffff;
    margin: 0;
    z-index: 2;
}

#services {
    padding-top: 20px;
    padding-bottom: 20px; /* Adds 50px of padding within the services section */
}

#services h2 {
    font-size: 2.0vw;
    color: #000000;
    text-align: left;
    margin-bottom: 10px;
    margin-left: 30px;
}

.services-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 330px; /* Adjust based on your card size */
}

.services-container {
    margin-bottom: 50px; /* Space between the services and the footer */
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    will-change: transform;
}

.services-item {
    flex: 0 0 250px;
    height: auto;
    display: block;
    background-color: #fff;
    margin: 10px;
    text-align: left;
    text-decoration: none;
    color: #000;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
}
.services-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.services-item h3 {
    padding: 10px 15px;
    margin: 0;
}
.services-item p {
    padding: 0 15px 10px;
    font-size: 0.9em;
    color: #666;
}
.services-item:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

footer {
    background-color: #282828;
    color: #f0f0f0;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensures responsiveness */
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensures the content can wrap */
}

.footer-section {
    flex: 1 1 100%; /* Makes sure each section can take the full width on smaller screens */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.social-media, .qr-code {
    flex: 0 0 auto; /* Prevents these sections from growing or shrinking */
    justify-content: center; /* Centers the images */
    position: absolute; /* Absolute positioning to keep them in place */
    width: 0px; /* Defines a fixed width for the image containers */
}

.social-media {
    width: 25px;
    left: 25px; /* Positions the social media section at the left edge */
}

.qr-code {
    width: 25px;
    right: 25px; /* Positions the QR code section at the right edge */
}

.social-media img, .qr-code img {
    width: 50px;
}

.contact-info {
    flex: 1 1 auto; /* Allows the text section to adjust freely within available space */
    padding: 0 80px; /* Adds padding to prevent text from overlapping images */
    position: relative; /* Ensures this section respects positioning relative to its normal flow */
    text-align: center;
    overflow-wrap: break-word;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.8em;
    margin: 10px;
}

.contact-info h4 {
    font-style: inherit;
    font-size: 0.9em;
}

.contact-info a:hover {
    text-decoration: underline; /* Gold color for hover */
}

@media (max-width: 768px) {
    .footer-content {
        position: relative; /* Allows absolute positioned elements to align relative to this container */
    }
    .footer-section {
        flex: 1 1 100%; /* Stacks the sections vertically */
        justify-content: center; /* Ensures content is centered */
    }
    .contact-info {
        padding: 10px 80px; /* Adjusts padding to account for smaller screens */
        font-size: 0.9em;
    }
}