/* Perusasetukset ja lukittu taustakuva */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
    /* Taustakuvan asetukset */
    background-image: url('kertsi2.webp'); /* webp on pienempi kuin png (91 kt vs 150 kt) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Tämä pitää kuvan paikallaan */
}

/* Tumma kerros kuvan päällä parantamaan luettavuutta */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.85); /* Säädä tummuutta tästä */
    z-index: -1;
}

header {
    background-color: rgba(10, 15, 30, 0.9);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00d2ff;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(90deg, #00d2ff, #9d50bb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover, nav a[aria-current="page"] { color: #00d2ff; }

.hero {
    text-align: center;
    padding: 120px 20px;
}

h1 { font-size: 3rem; margin-bottom: 10px; }

section {
    padding: 80px 5%;
    max-width: 1100px;
    margin: auto;
}

h2 {
    text-align: center;
    color: #00d2ff;
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* Palvelukortit läpinäkyvällä taustalla */
.palvelut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.kortti {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
}

.kortti:hover {
    border-color: #00d2ff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

/* Pelaa-painike (Routamaa) */
.pelaa {
    display: inline-block;
    margin: 10px 0;
    padding: 14px 34px;
    border-radius: 30px;
    background: linear-gradient(90deg, #00d2ff, #9d50bb);
    color: #fff;
    font-weight: bold;
    font-size: 1.15em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pelaa:hover, .pelaa:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 210, 255, 0.35);
    outline: none;
}

/* Hinnasto */
.hinnasto-container {
    background: rgba(10, 15, 30, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: #00d2ff;
    font-size: 1.1em;
}

.hinta {
    font-weight: bold;
    color: #00d2ff;
    font-size: 1.3em;
}

footer {
    text-align: center;
    padding: 60px 20px;
    background: rgba(5, 7, 15, 0.9);
    margin-top: 50px;
}

footer a { color: #00d2ff; }

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .hero { padding: 70px 20px; }
    section { padding: 50px 5%; }
    .kortti { padding: 25px; }
    th, td { padding: 12px; }
}
