/* Grunnleggende styling */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

/* Header-styling */
header {
    background-color: #00274d;
    color: #fff;
    padding: 10px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Seksjoner */
main {
    padding: 20px;
}

.introduction {
    margin-bottom: 20px;
}

.introduction .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.introduction .profile-image {
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin-left: 20px;
}

.highlights, .future {
    margin: 20px 0;
}

h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: #00274d;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    color: #333;
}

/* Footer-styling */
footer {
    background-color: #00274d;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}
.social-media {
    text-align: center;
    margin: 20px 0;
}

.social-media h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #00274d;
    padding: 10px 20px;
    border: 2px solid #00274d;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.social-links a:hover {
    background-color: #00274d;
    color: #fff;
}
.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: #00274d;
    background-color: #f4f4f9;
    padding: 10px 20px;
    border: 2px solid #00274d;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.social-links a i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.social-links a:hover {
    background-color: #00274d;
    color: #fff;
    transform: scale(1.05);
}
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
}

.work-history {
    background-color: #f9f9f9;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 200px;
    text-align: left;
}

.work-history h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #00274d;
}

.work-history ul {
    list-style: none;
    padding: 0;
}

.work-history li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}
/* Responsiv design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-history {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .introduction .content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-image {
        margin: 0 auto;
        width: 120px;
    }

    .work-history {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 40px;
    }

    .header-content {
        align-items: center;
    }

    .profile-image {
        width: 100px;
    }

    .work-history {
        font-size: 0.8rem;
    }

    nav ul li {
        margin: 5px 0;
    }
}
.introduction h1 {
    text-align: center;
    margin-top: 20px; /* Juster avstand etter behov */
}
@media (max-width: 480px) {
    body {
        padding: 0 10px; /* Gi litt innrykk for bedre lesbarhet */
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        width: 100px; /* Juster størrelse på profilbildet */
        height: auto;
        margin: 10px auto; /* Sentraliser bildet */
    }

    .work-history {
        width: 100%; /* Sørg for at arbeidserfaring-boksen fyller bredden */
        font-size: 0.8rem; /* Reduser tekststørrelse */
        padding: 10px;
        margin-top: 20px;
    }

    .introduction h1 {
        font-size: 1.5rem; /* Gjør overskriften mindre */
        text-align: center; /* Sentraliser teksten */
    }

    .introduction p {
        font-size: 1rem; /* Reduser tekststørrelse for beskrivelsen */
        text-align: center; /* Sentraliser beskrivelsen */
    }

    nav ul {
        flex-direction: column; /* Endre navigasjonen til vertikal */
        align-items: center;
    }

    nav ul li {
        margin: 10px 0; /* Øk avstanden mellom linker */
    }

    .highlights, .future {
        margin: 10px 0; /* Juster seksjonsavstand */
    }
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}
/* Prosjekt-boks styling */
.project-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.project-box {
    background-color: #f4f4f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 80%;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-box h1 {
    color: #00274d;
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-box h2 {
    color: #333;
    margin-top: 20px;
    font-size: 1.5rem;
}

.project-box p, .project-box ul {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* Bilder/Galleri styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.gallery img {
    width: 150px;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.1);
}
/* Full høyde layout */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Sørg for at main fyller mellomrommet */
    padding: 20px;
}

.fixed-footer {
    background-color: #00274d;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    position: relative;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card img {
    max-width: 100%;
    border-radius: 10px;
}

.project-card:hover {
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; /* Sørg for at modal vises når den er i DOM */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* For støtte for lange modalinnhold */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
}

.modal-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-images img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.modal-images img:hover {
    transform: scale(1.1);
}

/* Responsiv styling */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-images img {
        max-width: 80px;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0 10px;
    }

    .modal-images img {
        max-width: 70px;
        max-height: 70px;
    }
}
/* Grid-container for projects */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Project-card styling */
.project-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(25% - 20px); /* Fire i bredden på store skjermer */
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, height 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-card h2 {
    font-size: 1.2rem;
    margin: 10px 0;
    min-height: 48px; /* Sikre jevn høyde for titler */
}

.project-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1; /* Fyller ut mellomrom for jevn høyde */
    margin-bottom: 15px;
}

.project-card button {
    background: #00274d;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-card button:hover {
    background: #004a80;
}

/* Responsiv tilpasning */
@media (max-width: 1200px) {
    .project-card {
        width: calc(33.33% - 20px); /* Tre i bredden */
    }
}

@media (max-width: 768px) {
    .project-card {
        width: calc(50% - 20px); /* To i bredden */
    }
}

@media (max-width: 480px) {
    .project-card {
        width: 100%; /* En i bredden */
    }
}
.project-card img {
    width: 100%;
    height: 400px; /* Fast høyde */
    object-fit: cover; /* Beskjærer bildet for å passe til dimensjonene */
    border-radius: 10px;
    display: block;
}
.modal-images img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.modal-images img:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.fullscreen-content {
    position: relative;
    max-width: 90%; /* Tilpasses bredde */
    max-height: 90%; /* Tilpasses høyde */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%; /* Sørger for at bildet aldri overstiger skjermen */
    border-radius: 10px; /* Valgfritt for å gi myke kanter */
    object-fit: contain; /* Bevarer bildeforhold uten å beskjære */
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}
.modal-images img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.modal-images img:hover {
    transform: scale(1.5); /* Øker størrelsen til maks 400px */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.fullscreen-content {
    position: relative;
    max-width: 90%; /* Justerer bredde til skjerm */
    max-height: 90%; /* Justerer høyde til skjerm */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%; /* Bildet tilpasses skjermstørrelse */
    border-radius: 10px;
    object-fit: contain; /* Bevarer bildeforhold */
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}
.fullscreen-content {
    position: relative;
    max-width: 90%; /* Justerer bredde til skjerm */
    max-height: 90%; /* Justerer høyde til skjerm */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%; /* Bildet tilpasses skjermstørrelse */
    border-radius: 10px;
    object-fit: contain; /* Bevarer bildeforhold */
}

.fullscreen-content .prev-image,
.fullscreen-content .next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    border-radius: 5px;
}

.fullscreen-content .prev-image {
    left: 10px;
}

.fullscreen-content .next-image {
    right: 10px;
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}
.image-overlay {
    position: relative;
    display: inline-block;
}

.image-overlay img {
    max-width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-overlay .pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover .pause-icon {
    opacity: 1;
}
/* Header styling */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #00274d;
    color: white;
}

.logo {
    width: 50px;
    height: auto;
}

.header-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1; /* Sørger for at tittelen fyller mellomrommet */
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    text-decoration: underline;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label {
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #00274d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #004a80;
}
.social-links a i.fa-envelope {
    color: #d44638; /* Fastmail-tema farge */
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal {
    display: none; /* Skjult som standard */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label {
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #00274d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #004a80;
}
/* Sosiale medier farger */
.social-links a i.fa-facebook {
    color: #1877f2; /* Facebook-blå */
}

.social-links a i.fa-tiktok {
    color: #69c9d0; /* TikTok-lyseblå */
}

.social-links a i.fa-github {
    color: #171515; /* GitHub-svart */
}

.social-links a i.fa-discord {
    color: #7289da; /* Discord-blå */
}

.social-links a i.fa-envelope {
    color: #d44638; /* Fastmail-rød */
}

/* Generell styling for sosiale medier */
.social-links a i {
    transition: color 0.3s ease;
}

.social-links a i:hover {
    color: #00274d; /* Hover-effekt */
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; /* Sørger for at modal er synlig */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* For å støtte lange innhold */
}

.modal.hidden {
    display: none; /* Skjul modal når den har klassen "hidden" */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    margin: 0;
    color: #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00274d;
    color: white;
    padding: 10px 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main.split-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.left-column {
    flex: 2;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.profile-image {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.work-history h3 {
    color: #00274d;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #00274d;
    color: white;
}
.modal video {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin-top: 10px;
}
.modal-video {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-video video {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.video-modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    text-align: center;
}

.video-modal video {
    width: 100%;
    border-radius: 10px;
}

.close-video-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}
