/* =========================================
   RESET / GLOBALT
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #30434E;
    overflow-x: hidden;
}



/* =========================================
   FÆLLES PROJEKTVARIABLER
========================================= */

.project-page {
    --background: #FFF6E4;
    --accent: #C46E76;

    --dark: #30434E;
    --light: #FFF6E4;

    --section-color: #FFF6E4;
    --card-color: #FFF6E4;
    --polaroid: #A9B8C8;

    --nav-background: #C46E76;
    --nav-text: #FFCCD3;
}



/* =========================================
   PROJEKTFARVER
========================================= */


/* ---------- LUMINA ---------- */

.lumina-page {
    --background: #FFF6E4;
    --accent: #B58A5A;

    --section-color: #F8D5D7;
    --card-color: #FFF6E4;
    --polaroid: #A9B8C8;

    --nav-background: #B58A5A;
    --nav-text: #FFF7E8;
}


/* ---------- OVARTACI ---------- */

.ovartaci-page {
    --background: #ADB98C;
    --accent: #566138;

    --section-color: #FFF6E4;
    --card-color: #ADB98C;
    --polaroid: #ADB98C;

    --nav-background: #566138;
    --nav-text: #CBDBA6;
}


/* ---------- ADVENTURE ---------- */

.adventure-page {
    --background: #FFCCD3;
    --accent: #C46E76;

    --section-color: #FFF6E4;
    --card-color: #FFCCD3;
    --polaroid: #FFCCD3;

    --nav-background: #C46E76;
    --nav-text: #FFCCD3;
}


/* ---------- ROBLOX ---------- */

.roblox-page {
    --background: #FFCAA6;
    --accent: #C9652E;

    --section-color: #FFF6E4;
    --card-color: #FFCAA6;
    --polaroid: #FFCAA6;

    --nav-background: #C9652E;
    --nav-text: #FFDBC1;
}


/* ---------- POSTERS / GRAFISK ---------- */

.posters-page {
    --background: #A9B8C8;
    --accent: #30434E;

    --section-color: #FFF6E4;
    --card-color: #A9B8C8;
    --polaroid: #A9B8C8;

    --nav-background: #30434E;
    --nav-text: #A9B8C8;
}



/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: fixed;
    top: 32px;
    left: 50%;

    width: 520px;
    height: 65px;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    background-color: var(--nav-background);
    border-radius: 50px;

    box-shadow: 0 12px 30px rgba(48, 67, 78, 0.15);

    transform: translateX(-50%);

    z-index: 1000;
}


/* ---------- LOGO ---------- */

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
}

.nav-logo img {
    display: block;

    width: 70px;
    height: 70px;

    object-fit: contain;

    transform: translateY(-6px);
}


/* ---------- LINKS ---------- */

.navbar > a:not(.nav-logo),
.dropbtn {
    font-family: "La Belle Aurore", cursive;
    font-size: 1.6rem;
    font-weight: 400;

    color: var(--nav-text);

    text-decoration: none;

    background: none;
    border: none;

    cursor: pointer;

    white-space: nowrap;
    flex-shrink: 0;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.navbar > a:not(.nav-logo):hover,
.dropbtn:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}



/* =========================================
   DROPDOWN
========================================= */

.dropdown {
    position: relative;
    flex-shrink: 0;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 13px;
}


/* ---------- PIL ---------- */

.arrow {
    width: 0;
    height: 0;

    font-size: 0;

    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--nav-text);

    transition: transform 0.2s ease;
}


/* ---------- MENU ---------- */

.dropdown-content {
    position: absolute;
    top: calc(100% + 22px);
    right: 0;

    min-width: 210px;
    padding: 14px;

    display: block;

    background-color: var(--nav-background);
    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(48, 67, 78, 0.2);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.dropdown-content a {
    display: block;

    padding: 12px 18px;

    font-family: Arial, sans-serif;
    font-size: 1rem;

    color: var(--nav-text);

    text-decoration: none;

    border-radius: 12px;

    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--nav-text);
    color: var(--nav-background);
}


/* ---------- ÅBEN ---------- */

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}



/* =========================================
   HERO
========================================= */

.project-hero {
    min-height: 100vh;

    padding: 150px 8% 80px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;

    background-color: var(--background);
}


/* ---------- TEKST ---------- */

.project-hero-text {
    max-width: 600px;
}

.handwritten {
    margin-bottom: 5px;

    font-family: "La Belle Aurore", cursive;
    font-size: 2rem;

    color: var(--accent);
}

.project-title {
    margin-bottom: 40px;

    font-family: "Erica One", sans-serif;
    font-size: clamp(5rem, 9vw, 9rem);
    font-weight: 400;
    line-height: 0.85;

    color: var(--accent);
}


/* ---------- TITELSTØRRELSER ---------- */

.ovartaci-page .project-title {
    font-size: clamp(4.5rem, 7.5vw, 7.5rem);
}

.adventure-page .project-title {
    font-size: clamp(4rem, 6.5vw, 6.5rem);
}

.project-intro {
    max-width: 500px;

    font-size: 1.1rem;
    line-height: 1.7;
}


/* ---------- HERO BILLEDE ---------- */

.project-hero-image {
    display: inline-block;
    width: fit-content;
}

.project-hero-image img {
    display: block;
    width: 100%;

    border: 14px solid var(--accent);
}



/* =========================================
   PROJEKTSEKTIONER
========================================= */

.project-section {
    padding: 120px 10%;

    background-color: #FFF6E4;
}

.project-section:nth-of-type(even) {
    background-color: var(--section-color);
}

.project-section h2 {
    margin-bottom: 40px;

    font-family: "Erica One", sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;

    color: var(--dark);
}

.project-section > p {
    max-width: 700px;

    line-height: 1.8;
}



/* =========================================
   PROCESSEN
========================================= */

.process-grid {
    margin-top: 70px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.process-card {
    padding: 40px;

    background-color: var(--card-color);
    border-radius: 25px;

    transform: rotate(-1deg);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.process-card:nth-child(2) {
    transform: rotate(1.5deg);
}

.process-card:nth-child(3) {
    transform: rotate(-0.5deg);
}

.process-card:hover {
    transform:
        translateY(-8px)
        rotate(0deg);

    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.process-card span {
    font-family: "La Belle Aurore", cursive;
    font-size: 2rem;

    color: var(--accent);
}

.process-card h3 {
    margin: 20px 0;

    font-family: "Erica One", sans-serif;
    font-size: 2rem;
    font-weight: 400;

    color: var(--accent);
}

.process-card p {
    line-height: 1.7;
}



/* =========================================
   RESULTAT
========================================= */

.result-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;

    gap: 100px;
}

.result-text {
    max-width: 550px;
}

.result-text p {
    line-height: 1.8;
}

.result-media {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}



/* =========================================
   RESULTAT - POLAROID
========================================= */

.result-media video,
.result-media iframe,
.result-media img {
    display: block;

    width: 100%;
    max-width: 620px;

    background-color: var(--polaroid);

    border-top: 14px solid var(--polaroid);
    border-left: 14px solid var(--polaroid);
    border-right: 14px solid var(--polaroid);
    border-bottom: 48px solid var(--polaroid);

    box-shadow: 0 12px 25px rgba(48, 67, 78, 0.14);
}

.result-media video {
    height: auto;
}

.result-media iframe {
    aspect-ratio: 16 / 10;
    height: auto;

    border-style: solid;
}

.result-media img {
    height: auto;
}



/* =========================================
   GRAFISK DESIGN + ROBLOX UI
   3 ENS RAMMER PÅ RÆKKE
========================================= */

.graphics-section {
    padding: 130px 8% 170px;

    background-color: #FFF6E4;
}


/* ---------- OVERSKRIFT ---------- */

.graphics-heading {
    width: min(1200px, 100%);

    margin: 0 auto 90px;
}

.graphics-heading h2 {
    font-family: "Erica One", sans-serif;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 400;

    color: var(--dark);
}


/* ---------- GALLERI ---------- */

.graphics-gallery {
    width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: start;

    gap: 70px 40px;
}


/* =========================================
   ET DESIGN
========================================= */

.graphic-item {
    width: 100%;
    min-width: 0;

    margin: 0;
}


/* =========================================
   ENS BILLEDRAMMER
========================================= */

.graphic-item img {
    display: block;

    width: 100%;
    height: 330px;

    padding: 12px;

    object-fit: contain;
    object-position: center;

    background-color: #FFF6E4;

    border: 12px solid var(--accent);

    box-shadow:
        0 15px 30px
        rgba(48, 67, 78, 0.12);
}


/* ---------- PROGRAM UNDER BILLEDET ---------- */

.graphic-item figcaption {
    margin-top: 20px;
    margin-bottom: 0;

    font-family: "La Belle Aurore", cursive;
    font-size: 1.8rem;
    line-height: 1.2;

    color: var(--accent);
}



/* =========================================
   ROBLOX - INTRO
========================================= */

.roblox-intro {
    padding: 120px 8% 20px;

    background-color: #FFF6E4;
}

.roblox-intro .graphics-heading {
    margin-bottom: 0;
}

.roblox-intro-text {
    max-width: 700px;

    margin-top: 25px;

    line-height: 1.8;
}



/* =========================================
   ROBLOX - UI SEKTION
========================================= */

.roblox-ui-section {
    padding-top: 100px;
}



/* =========================================
   ROBLOX - UI I SPILLET
========================================= */

.roblox-game-section {
    padding: 100px 8% 110px;

    background-color: #FFF6E4;
}

.roblox-game-section .graphics-heading {
    margin-bottom: 60px;
}


/* ---------- SPIL-GALLERI ---------- */

.roblox-game-gallery {
    width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;
}

.roblox-game-item {
    margin: 0;
}

.roblox-game-item img {
    display: block;

    width: 100%;
    height: auto;

    border: 10px solid var(--accent);

    box-shadow:
        0 15px 30px
        rgba(48, 67, 78, 0.12);
}



/* =========================================
   FÆLLES INTROTEKST
========================================= */

.section-intro {
    max-width: 750px;

    margin-bottom: 70px;

    line-height: 1.8;
}



/* =========================================
   PERSONAER
========================================= */

.persona-grid {
    width: min(1100px, 100%);

    margin: 70px auto 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 70px;
}

.persona-card {
    margin: 0;
}

.persona-card img {
    display: block;

    width: 100%;
    height: auto;

    background-color: #FFF6E4;

    border: 12px solid var(--accent);

    box-shadow: 0 15px 30px rgba(48, 67, 78, 0.12);
}

.persona-card figcaption {
    margin-top: 25px;
}

.persona-card h3 {
    margin-bottom: 10px;

    font-family: "Erica One", sans-serif;
    font-size: 2rem;
    font-weight: 400;

    color: var(--accent);
}

.persona-card p {
    max-width: 450px;

    line-height: 1.7;
}



/* =========================================
   MOODBOARD
========================================= */

.moodboard-grid {
    width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;

    gap: 100px;
}

.moodboard-image img {
    display: block;

    width: 100%;
    height: auto;

    border: 14px solid var(--accent);

    box-shadow: 0 15px 30px rgba(48, 67, 78, 0.12);
}

.moodboard-text {
    max-width: 500px;
}

.moodboard-text h2 {
    margin-bottom: 35px;
}

.moodboard-text p:not(.handwritten) {
    margin-bottom: 25px;

    line-height: 1.8;
}



/* =========================================
   PROJEKTKNAPPER
========================================= */

.project-button-wrapper {
    margin-top: 60px;
}

.project-link-button {
    display: inline-block;

    margin-top: 35px;

    padding: 12px 30px;

    border-radius: 999px;

    font-family: "La Belle Aurore", cursive;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1;

    color: var(--light);
    background-color: var(--accent);

    text-decoration: none;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.project-link-button:hover {
    transform: translateY(-4px);

    filter: brightness(0.9);
}



/* =========================================
   OVARTACI - RESEARCH
========================================= */

.deep-dive-grid {
    width: min(1150px, 100%);

    margin: 60px auto 0;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;

    gap: 90px;
}

.deep-dive-text {
    max-width: 520px;
}

.deep-dive-text p {
    margin-bottom: 25px;

    line-height: 1.8;
}



/* =========================================
   PERSONA + PROCESFIL
========================================= */

.research-persona {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.research-persona img {
    display: block;

    width: 100%;
    max-width: 560px;
    height: auto;

    background-color: #FFF6E4;

    border: 12px solid var(--accent);

    box-shadow:
        0 15px 30px
        rgba(48, 67, 78, 0.12);
}

.research-persona .project-link-button {
    margin-top: 30px;
}



/* =========================================
   OVARTACI SKITSER
========================================= */

.ovartaci-sketches {
    width: min(1100px, 100%);

    margin: 65px auto 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;

    gap: 45px;
}

.ovartaci-sketches img {
    display: block;

    width: 100%;
    height: auto;

    padding: 12px;

    background-color: var(--card-color);

    box-shadow:
        0 15px 30px
        rgba(48, 67, 78, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.ovartaci-sketches img:first-child {
    transform: rotate(-1.5deg);
}

.ovartaci-sketches img:last-child {
    transform: rotate(1.5deg);
}

.ovartaci-sketches img:first-child:hover,
.ovartaci-sketches img:last-child:hover {
    transform:
        translateY(-5px)
        rotate(0deg);
}

.ovartaci-sketches img:hover {
    box-shadow:
        0 20px 35px
        rgba(48, 67, 78, 0.17);
}



/* =========================================
   LØSNINGEN I BRUG
========================================= */

.use-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;

    gap: 90px;
}

.use-image {
    width: 100%;
}

.use-image img {
    display: block;

    width: 100%;
    height: auto;

    border: 14px solid var(--accent);

    box-shadow:
        0 15px 30px
        rgba(48, 67, 78, 0.12);
}

.use-text {
    max-width: 500px;
}

.use-text h2 {
    margin-bottom: 35px;
}

.use-text p:not(.handwritten) {
    margin-bottom: 25px;

    line-height: 1.8;
}



/* =========================================
   NÆSTE PROJEKT
========================================= */

.next-project {
    min-height: 60vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: var(--background);

    text-align: center;
}

.next-project .handwritten {
    margin-bottom: 0;
}

.next-project a {
    font-family: "Erica One", sans-serif;
    font-size: clamp(4rem, 9vw, 9rem);
    line-height: 1;

    color: var(--accent);

    text-decoration: none;

    transition: transform 0.3s ease;
}

.next-project a:hover {
    transform: translateX(10px);
}



/* =========================================
   SCROLL ANIMATION
========================================= */

.project-section,
.process-card {
    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.project-section.show,
.process-card.show {
    opacity: 1;

    transform: translateY(0);
}



/* =========================================
   TABLET
   MAX 1000PX
========================================= */

@media screen and (max-width: 1000px) {

    .graphics-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 60px 35px;
    }

    .graphic-item img {
        height: 340px;
    }

}



/* =========================================
   RESPONSIVE - MAX 800PX
========================================= */

@media screen and (max-width: 800px) {

    /* ---------- HERO ---------- */

    .project-hero {
        grid-template-columns: 1fr;

        padding: 140px 25px 70px;

        gap: 50px;
    }

    .project-title {
        font-size: clamp(4rem, 18vw, 7rem);
    }

    .ovartaci-page .project-title {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .adventure-page .project-title {
        font-size: clamp(3rem, 13vw, 5.5rem);
    }

    .project-hero-image img {
        width: 100%;
        max-width: 480px;
    }


    /* ---------- PROJEKTSEKTION ---------- */

    .project-section {
        padding: 80px 25px;
    }


    /* ---------- PROCESS ---------- */

    .process-grid {
        grid-template-columns: 1fr;
    }


    /* ---------- RESULTAT ---------- */

    .result-section {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .result-media video,
    .result-media iframe,
    .result-media img {
        max-width: 500px;

        border-top-width: 10px;
        border-left-width: 10px;
        border-right-width: 10px;
        border-bottom-width: 35px;
    }


    /* ---------- OVARTACI ---------- */

    .deep-dive-grid {
        grid-template-columns: 1fr;

        margin-top: 45px;

        gap: 50px;
    }

    .deep-dive-text {
        max-width: 100%;
    }

    .research-persona {
        align-items: center;
    }

    .research-persona img {
        max-width: 520px;

        border-width: 8px;
    }

    .ovartaci-sketches {
        grid-template-columns: 1fr;

        max-width: 550px;

        margin-top: 50px;

        gap: 35px;
    }

    .ovartaci-sketches img:first-child,
    .ovartaci-sketches img:last-child {
        transform: rotate(0);
    }

    .use-section {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .use-image img {
        border-width: 8px;
    }

    .use-text {
        max-width: 100%;
    }


    /* ---------- ADVENTURE ---------- */

    .persona-grid {
        grid-template-columns: 1fr;

        gap: 60px;

        margin-top: 50px;
    }

    .moodboard-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .moodboard-text {
        max-width: 100%;
    }

    .persona-card img,
    .moodboard-image img {
        border-width: 8px;
    }


    /* ---------- ROBLOX SPIL ---------- */

    .roblox-game-gallery {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}



/* =========================================
   RESPONSIVE - MOBIL
   MAX 650PX
========================================= */

@media screen and (max-width: 650px) {

    /* ---------- NAVBAR ---------- */

    .navbar {
        top: 20px;

        width: calc(100% - 30px);
        max-width: 520px;
        height: 58px;

        padding: 0 18px;

        gap: 15px;
    }

    .nav-logo img {
        width: 55px;
        height: 55px;
    }

    .navbar > a:not(.nav-logo),
    .dropbtn {
        font-size: 19px;
    }

    .dropdown-content {
        top: 55px;
        right: -5px;

        min-width: 190px;
    }


    /* ---------- GRAFIK / ROBLOX ---------- */

    .graphics-section {
        padding: 90px 25px 120px;
    }

    .graphics-heading {
        margin-bottom: 60px;
    }

    .graphics-gallery {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .graphic-item {
        width: 100%;
        max-width: 450px;

        margin: 0 auto;
    }

    .graphic-item img {
        height: 330px;

        border-width: 9px;
        padding: 9px;
    }


    /* ---------- ROBLOX ---------- */

    .roblox-intro {
        padding: 90px 25px 10px;
    }

    .roblox-ui-section {
        padding-top: 80px;
    }

    .roblox-game-section {
        padding: 80px 25px 90px;
    }

}