/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #002157; /* Blue background for the middle section */
    color: #FFFFFF; /* White text for middle section */
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    padding-bottom: 100px; /* Gap for footer */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: #FFFFFF; /* White header background */
    padding: 10px 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px; /* Adjust the height as needed */
    width: auto; /* Keeps aspect ratio */
    display: block;
}

.nav {
    position: relative;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #002157; /* Blue hamburger lines to contrast with white background */
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #002157; /* Blue nav links to contrast with white header */
    text-decoration: none;
    font-weight: 500;
}

.nav .cta {
    background-color: #DC2626; /* Red CTA button */
    color: #FFFFFF; /* White text */
    padding: 8px 16px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
    background-color: #002157; /* Blue background (matches body) */
    position: relative;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFFFF; /* White heading */
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #D1D5DB; /* Light gray for contrast */
}

.cta {
    display: inline-block;
    background-color: #DC2626; /* Red accent */
    color: #FFFFFF; /* White text */
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #FFFFFF; /* White background */
    position: relative;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #002157; /* Blue heading for contrast */
}

.service-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.service-item {
    background-color: #F3F4F6; /* Light gray for contrast on white */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.service-title {
    color: #002157; /* Blue service titles */
    cursor: pointer; /* Indicate it's clickable on desktop */
    margin-bottom: 10px;
}

.service-content {
    display: none; /* Hidden by default on desktop */
}

.service-item img {
    width: 100%;
    max-width: 400px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-item p {
    color: #4B5563; /* Dark gray for readability on white */
}

/* Modal Styles */
.service-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black overlay */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #F3F4F6; /* Match the service item background */
    padding: 20px;
    border-radius: 10px;
    max-width: 600px; /* Slightly larger than the image */
    width: 90%; /* Responsive width */
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #002157;
    cursor: pointer;
}

.modal-body img {
    width: 25vw; /* 25% of the viewport width */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the image isn't cropped */
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-body p {
    color: #4B5563; /* Match the service item text color */
    max-width: 600px; /* Keep text width constrained */
    margin: 0 auto; /* Center the text */
}

/* Info Section */
.info {
    text-align: center;
    margin: 40px 0;
    color: #4B5563; /* Dark gray text */
}

.info strong {
    color: #002157; /* Blue for emphasis */
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #002157; /* Blue background (matches body) */
    position: relative;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #FFFFFF; /* White heading */
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-buttons .cta {
    background-color: #DC2626; /* Red accent */
    color: #FFFFFF; /* White text */
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #FFFFFF; /* White footer background */
    padding: 20px 0;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.footer a {
    color: #002157; /* Blue footer links to contrast with white background */
    text-decoration: none;
}

.footer-cta {
    color: #DC2626; /* Red accent */
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #002157; /* Updated to blue background */
    position: relative;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #FFFFFF; /* White heading to contrast with blue background */
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #D1D5DB; /* Light gray text for readability on blue background */
}

.map-placeholder {
    height: 300px;
    margin-bottom: 40px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

/* Desktop Styles (above 768px) */
@media (min-width: 769px) {
    .service-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid with min 250px width */
        gap: 15px; /* Reduced gap for a tighter layout */
        align-items: start;
        justify-items: center; /* Center items horizontally in the grid */
    }

    .service-item {
        max-width: 250px; /* Uniform width for all closed items */
        min-height: 100px; /* Uniform height for all closed items */
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: transform 0.2s ease; /* Smooth hover effect */
    }

    .service-item:hover {
        transform: scale(1.05); /* Slight scale on hover for visual feedback */
    }

    .service-title {
        margin-bottom: 0; /* Remove extra margin */
    }

    .service-content {
        display: none; /* Ensure content is hidden by default on desktop */
    }
}

/* Responsive Design (Mobile - 768px and below) */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #FFFFFF; /* White background for mobile menu to match header */
        width: 200px;
        padding: 20px;
        text-align: center;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-grid {
        display: flex; /* Keep the original flex layout for mobile */
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .service-item {
        max-width: 100%; /* Keep the original max-width for mobile */
    }

    .service-item img {
        max-width: 300px;
        height: 169px;
    }

    .service-title {
        cursor: default; /* No pointer on mobile since no toggle */
    }

    .service-content {
        display: block; /* Always show content on mobile */
    }

    .footer .container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
}