/* Nulstil standardindstillinger */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NY: Sikrer smooth-scroll for hele siden */
html {
    scroll-behavior: smooth;
}

/* --- Typografi og Baggrund --- */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #0A0A0A; /* Mørk, næsten sort baggrund */
    color: #F0F0F0; /* Lys tekst for kontrast */
}

/* --- Generelt Layout --- */
.section {
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh; /* Sikrer at hver sektion fylder mindst skærmen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 50px; /* NY: Plads til sticky nav-bar */
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

h1 {
    font-size: 3em;
    color: #00A693; /* Teknisk/moderne accentfarve: Teal/Cyan */
}

h2 {
    font-size: 1.5em;
    font-weight: 300;
    color: #AAAAAA;
    margin-bottom: 25px;
}

h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #F0F0F0;
}

/* Separatoren - den "fancy" detalje */
.divider {
    width: 60px;
    height: 3px;
    background-color: #00A693; /* Accentfarve */
    margin: 10px auto 30px;
    border-radius: 2px;
}

/* --- Sektion 1: INTRO (Helt-sektionen) --- */
#intro {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), /* Mørk overlay for bedre tekstlæselighed */
        url('baggrund.PNG') no-repeat center center/cover; /* Dit baggrundsbillede */
    background-color: #0A0A0A; /* Fallback farve hvis billede ikke loader */
    color: #F0F0F0; /* Sikrer at tekst på dette mørke område er lys */
    position: relative; /* Nødvendig for overlay */
    z-index: 1; 
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Rundt billede */
    object-fit: cover;
    object-position: top; /* Korrektion for at vise hovedet */
    margin-bottom: 20px;
    border: 5px solid #1a1a1a; /* En lille ramme for dybde */
    box-shadow: 0 0 20px rgba(0, 166, 147, 0.5); /* Subtil glød fra accentfarven */
}

.tagline {
    font-style: italic;
    color: #999999;
    margin-top: 15px;
}

/* --- Sociale Ikoner --- */
.social-links {
    margin-top: 30px;
}

.social-links a {
    color: #444444; /* Dæmpet farve */
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #00A693; /* Accentfarve ved hover */
    transform: scale(1.1);
}

/* --- Sektion 3: Mørk sektion for at skabe kontrast --- */
.dark-section {
    background-color: #1a1a1a;
}

.education-block {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid #00A693;
    text-align: left;
    background-color: #111111;
}

.education-block h4 {
    margin-top: 0;
    color: #F0F0F0;
}

.small-text {
    font-size: 0.8em;
    color: #999999;
}

.skills-title {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #00A693;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skills-list li {
    background-color: #2c2c2c;
    color: #F0F0F0;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.3s; 
}

.skills-list li:hover {
    background-color: #00A693;
    transform: scale(1.05);
}


/* --- Sektion 4: KNAP (Call-to-Action) --- */
.contact-button {
    display: inline-block;
    background-color: #00A693; /* Accentfarve */
    color: #0A0A0A; /* Mørk tekst for kontrast */
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 166, 147, 0.4);
    border: none; /* Tilføjet for <button> elementet */
    cursor: pointer; /* Tilføjet for <button> elementet */
    font-family: 'Montserrat', sans-serif; /* Sikrer fonten på knappen */
    font-size: 1em;
}

.contact-button:hover {
    background-color: #00E0C5; /* Lidt lysere hover-farve */
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background-color: #000000;
    padding: 20px;
    font-size: 0.8em;
    color: #555555;
}

/* --- ANIMATIONER --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content,
.content-wrapper {
    animation: fadeIn 0.8s ease-out forwards;
}

/* --- NY: STICKY NAVIGATION (PUNKT 1) --- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9); /* Lidt gennemsigtig mørk baggrund */
    backdrop-filter: blur(5px); /* "Frostet glas" effekt */
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sticky-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-nav li {
    display: inline-block;
    margin: 0 15px;
}

.sticky-nav a {
    color: #F0F0F0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    transition: color 0.3s;
}

.sticky-nav a:hover {
    color: #00A693; /* Accentfarve */
}

/* --- NY: KONTAKTFORMULAR (PUNKT 3) --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Mellemrum mellem felter */
    max-width: 600px;
    width: 100%; /* Sørger for at den fylder på mobil */
    margin: 30px auto 15px;
}

#contact-form input,
#contact-form textarea {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #F0F0F0;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #00A693; /* Accentfarve ved fokus */
}

.form-note {
    font-size: 0.9em;
    color: #888;
}

.form-note a {
    color: #00A693;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* --- NY: STICKY LINKEDIN KNAP (PUNKT 4) --- */
.sticky-linkedin {
    display: none; /* Skjult som standard */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00A693;
    color: #0A0A0A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 50px; /* Vertikal centrering af ikon */
    z-index: 998;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, background-color 0.3s;
}

.sticky-linkedin:hover {
    transform: scale(1.1);
    background-color: #00E0C5;
    color: #0A0A0A; /* Sørger for at farven ikke ændres */
}


/* --- Responsivitet (Mobile-first tilpasninger) --- */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.2em;
    }

    .section {
        padding: 50px 15px;
        min-height: auto;
        scroll-margin-top: 40px; /* NY: Lavere margin til mobil nav-bar */
    }

    .skills-list li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    /* NY: Juster sticky-nav til mobil */
    .sticky-nav {
        height: 40px;
        padding: 10px 0;
    }
    
    .sticky-nav li {
        margin: 0 8px;
    }

    .sticky-nav a {
        font-size: 0.85em;
    }

    /* NY: Vis sticky LinkedIn knap på mobil */
    .sticky-linkedin {
        display: block;
    }
}