/* Nulstilling og grundlæggende opsætning */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fafafa; /* Meget lys, blød grå i stedet for hård hvid */
    color: #333333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Centreret container der holder indholdet samlet */
.container {
    max-width: 800px; /* Gør siden smal og nem at læse */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

nav a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #000;
}

/* --- Velkomst (Hero) --- */
.hero {
    margin: 60px 0 80px 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    font-weight: 300;
}
/* --- Hero indhold (Billede og Tekst) --- */
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Afstand mellem billede og tekst */
    margin-bottom: 40px;
}

.profile-image img {
    width: 150px; /* Juster størrelsen på dit billede her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 50%; /* Gør billedet helt rundt */
    border: 3px solid #111; /* En mørk kant om billedet */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Gør det pænt på mobilen (stabler billede og tekst) */
@media (max-width: 600px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Sociale Links Knapper --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 600px) {
    .social-links {
        justify-content: center;
    }
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* GitHub Knap */
.github-btn {
    background-color: #24292e; /* Standard GitHub farve */
    color: #fff;
    border: 1px solid #24292e;
}

.github-btn:hover {
    background-color: #111;
    color: #fff; /* Sikrer at teksten ikke bliver mørk ved hover */
}

/* LinkedIn Knap */
.linkedin-btn {
    background-color: #0077b5; /* Standard LinkedIn farve */
    color: #fff;
    border: 1px solid #0077b5;
}

.linkedin-btn:hover {
    background-color: #005582;
    color: #fff;
}

/* --- Projekter --- */
.project-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #111;
}

.project-info p {
    color: #666;
    margin-bottom: 20px;
}

.link-btn {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.link-btn:hover {
    opacity: 0.6;
}

/* --- Footer --- */
footer {
    border-top: 1px solid #eaeaea;
    padding: 40px 0;
    margin-top: 60px;
    color: #888;
    font-size: 0.8rem;
}
/* --- Om Mig --- */
.about {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #111;
}

.about-text p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #111;
}

/* Opsætning af liste med færdigheder */
.skills-list {
    list-style-type: none;
}

.skills-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #111; /* En skarp, professionel kant i siden */
    color: #444;
}

.skills-list strong {
    color: #111;
}
/* --- Design til selve knappen --- */
.theme-toggle {
    background: transparent;
    border: 1px solid #ccc;
    color: inherit;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 20px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: #eaeaea;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .container header,
body.dark-mode .container footer {
    border-color: #333;
}

body.dark-mode .hero h1,
body.dark-mode .project-info h2,
body.dark-mode nav a:hover {
    color: #ffffff;
}

body.dark-mode nav a,
body.dark-mode .hero p,
body.dark-mode .project-info p {
    color: #aaaaaa;
}

body.dark-mode .project-card {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .project-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: #555;
}

body.dark-mode .tag {
    background-color: #333;
    color: #ccc;
}

body.dark-mode .link-btn {
    color: #fff;
    border-bottom-color: #fff;
}

body.dark-mode .theme-toggle {
    border-color: #555;
    color: #fff;
}

body.dark-mode .theme-toggle:hover {
    background-color: #333;
}
body.dark-mode .about {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .about h2,
body.dark-mode .about h3,
body.dark-mode .skills-list strong {
    color: #ffffff;
}

body.dark-mode .about-text p,
body.dark-mode .skills-list li {
    color: #aaaaaa;
}

body.dark-mode .skills-list li {
    background-color: #2a2a2a;
    border-left-color: #fff;
}
/* Dark Mode rettelser for Hero sektionen */
body.dark-mode .profile-image img {
    border-color: #fff; /* Gør billedets kant hvid i dark mode */
}

body.dark-mode .github-btn {
    background-color: #ffffff;
    color: #24292e;
    border-color: #ffffff;
}

body.dark-mode .github-btn:hover {
    background-color: #cccccc;
    color: #111;
}
/* --- CV Modal Styling --- */
.modal {
    display: none; /* Skjult som standard */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Mørk gennemsigtig baggrund */
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    width: 80%;
    height: 90%;
    border-radius: 8px;
    overflow: hidden;
}

.close-cv {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.cv-btn {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
}

/* Dark mode tilpasning til modalen */
body.dark-mode .modal-content {
    background-color: #1e1e1e;
}

body.dark-mode .close-cv {
    color: #fff;
}
