/* ========================================= */
/* 1. GENERELLE & NULSTILLINGS STYLES (Base) */
/* ========================================= */

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Typografi - Fonts */
h1, h2, h3 {
    font-family: 'IBM Plex Serif', sans-serif;
    margin: 0;
}

:where(p) {
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 16px;
    margin: 0;
}

/* Typografi - Størrelser */
h1 {
    font-weight: 300;
    font-size: 35px;
}

h2 {
    font-weight: 400;
    font-size: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 400;
}


/* Farve/Side Baggrunde */
.side-hjem {
    background-color: #ffffff;
}

.side-projekter, .side-kontakt {
    background-color: #ffffff;
}

/* ========================================= */
/* 2. HEADER & NAVIGATION (Site-Wide) */
/* ========================================= */

.site-header {
    background-color: rgb(255, 255, 255);
    color: #260E17;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

/* MENU (Mobil) */
.nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    font-family: quicksand;
}

.nav-menu.active {
    left: 0;
    background-color: transparent;
}

.nav-link {
    color: rgb(38, 14, 23);
    text-decoration: none;
    padding: 5px;
    margin: 10px 0;
    transition: border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.nav-link:hover, .nav-link.active {
    border-bottom-color: rgb(38, 14, 23);
}

/* Hamburger Ikon (Mobil) */
.hamburger {
    display: block;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: rgb(38, 14, 23);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.knap, .btn, .top-cta, .send-button{
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 12px;
}

/* ========================================= */
/* 3. FOOTER (Site-Wide) */
/* ========================================= */

  .footer {
    background-color: #212121; 
    color: #F2F2F2; 
    padding: 30px 5%; 
    display: flex;
    flex-direction: column;
    text-align: center; 
    margin-top: 0;
}

.contact-column li{
    color: #F0F0F2;

  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;

}

.footer-header-container {
    display: flex;
    flex-direction: column; /* Stablet på mobil */
    align-items: center; /* Centrér elementer */
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;

}

.footer-logo {
    margin-bottom: 15px; /* Plads mellem logo og CTA */
}

.footer-logo img {
   width: 50px;
    height: 50px;
    object-fit: cover;
    margin: 0 auto;
}

.top-cta {
    background-color: var(--accent-color);
    color: #F0F0F2;
    border: solid #F23D5E;
    margin-top: 15px;
}

.top-cta:hover {
    background-color:#F23D5E;
    color: #ffffff;

}

.footer-content-container {
    display: flex;
    flex-direction: column; /* Stablet på mobil */
    gap: 20px; /* Plads mellem de stablede kolonner */
}


.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 5px;
    font-size: 15px;
}

.footer-column h3 {
    margin-bottom: 5px;
}


.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0 15px 0;
}

.copyright-info {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
}





/* ========================================= */
/* 4. FORSIDE (Hjem) */
/* ========================================= */

.forside-top {
    display: flex;
    flex-direction: column;
    min-height: auto;
    margin: 0 auto;
    border-radius: 0;
    padding-top: 0;
}

.top-left {
background-image: url(img/mg1.webp);
 background-size: cover;        /* Fylder containeren */
  background-position: center; /* Viser venstre del af billedet */
  background-repeat: no-repeat;
  height: 50vh; 
  overflow-x: hidden;                 /* Mobilhøjde */
}


.top-right {
    flex: 1 1 100%;
    background: var(--bg-right);
    display: grid;
    justify-content: center;
    max-width: 100%;
     background-color: #F2F2F2;
}

.forside-om-mig {
    text-align: left;
    padding: 30px;
}

.forside-om-mig h2 {
    font-size: 35px;
    font-weight: 300;
}

.forside-om-mig h1 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 50px;
    margin-top: 10px;
}

.forside-om-mig p {
   word-spacing: 10px;
   margin-bottom: 10px;
   font-weight: 400;
}



.knap, .knap2 {
background-color: #F23D5E;;
border: solid #F23D5E;
margin-top: 20px;
color: #F0F0F2;
    

}

.knap:hover {
    color:#260E17;
    background-color:transparent;
}


.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}


.boks {
    position: relative; /* Gør boksen til referencen for absolut positionering */
    overflow: hidden;   /* Vigtigt, så indhold kan skjules, indtil der hoveres */
    cursor: pointer;    /* Gør det klart for brugeren, at det er interaktivt */
    

}

/* 1. STIL FOR OVERLAYET */
.boks-overlay {
    position: absolute; /* Læg den ovenpå billedet */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(191, 174, 175, 0.9); /* Mørkebrun/sort med 70% gennemsigtighed */
      color:#212121;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(100%); 
    opacity: 0; 
    transition: all 0.4s ease-out;
}


.boks:hover .boks-overlay {
    transform: translateY(0); /* Flyt den ind fra bunden */
    opacity: 1;             /* Gør den fuldt synlig */
}

.boks-overlay h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.boks-overlay p.tekst {
    font-size: 16px;
}

.boks {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.boks-1 {
    background-image: url(img/webdesignforside.webp);
}

.boks-2 {
    background-image: url(img/logodesign.webp);
}

.boks-3 {
    background-image: url(img/Emballge.webp);
}

.boks p {
    margin: 10px;
}

/* Banner sektioner */

/* Container */
.scrolling-banner {
  width: 100%;
  overflow: hidden;
  background-color: #F2F2F2;
  padding: 0;
  /* Læg “sporet” vandret */
  display: flex;
  white-space: nowrap;
}

/* Hver tekstblok (original + den klonede) */
.scrolling-text {
  display: inline-flex;
  align-items: center;
  gap: 4rem;              /* afstand mellem ord/sektorer */
  white-space: nowrap;
  will-change: transform;
  animation: marquee 60s linear infinite;
}

.scrolling-text h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 200;
  opacity: 0.5;
  color: #212121;
}

/* Flyt -50% fordi der kommer 2 identiske kopier i række */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}






.grid-containerbund {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    width: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
}

.grid-item3 {
        padding-inline: 30px;
    }

   
.grid-item3 h2{
        padding-bottom: 20px;
        font-size: 35px;
        font-weight: 300;
    } 

.grid-item3 h3{
        font-size: 20px;
        font-weight: 500;
        margin-top: 50px;
    } 

.grid-item3 p{
 line-height: 30px;
}
    
    .knap2 {
    margin-bottom: 100px;
    margin-top: 20px;
    }



.features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    height: 540px;
    background-color: #F2F2F2;
  
}

.features li {
    display: grid;
    grid-template-columns: 30px  1fr;
    align-items: center;
    height: 100px;
    color: #212121;

}

.features li:hover {
    background-color:#BFAEAF;

}

.text-box{
    padding-right: 30px;
}


.text-box h3 {
    font-weight: 400;
}


/* ========================================= */
/* 5. PROJEKTSIDE (Portfolio) */
/* ========================================= */

.projekt-sektion {
    min-height: 60vh;
    background-color: #BFAEAF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
}

.indholds-boks {
    background-color: #F0F0F2;
    opacity: 0.9;
    padding: 30px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 30px;
        line-height: 30px;
}

.indholds-boks h3 {
    font-style: italic;
    font-weight: 300;
}

.portfolio-case {
    padding-left: 30px;
    padding-right: 30px;
    grid-template-columns: 1fr;
    margin-bottom: 100px;
}

.case-text {
    grid-column: 1;
    margin-bottom: 20px;
}

.case-number {
    font-size: 55px;
    font-weight: 700;
    color:#212121;
    margin-bottom: 10px;
}

.case-title {
    margin-bottom: 5px;
    font-size: 30px;
    font-weight: 300;
}

.case-subtitle {
    color: #000000;
    margin-bottom: 20px;
    font-weight: 400;
}

.brød-tekst {
        line-height: 30px;
}

.case-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 15px;
}



.kontakt-banner {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    min-height: 60vh;
    padding-inline: 30px;
    text-align: center; 
    background-color: #F0F0F2;
    color:#212121;
    margin-bottom:  100px;
}

.kontakt-banner h2 {
    font-weight: 300;
    font-size: 25px;
}

.kontakt-banner h3 {
    font-weight: 500;
    font-size: 20px;
}



  .actions {
    display: flex;         /* lægger knapperne på række */
    gap: 12px;             /* afstand mellem knapper */
    align-items: center;   
    flex-wrap: wrap;      
  }

  .btn.primary {
    background-color:#F23D5E;;
    color: #fff;
     border: solid#F23D5E;
    text-decoration: none;
  }

  .btn.secondary {
    background-color: #F0F0F2;
    border: solid #F23D5E;
    color:#260E17;
    text-decoration: none;
  }


/* ========================================= */
/* 6. KONTAKTSIDE */
/* ========================================= */

#full-screen-overlay {
    left: 0;
    width: 100%;
    height: 700px;
    background-color: #F0F0F2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.contact-content-box {
    width: 80%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
}

.contact-header h1 {
    font-size: 35px;
    font-weight: 300;
    margin-bottom: 10px;
}

.contact-header p {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 50px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #aaa;
    background-color: #f0f0f0;
    box-sizing: border-box;
    font-size: 1em;
}

.input-row {
    display: flex;
    flex-direction: column;
}

.send-button {
    background-color: #F23D5E;
    color: #F2F2F2;
    border-color: #BFAEAF;
    cursor: pointer;
    margin-top: 10px;
}


/* ========================================= */
/* 7. OM MIG SIDE */
/* ========================================= */

.om-mig {
    display: flex;
    flex-direction: column;
    min-height: auto;
    margin: 0 auto;
    border-radius: 0;
    padding-top: 0;
}

.om-mig-left {
background-image: url(img/mg3.webp);
 background-size: cover;        /* Fylder containeren */
  background-position: center; /* Viser venstre del af billedet */
  background-repeat: no-repeat;
  height: 50vh; 
  overflow-x: hidden;                 /* Mobilhøjde */
  
}


.om-mig-right {
    flex: 1 1 100%;
    background: var(--bg-right);
    display: grid;
    justify-content: center;
    max-width: 100%;
}

.content-om-mig {
    text-align: left;
    background-color: #BFAEAF;
    padding: 30px;

}

.content-om-mig p {
    line-height: 30px;
}

.content-om-mig a {
    text-decoration: none;
    color: #260E17;
}

.hvid-boks {
    text-align: left;
    padding: 30px;
}

.hvid-boks h1 {
    padding-bottom: 20px;
}

.hvid-boks h2 {
    font-weight: 400;
    font-size: 16px;
}

.hvid-boks p {
    line-height: 30px;
}


/* Skills sektion */
.skills-section h2 {
margin-bottom: 20px;
padding-left: 30px;
font-size: 35px;
font-weight: 200;

}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.left-column {
    width: 100%;
    order: 2;
}

.right-column {
    width: 100%;
    padding-top: 0;
}

.image-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

.skill-group {
    margin-bottom: 20px;
    padding-right: 30px;
    padding-left: 30px;
}

.skill-group h3 {
    letter-spacing: 1px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.software-icons img {
    width: 250px;
    margin-top: 30px;
}


/* ========================================= */
/* 8. MEDIA QUERIES (Desktop) */
/* ========================================= */

@media screen and (min-width: 769px) {

    /* --- Generelle justeringer --- */
    :where(p) {
        font-size: 18px;
    }
    h1 {
        font-size: 45px;
    }
    h2 {
        font-size: 25px;
    }
    h3 {
        font-weight: 600;
        font-size: 20px;
    }

    /* --- NAVIGATION JUSTERINGER --- */
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        left: auto;
        top: auto;
        display: flex;
        flex-direction: row;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        transition: none;
    }

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

    .nav-link {
        padding: 15px;
    }

    .knap, .btn, .top-cta, .send-button {
    padding: 12px 25px;
    font-size: 16px;
}

    
/* --- FORSIDE (Hjem) --- */



.forside-top {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  margin-top: 80px;
  align-items: stretch; 
  height: 600px; 
    margin-bottom: 80px;  
    padding-inline: 80px;
}


.top-left { flex: 1 1 48%; }
.top-right { flex: 1 1 50%; }

.top-left {
  min-height:600px;
  background-position:center;
}

.top-left img {
  display: block;              /* fjern evt. ekstra space fra inline images */
  width: 100%;
  height: 100%;                /* fylder hele venstre kolonne */
  object-fit: cover;

}

.top-right {
  box-sizing: border-box;      /* så padding ikke “sprænger” højden */
  display: flex;               /* for at centrere indhold vertikalt/horizontalt */
  align-items: center;         /* lodret centrering af teksten */
  justify-content: center;     
  padding: 20px;  
        /* bevar din indvendige luft */
}



.forside-om-mig h2 {
    font-size: 45px;
   
}

.forside-om-mig h1 {
    font-size: 25px;
}

.forside-om-mig p {
   font-size: 16px;
}




    .container {
        flex-direction: row;
        justify-content: space-between;
        max-width: 100%; 
        gap: 0;
    }

    .boks {
        flex: 1;
        margin: 0;
        height: 500px;
    }

    .grid-containerbund {
        grid-template-columns: 1fr 1fr;
  
    margin-top: 150px;
    margin-bottom: 150px;
    }

    .grid-item3 {
   padding-inline: 0px;
   padding-left: 100px;
    }


    .grid-item3 h2{
   font-size: 45px;
    }

    .grid-item3 h3{
        font-size: 25px;
  
    } 

   .grid-item4 {
    padding-inline: 100px;
}
    
    .text-box{
    padding-right: 0;
}

    .scrolling-text h2 {
        font-size: 100px;
    }

    /* --- PROJEKTER --- */
    .projekt-sektion {
        justify-content: flex-start;
        padding-inline: 80px;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 200px;
    }

    .indholds-boks {
        margin: 0;
        max-width: 720px;
    }

    .indholds-boks h1 {
        padding-bottom: 20px;
    }

    .portfolio-case {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        margin: 80px;
        justify-content: center;
    }

    .case-img {
        min-height: 500px;
        margin-bottom: 0;
    }
    .case-title {
    font-size: 45px;
}
    .case-text {
        grid-column: 1 / 2;
        margin-bottom: 0;
    }

    .case-number {
        margin-top: 20px;
        font-size: 100px;
        padding-bottom: 20px;
    }

    /* ZIGZAG */
    .portfolio-case:nth-child(even) .case-text {
        grid-column: 2 / 3;
        grid-row: 1;
    }

    .portfolio-case:nth-child(even) .case-img {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    /* --- KONTAKT --- */
    .hero-kontakt { /* Disse klasser var ikke i mobil-sektionen, kun desktop. De er kun tilføjet her. */
        flex-direction: row;
        max-width: 1200px;
        margin-top: 80px;
        align-items: center;
    }

    .hero-left-kontakt {
        flex: 1 1 50%;
        min-height: auto;
    }
    .hero-right-kontakt {
        flex: 1 1 50%;
    }

    .content-kontakt {
        max-width: 600px;
        align-content: center;
    }

    .contact-header h1 {
    font-size: 45px;
}

.contact-header p {
    font-size: 25px;
}
    

    /* --- OM MIG --- */
    .om-mig {
        flex-direction: row;
        width: auto;
        margin-top: 80px;
        align-items: center;
        height: 700px;
        padding-inline: 80px;
    }

    .om-mig-left {
        flex: 1 1 20%;
        min-height: auto;
        height: 700px;
    }

    .om-mig-left img {
        object-fit: cover;
        object-position: center;
        
    }

    .om-mig-right {
        flex: 1 1 50%;
        height: 600px;
        margin-left: 60px;
        align-content: center;
    }

    .content-om-mig {
        margin-top: 40px;
          color: #260E17;
    }

    .hvid-boks {
        padding: 0;
        justify-content: flex-start;
        color: #260E17;
    }

    .hvid-boks h2 {
    font-size: 20px;
}

    .skills-container {
        margin-top: 150px;
        margin-bottom: 150px;
        flex-direction: row;
        gap: 40px;
        display: flex;
        align-items: flex-start;
    }

    .skills-section h2 {
    padding: 0px;
    font-size: 45px;
  
    }
    .left-column {
        flex: 1;
        order: 1;
    }

    .right-column {
        flex: 1;
        order: 2;
        padding-right: 80px;
    }

    .software-icons img {
        width: 300px;
        margin-top: 40px;
    }

    .skill-group {
        padding: 0;
    }

    .luft-banner-ommig {
    padding: 100px 0;
}

    /* --- FOOTER --- */

.footer {
        padding: 40px 8%; /* Udvid padding for desktop */
        text-align: left; /* Juster tekst til venstre */
            margin-top: 0;
        }

    .footer-header-container {
        flex-direction: row; /* Side om side */
        justify-content: space-between;
    }

    .top-cta{
    margin-bottom: 15px;
    }

    .footer-logo {
        margin-right: 900px;
    }

    .footer-content-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px; 
    }

    .footer-column {
        margin-top: 40px;
        flex-basis: 15%; 
        text-align: left; 
    }

    .footer-column li {
        margin-bottom: 10px; 
    }


    .copyright-info {
        margin-top: 120px; 
        text-align: left;
    }

}

