/* Reset some default styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header styles */
.header {
    background-color: #070707;
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

/* Ensure the logo is appropriately sized */
.header img.logo {
    width: 150px;
    height: auto;
}

/* Menu styles */
.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 10px;
}

.menu a {
    color: #a8a8a8; /* Adjusted to a lighter grey for less prominence */
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #ffffff; /* Brighter color on hover for better interaction */
    text-decoration: underline;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 24px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #070707;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000; /* Ensures the menu is on top */
    }

    .menu ul {
        flex-direction: column;
    }

    .menu li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .menu.show {
        display: flex;
    }
}

/* Slider style */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden; /* Prevents content from spilling out */
}

.slider::before {
    content: "";
    display: block;
    padding-top: 50%; /* Adjust based on the aspect ratio of your images (height/width * 100%) */
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: auto;
    display: block;
}

#prev,
#next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

#prev:hover,
#next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* Content styles */
.introduction {
    padding: 0 20px 40px 20px;
    max-width: 1200px; /* Set the maximum width */
    margin: auto; /* Center the content */
}

.introduction h1 {
    text-align: center; /* Center the h1 horizontally */
}

.services-section {
    width: 100%;
    background-color: white; /* Set the background color */
}

.services-intro {
    padding: 20px;
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.services-row {
    display: flex;
    justify-content: space-around;
    padding: 0 20px 40px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    box-sizing: border-box;
}

.service-box {
    flex-basis: 30%; /* Adjusts the base size of each box */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Adds subtle shadow for depth */
    padding: 20px;
    margin: 10px; /* Ensures some space between boxes */
    background-color: #f4f4f4; /* Set the background color to #f4f4f4 */
    flex-grow: 1; /* Ensure the boxes grow to fit the available space */
    max-width: calc(33.333% - 20px); /* Ensure three boxes per row with margin */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.service-box h3, .service-box p {
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .services-row {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        flex-basis: 90%; /* Makes each box wider on smaller screens */
        max-width: 90%; /* Ensures boxes are the same width */
    }
}

.contact-section {
    text-align: center;
    padding: 20px;
}

.contact-section p {
    margin: 20px 0;
    font-size: 16px;
    color: #666;
}

.contact-details {
    margin-bottom: 20px;
}

/* Google form container styles */
.google-form-container {
    position: relative;
    padding-bottom: 45%; /* Default aspect ratio for desktop */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f4f4f4; /* Optional: Add a background color */
    margin: 20px 0;
}

.google-form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Adjust height for mobile */
@media screen and (max-width: 768px) {
    .google-form-container {
        padding-bottom: 220%; /* Increased aspect ratio for more height on mobile */
    }
}

/* Footer styles */
.footer {
    background-color: #070707; /* Same color as the header */
    color: #a8a8a8;
    display: flex;
    justify-content: center;
    padding: 20px;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.footer a {
    color: #a8a8a8; /* Adjusted to a lighter grey for less prominence */
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff; /* Brighter color on hover for better interaction */
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}