body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    color: black;
    padding: 0px 0px;
    border-bottom: 1px solid #ddd;
}

.logo {
    max-width: 120px;
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

nav a {
    color: black;
    text-decoration: none;
    margin: 0 25px;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 5px;
}

nav a.active {
    background-color: #000000;
    color: white;
}

nav a:hover {
    background-color: #000000;
    color: white;
}

/* Hero Image Styling */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vw / 1.91); /* Keeps aspect ratio of the image */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
    object-position: center; /* Keeps the image centered */
}


.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 3em;
    margin: 0;
}

.hero-text p {
    font-size: 1.5em;
    margin: 10px 0 0;
}

/* Description Image */
.description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.description-text {
    width: 50%;
    font-size: 18px;
    line-height: 1.6;
}

.description-image {
    width: 50%;
    display: flex;
    justify-content: center;
}

.description-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: Adds rounded corners */
}

/* Featured Services Section */
.featured-services {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f8f8;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
}

.service img {
    width: 50%;
    height: auto;
    border-radius: 8px;
}

.service h2 {
    margin: 15px 0 10px;
    font-size: 1.5em;
}

.service p {
    font-size: 1em;
    color: #555;
}


.location {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
}

.location-text h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

#locationForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

select {
    padding: 10px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: gray;
}


/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 10px 0;
        padding: 12px 20px;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }
}

/* Footer */
.footer {
    background-color: white;
    color: black;
    text-align: center;
    flex-direction: column;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
}

.footer a {
    color: #1a1f2b;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

#success-message {
    transition: all 0.3s ease;
  }

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-content input {
    padding: 10px;
    margin-top: 10px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}