/* /styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* ==========================
            ROOT
========================== */
:root {

    /* Primary */
    --primary-color: #257beb;
    --primary-alpha: #2564eb26;
    --primary-dark: #1e40af;


    /* Color */
    --bg-color: #0f1735;

    --light-color: #2e4156;
    --el-color: #1a2d42;
    --dark-color: #1b263a;

    --text-color: #0f172a;
    --white-color: #fff;
    --text-color-darker: #a2c0ec;

    --border-color: rgba(255, 255, 255, 0.15);

    --nav-bg: rgba(7, 22, 39, 0.702);
    --nav-bg-responsive: rgba(16, 16, 26, 0.95);
    --dropdown-bg: #141423cc;

    

    /* Effects */
    --border-radius: 12px;
    --border-radius-lg: 22px;

    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* --shadow: 0 10px 30px rgba(255, 0, 0, 0.3); */

    --gradient: radial-gradient(circle at top left, var(--primary-alpha) 0%, transparent 100%);

    --glass-effect: blur(10px);
    --neon-glow:
        0 0 10px rgba(33, 150, 243, .5),
        0 0 20px rgba(33, 150, 243, .3),
        0 0 30px rgba(33, 150, 243, .1);

    /* Motion */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TEST */
/* :root {
    --primary-color: #009688;
    --primary-alpha: #00968826;
    --primary-dark: #00675b;

    --bg-color: #011f27;
    --dark-color: #011c21;

    --gradient: radial-gradient(circle at top left, var(--primary-alpha) 0%, transparent 100%);

    --text-color-darker: #a1cfd1;
} */


/* ==========================
            BASE
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    list-style: none;
    scroll-margin-top: 100px;
    line-height: 1.4;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg-color);
    color: var(--white-color);
    position: relative;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

body:has(.no-scroll) {
    overflow: hidden;
}

/* LEFT GLOW */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.6;
}

/* Venstre */
body::before {
    top: 10%;
    left: -250px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

/* Højre */
body::after {
    bottom: 5%;
    right: -300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

/* Sections */
section {
    max-width: 1600px;
    margin: auto;
    margin-top: 50px;
    padding: var(--spacing-lg);
}

section:first-of-type {
    margin-top: 100px;
}

/* ==========================
        TYPOGRAPHY
========================== */
h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
    margin-bottom: 10px;
}


h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.4rem;
}

p,
li,
a {
    font-size: 1.1rem;
    color: var(--white-color);
}

span {
    color: var(--primary-color);
}


.fading {
    background: -webkit-linear-gradient(45deg, var(--text-color-darker), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================
            SCROLLBAR
========================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nav-bg);
    backdrop-filter: var(--glass-effect);
    -webkit-backdrop-filter: var(--glass-effect);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--light-color);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================
        BUTTONS
========================== */
/* Top Button */
#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 11;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: var(--primary-alpha);
    color: var(--white-color);
    cursor: pointer;
    border-radius: 30px 30px 10px 10px;
    width: 40px;
    height: 50px;
}

#topBtn:hover {
    background-color: var(--primary-color);
}


/* Button */
.btn {
    margin-top: 10px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    font-size: 1rem;
    font-weight: 600;
    background: var(--text-color-darker);
}

.btn-small {
    padding: 5px 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn:hover,
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white-color);
}


/* ==========================
            STYLES
========================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-image {
    height: 400px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Stats */
.stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    background: var(--el-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
    border-right: 1px solid var(--primary-color);
    min-width: 225px;
    flex: 1;
}

.stat:last-of-type {
    border: none;
}

.stat p {
    color: var(--white-color);
}

.stat i {
    font-size: 3rem;
    color: var(--primary-color);
}

.stat h3 {
    margin-bottom: 0;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.gap-md {
    gap: var(--spacing-md);
}




/* Contact */
.contact {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    height: fit-content;
    border-radius: var(--border-radius);
    background-color: var(--el-color);
}

.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.contact i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ==========================
            CARDS
========================== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--el-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition-medium);
    color: var(--white-color);
    will-change: transform;
    border: 1px solid var(--el-color);
    overflow: hidden;
}


/* Glow layer */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(37, 99, 235, 0.2);
}

.card:hover {
    border: 1px solid var(--primary-alpha);
}

.card-header {
    margin-bottom: 10px;
}

.card .content p {
    font-size: 1rem;
    color: #aaa;
}

.card i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Featured Card */
.card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.card.featured::before {
    content: "Populær";
    position: absolute;
    top: 20px;
    right: -40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white-color);

    padding: 5px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}



/* Pricing */
.card .pricing {
    display: flex;
    flex-direction: column;
}

.card .price {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: baseline;
}

.card .pricing .card-note {
    font-size: 1rem;
    color: #aaa;
    text-align: left;
    margin-top: -10px;
}

.card .price h3 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.card .price p {
    font-weight: bold;
    color: var(--text-color-darker);
}

.card .pricing .old-price {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: baseline;
    text-align: left;
}

.card .pricing .old-price p,
.card .pricing .old-price h3 {
    color: #888;
    font-weight: normal;
    font-size: 1.2rem;
    text-decoration: line-through;
}

.card .pricing .old-price .rab {
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white-color);
    padding: 2px 8px;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
}

.card .pricing .old-price .rab::before {
    content: "-";
}

.card .pricing .old-price .rab::after {
    content: "%";
}

/* List */
.card .list ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card .list li::before {
    font-weight: bold;
    content: "\f00c";
    font-family: "Font Awesome 7 Free";
    position: relative;
    left: -10px;
    margin-right: -10px;
    padding: var(--spacing-md);
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.card .list li.disabled::before {
    font-weight: bold;
    content: "\58";
    font-family: "Font Awesome 7 Free";
    position: relative;
    left: -10px;
    margin-right: -10px;
    padding: var(--spacing-md);
    color: #ccc;
    transition: var(--transition-medium);
}

/* Footer */
.card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.card-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
}

.card-footer .vælg::before {
    content: "";
}

.card-footer .vælg::after {
    content: "Vælg";
}

.card-footer .nedgrader::before {
    content: "\f358";
    font-family: "Font Awesome 7 Free";
}

.card-footer .nedgrader::after {
    content: "Nedgrader";
}

.card-footer .opgrader::before {
    content: "\f35b";
    font-family: "Font Awesome 7 Free";
}

.card-footer .opgrader::after {
    content: "Opgrader";
}

.card-footer .valgt::before {
    content: "";
}

.card-footer .valgt::after {
    content: "Valgt";
}

.card-footer .valgt {
    background: var(--primary-color);
    color: var(--white-color);
}


/* ==========================
            FAQ
========================== */
.faq {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    border-radius: var(--border-radius);
}


.categories {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.categories .item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 0;
}


.categories .item .header {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--white-color);
    background: var(--light-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 2px solid var(--el-color);
    transition: var(--transition-medium);
    will-change: transform;
}

.categories .item .header:hover {
    background-color: var(--el-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
}

.categories .item .header.active {
    border: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: var(--el-color);
}


.categories .item .header::before {
    content: "\f077";
    font-family: "Font Awesome 7 Free";
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.categories .item .header.active::before {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.categories .item .header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(var(--primary-alpha), transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.categories .item .header.active::after {
    opacity: 1;
}

.categories .item .content {
    background-color: var(--el-color);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.categories .item .content div {
    padding: var(--spacing-md) var(--spacing-lg);
    padding-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ==========================
            Projects
========================== */
.projects {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.project-card {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
    background: var(--el-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius) 75px;
    box-shadow: 0 0px 40px rgba(0, 0, 0, .3);
    overflow-wrap: anywhere;

}

.project-content {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: var(--spacing-lg);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    flex: 1;
}

.project-info p {
    color: var(--white-color);
    font-weight: 500;
}

.project-info .tag {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}

.project-info .tag li {
    background: var(--nav-bg);
    padding: 3px var(--spacing-sm);
    border-radius: var(--border-radius);
    color: var(--text-color-darker);
    font-size: .8rem;
}

.project-info h2 {
    margin-bottom: 0;
}

.project-info .buttons {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    bottom: 0;
    margin-top: auto;
    gap: 10px;
}

.project-card img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-top: -100px;
}





/* ==========================
            RESPONSIVE
========================== */
@media (max-width: 1000px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    .project-info {
        width: 100%;
    }

    .project-card img {
        max-height: 300px;
        margin: 0;
    }

    .faq {
        grid-template-columns: 1fr;
    }

    .image {
        width: 100%;
        max-width: none;
        height: 250px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 500px) {
    .project-info .buttons {
        flex-direction: column;
    }
}


/* ==========================
            SERVICES
========================== */
.services {
    display: flex;
    flex-direction: column;
}

.services .service {
    flex: 0 0 calc((100% - 64px) / 3);
    background: var(--el-color);
    padding: 20px;
    border-radius: 10px;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    gap: 0;
}

.services .service .icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.services .service .icons .margin {
    margin-left: -12px;
}

.services .service i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.services .service .icons .link {
    background-color: var(--primary-alpha);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white-color);
    transition: var(--transition-medium);
}

.services .service:hover .icons .link {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: rotate(45deg);
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.4s ease;
    will-change: transform;
}

/* --- Dots --- */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--light-color);
    cursor: pointer;
    transition: var(--transition-medium);
}

.carousel-dots button.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: var(--border-radius);
}

/* --- Mobile --- */
@media (max-width: 800px) {
    .services .service {
        flex: 0 0 100%;
        /* 1 slide per visning på mobil */
    }
}




.workflow img {
    margin-top: -50px;
}

.workflow .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.workflow .content h2 {
    margin-bottom: 0;
}

















/* =========================
   DRAWER
========================= */

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 14;
}

.cart-drawer {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    right: -600px;
    width: 550px;
    height: 100%;
    background: var(--primary-alpha);
    backdrop-filter: var(--glass-effect);
    -webkit-backdrop-filter: var(--glass-effect);
    color: #fff;
    border-left: 1px solid var(--border-color);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 15;
    overflow-y: auto;
}

.cart-drawer.open {
    right: 0;
}

#cart-overlay.open {
    display: block;
}

/* =========================
   CONTENT
========================= */
.cart-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
}

#cart-items {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#cart-items li {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.cart-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    bottom: 20px;
    width: 100%;
}

.duration {
    margin-top: 5px;
}

/* =========================
   CLOSE BUTTON
========================= */

#cart-close {
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: var(--transition-medium);
}

#cart-close:hover {
    background: var(--primary-dark);
}

.remove {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.remove:hover {
    color: red;
}

/* =========================
   CART BREAKDOWN
========================= */

.cart-breakdown {
    margin-top: 15px;
    padding: 10px;
    background: var(--el-color);
    border-radius: var(--border-radius);
}

.cart-breakdown div {
    display: flex;
    justify-content: space-between;
}

.cart-breakdown #cart-onetime,
.cart-breakdown #cart-subscription {
    color: var(--text-color-darker);
}

/* =========================
   ITEM STYLE
========================= */

.cart-item {
    margin-bottom: 15px;
}

.cart-item small {
    color: red;
    display: block;
    margin-top: 3px;
}



/* =========================
   CART ITEM LAYOUT
========================= */

.cart-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--el-color);
    border-radius: var(--border-radius);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.cart-row:has(.remove:hover) {
    border: 1px red solid;
}

/* venstre (navn) */
.cart-name {
    font-weight: bold;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 30px;
    align-items: center;
    gap: 10px;
}

/* midten (beregning) */
.cart-calculation {
    font-size: 14px;
}

/* hver linje */
.cart-calculation div {
    display: grid;
    grid-template-columns: 1fr auto;
}

/* venstre side af regnestykket */
.calc-text {
    color: var(--white-color);
    opacity: 0.9;
}

/* højre side (pris) */
.calc-price {
    text-align: right;
    font-size: 14px;
}

/* total linje */
.calc-total {
    margin-top: 5px;
    font-weight: bold;
    border-top: 1px solid var(--border-color);
    padding-top: 5px;
}

.cart-total {
    margin-top: 5px;
    border-top: 1px solid var(--border-color);
    padding-top: 5px;
    font-weight: bolder;
    font-size: 1.1rem;
    color: var(--primary-color);
}




.binding .button-group {
    display: flex;
    justify-content: space-between;
}

.binding .button-group input {
    display: none;
}

.binding .button-group label {
    padding: 8px 12px;
    background: var(--light-color);
    cursor: pointer;
    border-radius: var(--border-radius);
}

.binding .button-group input:checked+label {
    background: var(--primary-dark);
    color: #fff;
}



@media (max-width: 600px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .cart-drawer.open {
        right: 0;
    }

    .cart-row {
        grid-template-columns: 1fr;
    }

    .binding .button-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}