/* General Styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #fff;
}

h1, h2, h3 {
    color: #000;
}

p {
    color: #666;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    background-color: #000;
    padding: 15px 0;
    z-index: 1000;
    top: 0;
}

header .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo a img {
    height: 100px;
}

nav {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    color: #fff;
    transition: color 0.3s;
}

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

/* Navigation Button Styles */
/* ... (styles remain unchanged) ... */

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 130px); /* Adjusted to account for header height */
    background: url('images/hero_background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    padding-top: 130px; /* Adjusted to prevent overlap with header */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text-window {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px;
    border-radius: 10px;
    display: inline-block;
    color: #000;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #000;
}

.cta-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background-color: #333;
    color: #fff;
}

/* Offset for anchor links due to fixed header */
section {
    scroll-margin-top: 120px;
}

/* Services Section */
#services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#services h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service-item {
    width: 30%;
    margin-bottom: 40px;
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-item p {
    font-size: 1rem;
    color: #666;
}

/* Team Section */
#team {
    padding: 80px 0;
}

#team h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.team-member {
    width: 30%;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.team-member img {
    width: 275px;
    height: 275px;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    transition: transform 0.3s, filter 0.3s, opacity 0.3s;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.team-member img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 0.8;
}

.team-member h3 {
    margin-top: 20px;
    font-size: 1.6rem;
    color: #000;
}

.team-member p {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 10px;
}

.team-member a {
    color: #000;
    text-decoration: none;
}

.team-member a:hover {
    text-decoration: underline;
}

/* Social Links Styling */
.social-links {
    margin: 10px 0;
}

.social-links a {
    margin: 0 5px;
    display: inline-block;
    color: #000;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0077b5;
}

.social-links i {
    vertical-align: middle;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 5px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
}

/* Contact Section */
#contact {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#contact h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Revert to how it was originally */
}

.office {
    width: 48%; /* Revert to make sure both offices fit side by side */
    margin-bottom: 40px;
}

.office h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 20px;
}

.office p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.office iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Contact Form */
form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #000;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #333;
}

/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

footer p.disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        padding: 10px 0;
    }

    header {
        padding: 10px 0;
    }

    .logo {
        order: 1; /* Ensure logo appears first */
    }

    .menu-toggle {
        display: flex;
        margin-top: 10px; /* Add some spacing */
        order: 2; /* Ensure menu toggle appears after logo */
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 10px 0;
        color: #fff;
    }

    .nav-button {
        text-align: center;
        margin: 0 auto;
        width: 90%;
    }

    .services-container, .team-container, .contact-container {
        flex-direction: column;
    }

    .service-item, .team-member, .office {
        width: 100%;
    }

    .team-member img {
        width: 200px;
        height: 200px;
    }

    .team-member h3 {
        font-size: 1.4rem;
    }

    .team-member p {
        font-size: 1rem;
    }

    .hero {
        background: url('images/hero_background.jpg') no-repeat center center; /* Removes 'fixed' */
        background-size: cover;
        padding-top: 70px; /* Adjust padding for mobile */
        min-height: 95vh;  /* Full screen height for mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-text-window {
        padding: 20px 10px;
    }

    footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Additional Hover Effects */
.service-item:hover h3 {
    color: #000;
}
