* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #0e0e1d;
    line-height: 1.6;
    background-color: #fff;
    background-position: center top;
    background-size: 105%;
}

html{
    scroll-behavior: smooth;
}

/* Palvelut */
.services-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin: 2rem 0;
    padding: 0 1rem;
    border-bottom: 2px solid #e74c3c;
    max-width: 800px;
    margin-left: auto; 
    margin-right: auto;
}

.services {
    padding: 2rem 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 9px 1px rgba(0,0,0,0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px 6px rgba(0,0,0,0.32);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-icon {
    font-size: 2rem;
    color: #e74c3c;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80px;
    height: 80px;
    position: relative;
}

.service-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 1rem 0 0.5rem;
}

.service-card p {
    font-size: 1rem;
    color: #666;
    padding: 0 1rem 1.5rem;
    max-width: 290px;
    margin-left: auto;
    margin-right: auto;
}

.service-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    bottom: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* ota yhteyttä */
.contact {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact button {
    background-color: #e74c3c;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #c0392b;
}

/* Footer */
.footer {
    padding: 3rem;
    background-color: #212132;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

.footer a{
    color: #fff;
}

/* Responsiivisuus */
@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-title {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .service-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .services-title {
        font-size: 1.6rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .contact h2 {
        font-size: 1.6rem;
    }

    .contact p {
        font-size: 0.9rem;
    }

    .contact button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}