/* =====================================
   ROOTS
===================================== */

:root {

    /* =========================
       FARVER
    ========================= */
  
    --color-primary: #c72a09;
    --color-white: #ffffff;
    --color-black: #111111;
  
    /* =========================
       TYPOGRAFI
    ========================= */
  
    --font-heading: "Montserrat", sans-serif;
    --font-body: "Montserrat", sans-serif;
  
    /* =========================
       TEKSTSTØRRELSER
    ========================= */
  
    --text-hero: clamp(5rem, 12vw, 12rem);
    --text-name: clamp(1.3rem, 2vw, 2.3rem);
    --text-scroll: 2rem;
    --text-body: 1rem;
  
    /* =========================
       SPACING
    ========================= */
  
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
  
    /* =========================
       ANIMATION
    ========================= */
  
    --transition: 0.8s ease;
    --animation-title: 1.8s;
    --animation-text: 0.9s;
  
  }

 /* ============================================= FORSIDE ======================================================= */


#cases{

    scroll-margin-top:100px;

}
 html{
    scroll-behavior:smooth;
}

body {
    cursor: none;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: #d9d9d9;
}

html,
body,
body * {
    cursor: none !important;
}

.about{
    min-height:100vh;
}

.cursor {
    width: 20px;
    height: 20px;
    background: #c72a09;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647 !important;
    transform: translate(-50%, -50%) rotate(45deg);
}
html,
body,
body * {
    cursor: none !important;
}

.cursor {
    width: 20px;
    height: 20px;
    background: #c72a09;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647 !important;
    transform: translate(-50%, -50%) rotate(45deg);
}

  .title{
    font-size: var(--text-hero);
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.name{
    font-size: var(--text-name);
    color: var(--color-primary);
}

.scroll{
    font-size: var(--text-scroll);
    color: var(--color-primary);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.hero{
    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;
}

.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.title{
    position:absolute;
    left:50%;
    top:56%;
    transform:translate(-50%,-50%) translateY(40px);

    font-size:12vw;
    font-weight:700;
    color:#c72a09;
    line-height:1;

    opacity:0;
}

.name{
    position:absolute;
    top:40%;
    right:15%;
    color:#c72a09;

    opacity:0;
    transform:translateY(20px);
}

.scroll{
    position:absolute;
    right:35px;
    top:20px;

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;

    color:#c72a09;

    opacity:0;
    transform:translateY(-20px);
}

.scroll span{
    writing-mode:vertical-rl;
    font-size:2rem;
    letter-spacing:3px;
}

.arrow{
    width:2px;
    height:120px;
    background:#c72a09;
    position:relative;
}

.arrow::after{
    content:"";
    position:absolute;
    bottom:-2px;
    left:50%;
    width:12px;
    height:12px;
    border-right:2px solid #c72a09;
    border-bottom:2px solid #c72a09;
    transform:translateX(-50%) rotate(45deg);
}

/* ============================================= BLADE SEKTION ======================================================= */


.leaf-section{

    position:relative;

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

}


.leaf-text{

    max-width:900px;

    padding:70px;

    text-align:center;

    font-size: 30px;
    font-size: var(--text-name);
    color: var(--color-primary);
    line-height:1.3;

    color:#c72a09;

    font-family:var(--font-heading);

    font-weight: 0;
    position: relative;

    z-index:2;

}


/* Blad/streg ramme */

.leaf-border{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;

    overflow:visible;
}

/* ================= FOTO SEKTION ================= */

.about-section{

    display:flex;
    width:100%;
    height:100vh;

}


/* VENSTRE BILLEDE */

.image-side{

    width:50%;
    overflow:hidden;

}


.image-side img{

    width:100%;
    height:100%;
    object-fit:cover;
    display:block;

}



/* HØJRE SIDE */

.text-side{

    width:50%;
    height:100%;

    position:relative;

    overflow:hidden;

    background-image:url("../img/greenbillede.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

}



/* ================= TEKST ================= */


.content{

    position:absolute;

    top:60px;
    right:60px;

    width:260px;

    color:#c72a09;

    text-align:right;

    z-index:3;


    opacity:0;

    transform:translateY(40px);


    transition:
    opacity 1.2s ease,
    transform 1.2s ease;

}


.content.show{

    opacity:1;

    transform:translateY(0);

}


.content h2{

    font-size:15px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:1px;

    margin-bottom:15px;

}


.content p{

    font-size:14px;

    line-height:1.4;

    font-weight:600;

    text-transform:uppercase;

}



/* ================= BLOMST ================= */


.about-flower{

    position:absolute;

    width:120px;

    right:220px;

    bottom:40px;

    z-index:1;

}



/* SELVE TEGNINGEN */

.about-flower path{

    fill:none;

    stroke-dasharray:3000;

    stroke-dashoffset:3000;

}


/* ==============================
   BLOMST SVG ANIMATION
============================== */

.flower-svg{

    position:absolute;

    width:420px;

    height:auto;

    right:250px;

    bottom:20px;

    z-index:1;

    overflow:visible;

}

/* ==============================
   HJØRNE KNAP
============================== */
.corner-button {

    position: absolute;

    right:60px;
    bottom:40px;

    background:transparent;

    border:1px solid #c72a09;

    padding:18px 20px;

    font-family:var(--font-heading);
    font-size:12px;
    font-weight:600;

    letter-spacing:1.5px;
    text-transform:uppercase;

    color:#c72a09;

    opacity:0;

    transform:translateY(30px);

    transition:
        opacity .8s ease,
        transform .8s ease,
        background .3s ease,
        color .3s ease;

        z-index:100;

    white-space:nowrap;
}


.corner-button.show {

    opacity:1;

    transform:translateY(0);

}


.corner-button:hover {

    background: #c72a09;

    color:#ffffff;

    transform:translateY(-5px);

}

/* ========================================================= HVEM ER JEG ============================================ */

.about-me{
    width:100%;
    padding:80px 8%;
    position:relative;
    overflow:hidden;
}

.about-me::before{
    content:"";
    position:absolute;
    inset:0;

    background-image:url("../img/kobaggrundmig.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    transform:scaleX(-1);
    z-index:-1;
}
.about-section{
    display:flex;
    width:100%;
    height:100vh;
    position:relative;
}

.about-heading{
    display:flex;
    justify-content:flex-end;
    margin-bottom:40px;
}

.about-heading h2{
    color:#c72a09;
    font-size:5.5rem;
    line-height:.9;
    text-transform:uppercase;
    text-align:right;
    font-weight:900;
}

.about-container{
    background:#c72a09;
    padding:55px;
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:60px;
    align-items:center;
}

.about-text{
    display:flex;
    flex-direction:column;
    gap:35px;
}

.about-text p{
    color:white;
    font-size:1.55rem;
    line-height:1.05;
    text-transform:uppercase;
    font-weight:700;
}

.about-image{
    display:flex;
    justify-content:center;
}

.about-image img{
    width:100%;
    max-width:350px;
    display:block;
}
.karousel{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:50px;

    width:100%;

    margin:20px auto 0;

}

.karousel-vindue{

    width:1600px;

    overflow:hidden;

    padding:20px 0;

}

.karousel-track{
    display: flex;
    gap: 30px;
    transition: transform .5s ease;
}

.karousel-kort{

    flex: 0 0 calc((100% - 60px) / 3);

    background: #c72a09;
    color: white;

    padding: 35px;

    min-height: 420px;

    text-align: center;

    transition:
        transform .35s ease,
        opacity .35s ease,
        box-shadow .35s ease;

    opacity: .6;

    transform: scale(.9);
}

.karousel-kort.aktiv{

    transform: scale(1);

    opacity: 1;

    z-index: 5;
}

.karousel-kort img{
    width:80px;
    margin-bottom:25px;
}

.karousel-kort h3{
    margin-bottom:20px;
    font-size:30px;
}

.karousel-kort p{
    line-height:1.6;
}

.karouselpil{
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.karouselpil img{
    width: 60px;      /* Justér størrelsen efter behov */
    height: auto;
    display: block;

    transition: transform .25s ease;
}
.karousel-overskrift{

    width:100%;

    display:flex;

    justify-content:flex-start;

    margin-top:50px;

    margin-bottom:40px;

}


.karousel-overskrift h2{

    color:#c72a09;

    font-size:3.5rem;

    line-height:.9;

    font-weight:900;

    text-transform:uppercase;

    text-align:left;

    margin:0;

}

.karousel-kort img{
    width:80px;
    margin-bottom:25px;
    transition: transform .3s ease;
}


/* KUN DET AKTIVE MIDTERSTE KORT */
.karousel-kort.aktiv:hover img{
    transform: translateY(-12px);
}
.karousel-kort img{
    transform: none !important;
}

.karousel-kort.aktiv:hover img{
    transform: translateY(-12px) !important;
}

/* ========================================================= SKILLS ============================================ */

.skills{
    width:100%;
}

/* Top banner */

.skills-header{
    background-size:cover;
    background-position:center;
    height:200px;

    display:flex;
    justify-content:center;
    align-items:center;
}

.skills-header h2{
    color:#c72a09;
    font-size:5rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:2px;
}

/* Content */

.skills-content{
    padding:70px 20px 90px;
    text-align:center;
}

.skills-content h3{
    color:#c72a09;
    font-size:2rem;
    margin-bottom:45px;
    text-transform:uppercase;
}

/* Creative tools billede */

.creative-tools{
    width:700px;
    max-width:90%;
    display:block;
    margin:0 auto 80px;
}

/* Frontend */

.frontend-boxes{
    display:flex;
    justify-content:center;
    gap:35px;
    flex-wrap:wrap;
}

.skill-box{
    border:4px solid #c72a09;
    color:#c72a09;
    padding:16px 34px;
    min-width:170px;

    font-size:2rem;
    font-weight:500;
    text-transform:uppercase;
}
/* ========================================================= CASES ============================================ */

.cases{
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 750px;
    overflow: hidden;
    background-color: #d9d9d9;
}


/* =============================================
   BJERGET
============================================= */

.cases__image{
    position: absolute;
    left: 0;
    bottom: 0;

    /* Gør bjerget stort */
    width: 115vw;
    height: 100%;

    /* Bjerget skal ligge OVER linjerne */
    z-index: 5;

    pointer-events: none;
}

.cases__image img{
    position: absolute;
    left: -50vw;
    bottom: -10vw;

    width: 115vw;
    height: auto;

    display: block;
}


/* =============================================
   CONTENT
============================================= */

.cases__content{
    position: relative;
    width: 100%;
    height: 100%;
}
.case-row a{

    text-decoration:none;

    color:inherit;

    display:flex;

    align-items:center;

    justify-content:space-between;

    width:100%;

}

/* =============================================
   OVERSKRIFT
============================================= */

.cases-title{
    position: absolute;

    top: 7%;
    right: 3%;

    width: 58%;

    z-index: 2;
}

.cases-title h2{
    margin: 0;

    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 5.5vw, 6.5rem);
    font-weight: 700;

    line-height: 0.9;

    color: var(--color-primary);
    text-transform: uppercase;
    text-align: right;
}

.cases-title h2 span{
    display: block;
    text-align: right;
}


/* =============================================
   CASE RÆKKER
============================================= */

.case-row{
    position: absolute;
    right: 0;

    width: 100%;
    height: 25%;

    box-sizing: border-box;

    border-top: 2px solid var(--color-primary);

    display: flex;
    align-items: center;
    justify-content: flex-end;

    /* Holder tekst og ikon mod højre */
    padding-left: 52%;
    padding-right: 4%;

    z-index: 1;
}


/* Første case */

.case-row:nth-of-type(2){
    top: 40%;
}


/* Anden case */

.case-row:nth-of-type(3){
    top: 65%;
    border-bottom: 2px solid var(--color-primary);
}


/* =============================================
   CASE TEKST
============================================= */

.case-row h3{
    width: 650px;          /* justér efter behov */
    text-align: right;
    padding-right: 20px;

    margin: 0;

    font-family: var(--font-heading);
    font-size: clamp(2rem,3vw,3.8rem);
    font-weight:700;
    text-transform:uppercase;

    color: var(--color-primary);
}


/* =============================================
   CASE IKONER
============================================= */
.case-row img{
    width:90px;
    transition:.35s ease;
}

/* Hover på ikonet */

.case-row img:hover{
    transform:translateY(-12px);
}

/* Hover på teksten */

.case-row h3:hover + img{
    transform:translateY(-12px);
}

.case-row img,
.case-row h3{

    transition:.35s ease;

}


.case-row img:hover,
.case-row h3:hover{

    transform:translateY(-12px);

}


.case-row h3:hover + img{

    transform:translateY(-12px);

}
/* =============================================
   CASES ANIMATION
============================================= */

.cases__image{
    opacity:0;
    transform:translateX(-180px);
    transition:1.3s ease;
}

.cases-title{
    opacity:0;
    transform:translateX(120px);
    transition:1.1s ease .2s;
}

.case-row:nth-of-type(2){
    opacity:0;
    transform:translateX(80px);
    transition:.9s ease .45s;
}

.case-row:nth-of-type(3){
    opacity:0;
    transform:translateX(80px);
    transition:.9s ease .65s;
}

.cases.show .cases__image,
.cases.show .cases-title,
.cases.show .case-row{
    opacity:1;
    transform:translateX(0);
}

/* ========================================= MALERIER SECTION ========================================= */

/* =========================================
   MALERIER
========================================= */

.malerier-section {
    position: relative;

    width: 100%;
    height: 718px;

    overflow: hidden;

    color: #c72a08;
}


/* =========================================
   SLØRET BAGGRUNDSBILLEDE
========================================= */

.malerier-section::before {

    content: "";

    position: absolute;
    inset: -25px;

    background-image: url("../img/maleri1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(7px);

    transform: scale(1.05);

    z-index: 0;
}


/* =========================================
   LYST OVERLAY
========================================= */

.malerier-section::after {

    content: "";

    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.652);

    z-index: 1;
}


/* =========================================
   INDHOLDET
========================================= */

.malerier-overlay {

    position: relative;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 2;
}

/* =========================================
   TEKST CONTAINER
========================================= */

.malerier-content {

    width: 90%;
    max-width: 500px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: #c72a08;
}


/* =========================================
   INTRO
========================================= */

.malerier-intro {

    margin: 0 0 45px 0;

    color: #c72a08;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1px;

    text-align: center;
}


/* =========================================
   HOVEDTEKST
========================================= */

.malerier-text {

    color: #c72a08;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.05;

    text-transform: uppercase;

    text-align: center;
}


.malerier-text p {
    margin: 0;
}


.malerier-highlight {

    margin-top: 20px !important;

    color: #c72a08;
}


/* =========================================
   BESKRIVELSE
========================================= */

.malerier-description {

    margin-top: 50px;

    color: #c72a08;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.05;

    text-transform: uppercase;

    text-align: center;
}


.malerier-description p {
    margin: 0;
}


/* =========================================
   KNAP
========================================= */

.malerier-button {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 190px;
    height: 50px;

    margin-top: 50px;

    border: 1px solid #c72a09;

    background: transparent;

    color: #c72a09;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}


.malerier-button:hover {

    background: #c72a08;

    color: white;

    transform: translateY(-5px);
}
/* ========================================================= FOOTER ============================================ */

.kontakt-footer {
    width: 100%;
    background: #d9d9d9;
}

.kontakt-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 80px 0;
}

.kontakt-title {
    text-align: center;
    font-size: 90px;
    font-weight: 900;
    color: #c72a09;
    margin: 0;
    text-transform: uppercase;
}

.kontakt-subtitle {
    text-align: center;
    color: #c72a09;
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 40px;
    text-transform: uppercase;
}

.kontakt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
    border-bottom: 2px solid #c72a09;
}

.kontakt-label {
    font-size: 20px;
    font-weight: 700;
    color: #c72a09;
    text-transform: uppercase;
}

.kontakt-info {
    font-size: 20px;
    font-weight: 700;
    color: #c72a09;
    text-decoration: none;
    text-transform: uppercase;
}

.kontakt-info:hover {
    opacity: 0.7;
}

.footer-billede {
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
}

.footer-billede img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-billede {
    width: 100%;
    height: 230px;
    background: #d32600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-billede img {
    width: 90%;
    max-width: 1500px;
    transform: translateY(-2px);
}

/* ------------------------------------------------HEADER --------------------------------------------------- */

.header{
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translate(-50%, -80px);

    opacity: 0;
    visibility: hidden;

    z-index: 9999;

    transition:
        transform .10s ease,
        opacity .10s ease;
}
.header{

    transition:
        transform .9s ease-out,
        opacity .9s ease-out;

}
.header.show{
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.header.hide{
    transform: translate(-50%, -120px);
}

.header.show.hide{

    transform:translate(-50%,-140px);

}
.navbar{

    width:fit-content;

    background:#c72a09;

    display:flex;
    align-items:center;
    gap:10px;

    padding:18px 10px;

}

/* ---------- LOGO ---------- */

.logo img{

    width:45px;
    display:block;
    left:35px;

}

/* ---------- MENU ---------- */

.nav-links{

    list-style:none;

    display:flex;
    gap:45px;

    margin:0;
    padding:0;

}

.nav-links li{

    position:relative;

}

.nav-links a{

    color:white;
    text-decoration:none;

    font-family:sans-serif;
    font-weight:600;

    position:relative;

    padding-bottom:5px;

}

/* ---------- HOVER STREG ---------- */

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:2px;

    background:white;

    transform:scaleX(0);
    transform-origin:left;

    transition:.35s;

}

.nav-links a:hover::after{

    transform:scaleX(1);

}

/* ---------- DROPDOWN ---------- */

.dropdown-menu{

    position:absolute;

    top:150%;
    left:0;

    background:#c72a09;

    min-width:180px;

    list-style:none;

    padding:12px 0;

    opacity:0;
    visibility:hidden;

    transition:.3s;

}

.dropdown-menu li{

    padding:10px 20px;

}

.dropdown-menu a{

    display:block;
    width:100%;

}

.dropdown:hover .dropdown-menu{

    opacity:1;
    visibility:visible;

}

.dropdown.active .dropdown-menu{

    opacity:1;
    visibility:visible;

}

.malerier-content {
    opacity: 0;
    transform: translateY(50px);
}

.malerier-content.show {
    animation: malerierFadeIn 1.2s ease-out forwards;
}

@keyframes malerierFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBIL / IPHONE ===== */

@media (max-width: 760px) {

    body {
        font-size: 16px;
    }

    .cursor {
        display: none !important;
    }

    /* NAVIGATION */

    .navbar {
        min-height: 70px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .logo img {
        max-height: 45px;
        width: auto;
    }

    .nav-links {
        position: fixed;
        inset: 70px 0 auto 0;

        margin: 0;
        padding: 18px 24px 28px;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        gap: 4px;

        background: rgba(255,255,255,.97);
        backdrop-filter: blur(14px);

        box-shadow: 0 16px 35px rgba(0,0,0,.12);

        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;

        transition: .35s ease;
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        padding: 0 0 0 16px !important;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown > a span {
        float: right;
    }

    .about-section .content {
        position: static;
    
        width: 100%;
        max-width: 500px;
    
        margin: 0 auto;
    
        text-align: center;
    
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    
        opacity: 1;
        transform: none;
    }
    .about-section .flower-svg {
        display: none;
    }
  
    /* HERO */

    .hero {
        min-height: 100svh;
        width: 100%;
        overflow: hidden;
    }

    .hero > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .title {
        font-size: clamp(3.2rem, 16vw, 6rem);
        text-align: center;
        width: 100%;
        padding: 0 15px;
        line-height: .9;
    }

    .name {
        font-size: clamp(.8rem, 3vw, 1rem);
        text-align: center;
        width: 100%;
        padding: 0 20px;
        letter-spacing: .08em;
    }

    .scroll {
        bottom: 25px;
    }


    /* LEAF SECTION */

    .leaf-section {
        min-height: auto;
        padding: 80px 20px;
    }

    .leaf-border {
        width: 100%;
        height: 100%;
    }

    .leaf-text {
        font-size: clamp(1.5rem, 7vw, 2.4rem);
        line-height: 1.1;
        text-align: center;
        padding: 20px;
    }


    /* ABOUT ME */

    .about-me {
        padding: 70px 20px;
    }

    .about-heading h2,
    .skills-header h2,
    .cases-title h2 {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    .about-text {
        width: 100%;
        font-size: .95rem;
        line-height: 1.7;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .about-section .content a,
    .about-section .content button {
        display: block;
        width: fit-content;
        margin: 20px auto 0;
    }

    /* KAROUSEL */

    .karousel-overskrift {
        margin-top: 70px;
    }

    .karousel-overskrift h2 {
        font-size: clamp(1.8rem, 8vw, 3rem);
        line-height: 1.1;
        text-align: center;
    }

    .karousel {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .karousel-vindue {
        width: 100%;
        overflow: hidden;
    }

    .karousel-track {
        display: flex;
    }

    .karousel-kort {
        min-width: 100%;
        padding: 25px 20px;
    }

    .karousel-kort img {
        max-width: 80px;
        margin-bottom: 15px;
    }

    .karousel-kort h3 {
        font-size: 1.4rem;
    }

    .karousel-kort p {
        font-size: .92rem;
        line-height: 1.6;
    }

    .karouselpil {
        width: 38px;
        flex-shrink: 0;
    }


    /* SKILLS */

    .skills {
        padding: 70px 20px;
    }

    .skills-content {
        width: 100%;
    }

    .skills-content h3 {
        font-size: 1.1rem;
    }

    .creative-tools {
        width: 100%;
        height: auto;
    }

    .frontend-boxes {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .skill-box {
        width: 100%;
        text-align: center;
        padding: 18px;
    }


    /* CASES */

    .cases {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .cases__image,
    .cases__content {
        width: 100%;
    }

    .cases__image img {
        width: 100%;
        height: auto;
    }

    .cases__content {
        padding: 60px 20px;
    }

    .case-row {
        margin-top: 35px;
    }

    .case-row a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .case-row h3 {
        font-size: clamp(1.4rem, 7vw, 2.3rem);
        margin-bottom: 15px;
    }

    .case-row img {

        width: 90px;
        max-width: 70vw;
    
        height: auto;
    
        margin: 0 auto;
    
        transition: transform 0.3s ease;
    }


    /* ABOUT SECTION */

    .about-section {
        display: flex;
        flex-direction: column;
    }

    .image-side,
    .text-side {
        width: 100%;
    }

    .image-side img {
        width: 100%;
        height: auto;
    }

    .text-side {
        padding: 60px 20px;
    }


    /* MALERIER */

    .malerier-section {
        padding: 70px 20px;
    }

    .malerier-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .malerier-image,
    .malerier-text {
        width: 100%;
    }


    /* FOOTER */

    .kontakt-footer {
        display: flex;
        flex-direction: column;
    }

    .kontakt-container {
        padding: 60px 20px;
        width: 100%;
    }

    .kontakt-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .kontakt-row {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 20px;
    }

    .footer-billede {
        width: 100%;
    }

    .footer-billede img {
        width: 100%;
        height: auto;
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(32px);
    }

}


/* ===== SMÅ IPHONES ===== */

@media (max-width: 390px) {

    .title {
        font-size: 3.2rem;
    }

    .about-me,
    .skills,
    .leaf-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .karouselpil {
        width: 32px;
    }

}

/* =========================================
   RESPONSIV MOBIL
========================================= */


/* =========================================
   SCROLL ANIMATIONER
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}


/* =========================================
   MOBIL
========================================= */

@media screen and (max-width: 768px) {


    /* =====================================
       CASES
    ===================================== */

    .cases {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding: 80px 20px;
    }


    /* FJERN BJERGET */

    .cases__image {
        display: none;
    }


    /* CASES INDHOLD */

    .cases__content {
        width: 100%;
        text-align: center;

        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .cases-title {
        width: 100%;
        text-align: center;

        margin-bottom: 40px;
    }


    /* DE TO CASES */

    .case-row {
        width: 100%;

        display: flex;
        justify-content: center;

        margin: 15px 0;
    }


    .case-row a {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        text-align: center;

        width: 100%;
    }


    /* OVERSKRIFT */

    .case-row h3 {
        font-size: 1.3rem;

        margin-bottom: 15px;
    }


    /* IKONERNE / BILLEDERNE */

    .case-row img {

        width: 180px;
        max-width: 70vw;

        height: auto;

        margin: 0 auto;

        transition:
            transform 0.3s ease;

    }


    /* LILLE HOVER EFFEKT */

    .case-row a:hover img {

        transform: scale(1.05);

    }



    /* =====================================
       ABOUT SECTION
    ===================================== */


    /* FJERN VENSTRE BILLEDSIDE */

    .about-section .image-side {

        display: none;

    }


    /* TEKSTSIDEN FYLDER HELE BREDDEN */

    .about-section .text-side {

        width: 100%;

        padding: 70px 25px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        text-align: center;

    }


    /* ALT TEKST CENTRERES */

    .about-section .text-side h1,
    .about-section .text-side h2,
    .about-section .text-side h3,
    .about-section .text-side p {

        text-align: center;

    }


    /* BLOMST SVG */

    .about-section .flower-svg {

        max-width: 180px;

        height: auto;

        margin: 0 auto 25px auto;

    }



    /* =====================================
       KNAPPEN I ABOUT SECTION
    ===================================== */


    /*
       Her sikrer vi, at knappen ikke
       ligger ovenpå teksten
    */

    .about-section .text-side a,
    .about-section .text-side button {

        position: static !important;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        margin-top: 30px;

        z-index: 2;

    }



    /* =====================================
       FOOTER
    ===================================== */


    /* FJERN BILLEDET I FOOTEREN */

    .footer-billede {

        display: none;

    }


    /* FOOTER VISER KUN OPLYSNINGER */

    .kontakt-footer {

        display: block;

        width: 100%;

    }


    .kontakt-container {

        width: 100%;

        padding: 70px 25px;

        text-align: center;

    }


    .kontakt-container h1,
    .kontakt-container h2,
    .kontakt-container h3,
    .kontakt-container p {

        text-align: center;

    }


    /* KONTAKTOPLYSNINGER */

    .kontakt-row {

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        text-align: center;

        gap: 5px;

    }


}


@media screen and (max-width: 768px) {

    .cases__content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .case-row {
        position: relative;
        width: 100%;
        height: auto;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .case-row a {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .case-row h3 {
        width: 100%;
        padding: 0;
        margin: 0 0 20px 0;
        text-align: center;
    }

    .case-row img {
        width: 90px !important;
        max-width: 90px !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }

}


@media screen and (max-width: 768px) {

    .about-section .text-side {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .about-section .content {
        position: static !important;
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 25px;
        box-sizing: border-box;
        text-align: center !important;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        opacity: 1;
        transform: none;
    }

    .about-section .content h1,
    .about-section .content h2,
    .about-section .content h3,
    .about-section .content p {
        width: 100%;
        text-align: center !important;
    }

    .about-section .content a {
        display: block !important;
        width: fit-content !important;
        margin: 25px auto 0 !important;
        text-align: center !important;
    }

    .about-section .flower-svg {
        display: none;
    }

}

@media screen and (max-width: 768px) {

    /* CASES */
    .cases__content {
        width: 100%;
        text-align: center;
    }

    .case-row {
        position: absolute;
        right: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .case-row a {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .case-row h3 {
        width: 100%;
        padding: 0;
        margin: 0 0 15px 0;
        text-align: center;
    }

    .case-row img {
        width: 70px !important;
        max-width: 70px !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {

    .corner-button {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        bottom: 30px !important;

        transform: translateX(-50%) !important;

        margin: 0 !important;
        white-space: nowrap;
    }

    .corner-button.show {
        transform: translateX(-50%) !important;
    }

}

@media screen and (max-width: 768px) {

    .karousel .karousel-vindue .karousel-track .karousel-kort:first-child {
        opacity: 1 !important;
        filter: none !important;
    }

}
.karousel-vindue {
    min-width: 0;
}

@media screen and (max-width: 768px) {
    .karousel-kort {
        flex: 0 0 100%;
        min-width: 0;
    }

    .karouselpil img {
        width: 100%;
        height: auto;
    }
}

/* TRE CASES – DESKTOP */

@media screen and (min-width: 769px) {
    .case-row {
        height: 20%;
    }

    .case-row:nth-of-type(2) {
        top: 35%;
    }

    .case-row:nth-of-type(3) {
        top: 55%;
        border-bottom: none;
    }

    .case-row:nth-of-type(4) {
        top: 75%;
        border-bottom: 2px solid var(--color-primary);
    }
}

/* TRE CASES – MOBIL */

@media screen and (max-width: 768px) {
    .cases {
        height: auto;
        min-height: 0;
    }

    .cases__content {
        height: auto;
        padding: 0;
    }

    .cases-title {
        position: static;
        width: 100%;
        margin-bottom: 40px;
    }

    .case-row {
        position: static;
        height: auto;
        margin: 0;
        padding: 25px 0;
    }

    .case-row:nth-of-type(3) {
        border-bottom: none;
    }

    .case-row:last-child {
        border-bottom: 2px solid var(--color-primary);
    }
}
/* Skjul mobilknappen på desktop */
.front-menu-toggle {
    display: none;
}

@media screen and (max-width: 900px) {
    .header {
        top: 12px;
        left: 50%;
        width: calc(100% - 32px);
        max-width: 600px;
    }

    .header .navbar {
        position: relative;
        width: 100%;
        min-height: 64px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #c72a09;
    }

    .header .logo img {
        width: 38px;
        height: auto;
    }

    .header .front-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        background: transparent;
        color: white;
        font: 600 1rem sans-serif;
    }

    .header #front-navigation {
        position: absolute;
        inset: 100% 0 auto;
        width: 100%;
        max-height: calc(100dvh - 100px);
        overflow-y: auto;

        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px;

        margin: 0;
        padding: 12px 18px 20px;
        background: #c72a09;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);

        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header #front-navigation.open {
        display: flex !important;
    }

    .header #front-navigation li {
        width: 100%;
    }

    .header #front-navigation a {
        display: block;
        padding: 12px 0;
        color: white;
        font-size: 1rem;
        text-align: left;
    }

    .header #front-navigation .dropdown-menu {
        position: static !important;
        display: none !important;
        min-width: 0;
        padding: 0 0 0 16px !important;
        background: #c72a09;
        box-shadow: none !important;
    }

    .header #front-navigation .dropdown.active > .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    .header #front-navigation .dropdown-menu li {
        padding: 0;
    }

    /* Headeren bliver synlig, mens mobilmenuen er åben */
    .header.mobile-menu-open {
        transform: translate(-50%, 0);
        opacity: 1;
        visibility: visible;
    }
}
@media screen and (max-width: 900px) {
    .scroll {
        top: 110px;
        bottom: auto;
    }
}

/* Spilcaféen glider ind som de andre cases */
.cases .case-row:nth-of-type(4) {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity .9s ease .85s,
                transform .9s ease .85s;
}

.cases.show .case-row:nth-of-type(4) {
    opacity: 1;
    transform: translateX(0);
}
