@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Clicker+Script&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* colors */
    /* --bg: #eeece1; */
    --bg: #E0DCD3;
    --nav: #A58289;
    --footer-bg: #5C3A4B;
    --cta: #5f6f97;
    --cta: #7a88ac;

    --white: #fff;
    --text-dark: #2C2226;
    --box-shadow: #735a5f;



    /* New color palette version */
    /* --bg: #E0DCD3;
    --nav: #a996ae;
    --footer-bg: #4A5B6F;
    --cta: #4A5B6F;
    --cta: #d49e61;
    --white: #fff;
    --text-dark: #4A5B6F;
    --box-shadow: #566777; */


    /* resuable variables */
    --card-radius: 16px;
    --card-width: 340px;
    --card-height: 390px;

    /* spacing */

    --gap-1: 0.8rem;
    --gap-2: 1.6rem;
    --gap-3: 2.4rem;
    --max-width: 1100px;

    /* typography */
    --font-family: 'Poppins';
}

/* Scrollbar styling */
html,
body {
    scrollbar-color: var(--cta) var(--bg);
}

body::-webkit-scrollbar {
    width: 100px;
    background: var(--nav);
}

body::-webkit-scrollbar-thumb {
    background: var(--cta);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--nav);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-family);
}

body {
    background: var(--nav);
    min-height: 100vh;
    color: var(--text-dark);
}

/* --- Navigation --- */
/* Logo */
.logo {
    padding-bottom: 2%;

}

.logo img {
    width: auto;
    height: 50px;
    align-content: center;
}

.navbar {
    position: sticky;
    top: 0;
    background: var(--nav);
    color: var(--white);
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    padding: 20px 100px 0 30px;
    z-index: 10;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.navbar ul {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    column-gap: 0.1rem;
    /* Tilføj eller reducer denne værdi for mindre afstand */
}

.navbar li {
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
}

/* Blob highlight behind the active item */
.navbar li.active::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 60px;
    background: url('img/blob-nav.svg') no-repeat center/cover;
    z-index: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Bubble når der scrolles */
.navbar.scrolled li.active::before {
    background: var(--bg);
    border-radius: var(--card-radius);
    width: 120px;
    height: 44px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Links */
.navbar li a {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: var(--bg);
    font-weight: 600;
}

/* Hover effect */
.navbar li a:hover {
    transition: 0.1s ease-in-out;
    padding-bottom: 10px;
}


/* Active link text color */
.navbar li.active a {
    color: var(--cta);
    font-weight: bold;
    padding: 0;
}

/* Off-screen-menu for mobile */
.off-screen-menu {
    background-color: var(--nav);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    right: -100vw;
    left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    font-size: 2rem;
    transition: .3s ease;
    z-index: 4;
}

.off-screen-menu ul li a {
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    padding: 18px 0;
}


.off-screen-menu.active {
    right: 0;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
}

.ham-menu {
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
    display: none;
}

.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: var(--bg);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    z-index: 3;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- Hero section --- */
.hero {
    position: relative;
    overflow: hidden;
    /* border-radius: var(--radius-3); */
    min-height: 70vh;
    height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);

}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    text-align: center;
    z-index: 2;
    gap: 1.2rem;
}

.hero-logo-img {
    max-width: 280px;
    /* Justér denne værdi for størrelsen */
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--bg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-content h1 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

/* Back button styling */
.btn {
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-3);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: var(--card-radius);
    background: transparent;
    color: var(--bg);
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.15s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.btn-primary {
    background: var(--cta);
    color: var(--bg);
    border-color: var(--cta);
}

.btn-secondary {
    background: var(--bg);
    color: var(--cta);
    border-color: var(--bg);
}

.btn-primary:hover {
    background: var(--bg);
    color: var(--cta);
    transform: translateY(-2px) scale(1.04);
}

.btn-secondary:hover {
    background: var(--cta);
    color: var(--bg);
    transform: translateY(-2px) scale(1.04);
}


/* Second section/introduction */
.intro-section {
    color: var(--primer-color);
    margin-top: 0;
    padding-top: 0;
}

.intro-content {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 50%;
    align-items: center;
    gap: var(--gap-2);
    padding-left: var(--gap-3);
    padding-right: var(--gap-3);
    padding-top: var(--gap-);
    padding-bottom: var(--gap-2);
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
}

.intro-image img {
    height: auto;
    width: 100%;
    max-height: 1300px;
    object-fit: cover;
}

.intro-text h1,
span {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: left;
}

.intro-text h2 {
    color: var(--primer-color);
    margin-bottom: var(--gap-1);
}

.intro-container .intro-text p {
    color: var(--primer-color);
    margin-bottom: var(--gap-2);
}


/* Typing animation for text */
/* .animated-text {
    font-size: var(--h2);
    font-weight: 700;
    min-width: 280px;
} */

.animated-text .static-text {
    color: var(--text-dark);
}

.animated-text .typing-text {
    color: var(--cta);
    border-right: 2px solid var(--cta);
    white-space: pre;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: var(--cta);
    }

    50% {
        border-color: transparent;
    }
}

/* styling for preview projects */

/* --- Custom Projects Grid --- */
.custom-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    /* max-width: 900px; */

    position: relative;
}

.project-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    height: 320px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

/* Overlay link style */
.project-overlay-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(44, 44, 44, 0.45);
    padding: 0.5em 1.2em;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 3;
    border-bottom: 3px solid #fff;
}

.project-card:hover .project-overlay-link {

    /* Overlay effect on hover */
    .project-card:hover img {
        transform: scale(1.08);
        filter: brightness(0.6) blur(1px);
    }
}

/* Sun Creatures-inspired overlay */
.project-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--footer-bg);
    /* var(--nav) with opacity */
    color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 36px 36px 36px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0.2, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform: scale(1.04) translateY(20px);
}

.project-info-overlay h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.7em;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(44, 34, 34, 0.18);
}

.project-info-overlay p {
    font-size: 1.08rem;
    color: var(--white);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(44, 34, 34, 0.13);
}

.project-card:hover .project-info-overlay,
.project-card:focus-within .project-info-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}


/* View all projects button */


.projects-viewall i {
    font-size: 1.1em;
    margin-left: 0.2em;
    transition: transform 0.18s;
}

.projects-viewall:hover i {
    transform: translateX(4px);
}

.projects-viewall:hover {
    background-color: var(--cta);
    color: var(--bg);
    transform: translateY(-2px) scale(1.04);
}


/* styling for my work section */
.gallery-container {
    width: 100%;
    text-align: center;
}

.gallery-container h1 {
    font-weight: bold;
    font-size: 35px;
    position: relative;
    margin: 40px 0;
    color: var(--text-dark);
    text-transform: uppercase;

}

.top-content-art {
    background-color: var(--nav);
    width: 90%;
    margin: 0 auto 20px auto;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    box-shadow: 3px 3px 3px rgb(93, 91, 91);
}

.top-content-art h3 {
    height: 100%;
    background-color: var(--footer-bg);
    line-height: 60px;
    padding: 0 50px;
    color: var(--bg);
}


.top-content-art a {
    display: inline-block;
    height: 100%;
    margin: 0 20px;
    line-height: 60px;
    font-weight: 600;
    font-size: 18px;
    color: var(--bg);
    cursor: pointer;
    transition: color .3s;
    text-decoration: none;
}

.top-content-art a:hover {
    color: var(--footer-bg);
}

.img-gallery {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-bottom: 50px;
}

.pic {
    position: relative;
    height: 100%;
    border-radius: 10px;
    box-shadow: 3px 3px 5px rgb(93, 91, 91);
    cursor: pointer;
    transition: .5s;
}

.pic img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: .5s;
}


.overview-text {
    text-align: left;
    padding: 5px 100px 5px 100px;
}

.overview-text h1 {
    text-align: left;
}

/* styling for preview box in my work section */
.preview-box {
    position: fixed;
    top: 50%;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96) translate(-50%, -48%);
    background: var(--footer-bg);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 200;
    width: 98vw;
    max-width: 600px;
    max-height: 90vh;
    display: none;
    flex-direction: column;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    transition: opacity 0.35s cubic-bezier(.4, 2, .6, 1), transform 0.35s cubic-bezier(.4, 2, .6, 1);

}

.preview-box.active {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
    pointer-events: auto;
}

.preview-box .details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-box .title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg);
}

.preview-box .icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--bg);
    transition: color 0.2s;
}

.preview-box .icon:hover {
    color: var(--nav);
}

.preview-box .img-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-box img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.preview-box .slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: var(--nav);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    user-select: none;
}

.preview-box .slide.prev {
    left: -0px;
}

.preview-box .slide.next {
    right: -0px;
}

.preview-box .slide:hover {
    background: var(--bg);
}

.shadow {
    position: fixed;
    inset: 0;
    background: rgba(44, 34, 34, 0.25);
    z-index: 150;
    display: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.35s cubic-bezier(.4, 2, .6, 1);
    opacity: 0;
}

.shadow.active {
    display: block;
    opacity: 1;

}


/* styling for about me section */
.about-me-container p {
    color: var(--color-1);
}

h1 {
    color: var(--menu-text-color);
    text-align: center;
    font-size: 32px;
    padding: 0;
}

.container {
    padding-left: 50px;
    padding-right: 50px;
}


.center-software {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 0;
    width: 100%;
}

/* Content Box */
.content-box {
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    margin: 0 auto 60px auto;
    max-width: 1200px;
    padding: 40px 30px 60px 30px;
    max-width: 1100px;
    box-shadow: 8px 8px 0 var(--box-shadow);
    border-radius: var(--card-radius);
}

/* Top Section (Headshot and Intro Text) */
.top-section {
    display: flex;
    gap: 20px;
}

.image-container img {
    width: 300px;
    height: auto;
}

.intro-text {
    flex: 2;
    padding: 0 20px;
}

.intro-text .links {
    padding-top: 10px;
}

.intro-text .links a {
    background-color: var(--cta);
    color: var(--bg);
}

.intro-text .links a:hover {
    background-color: var(--nav);
    transition: .4s ease-in-out;
}



.intro-text h2 span {
    font-size: 30px;
    color: var(--footer-color);
}

.intro-text p {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    padding: 10px 0 10px;
    font-weight: 500;

}


/* Bottom Section (Additional Text and Video) */
.bottom-section {
    display: flex;
    flex-direction: row;
    /* Placer tekst og video side om side */
    gap: 20px;
    /* Afstand mellem elementerne */
    align-items: flex-start;
    /* Juster lodret */
}

.text-content {
    flex: 1;
    padding: 20px;
    background-color: var(--accent-color);
    border-radius: 10px;
}

.video-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: none;
    border: none;
    padding: 0;
}

.video-container video {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin-bottom: 24px;
}

/* Social Icons */
.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}






/* Styling for conatct section */
.contact-section {
    width: 100%;
    max-width: 900px;
    /* eller 900px hvis du ønsker det bredere */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: left;
}

.contact-intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-box {
    width: 100%;
    max-width: 900px;
    display: flex;
    background: var(--nav);
    border-radius: 8px;
    box-shadow: 8px 8px 0 var(--box-shadow);
    overflow: hidden;
    min-height: 320px;
}

.contact-info {
    flex: 1;
    background: var(--nav);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.2rem;
}

.contact-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-tiny);
    background: var(--bg) url('img/protrait-about-me.jpg') center/cover no-repeat;
    margin-bottom: 2rem;
}

.contact-details {
    color: var(--bg);
    font-size: 1rem;
    text-align: center;
    line-height: 1.7;
}

.contact-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #b68d97;
}

.contact-form h2 {
    color: #edeada;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background: #edeada;
    color: #5c3a4b;
    resize: none;
}

.contact-form textarea {
    min-height: 90px;
    max-height: 200px;
}

.contact-form button {
    background: var(--cta);
    color: var(--bg);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-tiny);
    padding: 0.9rem 0;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--bg);
    color: var(--cta);
}



/* submitted modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 34, 34, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.modal-content h2 {
    color: var(--footer-bg);
    font-size: 2rem;
    margin-bottom: 18px;
}

.modal-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.modal-content button {
    background: var(--cta);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    padding: 0.7em 2em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.modal-content button:hover {
    background: var(--footer-bg);
    color: var(--bg);
}


/* Kontaktinfo reference styles */
.contact-reference {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    color: #222;
    text-decoration: none;
}

.contact-item i {
    font-size: 1.3em;
    min-width: 24px;
}

.contact-item span {
    color: #222;
    font-weight: 500;
}

.mail {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.mail:hover {
    text-decoration: underline;
    color: var(--cta);
    transition: color 0.2s;
}

/* SKILLS & SOFTWARE custom styles */
.skills-section {
    margin-bottom: 2rem;
}

.skills-header {
    display: inline-block;
    background: var(--footer-bg);
    color: var(--bg);
    font-weight: bold;
    font-size: 1.3rem;
    padding: 0.4em 1.2em;
    border-radius: 16px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.skills-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.skill-bubble {
    background: var(--nav);
    border: 2px solid #d1d1c7;
    border-radius: var(--card-radius);
    padding: 0.4em 1.2em;
    font-size: 1rem;
    color: var(--bg);
    font-weight: 500;
    box-shadow: 0 2px 6px var(--box-shadow)
}

.software-section {
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.software-header {
    display: inline-block;
    background: var(--footer-bg);
    color: var(--bg);
    font-weight: bold;
    font-size: 1.3rem;
    padding: 0.4em 1.2em;
    border-radius: 16px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    margin-top: 0;
}

.software-icons {
    display: flex;
    gap: 18px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    padding: 0.7em 0.8em 0.3em 0.8em;
    min-width: 60px;
}

.software-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.software-item span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 1px;
}


/* Styling for Project section */
.projects-section h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 60px auto;
    letter-spacing: -1px;
    color: var(--text-dark);
    text-align: left;
    margin-top: 60px;
}

.projects-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--bg);
    text-align: left;
}

.projects-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 2.2rem;
}

.project-info-flyout {
    position: absolute;

    .projects-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        max-width: 900px;
        margin: 40px auto 0 auto;
        background: none;
        box-sizing: border-box;
    }

    .project-card {
        position: relative;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
        aspect-ratio: 1/1;
        background: none;
        margin: 0;
        border-radius: 0;
        overflow: visible;
    }

    .project-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        box-shadow: none;
        background: #e0dcd3;
        display: block;
        transition: none;
    }

    /* Overlay link style */
    .project-overlay-link {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.68);
        color: #fff;
        font-size: 1.3rem;
        font-weight: 600;
        padding: 12px 32px;
        border-radius: 24px;
        opacity: 0;
        pointer-events: none;
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: opacity 0.18s;
        z-index: 3;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    }

    .project-card:hover .project-overlay-link {
        opacity: 1;
        pointer-events: auto;
    }

    /* Info flyout box */
    .project-info-flyout {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #7c5a6a;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 36px 36px 36px;
        opacity: 0;
        pointer-events: none;
        z-index: 2;
        border-radius: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
        border: none;
        transition: opacity 0.18s;
        box-sizing: border-box;
    }

    .project-card.left .project-info-flyout.right {
        left: 100%;
        top: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }

    .project-card.right .project-info-flyout.left {
        right: 100%;
        top: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }

    .project-card:hover .project-info-flyout {
        opacity: 1;
        pointer-events: auto;
    }

    .project-info-flyout h2 {
        font-size: 2.1rem;
        margin-bottom: 0.7em;
        color: #b1a6c6;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    .project-info-flyout p {
        font-size: 1.08rem;
        margin-bottom: 0.5em;
        color: #fff;
        font-weight: 400;
        line-height: 1.5;
    }

    opacity: 0;
    pointer-events: none;
    z-index: 2;
    border: 1.5px solid #e0dcd3;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.project-card.left .project-info-flyout.right {
    left: 100%;
    top: 0;
    border-radius: 0 12px 12px 0;
    width: 100%;
    height: 100%;
}

.project-card.right .project-info-flyout.left {
    right: 100%;
    top: 0;
    border-radius: 12px 0 0 12px;
    width: 100%;
    height: 100%;
}

.project-card:hover .project-info-flyout {
    opacity: 1;
    pointer-events: auto;
}

.projects-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
    font-size: 2rem;

}

/* Gør kun h1.projects-header venstrejusteret */
h1.projects-header {
    color: var(--text-dark);
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    text-align: left;
    max-width: 900px;
    /* padding-left: 30px; */
}


.projects-viewall-new {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.05rem;
    padding: 0.7em 1.5em;
    border-radius: var(--card-radius);
    background-color: var(--bg);
    color: var(--cta);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.projects-viewall-new i {
    font-size: 1.1em;
    margin-left: 0.2em;
    transition: transform 0.18s;
}

.projects-viewall-new:hover {
    background-color: var(--cta);
    color: var(--bg);
    transform: translateY(-2px) scale(1.04);
}

.projects-viewall-new:hover i {
    transform: translateX(4px);
}

/* Project unifieng style */
/* Unified project layout */
.project-unified {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.row.two-cols section {
    background: var(--bg);
    padding: 18px;
}

.section-chip {
    display: inline-block;
    background: var(--footer-bg);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.design-visuals.inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}


/* template for the project section */
/* Project Showcase Layout */
.project-showcase {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: 'Poppins', sans-serif;
}

.project-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.caps {
    text-transform: capitalize;
}

.caps span {
    text-transform: uppercase;
}

.project-hero-img {
    width: 100%;
    max-height: 320px;
    /* Juster denne værdi efter behov */
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.project-hero-text h1 {
    margin: 0 0 4px 0;
    font-size: 2.4rem;
    font-weight: 700;
}

.project-hero-text .subtitle {
    color: var(--text-muted, #888);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Prototype section */
.prototype-section {
    margin: 28px 0 20px 0;
}

.prototype-toggle {
    display: inline-flex;
    gap: 8px;
    background: #f1efe8;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e0dcd3;
}

.prototype-toggle .toggle-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: #4a3a41;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.prototype-toggle .toggle-btn.active {
    background: var(--cta);
    color: var(--bg);
}

.prototype-views {
    margin-top: 14px;
}

.prototype-view {
    display: none;
    border: 1px solid #e0dcd3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}

.prototype-view.active {
    display: block;
}

.prototype-view img,
.prototype-view iframe {
    width: 60%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 50px;
    transform: scale(1.13);
    transition: transform 0.18s;
}

.project-intro {
    margin: 32px 0 24px 0;
    font-size: 1.15rem;
    color: var(--text, #222);
}

.project-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.project-gallery figure {
    margin: 0;
    text-align: center;
}

.project-gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-gallery figcaption {
    font-size: 0.98rem;
    color: var(--text-muted, #888);
    margin-top: 6px;
}

.project-tools {
    margin: 32px 0 24px 0;
}

.tools-list {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-list img {
    width: 32px;
    height: 32px;
    filter: grayscale(0.2);
}

.project-reflection blockquote {
    font-style: italic;
    color: var(--text-muted, #666);
    border-left: 4px solid var(--footer-bg);
    padding-left: 16px;
    margin: 32px 0;
}

.project-cta {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn {
    background: var(--cta);
    color: var(--bg);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    border: solid 2px var(--cta);

}

.btn:hover {
    border: solid 2px var(--cta);
}

.btn-secondary {
    background: var(--bg);
    color: var(--cta);
    border: 2px solid var(--cta);
}


.back-btn {
    position: sticky;
    top: 16px;
    left: 16px;
    padding: 5px 14px 5px 8px;
    font-size: 1rem;
    min-width: unset;
    height: 36px;
    border-radius: 999px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
    background: var(--cta);
    color: var(--bg);
    border: 2px solid var(--cta);
    transition: background 0.2s, color 0.2s;
}

/* Sikrer at tekst og ikon får bg-farve */
.back-btn i,
.back-btn svg,
.back-btn span {
    color: var(--bg) !important;
    fill: var(--bg) !important;
}

.back-btn svg {
    width: 22px;
    height: 22px;
    margin-right: 2px;
}


/* --- Footer --- */
footer {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    background-color: var(--footer-bg);
    padding: 40px 3%;
    z-index: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    justify-content: space-around;
    text-align: left;
}

.footer-col {
    width: 25%;
    padding-left: 5%;
    text-align: left;
}

.footer-col h4 {
    position: relative;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 20px;
    color: var(--bg);
    text-transform: capitalize;
}

.footer-col h4::before {
    position: absolute;
    left: 0;
    bottom: -6px;
    background-color: var(--cta);
    height: 2px;
    width: 40px;
    content: "";
}

ul {
    list-style: none;
}

ul li {
    margin-bottom: 8px;
}

ul li:not(:last-child) {
    margin-bottom: 8px;
}

footer ul li a,
.contact {
    display: block;
    font-size: 17px;
    font-weight: 600;
    /* text-transform: capitalize; */
    color: var(--bg);
    text-decoration: none;
    transition: color 0.4s, padding-left 0.4s;
}

footer ul li a:hover {
    padding-left: 2px;
}

footer ul p {
    display: block;
    font-size: 17px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--bg);
    text-decoration: none;
    transition: 0.4s;
}

.footer-link {
    color: var(--cta);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.10s, color 0.3s;
}

.footer-link:hover,
.footer-link:focus {
    background: var(--cta);
    color: var(--bg);
    text-decoration: underline;
}

.links a {
    display: inline-block;
    height: 44px;
    width: 44px;
    color: var(--bg);
    background-color: var(--cta);
    margin: 0 8px 8px 0;
    text-align: center;
    line-height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
}

.links a:hover {
    background-color: var(--nav);
    transition: 0.3s ease-in-out;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}


a.active2 {
    color: var(--footer-bg);
    /* border-bottom: 5px solid var(--footer-color); */
    font-weight: bold;
}

.active2 {
    display: flex;
}

/* --- Vis/skjul grid og carousel --- */
.show-desktop {
    display: block;
}

.show-mobile {
    display: none !important;
}


/* --- Grid på desktop --- */
/* Flex row for projects header inside card */
.projects-header-new {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 2rem auto;
}


.projects-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
}

.project-card-new {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--card-radius);
    box-shadow: 0 6px 24px rgba(44, 34, 34, 0.10);
    border: 8px solid var(--bg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
}

.project-card-new:hover {
    transform: translateY(-8px) scale(1.03) rotate(-2deg);
    box-shadow: 0 16px 40px rgba(92, 58, 75, 0.13);
}

.project-img {
    width: 100%;
    aspect-ratio: 16/11;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.1rem 1rem 0.7rem 1rem;
}

.project-card-view {
    display: flex;
    align-items: center;
    font-size: 0.99rem;
    color: var(--cta);
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 0.01em;
    gap: 0.4em;
    text-decoration: none;
    transition: color 0.2s;
}

.project-card-new:hover .project-card-view {
    color: var(--nav);
    text-decoration: underline;
}

.project-card-view i {
    font-size: 1.4em;
    margin-left: 0.1em;
    transition: transform 0.2s;
}

.project-card-new:hover .project-card-view i {
    transform: translateX(3px);
}

/* --- Carousel på mobil/tablet --- */
.projects-carousel-new {
    position: relative;
    width: 100%;
    max-width: 370px;
    margin: 2.5rem auto;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track-new {
    position: relative;
    width: 100%;
    height: 100%;
}

.projects-carousel-new .project-card-new {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--card-width);
    min-height: var(--card-height);
    transform: translateX(-50%) scale(1);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition:
        transform 0.5s cubic-bezier(.4, 1.4, .6, 1),
        opacity 0.5s cubic-bezier(.4, 1.4, .6, 1),
        box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(44, 34, 34, 0.10);
    background: var(--bg);
    border-radius: var(--card-radius);
    border: 3.5px solid #fff;
    outline: 1.5px solid var(--box-shadow);
}

.projects-carousel-new .project-card-new.active {
    transform: translateX(-50%) scale(1.04);
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(92, 58, 75, 0.13);
}

.projects-carousel-new .project-card-new.left {
    transform: translateX(-90%) scale(0.93);
    z-index: 2;
    opacity: 0.7;
}

.projects-carousel-new .project-card-new.right {
    transform: translateX(-5%) scale(0.93);
    z-index: 2;
    opacity: 0.7;
}

.carousel-arrow-new {
    background: var(--bg);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nav);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s;
}

.carousel-arrow-new.left {
    left: -45px;
}

.carousel-arrow-new.right {
    right: -45px;
}

.carousel-arrow-new:hover {
    background: var(--cta);
    color: #fff;
}

.carousel-dots-new {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -32px;
    z-index: 2;
}

.carousel-dot-new {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #e0dcd3;
    border: 2px solid var(--cta);
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

.carousel-dot-new.active {
    background: var(--cta);
    border-color: var(--nav);
}



/* Project section */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.project {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: auto;
}

.project-inner {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 180px;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.project-inner:hover img {
    filter: blur(2px);
}

.project-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-inner:hover .project-link {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    height: 100%;
    width: 200%;
    background: var(--footer-bg);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.overlay h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.project.left .overlay {
    left: -100%;
    transform: translateX(100%);
}

.project.right .overlay {
    left: 0;
    transform: translateX(-100%);
}

.project:hover .overlay {
    transform: translateX(0);
    opacity: 1;
}

.project-gallery-onion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    max-width: 1100px;
    margin: 40px auto;
    background: none;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: none;
    position: relative;
    overflow: visible;
}

.project-item a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Ensartet prototype toggle (kompakt) */
.prototype-toggle-row {
    display: flex;
    gap: 8px;
    background: #f1efe8;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e0dcd3;
    margin-bottom: 12px;
    justify-content: flex-start;
    max-width: 520px;
}

.prototype-toggle-row .toggle-btn {
    padding: 7px 18px;
    border: none;
    background: transparent;
    color: #4a3a41;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.prototype-toggle-row .toggle-btn.active {
    background: var(--cta);
    color: var(--bg);
}

.prototype-views.compact {
    max-width: 900px;
}

.prototype-views.compact {
    width: 100%;
    margin: 0;
    max-width: none;
    background: var(--bg);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0;
    display: block;
}

.prototype-view {
    display: none;
    border-radius: 14px;
    background-color: var(--cta);
    box-shadow: 0 2px 12px rgba(44, 34, 34, 0.08);
    padding: 18px 18px 10px 18px;
    margin-bottom: 0;
}

.prototype-view.active {
    display: block;
}

.proto-flex.compact {
    flex-direction: row;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
}

/* Landingpage link hover effect */
.external-link {
    color: var(--footer-bg);
    transition: color 0.2s;
}

.external-link:hover {
    color: var(--cta);
    text-decoration: underline;
}

.proto-img video {
    /* max-width: 260px; */
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Prototype accordion layout ala FLPHOTO */
.prototype-accordion {
    margin: 32px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.proto-item {
    border: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44, 34, 34, 0.10);
    transition: box-shadow 0.18s;
    overflow: hidden;
}

.proto-item.active {
    box-shadow: 0 6px 24px rgba(44, 34, 34, 0.13);
}

.proto-toggle {
    width: 100%;
    background: #f1efe8;
    border: none;
    outline: none;
    font-size: 1.18rem;
    font-weight: 700;
    color: #6c3a7a;
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 20px 0 20px 28px;
    cursor: pointer;
    border-bottom: 1px solid #e0dcd3;
    border-radius: 16px 16px 0 0;
    transition: background 0.18s;
}

.proto-toggle:hover,
.proto-item.active .proto-toggle {
    background: #e0dcd3;
}

.proto-icon {
    font-size: 1.5em;
    color: #7c5a6a;
    width: 1.5em;
    display: inline-block;
    text-align: center;
}

.proto-content {
    padding: 0 28px 28px 28px;
    background: #fff;
    border-radius: 0 0 16px 16px;
    border-top: none;
    box-shadow: none;
    margin: 0;
}

.proto-flex {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.proto-text {
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 480px;
    font-size: 1.08rem;
    color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proto-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 28px;
    background: #b68d97;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    transition: background 0.18s, color 0.18s;
}

.proto-btn:hover {
    background: var(--cta);
    color: var(--bg);
}

.proto-img {
    flex: 1 1 320px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;

}



/* View project link i hover-beskrivelse */
.project-card-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.01rem;
    color: var(--cta);
    font-weight: 600;
    margin-top: 0.7em;
    text-decoration: none;
    background: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.project-card-view i {
    font-size: 1.1em;
    margin-left: 0.2em;
    transition: transform 0.18s;
}

.project-card-view:hover {
    color: var(--white);
    text-decoration: underline;
}

.project-card-view:hover i {
    transform: translateX(4px);
}


/* Beskrivelse der kommer oppefra ved hover */

.project-hover-desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    opacity: 0;
    background: rgba(92, 58, 75, 0.82);
    color: #fff;
    padding: 14px 18px 10px 18px;
    font-size: 1.05rem;
    font-weight: 400;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(.7, .2, .2, 1), opacity 0.18s;
    z-index: 2;
    text-align: left;
    backdrop-filter: blur(2px);
    width: 100%;
}

.project-item:hover a .project-hover-desc {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.project-item a {
    display: block;
    width: 100%;
}

.project-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.project-caption {
    margin-top: 10px;
    font-size: 1.08rem;
    color: #222;
    font-weight: 400;
    text-align: left;
    padding-left: 2px;
    text-transform: capitalize;
}


/* ----------- MEDIA QUERIES ----------- */

@media (max-width: 1180px) {
    .video-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .video-container p {
        margin-top: 20px;
        text-align: center;
        /* Centrer teksten */
    }

    .video-container video {
        width: 100%;
        /* Sørg for at videoen er responsiv */
        max-width: 500px;
        /* Maks bredde på videoen */
    }
}

@media (min-width: 1000px) {
    .navbar ul {
        display: grid;
        /* eller flex, alt efter dit layout */
    }

    .ham-menu {
        display: none;
    }
}

/* --- Responsivitet --- */
@media (max-width: 900px) {

    .ham-menu {
        display: block;
    }

    .navbar ul {
        display: none;
    }

    .navbar ul.active {
        display: grid;
        /* eller flex, alt efter dit layout */
    }

    .hero {
        min-height: 44vh;
        height: 44vh;
    }

    .hero-content {
        margin-bottom: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1.1rem;
    }


    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }


    .content-box {
        padding: 20px 5vw 30px 5vw;
        max-width: 98vw;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        aspect-ratio: 16/10;
    }

    .project-preview-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-box {
        flex-direction: column;
        box-shadow: 4px 4px 0;
    }


    .custom-projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .project-card {
        min-height: 220px;
        height: 220px;
    }

    .row.two-cols {
        grid-template-columns: 1fr;
    }



    .project-gallery-onion {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 98vw;
    }

    .project-item img {
        height: 180px;
    }

    .proto-flex {
        flex-direction: column;
        gap: 18px;
    }

    .proto-img img {
        max-width: 98vw;
    }

    .prototype-toggle-row {
        max-width: 98vw;
    }

    .proto-flex.compact {
        flex-direction: column;
        gap: 10px;
    }

    .proto-img img {
        max-width: 98vw;
    }

    .projects-carousel-new {
        margin-top: 60px;
    }

    .intro-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding-left: 5vw;
        padding-right: 5vw;
    }


    .intro-text {
        margin-top: 0;
        padding: 0;
    }
}

@media (max-width: 850px) {
    .show-desktop {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

@media (max-width: 800px) {
    .contact-box {
        flex-direction: column;
        box-shadow: 4px 4px 0 var(--nav);
    }

    .contact-form,
    .contact-info {
        padding: 2rem 1rem;
    }

    .contact-img {
        margin-bottom: 1.2rem;
    }
}


@media (max-width: 768px) {
    .top-content-art {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .img-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {

    h1,
    h2,
    h3 {
        font-size: 24px;
    }

    .content p,
    .intro-text p {
        font-size: 17px;
    }

    .content a {
        font-size: 12px;
    }

    .content h3 {
        font-size: 35px;
    }

    .content h2 {
        font-size: 35px;
    }


    .bottom-section {
        flex-direction: column;
        /* Skift til kolonne-layout */
        gap: 10px;
        /* Mindre afstand mellem elementer */
    }

    .video-container,
    .text-content {
        flex: none;
        /* Fjern flex-justering */
        width: 100%;
        /* Fyld hele bredden */
    }


    .content {
        padding: 0 20px 0 30px;

    }

    .top-section,
    .bottom-section {
        flex-direction: column;
    }

    .footer-col {
        width: 50%;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .footer-col h4::before {
        all: unset;
    }

    .footer-col p {
        line-height: 30px;
        align-items: center;
    }
}


@media (max-width: 700px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .projects-viewall {
        align-self: flex-end;
    }
}

@media (max-width: 555px) {
    .footer-col {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .projects-carousel-new {
        max-width: 98vw;
        height: 320px;
    }

    .projects-carousel-new .project-card-new {
        width: 92vw;
        min-width: 92vw;
        min-height: 200px;
    }

    .carousel-arrow-new.left {
        left: -18px;
    }

    .carousel-arrow-new.right {
        right: -18px;
    }


    .projects-carousel-new {
        margin-bottom: 15rem;

    }
}

@media (max-width: 490px) {

    h1,
    h2,
    h3 {
        font-size: 18px;
    }

    .content p,
    .intro-text p {
        font-size: 16px;
    }

    .video-container p {
        font-size: 12px;
    }

    .content a {
        font-size: 16px;
    }

    .content h3 {
        font-size: 20px;
    }

    .content h2 {
        font-size: 25px;
    }

    .text-content p {
        font-size: 15px;
        line-height: 18px;
    }
}

@media (max-width: 480px) {
    .img-gallery {
        grid-template-columns: 1fr;
        grid-gap: 5px;
    }

    .top-content-art {
        height: auto;
    }

    .overview-text,
    p,
    h1 {
        text-align: left;
        padding: 0;
    }

    .content {
        padding: 0 20px 0 30px;
    }

    .content h1 {
        font-size: 20px;
    }

    .image-container {
        max-width: 90%;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    .intro-text h2 {
        font-size: 1.2rem;
    }

    .intro-text h2 span {
        font-size: 1.2rem;
    }

    .intro-text p {
        font-size: 0.9rem;
    }

    .links a {
        margin: 0 5px;
    }

    h1,
    h2,
    h3 {
        font-size: 18px;
    }

    .content p,
    .intro-text p {
        font-size: 16px;
    }

    .video-container p {
        font-size: 12px;
    }

    .content a {
        font-size: 16px;
    }

    .content h3 {
        font-size: 20px;
    }

    .content h2 {
        font-size: 25px;
    }

    .text-content p {
        font-size: 15px;
        line-height: 18px;
    }

    .footer-col {
        width: 100%;
        text-align: center;
        padding-left: 0;
    }




    .img-gallery {
        grid-template-columns: 1fr;
        grid-gap: 5px;
    }

    .top-content-art {
        height: auto;
    }

    .overview-text,
    p,
    h1 {
        text-align: left;
        padding: 0;
    }

    .content {
        padding: 0 20px 0 30px;
    }

    .content h1 {
        font-size: 20px;
    }


    .image-container {
        max-width: 90%;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    .intro-text h2 {
        font-size: 1.2rem;
    }

    .intro-text h2 span {
        font-size: 1.2rem;
    }

    .intro-text p {
        font-size: 0.9rem;
    }

    .links a {
        margin: 0 5px;
    }

    h1,
    h2,
    h3 {
        font-size: 18px;
    }

    .content p,
    .intro-text p {
        font-size: 16px;
    }

    .video-container p {
        font-size: 12px;
    }

    .content a {
        font-size: 16px;
    }

    .content h3 {
        font-size: 20px;
    }

    .content h2 {
        font-size: 25px;
    }

    .text-content p {
        font-size: 15px;
        line-height: 18px;
    }

    .footer-col {
        width: 100%;
        text-align: center;
        padding-left: 0;
    }
}

/* ----------- SLUT PÅ MEDIA QUERIES ----------- */