body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    background-color: #333;
    width: 100dvw;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

#logo-image {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

nav {
    margin: 15px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

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

nav ul li a:hover {
    color: #ccc;
}

h1, h2, h4 {
    text-align: center;
}

article { 
    padding: 20px;
}

#hero-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
}

.formal-button {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formal-button:hover {
    background-color: #0056b3;
}

.container {
    position: relative;
    height: 400px;
    background-image: url("../images/pexels-fauxels-3184360.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}


.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    max-height: 70%;
}
.container .text-overlay p{
    font-size: clamp(0.8rem, 0.8rem , 1rem);
}

#our-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#our-services ol {
    list-style-type: none;
}

#our-services ol li {
    text-decoration: none;
    padding: 5px;
}

#our-services ul {
    list-style-type: none;
}

#our-services ul li {
    padding: 5px;
}

#testimonials {
    font-size: 30px;
    font-weight: bold;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
}

.contact-container {
    border: 2px solid #333;
    margin: 1rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background-color: #1f1e20; */
}
.contact-container p{
    text-wrap: wrap;
    text-align: center;
}

.contact-container h3 {
    text-align: left;
    font-size: 25px;
}

.contact-container form label{
    font-weight: bold;
}

.contact-container form{
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.contact-container label {
    text-align: left;
}

.contact-container input,
.contact-container textarea {
    /* width: 100%; */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-container textarea {
    /* height: 100px; */
    resize: vertical;
}

footer {
    margin: 15px 5px;
    padding: 1rem;
    color: #fff;
    background-color: #333;
    padding-top: 10px;
    border-radius: 5px;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack items for mobile */
    align-items: center;
}

footer ul li {
    margin: 10px 0;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

#social-media {
    display: flex;
    flex-direction: row; /* Stack items for mobile */
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 600px) {
    #our-services {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-container { 
        border: 2px solid #333;
        margin: 1rem;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* background-color: #1f1e20; */
    }
    .contact-container form{
        display: flex;
        flex-direction: column;
    }

    footer{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    footer p{
        text-align: center;
    }

    #social-media {
        flex-direction: row;
        justify-content: space-evenly;
    }
}