* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #ffffff;
    color: rgb(92, 92, 92);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1500;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 100px;
    margin-right: 10px;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    height: 100%;
    width: 300px;
    background-color: #222;
    transition: right 0.3s ease;
    z-index: 1400;
}

.nav-links {
    list-style: none;
    position: absolute;
    top: 50px;
    width: 100%;
    text-align: center;
}

.nav-links-desk {
    display: flex;
    list-style: none;
    top: 50px;
    text-align: center;
    color: #222;
    padding: 20px;
}

.nav-links-desk ul {
    color: #222;
}

.nav-link {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: white;
    background-color: #222;
    transition: background-color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    background-color: #555;
}

.hamburger, .close-nav-menu {
    background: none;
    border: none;
    color: #222;
    font-size: 30px;
    cursor: pointer;
}

.close-nav-menu {
    position: absolute;
    top: 10px;
    right: 20px;
    display: none; /* Hidden by default */
}

.hero {
    padding-top: 80px;
    height: 700px;
    overflow: hidden;
    position: relative;
    background-image: url('/images/MData\ Logo\ -\ Cropped\ Transparent.png');
    background-position: center;
    background-size: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 2s ease-in-out;
    position: absolute;
}

.services, .solutions {
    text-align: center;
}

.services {
    background-color: #f7f7f7;
}

.solutions {
    align-items: center;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer-logo {
    font-weight: bold;
}

.footer-links a {
    margin: 0 15px;
    color: #bbb;
    text-decoration: none;
    padding: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.services {
    align-items: center;
}

.services {
    text-align: center;
    background-color: #cecece;
}

.services-header {
    padding: 20px;
    background-color: #222;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.box:hover {
    transform: scale(1.05);
}

.image-left {
    flex-direction: row;
}

.image-right {
    flex-direction: row-reverse;
}

.image {
    flex: 1;
    width: 35%;
    height: auto;
    border-radius: 8px;
}

.text {
    flex: 2;
    padding: 0 20px;
}

.behind, .behind-reverse {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 8px;
    height: 100%;
}

h3 {
    color: #222;
    font-size: 24px;
    margin-top: 0;
}

.product-header h2 {
    color: white;
}

.product-header p {
    color: #ffffff;
    line-height: 1.6;
}

.services-header h2 {
    color: white;
}

.services-header p {
    color: #ffffff;
    line-height: 1.6;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.service-header {
    margin-bottom: 10px; /* Add some space below the header */
    height: 50px; /* Fixed height for all headers */
    display: flex; /* Use flexbox to center text */
    align-items: center; /* Vertical alignment */
    justify-content: center; /* Horizontal alignment */
    text-align: center;
    overflow: hidden; /* Prevents text overflow */
}

.service-box {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center-align children */
    margin-bottom: 20px; /* Space between service boxes */
}

.service-box img {
    width: 100%;  /* Full width of the parent container */
    height: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Maximum width */
    margin-top: 10px; /* Space above the image */
    border-radius: 8px;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-around; /* Distribute space around items */
    gap: 20px; /* Space between items */
}

.category-container {
    width: 100%; /* Full width to encapsulate service boxes neatly */
    padding: 15px; /* Padding around the content */
    align-items: center;
}

.solutions {
    background-color: #aaa;
}

.products {
    max-width: 1200px;
    margin: 0 auto;
}

.product-header {
    background-color: #222;
    width: 100%;
    padding: 20px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Maximum width */
}

/* The Close Button */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the service boxes in the container */
    padding: 20px;
    gap: 20px; /* Space between the service boxes */
}

.category-container {
    flex-basis: 100%; /* Takes full width */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Distributes space around items within the container */
}

.service-box {
    display: flex;
    flex-direction: column; /* Stacks the content (image and header) vertically */
    align-items: center; /* Centers the content */
    width: 48%; /* Sets the width to slightly less than half to fit two items per row */
    margin-bottom: 20px; /* Space between rows */
    background-color: #ececec; /* Sets a background color for service box */
    padding: 10px; /* Padding inside the service boxes */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adds shadow for better visibility */
    border-radius: 8px;
}

.service-header {
    color: #222; /* Color of the service header */
    font-size: 1.2em; /* Increases the font size of the header */
    margin-bottom: 10px; /* Space between the header and the image */
}

.service-image {
    width: 100%; /* Makes the image take up 100% of its parent container's width */
    height: auto; /* Keeps the image aspect ratio intact */
}

.category-title {
    flex-basis: 100%;
    padding-bottom: 20px;
}

.hamburger {
    display: none;
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .close-nav-menu {
        display: block;
    }
    .nav-links-desk {
        display: none;
    }
    .service-box {
        width: 98%;
    }
    .footer-links {
        display: none;
    }
    .behind {
        width: 500px;
        height: 500px;
    }
}

.about-us {
    background-color: #f7f7f7;  /* Light gray background */
    color: #222;                /* Dark text for readability */
    padding: 30px 0px;         /* Ample padding around the text */
    text-align: center;         /* Center-align text */
}

.about-us h2, .about-us h3 {
    color: #222;                /* Dark color for headers */
}

.about-us p {
    font-size: 16px;            /* Slightly larger font size for readability */
    line-height: 1.6;           /* More readable line spacing */
    margin-bottom: 20px;        /* Space below paragraphs */
    color: #333;                /* Slightly lighter text color than headers */
}

.about-us a {
    color: #0056b3;             /* Links in a distinct blue for visibility and design coherence */
    text-decoration: none;      /* No underline to keep it clean */
}

.about-us a:hover, .about-us a:focus {
    text-decoration: underline; /* Underline on hover/focus for usability */
}

.container {
    max-width: 1200px;          /* Maximum width of content to maintain layout coherence */
    margin: 0 auto;             /* Centers the container */
}

.row {
    display: flex;              /* Flex display to put columns side by side */
    justify-content: space-around; /* Space columns nicely */
    margin-top: 20px;           /* Top margin for spacing from header */
}

.column {
    flex: 1;                    /* Each column takes equal space */
    padding: 10px;              /* Padding around column content */
    min-width: 250px;           /* Minimum width of columns to ensure content visibility */
}

@media (max-width: 992px) {
    .row {
        flex-direction: column; /* Stack columns vertically on small screens */
    }
}

.services-header h2 {
    color: white;
}

/* The Modal (background) */
.modal2 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content2 {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close-btn2 {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close-btn2:hover,
.close-btn2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#privacyPolicyModal {
    color: #222;
}

.modal-content p h3 h2 h1 {
    align-items: left;
}

.modal-content h3 {
    font-size: 18px;
}

.contact-us {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.contact-info {
    margin-bottom: 40px;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-form form {
    display: grid;
    grid-gap: 20px;
    justify-content: center;
    align-items: center;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.contact-form button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #003d82;
}

.text p {
    padding-top: 30px;
}