body {
    margin: 0;
    font-family:
        "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: #F5F6F7;
}

a {
    text-decoration: none;
}

p {
    margin: 0;
}

.divider {
    max-width: 4rem;
    border-color: #DC3545;
    border-width: 0.125rem;
    border-style: solid;
}

/* HEADER */
.page-header {
    background-image: linear-gradient(rgba(31, 34, 41, 0.6) 0%,
            rgba(31, 34, 41, 0.5) 100%),
        url('/assets/images/bg.jpg');
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.site-logo {
    display: block;
    margin-top: 2rem;
}


/* INFO */
.contact-info {
    margin: 2.5rem 1rem 2.5rem;
}

.contact-info>ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    flex: 1;
    display: flex;
    align-items: center;
    color: white;
    background: rgba(31, 34, 41, 0.3);
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
    backdrop-filter: blur(0.5rem);
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item>div {
    flex: 1;
    margin-left: 1rem;
    /* text-align: center; */
}

.primary-info {
    font-weight: bold;
    color: white;
    margin: 0.25rem 0;
}

.secondary-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.info {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    background: #1D3557;
    background: #1F2229;
    padding: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
    color: white;
}


/* SERVICES */
.services-title,
.projects-title {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    color: rgba(31, 34, 41, 0.5);
}

.services-list {
    margin: 2rem 1rem 3rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.service-info {
    overflow: hidden;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: box-shadow 300ms ease;
}

.service-info:last-child {
    margin-bottom: 0;
}

.service-info:hover {
    box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

.service-image {
    display: block;
    max-width: 100%;
}

.service-title {
    text-align: center;
    font-size: 1.25rem;
    margin: 1rem 0.5rem 0;
    padding: 0;
    font-weight: normal;
    color: #16181D;
}

.service-description {
    padding: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    color: #888;
}

ul.service-description>li {
    list-style: square;
    margin-left: 1rem;
}


/* PROJECTS */
.projects {
    background: white;
    margin: 2rem 0 0;
    padding: 1.5rem 0;
}

.projects-list {
    margin-top: 2rem;
    display: flex;
    list-style: none;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 0;
}

.project-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.project-info:last-child {
    margin-bottom: 0;
}

.project-info>a,
.project-info>p {
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.project-title {
    margin: 0.5rem 0;
    font-weight: normal;
    padding: 0;
    color: #DC3545;
}

.project-image {
    display: block;
    max-width: 100%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 0.75rem 0.125rem rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.project-image:hover {
    box-shadow: 0 0 0.75rem 0.125rem rgba(220, 53, 69, 0.3);
}


/* FOOTER */
.footer {
    margin: 0;
    background: #1F2229;
    display: flex;
    flex-direction: column;
}

.social-media-list>ul {
    margin: 0;
    padding: 2rem 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.social-media {
    margin: 0.5rem;
    color: white;
}

.actions {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
}

.action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.75rem;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0.375rem 0.5rem 0 rgba(0, 0, 0, 0.4);
    font-size: 2rem;
    color: #fff;
}

.action > a {
    color: #fff;
}

.action + .action {
    margin-top: 1rem;
}


/* Shamelessly stolen from Bootstrap */
@media (min-width: 768px) {
    .site-title::first-letter {
        padding: 0.25rem 1.25rem;
    }

    .services-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: stretch;
    }

    .service-info {
        width: 45%;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 1.125rem;
    }

    .projects-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .project-info:last-child {
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .services {
        width: 80%;
        margin: 0 auto;
    }

    .contact-info>ul {
        flex-direction: row;
    }

    .info-item {
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .info-item:last-child {
        margin-right: 0;
    }

    .actions {
        display: none; 
    } 
}
