:root {
    --color-primary: #8FBC8F; 
    --color-secondary: #466f46;  
    --color-text-main: #437043;
    --color-heading: #437043; 
    --color-link: #255025; 
    --color-white: #fff;
    --card-shadow: 0 3px 8px #437043; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; 
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5; 
    color: var(--color-text-main);
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column; 
    font-size: 0.95em; 
}

main {
    flex-grow: 1; 
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4%; 
    background-color: var(--color-primary);
}

.logo {
    font-family: Cursive;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1em; 
    color: var(--color-secondary);
}

.menu-toggle {
    width: 24px; 
    height: 20px; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.bar {
    display: block;
    width: 100%;
    height: 2.4px; 
    background-color: var(--color-secondary);
}

.software-development-section {
    padding-top: 16px; 
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    min-height: 500px; 
}

.section-title {
    font-family: Cursive;
    color: var(--color-heading);
    font-size: 2em; 
    font-weight: bold;
    margin-bottom: 8px; 
    text-align: center;
}

.software-development-section::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    
    top: 50%; 
    transform: translateY(-50%);
    height: 33%; 

    background-color: var(--color-secondary);
    z-index: -1;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    gap: 45px; 
    padding: 0 4%; 
    max-width: 960px; 
    margin: 0 auto 40px auto; 
}


.service-card {
    background-color: var(--color-white);
    padding: 16px; 
    border-radius: 8px; 
    box-shadow: var(--card-shadow);
    width: 300px; 
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10; 
}


.cards-container .service-card:nth-child(2) {
    margin-top: 50px; 
}

.cards-container .service-card:nth-child(3) {
    margin-top: 100px; 
}

.service-card:hover {
    transform: translateY(-4px); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); 
}

.card-image-wrapper {
    margin-bottom: 12px; 
    border-radius: 6px; 
    overflow: hidden;

    height: 160px; 
    width: 100%; 
}

.card-image {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover; 
    background-color: var(--color-white); 
}

.card-title {
    font-family: Cursive;
    color: var(--color-secondary);
    font-size: 1.1em; 
    margin-bottom: 8px; 
    font-weight: bold;
}

.card-text {
    font-size: 0.9em; 
    margin-bottom: 16px; 
}

.learn-more-link {
    font-family: Cursive;
    color: var(--color-link);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s ease;
    font-size: 0.9em; 
}

.learn-more-link:hover {
    color: #b732b7;
    text-decoration: underline;
}

.footer {
    background-color: #233e23; 
    color: #bbb;
    text-align: center;
    padding: 16px 4%; 
    font-size: 0.8em; 
    margin-top: auto; 
}

@media (max-width: 900px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        width: 100%;
    }

    .section-title {
        font-size: 2em;
    }

    .software-development-section::before {
        height: 15%;
        top: 15%;
    }

    .footer{
        height: 50%;
    }


}

