:root {
            --bg-color: #0f172a; 
            --surface: #1e293b;  
            --accent: #38bdf8;   
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border-light: rgba(255, 255, 255, 0.06);
            --modal-bg: rgba(15, 23, 42, 0.4);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body, html {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            height: 100%; 
            overflow: hidden;
            -webkit-font-smoothing: antialiased;
        }

        .demo-modal-overlay { 
            position: fixed; 
            inset: 0; 
            background: rgba(15, 23, 42, 0.8); 
            backdrop-filter: blur(25px); 
            -webkit-backdrop-filter: blur(25px); 
            z-index: 3000;
            display: flex; 
            justify-content: center; 
            align-items: center; 
            opacity: 0; 
            visibility: hidden; 
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        }
        .demo-modal-overlay.active { opacity: 1; visibility: visible; }
        .demo-modal-container { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; width: 90%; max-width: 1000px; height: 80vh; display: flex; flex-direction: column; box-shadow: 0 40px 80px rgba(0,0,0,0.6); transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; position: relative; }
        .demo-modal-overlay.active .demo-modal-container { transform: translateY(0) scale(1); }
        .demo-modal-header { 
            padding: 15px 20px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            border-bottom: 1px solid var(--border-light); 
            background: rgba(15, 23, 42, 0.95); 
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .demo-modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: var(--text-main); }
        .demo-close-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light); color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
        .demo-close-btn:hover { background: rgba(244, 63, 94, 0.1); color: #f43f5e; border-color: rgba(244, 63, 94, 0.3); }
        .demo-iframe { width: 100%; flex-grow: 1; border: none; background: #000; }
        
        .btn-demo { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; padding: 8px 16px; background: rgba(56, 189, 248, 0.1); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 10px; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
        .btn-demo:hover { background: rgba(56, 189, 248, 0.2); transform: translateY(-2px); }

.project-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto; /* Dette skubber nu knapperne i bund */
    padding-top: 15px; /* Sørger for afstand til teksten ovenover */
}


.project-action-buttons .btn-demo {
    margin-top: 0;
}

        .demo-modal-container.app-view { max-width: 420px; height: 85vh; max-height: 800px; border-radius: 36px; border: 8px solid #334155; }

      
      
              @media (max-width: 768px) { 
            .demo-modal-container, 
            .demo-modal-container.app-view { 
                width: 100vw !important; 
                height: auto !important; 
                max-width: none !important; 
                max-height: none !important;
                border-radius: 0 !important; 
                border: none !important; 
                position: fixed !important;
                inset: 0 !important; 
                transform: none !important;
            }
            .demo-modal-header {
                padding: 12px 15px;
                padding-top: max(12px, env(safe-area-inset-top));
                background: #0f172a;
            }
        }

      
        .top-nav {
            position: fixed;
            top: 0; left: 0; width: 100%;
            height: 70px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5%;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 50;
        }

        .logo-wrapper { display: flex; align-items: center; gap: 12px; text-decoration: none; }
        .nav-logo { width: 45px; height: auto; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5)); animation: pulseGlow 4s infinite alternate ease-in-out; }
        @media (min-width: 769px) { .nav-logo { display: none; } }

        @keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}
        
        .logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text-main); letter-spacing: -0.02em; }

        .nav-links { display: flex; gap: 30px; }
        .nav-links a { 
            color: var(--text-muted); 
            text-decoration: none; 
            font-size: 0.95rem; 
            font-weight: 500; 
            transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        }
        .nav-links a:hover { 
            color: var(--accent); 
            transform: translateY(-2px);
        }

        .scroll-container {
            height: 100dvh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            position: relative;
        }

        section {
            min-height: 100dvh;
            height: auto; 
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .hero { overflow: hidden; }
        
        .projects .section-content { padding-top: 35px; padding-bottom: 120px; justify-content: flex-start; }
        .contact { min-height: calc(100dvh - 70px); }
        .contact .section-content { padding-top: 45px; padding-bottom: 80px; justify-content: center; }

        .sticky-header {
            position: sticky;
            top: 70px; 
            width: 100%;
            padding: 8px 5%;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 10;
            
            font-family: 'Space Grotesk', sans-serif;
            /* Lidt mindre font-size så den ikke fylder så meget i kassen */
            font-size: clamp(1.5rem, 3.5vw, 2.2rem);
            font-weight: 700;
            letter-spacing: -0.04em;
            color: var(--text-main);
        }


        .section-content { padding: 100px 5% 40px 5%; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }

        .reveal {
            opacity: 0;
            transform: translateY(50px) scale(0.97); 
            transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
        }
      /* Sikrer at netop footeren ikke skubber sidens scroll-højde, når den er skjult */
        footer.reveal {
            transform: translateY(0) scale(0.97); 
        }
        footer.reveal.active {
            transform: translateY(0) scale(1);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .hero-content { align-items: center; text-align: center; position: relative; z-index: 2; }

        .hero-bg-logo {
            position: absolute; top: 50%; left: 50%; width: 120vw; max-width: none; z-index: 0; pointer-events: none; 
            animation: giantOrganicDrift 60s infinite ease-in-out;
        }

        @keyframes giantOrganicDrift {
    0%   { transform: translate(-50%, -50%) scale(0.9)  rotate(-3deg); opacity: 0.03; }
    50%  { transform: translate(-48%, -48%) scale(1.1)  rotate(3deg);  opacity: 0.12; }
    100% { transform: translate(-50%, -50%) scale(0.9)  rotate(-3deg); opacity: 0.03; }
}

        .hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.04em; }
        .hero h1 span { color: var(--accent); }
        .hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }
      
        .projects-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(350px, 500px)); 
            justify-content: center;
            gap: 30px; 
            max-width: 1100px;
            margin: 0 auto;
            width: 100%;
        }
        
        .project-card {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            overflow: hidden; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex; flex-direction: column; position: relative; z-index: 2;
        }
        
        .project-card:hover { 
            transform: translateY(-8px) scale(1.01); 
            border-color: rgba(56, 189, 248, 0.4);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5); 
        }

.project-img { 
            width: 100%; 
            height: 220px;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%); 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            border-bottom: 1px solid var(--border-light); 
            overflow: hidden; 
            position: relative;
        }
        
        .project-img img { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            object-position: top;
            transition: object-position 7s cubic-bezier(0.35, 0.30, 0.6, 1);}

        .project-card:hover .project-img img { 
            object-position: bottom; 
        }

        .project-img:empty::after { content: 'Billede Pladsholder'; color: rgba(255,255,255,0.2); font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }        
.project-info { 
    padding: 30px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

        .project-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin-bottom: 12px; }
        .project-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
      
        .contact-box-container {
            position: relative;
            width: 100%;
            max-width: 480px;
            min-height: 290px; 
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }

        .contact-form {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 15px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .contact-form.hidden {
            opacity: 0;
            transform: scale(0.95);
            pointer-events: none;
            position: absolute;
        }

        .contact-success-state {
            position: absolute;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 12px;
            opacity: 0;
            transform: scale(0.95);
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .contact-success-state.active {
            opacity: 1;
            transform: scale(1);
            pointer-events: auto;
        }

.paper-plane-svg {
            width: 65px;
            height: 65px;
            animation: floatPlane 1.8s infinite alternate ease-in-out;
            margin-bottom: 8px;
            filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4));
        }

        @keyframes floatPlane {
            0% { transform: translateY(0) rotate(-3deg); }
            100% { transform: translateY(-8px) rotate(4deg); }
        }

        .contact-form input:not([type="checkbox"]), 
.contact-form textarea { 
    width: 100%; 
    padding: 16px; 
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: var(--text-main); 
    border-radius: 14px; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    font-size: 1rem; 
    outline: none; 
    transition: all 0.3s; 
    resize: vertical; 
}

        .contact-form input:focus, 
        .contact-form textarea:focus { 
            border-color: var(--accent); 
            background: rgba(0, 0, 0, 0.5); 
            box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1); 
        }

        .contact-form input::placeholder, 
        .contact-form textarea::placeholder { 
            color: rgba(255, 255, 255, 0.2); 
        }

        .btn-submit { 
            width: 100%; 
            padding: 16px; 
            background: rgba(56, 189, 248, 0.1); 
            color: var(--accent); 
            border: 1px solid rgba(56, 189, 248, 0.2); 
            border-radius: 14px; 
            font-size: 1rem; 
            font-weight: 600; 
            text-transform: uppercase; 
            letter-spacing: 1px; 
            cursor: pointer; 
            transition: all 0.3s; 
        }

        .btn-submit:hover { 
            background: rgba(56, 189, 248, 0.2); 
            transform: translateY(-2px); 
        }
      

      
        @media (max-width: 768px) {
            .nav-links { display: none; }
            .projects-grid { grid-template-columns: 1fr; gap: 20px; }
            .projects .section-content { padding-top: 60px; padding-bottom: 80px; }
        }

        footer { margin-top: auto; padding: 30px 5%; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }
}
      
        .gateway-trigger { background: none; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
        .gateway-trigger:hover { color: var(--accent); }

        .modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); z-index: 999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        
        .gateway-card { background: var(--modal-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 28px; padding: 45px 35px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
        .modal-overlay.active .gateway-card { transform: translateY(0) scale(1); }
        .gateway-card h2 { color: var(--text-main); font-family: 'Space Grotesk', sans-serif; margin-bottom: 25px; }
        
input[type="text"].gateway-input,
input[type="password"] { width: 100%; padding: 16px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); border-radius: 14px; text-align: center; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 15px; outline: none; transition: all 0.3s; }
input[type="text"].gateway-input:focus,
input[type="password"]:focus { border-color: var(--accent); background: rgba(0,0,0,0.5); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1); }
      input::placeholder { color: rgba(255,255,255,0.2); letter-spacing: normal; }
        .error-msg { color: #f43f5e; background: rgba(244, 63, 94, 0.1); padding: 12px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(244,63,94,0.2); }

/* --- Clean Architecture: Inline Style Replacements --- */

/* Projekter */
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.projects-empty {
    text-align: center;
    color: var(--text-muted);
    width: 100%;
    grid-column: 1 / -1;
    padding: 60px;
}

@media (min-width: 1024px) {
    .projects-grid {
        max-width: 1400px; /* Øger den maksimale bredde så der er plads til 4 kolonner */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* Kontakt Sektion */
.contact-content-center {
    align-items: center;
    text-align: center;
}
.contact-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.contact-subtext {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.contact-email-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* --- Samtykke & GDPR Boks --- */
.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;             /* Tvinger den til at fylde hele formularens bredde */
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label {
    cursor: pointer;
    line-height: 1.4;
    flex-grow: 1;            /* Tvinger teksten til at fylde al den resterende plads ud til venstre/højre */
    flex-shrink: 1;
    flex-basis: 0%;
}

.gdpr-trigger {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 4px;
}

/* Success State */
.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--text-main);
}
.success-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* GDPR Modal & Login Modal */
.gdpr-card-custom {
    text-align: left;
    max-width: 450px;
}
.gdpr-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
}
.gdpr-body-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.btn-custom-modal {
    width: 100%;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-gdpr-close {
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}
.btn-login-submit {
    padding: 14px;
    border-radius: 14px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.contact-error-banner {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(244, 63, 94, 0.2);
    text-align: center;
    animation: shakeError 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}


:root {
    --menu-bg: rgba(30, 30, 32, 0.7); 
    --menu-border: rgba(255, 255, 255, 0.1);
    --item-color: rgba(255, 255, 255, 0.5);
    --item-active-color: rgba(255, 255, 255, 1);
    --indicator-bg: rgba(255, 255, 255, 0.15);
}

.pill-menu {
    display: none;
}

@media (max-width: 768px) {
    .pill-menu {
        display: flex;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--menu-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--menu-border);
        border-radius: 100px;
        padding: 6px;
        align-items: center;
        gap: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        z-index: 9999;
    }

    .active-indicator {
        position: absolute;
        top: 6px;
        left: 0;
        height: calc(100% - 12px);
        background: var(--indicator-bg);
        border-radius: 100px;
        z-index: 0;
        pointer-events: none;
        box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1), width 0.4s cubic-bezier(0.25, 1, 0.25, 1);
    }

    .menu-item {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        text-decoration: none;
        color: var(--item-color);
        border-radius: 100px;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s ease, transform 0.2s ease;
        cursor: pointer;
    }

    .menu-item svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.3s ease;
    }

    .menu-item:hover { color: var(--item-active-color); }
    .menu-item:active { transform: scale(0.95); }
    .menu-item.active { color: var(--item-active-color); }
    .menu-item.active svg { transform: translateY(-2px) scale(1.1); }

    .contact .section-content {
        padding-bottom: 110px;
    }
}

@media (max-width: 480px) {
    .menu-item span { display: none; } /* Vis kun ikoner på meget små skærme */
    .menu-item { padding: 10px 14px; }
    .pill-menu { bottom: 20px; }
}


body.modal-open .pill-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.pill-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
