/* services-styles.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #e6f7ff; /* Very light pastel blue */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Bebas Neue', sans-serif;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 4.5in); /* Adjusted width for card + padding */
    grid-template-rows: repeat(2, 3.5in); /* Adjusted height for card + padding */
    gap: 20px; /* Padding between cards */
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.card {
    background-color: #184b70; /* Default card color */
    width: 4in; /* Fixed width */
    height: 3in; /* Fixed height */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: whitesmoke;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Add transform transition */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    background-color: #123456; /* Darker color on hover */
    transform: scale(1.05); /* Slightly grow on hover */
}

.card-title {
    font-size: 33.6px; /* Increased font size for the title by 20% */
    font-weight: bold;
    transition: transform 0.3s ease, top 0.5s ease;
    font-family: 'Bebas Neue', sans-serif; /* Use Bebas Neue for title */
    margin: 0; /* Remove bottom margin */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Ensure the title takes full width */
}

.card-content {
    font-size: 20px; /* Decreased font size for the content */
    text-transform: none; /* Ensure normal case */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 30px; /* Increase padding to ensure text doesn't touch the sides */
    font-family: 'Roboto', sans-serif; /* Use Roboto for content */
    width: calc(100% - 60px); /* Ensure the content takes full width minus padding */
}

.card:hover .card-content {
    opacity: 1; /* Show content on hover */
    top: 50%; /* Move content closer to the title */
    transform: translate(-50%, 0); /* Adjusted position */
}

.card:hover .card-title {
    top: 30%; /* Move title higher */
    transform: translate(-50%, -50%); /* Adjust position */
}