/****************************
    DEFAULT
****************************/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", serif;
    background-color: rgb(253, 253, 253);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/****************************
    NAVBAR (navbar.htm)
****************************/

nav {
    position: sticky;
    display: flex;
    justify-content: center;
    top: 0;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2);
    background-color: rgb(253, 253, 253);
    z-index: 100;
    width: 100%;
    height: 70px;
}

.nav-container {
    max-width: 2000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

nav ul {
    max-width: 2000px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: rgb(0, 65, 163);
}

nav ul li::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(0, 65, 163);
    transition: width 0.3s ease-in-out;
}

nav ul li:hover::after {
    width: calc(100% + 10px);
    left: -5px;
}

nav ul li.active a {
    color: rgb(0, 65, 163);
}

nav a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

nav .logo a {
    font-size: 18px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 150;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

.burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
}

.burger.open div:nth-child(2) {
    opacity: 0;
}

.burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: calc(-100% - 80px);
    width: calc(100% - 60px);
    height: calc(100% - 110px);
    max-width: 300px;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2);
    background-color: rgb(253, 253, 253);
    transition: right 0.3s ease-in-out;
    z-index: 100;
    padding: 20px 30px;
    margin-top: 70px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: rgb(0, 65, 163);
}

.mobile-menu ul li.active a {
    color: rgb(0, 65, 163);
}

.mobile-menu.active {
    right: 0;
}

/****************************
    LANDING PAGE (home.htm)
****************************/

.landing-page {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(/static/images/bridge.jpg);
    background-size: cover;
    background-position: center calc(100%);
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    z-index: 0;
    flex-direction: column;
}

.landing-page .welcome-box {
    font-size: 30px;
    letter-spacing: 1px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-page .welcome-box h2 {
    font-family: 24px;
    padding: 0 20px;
}

.motto {
    font-size: 18px;
    font-weight: 400;
    color: #e9e9e9;
}

/****************************
        SERVICES
****************************/

.section-main {
    padding: 40px;
    background-color: #f5f5f5;
    min-height: 30vh;
    flex: 1;
}

.overlay-content {
    height: auto;
    margin-top: -80px;
    background: rgb(252, 252, 252);
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.overlay-content h3 {
    color: rgb(0, 0, 0);
    margin: 0;
    font-size: 26px;
    padding: 20px 0 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: none;
    padding-left: 10px;
    text-decoration: none;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.service-item img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background-size: cover;
    background-position: center calc(100%);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    width: calc(100% - 180px);
}

.service-content span {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.service-title {
    font-size: 16px;
    font-weight: bold;
    color: rgb(0, 20, 50) !important;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.service-title:hover {
    color: rgb(0, 40, 95);
}


/****************************
    FOOTER
****************************/

footer {
    height: auto;
    background: rgb(31, 32, 33);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: stretch;
    width: 100%;
    padding: 0 10px 0 50px;
}

.footer-section {
    width: 100%;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: white;
    font-weight: bold;
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: rgb(0, 65, 163);
    margin-top: 5px;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #a5a5a5;
}

.footer-section ul li a {
    color: #a5a5a5;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    width: calc(100% - 40px);
    overflow: hidden;
    padding: 20px 20px;
    border-top: 1px solid #313131;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: #a5a5a5;
    font-size: 0.9rem;
    background: rgb(31, 32, 33);
    text-align: center;
    gap: 5px;
}

.footer-left,
.footer-right {
    white-space: nowrap;
}

.footer-left {
    margin-right: -3px;
}


.footer-bottom a {
    color: #a5a5a5;
    text-decoration: underline 1px;
    text-underline-offset: 4px;
}

/****************************
    ABOUT (about.htm)
****************************/
.overlay-content.bigger-padding {
    padding: 40px 80px;
}

.overlay-content.bigger-padding div {
    max-width: 800px;
    width: 800px;
}

.overlay-content.bigger-padding ul {
    list-style: none;
}

/****************************
    SERVICES (services.htm)
****************************/

.service-container {
    padding: 40px;
    background-color: #f5f5f5;
    min-height: 30vh;
    flex: 1;
}

.overlay-content.bigger-padding.offset-center {
    text-align: left;
}

.services-section {
    scroll-margin-top: 70px;
}

.services-section:not(:first-of-type) {
    margin: 10px 0;
}

.services-section .sub-h {
    margin: 10px 0;
}

.services-section h1 {
    color: rgb(0, 0, 0);
    margin: 0;
    font-size: 26px;
    padding: 20px 0 10px;
    text-transform: uppercase;
}

.services-section .heading {
    color: rgb(0, 0, 0);
    margin: 10px 0 5px 0;
    font-size: 20px;
    font-weight: 500;
}

.services-section span {
    padding: 2px 0;
}

.services-section .content-flex {
    display: flex;
    flex-direction: column;
}

.services-section .content-flex span {
    padding: 4px 0;
    font-size: 17px;
}

/****************************
    CERTIFICATES PAGE (certificates.htm)
****************************/

.certificate-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    justify-content: center;
    flex: 1;
}

.certificate-card {
    width: 250px;
    height: 420px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.certificate-card img {
    width: 230px;
    height: 310px;
    object-fit: scale-down;
    margin-bottom: 15px;
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    height: 30px;
    width: 30px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.certificate-card h3 {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin: 0;
}

.certificate-card span {
    font-size: 1rem;
    color: #666;
    text-align: center;
    flex-grow: 1;
}

/****************************
    RESPONSIVE LAYOUT
****************************/

@media screen and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        justify-content: center;
    }
}


@media screen and (max-width: 1000px) {
    .overlay-content.bigger-padding div {
        width: 600px;
    }
}

@media screen and (max-width: 800px) {
    .overlay-content.bigger-padding div {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        max-width: none;
    }
}

@media screen and (max-width: 700px) {
    nav ul {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

@media screen and (max-width: 600px) {

    .services-section h1,
    .overlay-content h3 {
        font-size: 20px !important;
    }

    .services-section h1 {
        padding: 10px 0 0px !important;
    }

    .services-section span {
        font-size: 16px !important;
    }

    .services-section .heading {
        font-size: 18px !important;
    }

    .service-container,
    .section-main {
        padding: 40px 20px !important;
    }

    .overlay-content.bigger-padding {
        padding: 40px 40px !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        justify-content: center;
    }
}

@media screen and (max-width: 550px) {
    .overlay-content.bigger-padding div {
        width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .service-content span {
        font-size: 12px;
    }

    .overlay-content {
        padding: 10px !important;
    }

    .services-grid img {
        width: 135px !important;
    }

    .motto {
        font-size: 15px;
    }
}

@media screen and (max-width: 400px) {
    .overlay-content.bigger-padding div {
        width: 280px;
    }

    .services-section h1 {
        font-size: 20px !important;
    }

    .services-section span,
    .section-main p {
        font-size: 14px !important;
    }

    .services-section .heading {
        font-size: 16px !important;
    }
}
