html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #1e1f20;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.headerimg {
    margin-left: auto!important;
    margin-right: auto!important;
    width: 100%;
    max-width: 2550px;
}

.error-link {
    text-decoration: none;
    color: white;
    margin: auto;
    font-family: Helvetica, sans-serif;
    font-size: 35px;
    font-weight: 100;
}

/* Base styles for desktop */
.navigation-bar {
    position: absolute;
    top: 0;
    background: linear-gradient(
        180deg, 
        rgba(0,0,0,0.7977241922159488) 0%, 
        rgba(0,0,0,0.8005253126641282) 35%, 
        rgba(0,0,0,0.24590346392463236) 65%, 
        rgba(0,0,0,0) 100%);
    height: 110px;
    width: 100%;
    text-align: center;
    z-index: 999;
}

.navigation-container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    height: 110px;
}

.navigation-bar img {
    float: left;
    width: 300px;
    margin-top: 15px;
}

.navigation-bar ul {
    padding: 0;
    margin: 1 auto;
    text-align: center;
    display: inline-block;
    vertical-align: top;
}

.navigation-bar li {
    list-style-type: none;
    padding: 35px;
    height: 24px;
    margin-top: 4px;
    margin-bottom: 4px;
    display: inline;
}

.navigation-bar li a {
    color: white;
    font-size: 28px;
    font-weight: 200;
    font-family: Helvetica, sans-serif;
    text-decoration: none;
    line-height: 70px;
    padding: 5px 15px;
    opacity: 0.7;
    cursor: pointer;
}

.navigation-bar li a:hover {
    opacity: 1;
}

.services {
    padding-top: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid white;
    position: relative;
    margin-left: auto!important;
    margin-right: auto!important;
    width: 70%;
    max-width: 1785px;
    color: white;
    font-family: Helvetica, sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.services h1 {
    font-weight: 100;
    font-size: 40px;
    padding-bottom: 50px;
}

.services-grid-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 50px;
    grid-row-gap: 50px;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 1 / 3 / 2 / 4; }
.div4 { grid-area: 1 / 4 / 2 / 5; }
.div5 { grid-area: 2 / 1 / 3 / 2; }
.div6 { grid-area: 2 / 2 / 3 / 3; }
.div7 { grid-area: 2 / 3 / 3 / 4; }
.div8 { grid-area: 2 / 4 / 3 / 5; }
.div9 { grid-area: 3 / 1 / 4 / 2; }
.div10 { grid-area: 3 / 2 / 4 / 3; }
.div11 { grid-area: 3 / 3 / 4 / 4; }
.div12 { grid-area: 3 / 4 / 4 / 5; }

.services-grid-2 {
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 50px;
    grid-row-gap: 50px;
}

.div13 { grid-area: 1 / 1 / 2 / 2; }
.div14 { grid-area: 1 / 2 / 2 / 3; }
.div15 { grid-area: 1 / 3 / 2 / 4; }

.services-grid-3 {
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 50px;
    grid-row-gap: 50px;
}

.div16a { grid-area: 1 / 1 / 2 / 2; }
.div16b { display: none!important; }
.div17 { grid-area: 1 / 2 / 2 / 3; }

.grid-item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    max-width: 350px;
}

.services-icon {
    grid-row: 1;
    width: 120px;
    height: 120px;
    padding: 15px;
    margin: auto;
    border: 3px solid white;
    border-radius: 50%;
    box-sizing: border-box;
}

.services-icon img {
    width: 100%;
    margin: auto;
}

.services-description {
    grid-row: 2;
    text-align: center;
    text-wrap: pretty;
    font-size: 24px;
    font-weight: 100;
}

.footer {
    position: relative;
    margin-left: auto!important;
    margin-right: auto!important;
    padding-top: 40px;
    padding-bottom: 40px;
    width: 60%;
    max-width: 2550px;
    color: white;
    font-family: Helvetica, sans-serif;
    padding-inline: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 20px;
}

.contact-details img {
    width: 50px;
    height: 50px;
}

.contact-details h3 {
    text-wrap: nowrap;
    font-family: Helvetica, sans-serif;
    font-size: 20px;
}

.contact-details h3 a {
    text-decoration: none;
    color: white;
}

/* Mobile styles */
@media (max-width: 920px) {
    .navigation-bar {
        height: auto;
        max-height: 75px;
    }

    .navigation-container {
        width: 100%;
    }

    .navigation-container img {
        float: none;
        display: block;
        width: 300px;
        max-width: 25%;
        max-height: 40%;
        margin: 1% auto;
        object-fit: contain;
    }

    .navigation-container ul {
        display: none; /* Hide the menu items */
    }

    .footer {
        padding-inline: 0px;
    }
    
    .contact-details h3 {
        font-size: 15px;
    }
}


@media (max-width: 768px) {
    .navigation-bar {
        height: auto;
        max-height: 35px;
    }

    .navigation-container {
        width: 100%;
    }

    .navigation-container img {
        float: none;
        display: block;
        width: 300px;
        max-width: 25%;
        max-height: 20%;
        margin: 1% auto;
        object-fit: contain;
    }

    .navigation-container ul {
        display: none; /* Hide the menu items */
    }

    .services {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .services-grid-1 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        grid-column-gap: 30px;
        grid-row-gap: 30px;
    }

    .div1 { grid-area: 1 / 1 / 2 / 2; }
    .div2 { grid-area: 1 / 2 / 2 / 3; }
    .div3 { grid-area: 2 / 1 / 3 / 2; }
    .div4 { grid-area: 2 / 2 / 3 / 3; }
    .div5 { grid-area: 3 / 1 / 4 / 2; }
    .div6 { grid-area: 3 / 2 / 4 / 3; }
    .div7 { grid-area: 4 / 1 / 5 / 2; }
    .div8 { grid-area: 4 / 2 / 5 / 3; }
    .div9 { grid-area: 5 / 1 / 6 / 2; }
    .div10 { grid-area: 5 / 2 / 6 / 3; }
    .div11 { grid-area: 6 / 1 / 7 / 2; }
    .div12 { grid-area: 6 / 2 / 7 / 3; }

    .services-grid-2 {
        padding-top: 30px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 30px;
        grid-row-gap: 30px;
    }

    .div13 { grid-area: 1 / 1 / 2 / 2; }
    .div14 { grid-area: 1 / 2 / 2 / 3; }
    .div15 { grid-area: 2 / 1 / 3 / 2; }
    .div16a { display: none; }
    .div16b { display: inherit!important; }

    .services-grid-3 {
        padding-top: 30px;
        grid-template-columns: 1fr;
        grid-column-gap: 30px;
        grid-row-gap: 30px;
    }

    .footer {
        padding-inline: 0px;
    }
    
    .contact-details h3 {
        font-size: 15px;
    }
}