body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

nav a {
    font-size: 100%;
    color: #222;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-transform: uppercase;
    text-decoration: none;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: color;
    display: inline-block;
}

nav a:focus,
nav a:hover {
    color: #222;
}

nav a:hover:after {
    width: 100%;
    left: 0%;
}

nav a:after {
    content: '';
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: lightgrey;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

.hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    justify-content: center;
    background: #f0f0f0;
    font-size: x-large;

    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('kuvat/pexels-olly-3757952.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    height: 600px;

    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.8);
}

.hero p,
.hero h1 {
    font-family: 'Lora';
    color: white;
    transform: scale(0.94);
    animation: scale 3s forwards cubic-bezier(0.5, 1, 0.89, 1);
}
@keyframes scale {
    100% {
        transform: scale(1);
    }
}

span {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
}

span:nth-child(1) {
    animation: fade-in 0.8s 0.1s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

span:nth-child(2) {
    animation: fade-in 0.8s 0.2s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

span:nth-child(3) {
    animation: fade-in 0.8s 0.3s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

@keyframes fade-in {
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

section.content-section {
    margin: 8rem auto;
    max-width: 990px;
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Kortit */
.card {
    background-color: #fff;
    border-radius: 5px;
    width: 300px;
    margin: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
}

.card h4 {
    font-size: 24px;
    margin: 15px 0;
}

.card p {
    padding: 0 15px 15px;
    font-size: 16px;
}

/* Hinnasto */

.pricing {
    text-align: center;
}

.pricing h3 {
    font-size: 36px;
    margin-bottom: 30px;
}

.price-table {
    margin: auto;
    width: 90%;
    max-width: 700px;
    border-collapse: collapse;
    background-color: #fff;
}

.price-table th,
.price-table td {
    padding: 15px;
    border: 1px solid #ccc;
}

.price-table th {
    background-color: #2c3e50;
    color: #fff;
    text-align: left;
}

section.content-section2 {
    margin: 4rem auto;
    background-color: #ecf0f1;
    padding: 6rem 2rem; /* lisää tilaa sisältöön */
}

.section-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

ul {
    padding-left: 0;
    list-style: none;
}

li {
    margin: 0.5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1.5rem;
}

.some-links a {
    display: inline-block;
    margin: 0.5rem 1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
    }

    #nav-links.open {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
