/* ---------- Grundopsætning ---------- */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #f5f1eb;
    background-color: #14110f;
}

/* ---------- Header ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #14110f;
    border-bottom: 1px solid #22263f;
    border-color: #2a241f;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff9f1c;
}

/* ---------- Navigation ---------- */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #f5f1eb;
    font-weight: 500;
}

nav a:hover {
    color: #ff9f1c;
}

/* ---------- Hero ---------- */
#hero {
    text-align: center;
    padding: 6rem 2rem;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

#hero p {
    font-size: 1.2rem;
    color: #555;
}

/* ---------- Sektioner ---------- */
section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ff9f1c;
}

/* ---------- Kompetencer (Skills) ---------- */
#kompetencer ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    list-style: none;
    padding: 0;
    gap: 1rem;
}

#kompetencer li {
    background-color: #1f1a17;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    border-bottom: 3px solid #f77f00;
}

/* ---------- Portfolio ---------- */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project {
    background-color: #1f1a17;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #ff9f1c;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project h3 {
    margin-top: 0;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ---------- Kontakt ---------- */
#kontakt {
    text-align: center;
}

#kontakt a {
    color: #ff9f1c;
    text-decoration: none;
    font-weight: 500;
}

#kontakt a:hover {
    color: #f77f00;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #14110f;
    border-top: 1px solid #2a241f;
}

/* ---------- Responsiv ---------- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2rem;
    }
}
/* ---------- Kontaktformular ---------- */
.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 500;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #2a241f;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f77f00;
}

.contact-form button {
    margin-top: 1rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #f77f00;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #f77f00;
    transform: translateY(-2px);
}/* ---------- Portfolio cards ---------- */
.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    display: block;
}

.project-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card img {
    transition: transform 0.3s ease;
}

/* ---------- Modal (læs mere) ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal:target {
    display: flex;
}

.modal-content {
    background: #1f1a17;
    color: #f5f1eb;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    text-decoration: none;
    color: #ff9f1c;
}
/* ---------- Fullscreen video divider ---------- */
#video-divider {
    height: 70vh;
    overflow: hidden;
}

#video-divider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#video-divider {
    padding: 0;
    max-width: none;
    margin: 0;
}
#video-divider {
    position: relative;
}

#video-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 17, 15, 0.55);
    z-index: 1;
}


.video-intro {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.video-intro h1 {
    color: #f5f1eb;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.video-intro p {
    color: #c8bfb6;
    font-size: 1.1rem;
    max-width: 600px;
}
.intro-text {
    max-width: 500px;
}

/* ---------- Portræt ovenpå video ---------- */
#video-divider {
    position: relative;
}

.video-portrait {
    position: absolute;
    right: 6%;
    bottom: 0;
    height: 70%;
    width: auto;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    z-index: 2;
}
/* ---------- Scroll arrows ---------- */
.scroll-arrows {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scroll-arrows span {
    width: 30px;
    height: 30px;
    border-right: 4px solid #ff9f1c;
    border-bottom: 4px solid #ff9f1c;
    transform: rotate(45deg);
    opacity: 0;
    animation: arrowFade 1.6s infinite;
}

.scroll-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes arrowFade {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(45deg);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(8px) rotate(45deg);
    }
}



