* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-lg: 80px;
    --space-md: 40px;
    --space-sm: 20px;
}

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;

    background: linear-gradient(
        180deg,
        #121212 0%,      /* soft black (ikke ren sort) */
        #2a2522 12%,     /* meget mild espresso */
        #4a3b33 25%,     /* lysere brun (mindre tung) */
        #7a624f 45%,     /* varm light brown */
        #b79c84 65%,     /* beige brown */
        #e6d7c8 85%,     /* sand beige */
        #f4efe6 100%     /* din base beige */
    );
}

/* TYPOGRAPHY */
h1, h2 {
    font-family: "Playfair Display", serif;
}

/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    font-weight: 1000;
    z-index: 1000;

    background: transparent;
    transition: background 0.4s ease, border 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 1000;
}
nav.scrolled .logo {
    color: #c8b79a;
}

nav.scrolled a {
    color: #c8b79a;
}

nav.scrolled .burger {
    color: #c8b79a;
}

.logo {
    color: white;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: white;
}

/* BURGER MENU */
.burger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 768px) {
    .burger {
        display: block;

    }

    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.08);

        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        color: #c8b79a;

    }
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    color: white;
    position: relative;
    padding-top: 90px;
    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 120px; /* giver luft til PORTFOLIO */
}

/* MAIN TITLE */
.hero-main-title {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9vw;
    letter-spacing: 2px;
}

/* LEFT TEXT */
.hero-left {
    position: absolute;
    left: 6%;
    top: 32%;
    max-width: 300px;
}

/* IMAGE */
.hero-right img {
    width: 300px;
    height: 500px;
    object-fit: cover;

    display: block;

    /* 👇 vigtig ændring: giver luft under PORTFOLIO */
    margin-top: 50px;
}

/* RIGHT TEXT */
.hero-side-text {
    position: absolute;
    right: 6%;
    top: 32%;
    max-width: 250px;
    text-align: right;
}

/* BOTTOM LEFT */
.hero-label {
    position: absolute;
    bottom: 10%;
    left: 6%;
    opacity: 0.9;
}

/* BOTTOM RIGHT */
.hero-year {
    position: absolute;
    bottom: 10%;
    right: 6%;
    opacity: 0.9;
}

.hero-bottom {
    position: absolute;
    bottom: 10%;
    left: 6%;
    right: 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    white-space: nowrap;

}
@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        text-align: center;

        height: auto;

        padding: 120px 20px 20px;

        gap: 25px; /* 👈 mindre gap = mindre luft */
    }

    /* fjern absolute helt i mobile */
    .hero-main-title,
    .hero-left,
    .hero-side-text,
    .hero-label,
    .hero-year {
        position: static;
        transform: none;
        left: auto;
        right: auto;
        top: auto;
        text-align: center;

        margin: 0; /* 👈 vigtigt: fjerner default spacing */
    }

    .hero-main-title {
        font-size: 3rem;
        margin-bottom: 5px;
    }

    .hero-left {
        margin-bottom: 10px;
    }

    .hero-left h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .hero-left p {
        font-size: 1rem;
        opacity: 0.8;
        line-height: 1.5;
        margin: 0;
    }

    .hero-right img {
        width: 70%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .hero-side-text {
        margin-bottom: 10px;
    }

    .hero-side-text h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .hero-side-text p {
        font-size: 1rem;
        opacity: 0.8;
        margin: 0;
    }

    .hero-label,
    .hero-year {
        font-size: 0.85rem;
        opacity: 0.7;
        margin: 0;
    }
}

/* =========================
   QUOTE
========================= */

.quote {
    color: white;
    text-align: center;
    font-style: italic;
    padding-bottom: var(--space-md);
    padding: var(--space-sm) 1;
}



/* =========================
   WORK SECTION
========================= */

.work-section {
    padding: var(--space-lg) var(--space-md);
}

.work-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.work-buttons button {
    padding: 22px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 1px;
}

.work-buttons button:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    border: 1px solid black;
}

/* MOBILE */
@media (max-width: 768px) {
    .work-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   MODAL BACKDROP (IMPROVED)
========================= */

.work-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;

    padding: 20px;
}

.work-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   MODAL BOX (IMPROVED SPACING)
========================= */

.work-modal-content {
    width: min(750px, 95%);
    padding: 35px;
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    transform: translateY(25px);
    transition: 0.35s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.work-modal.active .work-modal-content {
    transform: translateY(0);
}

.work-modal {
    z-index: 9999;
}

.work-modal-content {
    z-index: 10000;
    position: relative;
    background: white;
}
/* CLOSE BUTTON */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}


/* =========================
   CONTENT SWITCH
========================= */

.modal-content {
    display: none;
}

.modal-content.active {
    display: block;
}

/* TEXT */
.modal-content h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.85;
}

/* LINKS */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.link-list a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding-bottom: 5px;
    transition: 0.3s ease;
}

.link-list a:hover {
    opacity: 0.6;
    transform: translateX(5px);
}

/* =========================
   PRINT (3 IMAGES)
========================= */

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================
   LOGO (2 IMAGES)
========================= */

.logo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.logo-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}
@media (max-width: 768px) {

    .modal-gallery,
    .logo-gallery,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .modal-gallery img,
    .logo-gallery img,
    .video-grid video {
        height: auto;
    }

}
/* =========================
   VIDEO (10+)
========================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;

    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.video-grid video {
    width: 100%;
    height: 180px; /* 👈 gør videoerne mindre */
    object-fit: cover;
    border-radius: 8px;
}
/* =========================
   GALLERY
========================= */

.editorial-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    grid-auto-rows: 160px;
}

.gallery-item {
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.4s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* sizes */
.small { grid-column: span 1; grid-row: span 1; }
.medium { grid-column: span 2; grid-row: span 1; }
.large { grid-column: span 2; grid-row: span 2; }
.tall { grid-column: span 1; grid-row: span 2; }
.wide { grid-column: span 2; grid-row: span 1; }

@media (max-width: 768px) {

    .editorial-gallery {
        padding: 0 30px;
    }
}

/* =========================
   ABOUT
========================= */

.about-editorial {
    padding: var(--space-lg) var(--space-md);
}

.about-top {
    margin-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

/* GØR ABOUT LINKS IDENTISKE MED WORK BUTTONS */
.about-buttons a {
    padding: 22px;
    background: black;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 1px;
    text-align: center;
    display: block;
}

/* SAMME HOVER SOM WORK */
.about-buttons a:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    border: 1px solid black;
}

@media (max-width: 768px) {
    .about-buttons a {
        padding: 14px;
        font-size: 0.85rem;
        letter-spacing: 0.6px;
    }
}

/* =========================
   CONTACT
========================= */

.contact-editorial {
    padding: var(--space-lg) var(--space-md);
    display: flex;
    justify-content: space-between;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-right a {
    font-size: 2rem;
    text-decoration: none;
    color: black;
    font-family: "Playfair Display", serif;
}


/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {

    nav {
        padding: 20px;
    }

    .hero {
        flex-direction: column;
        padding: 120px 20px 60px;
        height: auto;
        text-align: center;
        gap: 25px;
    }

    .hero-main-title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .hero-left {
        position: relative;
        max-width: 100%;
    }

    .hero-right img {
        width: 65%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .hero-side-text {
        position: relative;
        text-align: center;
        max-width: 100%;
    }

    .hero-label,
    .hero-year {
        position: relative;
        margin-top: 10px;
        opacity: 0.8;
    }

    .editorial-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .small,
    .medium,
    .large,
    .wide,
    .tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-editorial {
        flex-direction: column;
        gap: 40px;
    }

    .work-buttons {
        grid-template-columns: 1fr;
    }
}



/* =========================
   SKILLS
========================= */

.skills-section {
    padding: var(--space-md) var(--space-md);
}

.skills-top {
    text-align: center;
    margin-bottom: 25px;
}

.skills-top h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.skills-top p {
    opacity: 0.7;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* CARD */
.skill-card {
    background: white;
    padding: 20px 15px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    min-height: 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-5px);
}

/* 🔥 FIX: IKONER (DU BRUGER IMG, IKKE SPAN) */
.skill-card img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* TEXT */
.skill-card h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* MOBILE */
@media (max-width: 768px) {

    .skills-section {
        padding: 60px 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        min-height: 100px;
        padding: 14px;
    }

    .skills-top h2 {
        font-size: 2rem;
    }

    .skill-card img {
        width: 24px;
        height: 24px;
    }

    .skill-card h3 {
        font-size: 0.85rem;
    }
}

/* =========================
   SLOW SCROLL REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    will-change: opacity, transform;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}