/* Yleinen nollaus – poistaa oletusmarginaalit ja -paddingit */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Leveys ja korkeus sisältävät paddingin ja borderin */
}

body {
    background: #151515;     /* Tumma tausta */
    padding: 0;
    font-family: "Inter", sans-serif;
}

/* Otsikot – kaikki keskitetty ja vaalealla värillä */
h1 {
    color: #ebebeb;
    text-align: center;
}

h2 {
    color: #ebebeb;
    text-align: center;
    margin-top: 2%;
    font-size: 1.5rem;
}

h3 {
    color: #ebebeb;
    text-align: center;
    left: 50%;
    width: 80%;
    margin: auto;
    margin-top: 1%;
    font-size: 2rem;
}

h4 {
    color: #ebebeb;
    text-align: center;
    left: 50%;
    width: 80%;
    margin: auto;
    margin-top: 3%;
    font-size: 1.5rem;
}

/* Kappaleet – keskitetty, 50% leveys */
p {
    color: #ebebeb;
    text-align: center;
    left: 50%;
    margin: auto;
    margin-top: 1%;
    width: 50%;
    font-family: "Inter Light", sans-serif;
    font-size: 1.2rem;
}

/* Ylätunniste – tarttuu sivun yläreunaan */
.site-header {
    background-color: #101010;
    position: sticky;      /* Pysyy näkyvissä vieritettäessä */
    border-bottom: 1px solid #404040;
    top: 0;
    width: 100%;
    z-index: 100;          /* Pysyy muun sisällön päällä */
}

/* Navigaatiopalkin sisältö – flexillä vierekkäin */
.header-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Navigointilinkkien lista */
.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Linkkien perustyyli */
.nav-links a {
    color: #ebebeb;
    text-decoration: none;
    font-family: "Inter Light";
    font-weight: 500;
    font-size: 1.5rem;
    padding: 0.4rem 0;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: ease-in-out, 0.5s;
}

/* Yläpalkin hover */
nav a:hover {
    color: #0077ff;
    border-bottom: 1px solid #0077ff;
}

/* Aktiivisen sivun linkki (sininen alaviiva) */
nav a.active {
    border-bottom: 2px solid #0077ff;
}

/* Yhteystietolinkkien osio */
.contact-links {
    margin-top: 3%;
}

.contact-links a {
    color: #0077ff;
    text-align: center;
    left: 50%;
    width: 80%;
    margin: auto;
    margin-top: 1%;
    font-size: 2rem;
    text-decoration: none;
    transition: ease-in-out, 0.2s;
}

/* LinkedIn-linkille hover */
div a:hover {
    border-bottom: 1px solid #0077ff;
}

/* Kuvakontti 1 */
.image-container {
    margin: auto;
    margin-top: 2%;
    width: 45%;
    overflow: hidden;
    background-color: #151515;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #404040;
}

/* Kuvakontti 2 – melkein sama */
.image-container2 {
    margin: auto;
    margin-top: 2%;
    width: 45%;
    left: 50%;
    overflow: hidden;
    background-color: #151515;
    align-items: center;
}

.image-container2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #404040;
    margin-bottom: 3%;
}

/* Nappi  */
.button1 {
    display: block;
    width: clamp(150px, 15%, 200px);
    align-items: center;       /* Ei tee mitään display: block -elementille */
    text-align: center;
    left: 50%;
    margin: 2% auto 2% auto;
    background-color: #0077ff;
    color: #ebebeb;
    font-size: 1rem;
    border: none;
    padding: 8px 0;
    border-radius: 15px;
    text-decoration: none;
    transition: ease-in-out 0.5s;
}
/*Napin hover*/
.button1:hover {
    background-color: #ebebeb;
    color: #101010;
    box-shadow: 0 0 10px #ebebeb;
}

/* Responsiivisuus – alle 680px leveällä näytöllä */
@media (max-width: 680px) {
    .header-container {
        flex-direction: column;   /* Napit allekkain */
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .nav-links {
        justify-content: center;
        gap: 1.2rem;
    }

    /* Lisätään marginaaleja otsikoille */
    h1 {
        margin-top: 5%;
    }
    h2 {
        margin-top: 5%;
    }
    h3 {
        margin-top: 5%;
    }
    p {
        margin-top: 5%;
        width: 80%;               /* Leveämpi mobiilissa */
    }

    .button1 {
        margin-top: 5%;
        margin-bottom: 10%;
    }

    .image-container {
        margin-top: 5%;
        width: 80%;
    }
    .image-container2 {
        margin-top: 5%;
        width: 80%;
        padding-bottom: 5%;
    }
}