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

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 15px 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E0E0E0; /* Instead of shadow */
}

header img.logo {
    height: 100px;
    margin-left: 120px; /* Adjust for desktop margin */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    margin-right: 120px; /* Adjust for desktop margin */
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #011124;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1F3AA2;
}

a, a:hover, a:active, a:visited {
    color:#1F3AA2;
}

.content {
    padding: 100px 20px;
    margin-left: 120px;
    margin-right: 120px;
    text-align: center; /* Center text */
}

.centered-para-container {
    max-width:800px;
    margin: auto;
}

.centered-para-container p {
    font-size: 1.8em;
}

/* Hero Section */
#hero {
    position: relative;
    background-image: url('assets/hero-background-vec-png8.webp'); /* Replace with your background image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #FFFFFF;
    padding: 150px 20px;
    text-align: center; /* Center text */
    overflow: hidden; /* Ensure overlay doesn’t overflow */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay */
    z-index: 1; /* Place overlay above the background image */
}

#hero .content {
    position: relative; /* Ensure content is above the overlay */
    text-align: left; /* Left-align text inside hero section */
    z-index: 2; /* Ensure content is above the overlay */
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.5em;
    margin: 1rem 0;
}

.primary-color {
    color: #21DFB9;
}

.secondary-color {
    color: #E15FE6;
}

.tertiary-color {
    color: #1F3AA2;
}

.light-color {
    color: #FFFFFF;
}

.dark-color {
    color: #011124;
}

.primary-bg-color {
    background-color: #21DFB9;
}

.secondary-bg-color {
    background-color: #E15FE6;
}

.tertiary-bg-color {
    background-color: #1F3AA2;
}

.light-bg-color {
    background-color: #FFFFFF;
}

.dark-bg-color {
    background-color: #011124;
}

.opacity-80 {
    opacity: .8;
}

#hero .cta-btn {
    background-color: #1F3AA2;
    color: #FFFFFF;
    padding: 25px 60px;
    border: none;
    border-radius: 10px;
    font-size: 1.8em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 1em 0;
}

#hero .cta-btn:hover {
    background-color: #2647C6;
}

#hero p.tagline {
    font-size: 4em;
}

section h2 {
    font-size: 3em;
}

section h3 {
    font-size: 2em;
}

section p, li {
    font-size: 1.4em;
}

/* Sections with white background */
#what-we-do, #why-us, #expertise, #contact {
    padding: 100px 20px;
    background-color: #FFFFFF; /* White background for all sections */
}

#why-us, #contact {
    background-image: url('assets/backgrounds/pexels-pixabay-257923-lightened-1920-q50-r94b78.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#contact {
    background-image: url('assets/backgrounds/pexels-fauxels-3184451-lightened-1920-q50-r94b78.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#expertise {
    background-color: #FFFFFF; /* Ensure white background */
}

#why-us h2, #expertise h2, #contact h2 {
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns per row */
    gap: 20px;
    justify-items: center;
    align-items: center;
    margin: 30px 0;
}

.grid img {
    width: 50px;
    height: 50px;
}

.grid span {
    margin-top: 10px;
    font-size: 1em;
}

.flex-grid-container {
    width: 75%;
    margin: auto;
    margin-top: 4em;
}

.what-we-do-flex-grid-container {
    width: 80%;
    max-width: 1000px;
    margin-top: 3em;
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    margin: auto;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    text-align: center;
}

.image-container {
    width: 150px;
    height: 150px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.grid-item span {
    margin-top: 8px;
    font-size: 18px;
}

.padding-2em {
    padding: 2em;
}

.padding-3em {
    padding: 3em;
}

.center-vertically {
    align-items: center;
}

.what-we-do-cell {
    border-radius: 1em;
    background-image: url('assets/backgrounds/what-we-do/pexels-anna-nekrashevich-6802049-800-lightened-q50.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wwd-mad-bg {
    background-image: url('assets/backgrounds/what-we-do/pexels-anna-nekrashevich-6802049-800-lightened-q50.jpg');
}

.wwd-pwa-bg {
    background-image: url('assets/backgrounds/what-we-do/pexels-element5-1051077-800-lightened-q50.jpg');
}

.wwd-uiux-bg {
    background-image: url('assets/backgrounds/what-we-do/pexels-picjumbo-com-55570-196645-800-lightened-q50.jpg');
}

.wwd-spc-bg {
    background-image: url('assets/backgrounds/what-we-do/pexels-artempodrez-6779716-800-lightened-q50.jpg');
}

.wwd-mrwd-bg {
    background-image: url('assets/backgrounds/what-we-do/pexels-pixabay-39284-800-lightened-q50.jpg');
}

.contact-secton-grid {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line if needed */
    /*gap: 3em;  Adjust gap between items if needed */
}

.contact-secton-cell {
    box-sizing: border-box; /* Ensures padding/margins do not affect width */
}

.contact-secton-cell-email-phone,
.contact-secton-cell-address {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 0em;
    flex: 1 1 25%; /* Flex items take up 25% of the width */
    max-width: 25%; /* Ensures max width of 25% */
}

.contact-secton-cell-form {
    flex: 1 1 50%; /* Flex item takes up 50% of the width */
    max-width: 50%; /* Ensures max width of 50% */
}

/* Responsive behavior for screen sizes 1024px or less */
@media (max-width: 1024px) {
    .contact-secton-grid {
        flex-direction: column; /* Stack items vertically */
    }

    .contact-secton-cell {
        flex: 1 1 100%; /* Each item takes up 100% width */
        max-width: 100%; /* Ensure max width of 100% */
    }

    .contact-secton-cell-form {
        order: 1; /* Form is on top */
    }

    .contact-secton-cell-email-phone {
        order: 2; /* Email/Phone is in the middle */
    }

    .contact-secton-cell-address {
        order: 3; /* Address is on the bottom */
    }
}


#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact form input, #contact form textarea {
    width: 80%;
    max-width: 500px;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #011124;
    border-radius: 10px;
    font-size: 1rem;
}

#contact form button {
    /*background-color: #21DFB9;*/
    
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #FFFFFF;
}

.contactForm-success-message {
    display:none;
    margin: 0.5em 0;
    text-align: center;
    color: #000;
    font-size: 1.2em;
}

.contactForm-success-message-show {
    display:block;
}

/*#contact form button:hover {
    background-color: #17B797;
}*/

footer {
    background-color: #011124;
    color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}



/* Media Queries */
@media (max-width: 1024px) {
    header img.logo, nav ul {
        margin-left: 40px;
        margin-right: 40px;
    }
    .content {
        margin-left: 40px;
        margin-right: 40px;
    }
    .flex-grid-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header img.logo, nav ul {
        margin-left: 30px;
        margin-right: 30px;
    }
    #hero {
        padding: 70px 0;
    }
    #hero h1 {
        font-size: 2em;
    }
    .content {
        margin-left: 30px;
        margin-right: 30px;
    }
    .flex-grid-container {
        width: 100%;
    }
    .what-we-do-cell {
        width: 80%;
    }
}


.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin: 0 30px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333; /* Adjust color as needed */
    margin: 4px 0;
    text-align: right;
}

/* Responsive styles for screens 1024px or less */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; /* Hide the nav menu */
    }

    .hamburger-menu {
        display: flex; /* Show the hamburger menu */
    }

    /* Show the nav menu when the hamburger menu is clicked */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100%; /* Positioning the dropdown menu */
        left: -10%;
        width: 100%;
        background-color: #fff; /* Adjust background color as needed */
        padding: 30px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional box shadow */
        text-align: right;
    }
}

/* what-we-do grid item animation */
/* Base grid-item styling remains as is */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    text-align: center;
    position: relative; /* Required for overlay effect */
    overflow: hidden; /* Ensures the overlay stays within bounds */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth animations */
}

/* Add the hover effect for screen sizes > 1140px */
@media (min-width: 1140px) {
    .grid-item:hover {
        transform: scale(1.1); /* Slightly expand on hover */
    }

    /*.grid-item:hover .image-container::after {
        background-color: rgba(255, 165, 90, 0.6);
    }*/
}

/* Add an overlay effect inside the image-container */
.image-container {
    width: 150px;
    height: 150px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* For the overlay */
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Default is no overlay */
    transition: background-color 0.3s ease; /* Smooth overlay transition */
    z-index: 1; /* Ensure the overlay is above the image */
}

/* Ensure text content stays on top */
.grid-item h3 {
    position: relative;
    z-index: 2;
}
