html {
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../../Images/bg_squares.svg);
    font-family: Open Sans, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #333333; 
}

/* --------------------------------------Styles for the Title Card---------------------------------------------- */

.titleCard {
    max-width: 100%;
    background-image: url(../../Images/hvac_header-scaled.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.titleCard h5 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    color: #ff7c1a; 
    margin: 0 auto;
    padding-top: 2%;
    text-align: center;
}

.titleCard h2 {
    font-size: 2.5rem;
    color: #f9f9f9;
    text-transform: uppercase; /* Styling the header to stand out */
    font-weight: 500; 
    margin: 0 auto 20px;
    padding-bottom: 2%;
    text-align: center;
}

/* --------------------------------------Styles for the main content---------------------------------------------- */

.topSection {
    height: auto;
    display: flex;
    justify-content: space-between; 
    max-width: 950px;
    margin: 20px auto; 
    padding: 20px 40px;
    text-align: center;
}

.topSection p{
    font-size: 1rem;
    margin: 0 auto 20px;
    padding: 2%;
    text-align: center;
    font-size: 1.5em; 
    max-width: 75rem;
}

.imgTwo button {
    background-color: transparent;
    color: #3e2a75; 
    border-radius: 20px;
    border: 2px solid #3e2a75; 
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; 
    letter-spacing: 1px;
    text-transform: uppercase; 
}

.imgTwo button:hover {
    background-color: #3e2a75; 
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

/* --------------------------------------Logos---------------------------------------------- */


.serviceSection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted min-width for smaller boxes */
    gap: 20px;
    padding: 50px;
    background: transparent;
    justify-content: center;
    align-items: stretch;
    perspective: 1000px;
}

.serviceCard {
    background: linear-gradient(145deg, #3e2a75, #7a53a3);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering content horizontally */
    justify-content: space-between;
    height: 100%;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease forwards;
    min-height: 250px; /* Slightly reduced height to fit all five cards */
    transform-style: preserve-3d;
    text-align: center; /* Centering text */
}

.serviceIcon {
    width: 70px; /* Reduced icon size for smaller boxes */
    margin-bottom: 0.5em;
    z-index: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px #ffdf6b);
}

.serviceCard:hover .serviceIcon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px #ffdf6b);
}

.serviceCard h3 {
    color: #ffdf6b;
    font-size: 1.6rem; /* Slightly reduced font size */
    margin-bottom: 10px;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
    transition: color 0.3s ease;
    width: 100%; /* Ensuring full width for proper centering */
    text-align: center; /* Centering the h3 text */
}

.serviceCard:hover h3 {
    color: #ffeeba;
}

.serviceCard p {
    font-size: 0.9rem; /* Slightly reduced font size */
    color: #f1f1f1;
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
    z-index: 1;
    padding: 0 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.serviceCard:hover p {
    opacity: 1;
    transform: translateZ(30px);
}

@keyframes slideIn {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
