* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #0b2944;
}


/* NAVIGATION */

header {
    padding: 8px;
}

.nav {
    width: 100%;
    min-height: 82px;

    padding: 10px 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #f7fbfd;

    border: 1px solid #edf4f7;
    border-radius: 16px;
}

.logo img {
    width: 58px;
    height: 58px;

    object-fit: contain;
    border-radius: 50%;
}

.links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.links a {
    position: relative;

    color: #0b2034;

    font-size: 14px;
    font-weight: bold;

    text-decoration: none;
}

.links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -13px;

    width: 0;
    height: 2px;

    background: #1778d0;

    transition: width 0.2s ease;
}

.links a:hover::after,
.links .active::after {
    width: 100%;
}

.links .active {
    color: #1778d0;
}


/* PAGE */

main {
    max-width: 1180px;

    margin: 0 auto;

    padding: 65px 45px;
}


/* INTRO */

.work-intro {
    max-width: 720px;

    margin-bottom: 45px;
}

.eyebrow {
    margin-bottom: 12px;

    color: #1778d0;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 1.5px;
}

.work-intro h1 {
    margin-bottom: 16px;

    color: #0a2745;

    font-size: 54px;
}

.title-line {
    width: 72px;
    height: 3px;

    margin-bottom: 24px;

    background: #1778d0;
}

.work-intro p {
    color: #41596d;

    font-size: 17px;
    line-height: 1.7;
}


/* PROJECT GRID */

.work-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}

.work-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2edf3;
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(15, 68, 105, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.work-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 14px 32px rgba(15, 68, 105, 0.13);
}


/* THIS IS IMPORTANT FOR THE PHONE PHOTOS */

.work-card img {
    width: 100%;
    height: 280px;

    display: block;

    object-fit: cover;
    object-position: center;

    background: #eef5f8;
}


/* TEXT */

.work-content {
    padding: 20px;
}

.work-content h2 {
    margin-bottom: 9px;

    color: #0a3156;

    font-size: 19px;
}

.work-content p {
    color: #53697a;

    font-size: 14px;
    line-height: 1.6;
}


/* CALLOUT */

.work-callout {
    margin-top: 55px;

    padding: 35px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    background:
        linear-gradient(
            rgba(234, 248, 252, 0.9),
            rgba(234, 248, 252, 0.9)
        ),
        url("../images/water-ripple-texture-background-blue-design.jpg");

    background-size: cover;
    background-position: center;

    border-radius: 16px;
}

.work-callout h2 {
    margin-bottom: 12px;

    color: #0a3156;

    font-size: 30px;
}

.work-callout p {
    max-width: 650px;

    color: #40586b;

    line-height: 1.6;
}

.contact-button {
    flex-shrink: 0;

    padding: 16px 24px;

    background: #1478c7;

    color: white;

    font-weight: bold;

    text-decoration: none;

    border-radius: 6px;
}

.contact-button:hover {
    background: #0d64aa;
}


/* TABLET */

@media (max-width: 950px) {

    .links {
        gap: 18px;
    }

    main {
        padding: 50px 30px;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-callout {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .nav {
        padding: 12px 18px;

        flex-direction: column;

        gap: 15px;
    }

    .links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 16px;
    }

    .links a {
        font-size: 12px;
    }

    main {
        padding: 45px 20px;
    }

    .work-intro h1 {
        font-size: 42px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card img {
        height: 320px;
    }

    .work-callout {
        padding: 28px 24px;
    }

}