html { scroll-behavior: smooth; }

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

body.menu-open { overflow: hidden; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 300;
}

.hero {
    background-image: url('../images/background.jpeg');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content { position: relative; z-index: 2; }

.services-section {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 50px;
    background-image: url('../images/service-background.jpeg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.services-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 0;
}

.services-section > * { position: relative; z-index: 1; }

.service {
    text-align: center;
    max-width: 350px;
    margin: 20px;
}

.service img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.service h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
}

.service h3 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 15px;
}

.service p {
    font-size: 1em;
    color: #fff;
    line-height: 1.5;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.contact-info { max-width: 400px; text-align: center; margin-bottom: 20px; }

.contact-info h1 { font-size: 36px; margin-bottom: 20px; }

.contact-info p { font-size: 18px; line-height: 1.5; }

.contact-form { max-width: 500px; width: 100%; }

.form-group { margin-bottom: 20px; }

.form-group label { display: block; font-size: 16px; margin-bottom: 5px; }

.form-group span { color: #888; }

.name-fields { display: flex; flex-direction: column; gap: 10px; }

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
}

textarea { resize: none; }

.send-button {
    background-color: #1a1a3d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.send-button:hover { background-color: #333366; }

/* Hamburger and mobile nav */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* above overlay */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s linear;
    position: relative;
}

.nav-menu { display: flex; }

/* Overlay to detect outside clicks */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100; /* below menu, above page */
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; }

    nav ul { flex-direction: column; gap: 10px; }

    .hamburger {
        display: flex;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 250px;
        background-color: #fff;
        position: fixed;
        top: 0;
        left: -250px;
        height: 100%;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 200; /* above overlay */
        padding-top: 60px;
    }

    .nav-menu.active { left: 0; }

    nav ul { padding: 20px; }
}

/* Typography & footer */
h1 { font-size: 3em; margin: 0; font-weight: 300; }
p { font-size: 1.2em; margin: 10px 0; font-weight: 300; }

.button {
    background-color: #001f3f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    margin-top: 20px;
    font-weight: 300;
}
.button:hover { background-color: #005f9f; }

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .contact-container { flex-direction: row; justify-content: space-between; }
    .name-fields { flex-direction: row; }
}

@media (max-width: 768px) {
    .hero { height: 60vh; padding: 20px; }
    .hero h1 { font-size: 2em; }
    .hero p { font-size: 1em; }
    .services-section { flex-direction: column; align-items: center; }
    .service { max-width: 90%; margin: 10px 0; }
    .service img { width: 80%; }
    .contact-container { flex-direction: column; align-items: center; }
    .contact-info, .contact-form { max-width: 90%; }
    body { font-size: 14px; }
    h1 { font-size: 2.5em; }
    p { font-size: 1em; }
    .button { padding: 8px 16px; font-size: 0.9em; }
}
