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

body {
    font-family: 'Times New Roman', serif;
    text-align: center;
}

/* Sticky header and navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* White background with 80% opacity */
    /* Slight transparency */
    padding: 15px, 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 26px;
    line-height: 1.6;
}

nav {
    margin: 10px 0;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

h1 {
    font-family: 'Times New Roman', serif;
    padding: 10px;
    text-align: center;
}

 button{
    font-family: 'Times New Roman', serif;
    font-size: 26px;
    font-weight: bold;
 }

@media screen and (max-width: 790px) {

    header {
        display: flex;
        justify-content: center; /* Centers horizontally */
        background-color: rgba(255, 255, 255, 0.1); /* White background with 80% opacity */
    }

    .menu-toggle {
        display: flex;
        border: none;
        padding: 15px 0; /* Correct padding syntax */
        font-size: 26px;
        cursor: pointer;
        background-color: rgba(255, 255, 255, 0);

        text-align: center;
    }

    .nav-menu {
        display: none;
        /* Hide menu by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        margin: 10px 0;
        line-height: 1.6;
        background-color: #fff6f6;
        z-index: 1000;
    }

    .nav-menu a {
        padding: 10px;
        display: block;
        text-decoration: none;
        color: black;
        font-weight: bold;
    }
}

@media screen and (min-width: 791px) {
    .menu-toggle {
        display: none;
        /* Hide the button on larger screens */
    }
}

/* Show menu when button is clicked */
.nav-menu.active {
    display: flex;
}

.hero {
    top: 0;
    left: 0;
    width: 100vw;
    height: 80vh;
    background: url('images/home-page.png') no-repeat center top/cover;
    z-index: -1;
    background-position: center -100px;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
    font-size: 20px;
}

.container {
    padding: 20px;
}

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service-box {
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: black;
    border: 2px solid black;
    padding: 20px;
    width: 150px;
}

footer {
    margin-top: 30px;
    padding: 10px;
    background-color: #f4f4f4;
}

.service-box-with-image {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border: 2px solid black;
    margin: 10px;
}

.service-box-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.7;
    /* Makes image slightly transparent */
}

.service-box-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: black;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.service-box-content h3 {
    margin: 0;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
}