body {
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 75, 122, 0.8), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(91, 33, 73, 0.8), transparent 55%),
        #0a0e14; 
    background-attachment: fixed; 
    min-height: 100vh;
    color: white;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    background-color: rgba(255, 255, 255, 0.05);
    width: fit-content;
    margin: 20px auto 60px auto;
    padding: 15px 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: 0.3s;
}

nav li {
    transition: transform 0.3s ease;
}

nav li:hover {
    transform: scale(1.1);
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, background 0.3s;
}

.card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.profile-details a {
    color: white; /* En lidt lysere farve til links så de kan ses */
    text-decoration: none;
}


footer {
    padding: 40px;
    font-size: 0.9rem;
    opacity: 0.6;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}

.cv-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}   

.cv-card-oval {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 30px 60px;
    max-width: 700px;
    width: 100%;
    transition: transform 0.3s ease;
}

.cv-card-oval:hover {
    transform: scale(1.02);
    background-color: rgba(255, 255, 255, 0.08);
}

.cv-top-row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: transparent;
    padding: 10px;
    border-radius: 50%;
    object-fit: contain;
}

.cv-titles {
    text-align: left;
}

.company-name {
    margin: 0;
    font-size: 1.5rem;
}

.job-title{
    margin: 2px 0;
    font-size: 1.1rem;
    color: white;
}

.cv-date {
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

.cv-description {
    text-align: left;
    line-height: 1.6;
    margin-top: 15px;
    padding-left: 5px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, boxshadow 0.3 ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    margin: 0 0 10px 0;
    color: white;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 2px solid #00c6ff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #1a1f26;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    color: white;
    text-align: left;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    left: 10px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa
}

.close-btn hover {
    color: white;
}

@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
        margin: 10px auto 30px auto;
    }

    nav ul{
        gap: 15px;
    }

    header h2, header p {
        padding: 0 20px;
        text-align: center;
    }

    header p {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .profile-details p {
        padding: 0 15px;
        word-break: break-word;
    }

    .cv.cv-description {
        text-align: center;
        padding: 0 10px;
        margin-top: 10px;
    }
 

    .cv-card-oval {
        padding: 20px;
        border-radius: 30px;
        width: 90%;
    }

    .cv-top-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cv-titles {
        text-align: center;
    }

    .company-logo {
        margin: 0 auto; 
    }

    .dashboard {
        gap: 10px;
    }

    .card {
        width: 120px;
        padding: 15px;
    }

    .profile-card {
        padding: 20px;
        max-width: 300px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    footer ul {
        flex-direction: column;
        gap: 10px;
    }

}