.h1-covered {
    color: var(--cool-light-blue);
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
}

#hero-text p {
    color: var(--service-card-white);
}

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

#services-overview {
    background-color: var(--cloud-grey);
    color: var(--deep-space-blue);
    padding: 0 20px;
}

.services-overview-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.like-it-matters {
    color: var(--amber-hover-cta) !important;
}

.finger {
    animation: bounce 1.5s infinite ease-in-out;
}

#services-overview .ian-bubble p {
    margin-bottom: 0;
}


@media screen and (min-width: 769px) {

    .wrapper {
        padding: 2rem 20px 6rem;
        background-color: var(--service-card-white);
        margin-left: auto;
        margin-right: auto;
        max-width: 1400px;
    }

    .ian-dialogue {
        max-width: 400px;
    }

    #hero {
        padding: 0 40px;
        position: relative;
        display: flex;
        margin: 0 auto;
        background: linear-gradient(to bottom, rgba(23, 42, 70, 0.85), rgba(23, 42, 70, 0.5)), url("/img/services-hero-5.webp");
        background-size: cover;
        background-position: center;
        background-blend-mode: multiply;
        min-height: 100vh;

    }

    .hero-div {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    #hero h1 {
        color: var(--amber-hover);
        font-size: clamp(4.25rem, 4.25rem + .125vw, 5.5rem);
        letter-spacing: 1px;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .h1-dash {
        font-size: clamp(2.75rem, 2.75rem + .125vw, 4rem);
        vertical-align: middle;
    }

    .h1-covered {
        display: inline-flex;
        width: fit-content;
        align-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin: 0 auto;
        justify-content: center;
        font-size: clamp(3.5rem, 3.5rem + .125vw, 4.75rem);
        letter-spacing: 3px;
        animation: fadeIn 5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .h1-covered::after {
        content: "";
        width: 0;
        height: 4px;
        background-color: var(--amber);
        margin: 0;
        padding: 0;
        animation: underlineExpand 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 3s forwards;
    }


    #hero h1,
    #hero p {
        animation: fadeIn 2s ease-in-out;
    }

    #hero-text p {
        font-size: clamp(1.13875rem, 1.13875rem + .125vw, 1.2375rem);
        padding: 0;
        line-height: 2;
        margin: 0;
        max-width: 600px;
    }

    .cta-buttons {
        padding: 20px 0;
        margin: 0;
        display: flex;
    }

    .services-overview-header {
        width: 60%;
        margin: auto;
    }

    .services-overview-header p, #services-overview .above-dots-p {
        font-size: 1.125rem;
        max-width: 1200px;
        margin-top: 0;
        margin-right: auto;
        margin-left: auto;
        line-height: 2;
    }

    .services-summary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        margin: auto;
        justify-items: center;
        padding: 3rem 20px;
        gap: 2rem;
        max-width: 1200px;
        width: 100%;
    }

    .service-overview {
        position: relative;
        background: radial-gradient(circle at top left, #ffffff, #f1f4f8);
        border-radius: .25rem;
        padding: 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        text-decoration: none;
        color: #222;
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
        border: 1px solid transparent;
        font-weight: 400;
        max-width: 350px;
        align-items: center;
    }

    .service-overview>* {
        position: relative;
        z-index: 1;
    }

    .service-overview:hover,
    .service-overview.hover-active {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        color: var(--deep-space-blue);
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .service-overview::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, #e3f0ff, #f6f9fc);
        z-index: 0;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        border-radius: inherit;
    }

    .service-overview:hover::before,
    .service-overview.hover-active::before {
        opacity: 1;
    }


    .service-overview h3 {
        font-family: "Oswald", sans-serif;
        font-weight: 600;
        letter-spacing: 0.25px;
        font-size: 2rem;
        text-transform: uppercase;
        margin: 0 auto .5rem;
    }

    .service-overview p {
        padding: 20px;
    }

    .service-overview p.starting-price {
        padding: 0 20px;
        margin: 1rem auto .75rem;
        font-weight: 700;
        min-height: 3rem;
    }

    p.service-summary-description {
        line-height: 2;
        margin-top: 0;
        font-size: 0.9375rem;
    }

    .service-overview-last-p {
        text-align: left;
    }

    .service-overview-last-p.pcbuild {
        text-align: center;
    }

    .service-overview .cta-button {
        margin-top: auto;
        justify-self: center;
    }

    .service-overview button {
        display: none;
    }

    .services-summary .cta-button {
        font-size: 1rem;
        width: 260px;
        height: 50px;
        margin: auto auto 7.5px
    }

    .service-overview p.service-overview-last-p {
        text-align: left;
        background-color: var(--icy-blue);
        padding: 1rem;
        border: 1px solid var(--foggy-blue);
        border-radius: 4px;
        width: 100%;
        margin: 2rem auto;
        max-width: 500px;
        line-height: 1.5;
    }

    p.service-overview-last-p.pc-build {
        text-align: center;
    }

    .service-overview ul {
        margin-bottom: 0;
    }

    .service-overview ul li {
        margin-bottom: .5rem;
        font-size: 0.8675rem;
    }

    .service-overview ul li:last-of-type {
        margin-bottom: 0;
    }

    b.service-overview-b {
        font-size: 1rem;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
    }

    b.service-overview-price {
        color: var(--positive-green);
        font-size: 1rem;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
    }

    .image-container {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        width: 100%;
        max-width: 350px;
        overflow: hidden;
        border-radius: 4px;
    }

    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border: 2px solid var(--steel-gray);
        transition: filter 0.5s ease;
    }

    .service-overview:hover .image-container img {
        filter: brightness(0.5);
    }

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.5s ease;
        text-align: center;
        padding: 0 20px;
        border-radius: 4px;
        overflow: hidden;
    }

    .overlay p {
        color: var(--service-card-white);
        padding: 0 20px;
        margin: .25rem auto;
        text-align: left;
    }

    .overlay p b {
        color: var(--amber-hover)
    }

    .service-overview:hover .overlay {
        opacity: 1;
    }

    .finger {
        font-size: 2.5rem !important;
    }
    

}

@media screen and (max-width: 768px),
screen and (max-width: 1200px) and (orientation: landscape) {

    #hero {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        background: linear-gradient(to bottom, rgba(23, 42, 70, 0.9), rgba(23, 42, 70, 0.3)), url("/img/services-hero-5-mobile.webp");
        background-size: cover;
        background-position: right;
        background-blend-mode: multiply;
        padding: 65px 0 1rem;
        justify-content: center;
    }

    .finger {
        margin-top: 0;
        font-size: 2rem;
    }

    .hero-div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        gap: 8px;
    }

    #hero h1 {
        margin: 1rem auto 0;
        text-align: center;
        color: var(--amber-hover);
        letter-spacing: .5px;
        line-height: 1.3;
        max-width: 300px;
    }

    .h1-dash {
        font-size: 2rem;
        vertical-align: middle;
    }

    .h1-covered {
        position: relative;
        display: inline-flex;
        width: min-content;
        align-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin: .5rem auto;
        justify-content: center;
        font-size: 2.5rem;
        animation: fadeIn 3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        overflow-x: clip;
        letter-spacing: 1px;
    }

    .h1-covered::after {
        content: "";
        display: inline-flex;
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0;
        height: 3px;
        width: 0;
        background-color: var(--amber);
        animation: underlineExpand 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 2s forwards;
    }

    #hero h1,
    #hero p {
        animation: fadeIn 2s ease-in-out;
    }

    #hero-text p {
        font-size: 1.0575rem;
        line-height: 1.8;
        margin: 0;
        padding: .5rem 20px 0;
    }

    #services-overview {
        background-color: var(--service-card-white)
    }

    .cta-buttons {
        padding: 2rem 0;
        display: flex;
        margin: auto;
    }

    .services-overview-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: auto;
    }

    .services-overview-header h2 {
        text-align: center;
        margin-bottom: .725rem;
        line-height: 1.3;
    }

    .services-overview-header p {
        font-size: 1.0125rem;
        padding: 20px 0 0;
        margin: 0;
        line-height: 1.6;
    }

    .above-dots-p {
        margin-top: 0;
        text-align: center;
        margin-bottom: 2rem;
    }

    .service-overview b {
        font-weight: 700;
    }

    .service-overview p {
        padding: 20px;
    }

    .service-overview p.starting-price {
        padding: 0 20px;
        font-weight: 700;
        min-height: 3rem;
    }

    .service-overview p.service-overview-last-p {
        text-align: left;
        background-color: var(--icy-blue);
        padding: 1rem;
        border: 1px solid var(--foggy-blue);
        border-radius: 4px;
        width: 100%;
    }

    p.service-overview-last-p.pc-build {
        text-align: center;
    }

    .service-overview .cta-button {
        margin: auto auto 7.5px;
        justify-self: center;
        font-size: 0.9375rem;
        height: 50px !important;
    }

    .services-summary {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        overflow-x: scroll;
        gap: 20px;
        margin: auto -20px;
        justify-items: center;
        background: var(--service-card-white);
        padding: 20px 0 6rem;
        border-bottom: 1px solid var(--muted-charcoal);
    }

    .service-overview {
        position: relative;
        background: radial-gradient(circle at top left, #ffffff, #f1f4f8);
        border-radius: .25rem;
        padding: 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        text-decoration: none;
        color: #222;
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
        border: 1px solid transparent;
        font-weight: 400;
        max-width: 350px;
        align-items: center;
    }

    .service-overview > * {
        position: relative;
        z-index: 1;
    }

    .service-overview:hover,
    .service-overview.hover-active {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        color: var(--deep-space-blue);
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .service-overview::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, #e3f0ff, #f6f9fc);
        z-index: 0;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        border-radius: inherit;
    }

    .dots-container {
        display: flex;
        position: sticky;
        top: 65px;
        justify-content: center;
        padding: 1rem 0;
        width: calc(100% + 40px);
        z-index: 6;
        background-color: var(--service-card-white);
        margin: 0 -20px;
        border-bottom: 1px solid var(--muted-charcoal);
    }

    .dot {
        width: 10px;
        height: 10px;
        background-color: var(--foggy-blue);
        border-radius: 50%;
        margin: 0 6px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .dot.active {
        background-color: var(--deep-space-blue);
    }

    b.service-overview-price {
        color: var(--positive-green);
        font-size: 1rem;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
    }

    p.service-summary-description {
        margin-top: 0;
        line-height: 1.8;
    }

    .service-overview ul {
        margin-bottom: 0;
    }

    .service-overview ul li {
        margin-bottom: .5rem;
        font-size: 0.8675rem;
    }

    .service-overview ul li:last-of-type {
        margin-bottom: 0;
    }

    .service-overview:first-of-type {
        margin-left: 20px;
    }

    .service-overview:last-of-type {
        margin-right: 20px;
    }

    b.service-overview-b {
        font-size: 1rem;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
    }

    .service-overview h3 {
        font-family: "Oswald", sans-serif;
        font-weight: 600;
        letter-spacing: 0.5px;
        font-size: 1.75rem;
        text-transform: uppercase;
        margin: 0 auto .5rem;
    }

    .image-container {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        width: 100%;
        overflow: hidden;
        border-radius: 4px;
    }

    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border: 2px solid var(--steel-gray);
        transition: filter 0.5s ease;
    }

    .service-overview:hover .image-container img {
        filter: brightness(0.5);
    }

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        transition: opacity 0.5s ease;
        text-align: center;
        padding: 0;
        border-radius: 4px;
        overflow: hidden;
    }

    .overlay p {
        font-size: 0.8375rem;
        color: var(--service-card-white);
        padding: .25rem 1rem;
        margin: .25rem auto;
        text-align: left;
    }

    .overlay p:last-of-type {
        margin-top: 1rem
    }

    .overlay p b {
        color: var(--amber-hover)
    }

    .service-overview:hover .overlay {
        opacity: 1;
    }

    button {
        -webkit-tap-highlight-color: transparent;
    }

    #services-overview .ian-bubble {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .wrapper {
        background-color: var(--service-card-white);
        margin-left: auto;
        margin-right: auto;
    }

}


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

    h1 {
        font-size: 2.5rem;
    }

    .hero-div {
        gap: 20px;
    }

    #hero-text {
        font-size: 1rem;
    }

}

@media screen and (min-width: 769px) and (max-width:1200px) {
    .overlay p {
        font-size: .875rem
    }

    .services-summary {
        width: calc(100% + 80px);
    }
}