/* 🌑 Generell stil for hele nettsiden */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: #050508; /* Ytterkantene */
    color: white;
}


/* 📌 Navigasjonsmeny */
.navbar {
    width: 100%;
    background-color: #08080c; /* Mørk navbar */
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #1b1c1d;
}

/* 🔗 Liste i navbar */
.nav-list {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #ffffff2f; /* Gullfarge ved hover */
}

/* 📏 Skillelinje under navbar */
.nav-separator {
    width: 100%;
    height: 3px;
    background-color: #050508;
    position: fixed;
    top: 55px;
    left: 0;
    z-index: 999;
}

/* 📱 Responsiv justering for mobil */
@media screen and (max-width: 768px) {
    .container {
        width: 90vw;
        margin-top: 80px;
    }

    .nav-list {
        gap: 20px;
    }

    .nav-list a {
        font-size: 18px;
    }
}


/* Boksen i midten */
.hovedboks {
    width: 70vw;
    max-width: 700px;
    margin: 75px auto;
    background-color: #1b1c1d;
    min-height: 200px; /* Kortere boks */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 20px;
    box-sizing: border-box;
}

.hovedboks h1 {
font-size: clamp(14px, 1.5vw, 20px); /* Skalerer med skjermen */
    margin-bottom: 15px;
}

.hovedboks p {
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1.6;
}

/* All tekst i .hovedboks er midtstilt */
.hovedboks {
    text-align: center;
}

 /*Footer, aka bunnen på siden */
.footer {
    background-color: #08080c; /* Mørk footer */
    color: #aaa;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    margin-top: 40px;
    border-top: 2px solid #1b1c1d;
}

.footer small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666; /* Litt lysere grå for humor/selvironi-effekt */
}

/*HJEM*/


.bilde-wrapper {
    width: 100%;
    max-width: 600px;
    height: 70%; /* Vis bare 70% av bildet (altså cropper ca. 30% fra bunnen) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.profilbilde {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.bilde-wrapper {
    position: relative; /* Gjør det mulig å plassere tekst over bildet */
    width: 100%;
    max-width: 600px;
    height: 70%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}


/*OM MEG*/

.ommeg-tekst {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    color: #ddd;
}

.ommeg-tekst a {
    color: #fff;
    text-decoration: underline;
}

/*Erfaring*/

.erfaring-tekst {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    color: #ddd;
}

.erfaring-liste {
    background-color: #121214;
    border: 1px solid #2c2c2f;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.erfaring-rad {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.erfaring-rad .emne {
    font-weight: bold;
    color: #fff;
    font-size: 18px;
}

.erfaring-rad .beskrivelse {
    font-size: 16px;
    color: #bbb;
    margin-top: 4px;
}

/*Kontakt*/

.kontakt-innhold {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
}

.kontakt-innhold ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.kontakt-innhold li {
    margin-bottom: 12px;
}

.kontakt-innhold a {
    color: #fff;
    text-decoration: underline;
}