body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 32px 20px;
    /* Change the background color or add a background image URL below */
    background: linear-gradient(85deg, #DA1884 0%, #f5d5d5 100%);
    font-family: Arial, sans-serif;
    cursor: url("images/spray-can.svg") 16 4, auto;
}

.page-layout {
    /* Displays the page content and image in a grid. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: center;
    gap: 20px;
    width: min(1100px, 100%);
}

.page-content {
    /* Keeps the page text and buttons centered in their column. */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-image {
    /* Sets the image size while preserving its proportions. */
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .page-image {
        width: 240px;
        max-width: 70%;
        justify-self: center;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    padding: 0;
}

h1 {
    color: #ffffff;
    font-size: 54px;
    font-weight: 700;
    -webkit-text-stroke: 1px #440561;
}

h2 {
    color: #7f11bf;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 2px;
    -webkit-text-stroke: 1px #440561;
}

h3 {
    color: #4917ed;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fade-shake 45s linear infinite;
}

@keyframes fade-shake {
    0% {
        opacity: 0;
        transform: translateX(0) scale(1);
    }

    3% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    3.5% { transform: translateX(-14px) scale(1.12) rotate(-5deg); }
    3.8% { transform: translateX(12px) scale(1.15) rotate(5deg); }
    4.1% { transform: translateX(-10px) scale(1.10) rotate(-2deg); }
    4.35% { transform: translateX(-8px) scale(1.08) rotate(2deg); }
    4.6% { transform: translateX(-5px) scale(1.04) rotate(-1deg); }
    4.8% { transform: translateX(4px) scale(1.02) rotate(1deg); }
    5%, 100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    h3 {
        animation: none;
        opacity: 1;
        transform: none
    }
}

h4 {
    color: #000000;
    font-size: 20px;
    font-style: italic;
    margin-top: 20px;
    font-weight: 500;
}

h5 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
}
h6 {
    color: #000000;
    font-size: 20px;
    font-weight: 900;
    /*-webkit-text-stroke: 1px #440561; */
}
.bug {
    /* Positions crawling bug images around the page content. */
    position: fixed;
    width: 48px;
    height: 48px;
    pointer-events: auto;
    z-index: 9999;
}

.bug-dance {
    position: fixed;
    z-index: 10001;
    width: clamp(72px, 12vw, 140px);
    height: auto;
    pointer-events: none;
}

.bug-dance-top-left {
    top: 12px;
    left: 12px;
}

.bug-dance-top-right {
    top: 12px;
    right: 12px;
}

.bug-dance-bottom-left {
    bottom: 12px;
    left: 12px;
}

.bug-dance-bottom-right {
    bottom: 12px;
    right: 12px;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
}

.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #f6ebeb;
    color: #2d3436;
    cursor: url("images/spray-can.svg") 16 4, pointer;
    padding: 6px 18px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #f547c4;
    color: #ffffff;
}

.btn:active {
    transform: scale(0.98);
    background-color: #DA1884;
    color: #ffffff;
}

.page-content  {
    line-height: 1.5;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    max-width: 100%;
}

.service-card.residential {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    width: 115px;
    height: 34px;
    padding: 2px 4px;
    color: #ffffff;
    background-color: #440561;
    border: 4px solid #000000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.service-card.commercial {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    width: 115px;
    height: 34px;
    padding: 2px 4px;
    color: #ffffff;
    background-color: #6a0d8c;
    border: 4px solid #000000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.service-card.strata {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    width: 115px;
    height: 34px;
    padding: 2px 4px;
    color: #ffffff;
    background-color: #f547c4;
    border: 4px solid #000000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
