/* 1. VARIABLER OG GRUNDSTIL */
:root {
    --bg-color: #0A0A0A;
    --text-color: #FDFDFD;
    --accent-color: #E65100; /* Hermès Orange */
    --secondary-text: #757575;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Inter', sans-serif; 
    padding: 0 5%; 
    overflow-x: hidden; 
}

.section-padding { 
    padding: 120px 0; 
}

/* 2. NAVIGATION */
.main-nav { 
    display: flex; 
    justify-content: space-between; 
    padding: 30px 0; 
    align-items: center; 
    position: relative; 
    z-index: 10; 
}

.logo { 
    font-weight: 700; 
    font-size: 1.2rem; 
}

.menu-toggle { 
    font-weight: 600; 
    cursor: pointer; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.nav-right-wrap {
    display: flex;
    align-items: center;
    gap: 25px;
}

.language-switch {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.language-switch a {
    text-decoration: none;
    color: var(--secondary-text);
    transition: color 0.3s ease;
}

.language-switch a:hover {
    color: var(--accent-color);
}

.language-switch .active {
    color: var(--text-color);
    cursor: default;
}

.language-switch span:nth-child(2) {
    margin: 0 5px;
    color: #333; /* Farven på delekanten | */
}
/* 3. MASSIVE TITLER OG HERO */
.section-title, h2 {
    text-align: center;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 60px;
    line-height: 1;
}

.hero { 
    margin: 20vh auto; 
    text-align: center; 
    max-width: 1100px; 
}

.hero h1 { 
    font-size: clamp(2.5rem, 9vw, 6.5rem); 
    line-height: 1.05; 
    letter-spacing: -3px; 
    margin-bottom: 30px; 
}

#typewriter { 
    color: var(--accent-color); 
    border-right: 3px solid; 
min-width: 14ch;
}

.sub-text { 
    font-size: clamp(1.1rem, 3vw, 1.5rem); 
    color: var(--secondary-text); 
    max-width: 600px; 
    margin: 0 auto; 
}

/* 4. WORK GRID & INTERAKTIVE OVERLAYS */
.work-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 80px; 
}

.project-card {
    text-decoration: none;
    color: inherit;
}

.image-container { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 16/10; 
    background: #151515; 
    border-radius: 4px; 
}

.image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition-smooth); 
}

.view-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(10, 10, 10, 0.8); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: var(--transition-smooth); 
    backdrop-filter: blur(5px);
}

.view-btn { 
    border: 1px solid var(--accent-color); 
    background: var(--accent-color); 
    color: #fff; 
    padding: 15px 30px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.project-card:hover .view-overlay { 
    opacity: 1; 
}

.project-card:hover img { 
    transform: scale(1.05); 
}

.project-info { 
    text-align: center; 
    margin-top: 25px; 
}

.project-info h3 { 
    font-size: 2rem; 
    margin-bottom: 5px; 
}

/* 5. ABOUT SEKTION (BALANCERET TEKSTSTØRRELSE) */
.about-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
}

.about-image img { 
    width: clamp(200px, 30vw, 350px); 
    height: clamp(200px, 30vw, 350px); 
    border-radius: 50%; 
    border: 3px solid var(--accent-color); 
    object-fit: cover; 
    margin-bottom: 40px; 
}

.about-text p { 
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); /* Nedjusteret størrelse for elegance */
    line-height: 1.6; 
    color: var(--text-color); 
    margin-bottom: 40px; 
    max-width: 700px; /* Smallere boks for bedre læsbarhed */
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cv-download-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    padding: 15px 35px; 
    border: 1px solid var(--accent-color); 
    color: var(--accent-color); 
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: var(--transition-smooth); 
}

.cv-download-btn:hover { 
    background: var(--accent-color); 
    color: white; 
}
.timeline-container {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    padding: 60px 0;
}

/* Den vertikale midterlinje */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #222; /* Diskret mørk linje */
}

/* TIMELINE ITEMS */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
    position: relative;
    margin-bottom: 80px;
    width: 50%; /* Fylder halvdelen på desktop */
    box-sizing: border-box;
}

/* Hvert andet punkt rykkes til højre */
.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50px;
    margin-left: 50%;
}

/* DOTS (De orange knudepunkter) */
.timeline-dot {
    position: absolute;
    right: -7px; /* Placeret præcis på midterlinjen */
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    top: 5px;
    box-shadow: 0 0 10px rgba(230, 81, 0, 0.4);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
    right: auto;
}

/* CONTENT BOX */
.timeline-content {
    width: 100%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.timeline-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 12px;
    opacity: 0.9;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.6;
    display: block;
}

/* ANBEFALINGS BOKS (SOCIAL PROOF)*/
.recommendation-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(230, 81, 0, 0.03);
    border-left: 3px solid var(--accent-color);
    font-style: italic;
    text-align: left !important; /* Altid venstrestillet for læsbarhed */
    border-radius: 0 4px 4px 0;
}

.recommendation-box p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: var(--text-color);
    margin-bottom: 12px !important;
    opacity: 0.85;
}

.ref-author {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-style: normal;
}
/* 6. SKILLS */
.skills-detailed-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.skill-item { 
    background: #111; 
    padding: 50px; 
    border: 1px solid #222; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: var(--transition-smooth); 
}

.skill-item:hover { 
    border-color: var(--accent-color); 
    transform: translateY(-10px); 
}

.skill-icon img { 
    width: 60px; 
    height: 60px; 
    margin-bottom: 20px; 
}

.skill-info h3 { 
    font-size: 1.8rem; 
    color: var(--accent-color); 
    margin-bottom: 15px; 
}

/* 7. CONTACT FORM (CENTERED & NO RESIZE TEXTAREA) */
.contact-container { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 
}

.contact-container h2 { 
    font-size: clamp(4rem, 15vw, 9rem); 
    margin-bottom: 20px; 
}

.input-group { 
    position: relative; 
    margin-bottom: 60px; 
    width: 100%; 
}

.input-group input, 
.input-group textarea { 
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 2px solid #222; 
    color: #fff; 
    padding: 20px 0; 
    outline: none; 
    font-size: 1.5rem; 
    text-align: center;
    font-family: inherit;
    resize: none; /* FJERNER RESIZE HÅNDTAG */
}

.input-group textarea {
    height: 150px;
    padding-top: 40px;
    overflow-y: auto;
}

.input-group label { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    top: 20px; 
    color: var(--secondary-text); 
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    pointer-events: none; 
    font-size: 1.2rem; 
}

/* Floating Label Animation */
.input-group input:focus ~ label, 
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label,
.input-group:focus-within label { 
    top: -30px; 
    font-size: 0.9rem; 
    color: var(--accent-color); 
    transform: translateX(-50%) scale(0.9);
}

.input-group input:focus, 
.input-group textarea:focus {
    border-bottom: 2px solid var(--accent-color);
}

.submit-btn { 
    border: 1px solid var(--accent-color); 
    background: transparent; 
    color: var(--accent-color); 
    padding: 15px 50px; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: var(--transition-smooth); 
    margin-top: 40px;
}

.submit-btn:hover { 
    background: var(--accent-color); 
    color: white; 
}

/* 8. FOOTER */
.site-footer { 
    margin-top: 100px; 
    padding: 80px 0 40px; 
    border-top: 1px solid #222; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 60px; 
    text-align: center; 
}

.footer-label { 
    display: block; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--secondary-text); 
    margin-bottom: 20px; 
}

.footer-links { 
    list-style: none; 
}

.footer-links a { 
    color: var(--text-color); 
    text-decoration: none; 
    font-size: 1.5rem; 
    display: block; 
    margin-bottom: 15px; 
    font-weight: 600; 
}

.footer-links a:hover { 
    color: var(--accent-color); 
}

.back-to-top { 
    margin: 40px auto 0; 
    background: transparent; 
    border: 1px solid #333; 
    color: white; 
    padding: 15px 30px; 
    cursor: pointer; 
    font-weight: 600;
}

/* 9. MENU OVERLAY */
.menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #000; 
    z-index: 1000; 
    transform: translateY(-100%); 
    transition: var(--transition-smooth); 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

.menu-overlay.active { 
    transform: translateY(0); 
}

.close-btn { 
    position: absolute; 
    top: 30px; 
    right: 5%; 
    font-weight: 600; 
    text-transform: uppercase; 
    cursor: pointer; 
    color: var(--accent-color); 
    font-size: 1.2rem; 
}

.overlay-nav a { 
    display: block; 
    font-size: clamp(3rem, 12vw, 6rem); 
    color: #fff; 
    text-decoration: none; 
    margin: 20px 0; 
    font-weight: 700; 
}

/* 10. CURSOR & MEDIA QUERIES */
.cursor { 
    width: 15px; 
    height: 15px; 
    border: 1px solid var(--accent-color); 
    border-radius: 50%; 
    position: fixed; 
    pointer-events: none; 
    z-index: 9999; 
}

@media (min-width: 900px) {
    body { padding: 0 10%; }
    .work-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; text-align: left; }
    .back-to-top { margin: 0 0 0 auto; }
}
/* MOBIL TILPASNING (RESPONSIVE) */
@media (max-width: 800px) {
    .timeline-container::before {
        left: 20px; /* Flyt linjen til venstre */
    }

    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .timeline-dot {
        left: 13px !important;
        right: auto !important;
    }

    .timeline-content {
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
    }
}