
/* =========================================
   DESIGN SYSTEM / GLOBAL VARIABLES
   - Central place for colors, spacing, effects
   - Only theme-related variables live here
========================================= */

:root {
    --bg: #ffffff;
    --text: #1a1a1a;

    /* Card system */
    --card: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.08);

    /* Accent */
    --accent: #0066ff;

    /* UI constants */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);

    /* Blur */
    --blur: blur(12px);

    /* NAVBAR BRAND (fixed color) */
    --brand: #0b5ed7;
}


/* =========================================
   DARK MODE
========================================= */

[data-theme="dark"] {
    --bg: #0f1115;
    --text: #f5f5f5;

    --card: rgba(30, 30, 30, 0.6);
    --border: rgba(255, 255, 255, 0.08);

    --accent: #4da3ff;

    --shadow: 0 10px 30px rgba(0,0,0,0.4);
}


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

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


/* =========================================
   BODY
========================================= */

body {
    font-family: Arial, sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;

    transition: background 0.3s ease, color 0.3s ease;
}


/* =========================================
   NAVBAR (ALWAYS BRAND BLUE)
========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;

    padding: 1rem 2rem;

    background: var(--brand);
    color: white;

    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}


/* Logo */
.logo {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}


/* Nav links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.75;
}


/* Theme toggle */
#theme-toggle {
    margin-left: 1rem;

    background: rgba(255,255,255,0.2);
    border: none;

    color: white;

    padding: 6px 10px;
    border-radius: 8px;

    cursor: pointer;
}

#theme-toggle:hover {
    background: rgba(255,255,255,0.3);
}


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

.hero {
    min-height: 50vh;

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

    padding: 4rem 2rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: 1.5rem;
    max-width: 900px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}


/* =========================================
   HERO LOGO (FLOATING CARD)
========================================= */

.hero-logo {
    width: 100%;
    max-width: 520px;
    height: auto;

    padding: 1rem;

    background: var(--brand);

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.25);

    animation: floatCard 6s ease-in-out infinite;

    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: translateY(-6px) scale(1.02);
}


/* Floating animation */
@keyframes floatCard {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* PROFILE IMAGE - circular + centered */
.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow);
}

/* =========================================
   SECTION TITLE FIX (IMPORTANT)
   - Centers "Tjenester", "Priser", etc.
========================================= */

.section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}


/* =========================================
   BADGES
========================================= */

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.badges span {
    background: var(--card);
    border: 1px solid var(--border);

    padding: 0.4rem 0.8rem;
    border-radius: 999px;

    font-size: 0.85rem;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-block;

    padding: 12px 24px;

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

    text-decoration: none;

    border-radius: 8px;

    cursor: pointer;

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

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn.secondary {
    background: #555;
}


/* =========================================
   FLOATING BUTTONS
========================================= */

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    display: none;

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

    box-shadow: var(--shadow);
}

#contactBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;

    padding: 12px 20px;

    border: none;
    border-radius: 999px;

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

    cursor: pointer;

    box-shadow: var(--shadow);
}


/* =========================================
   CTA SECTION
========================================= */

.cta {
    text-align: center;
    padding: 5rem 2rem;

    background: linear-gradient(
        135deg,
        rgba(11, 94, 215, 0.08),
        transparent
    );

    border-radius: var(--radius);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.85;
}


/* =========================================
   LAYOUT
========================================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   CARDS
========================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card);
    backdrop-filter: var(--blur);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 1.5rem;

    box-shadow: var(--shadow);

    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}


/* =========================================
   PRICING
========================================= */

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.price-box {
    background: var(--card);
    backdrop-filter: var(--blur);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 2rem;

    box-shadow: var(--shadow);
}

.price {
    font-size: 2rem;
    font-weight: bold;

    margin: 1rem 0;

    color: var(--accent);
}


/* =========================================
   GALLERY
========================================= */

.section.center {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gallery-image {
    width: 100%;
    max-width: 420px;

    border-radius: 12px;

    cursor: pointer;

    box-shadow: var(--shadow);

    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}


/* =========================================
   MODAL
========================================= */

.modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.6);

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);

    padding: 2rem;

    border-radius: var(--radius);

    width: 90%;
    max-width: 500px;
}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.85);

    justify-content: center;
    align-items: center;

    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;

    border-radius: 10px;
}


/* =========================================
   SMOOTH SCROLL
========================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================
   SECTION SPACING
========================================= */

.section {
    padding: 3rem 0; /* reduced from 6rem */
}


/* =========================================
   FOOTER
   - Contains social icons + copyright text
========================================= */

.site-footer {
    text-align: center;     /* centers all footer content */
    padding: 30px 20px;     /* space inside footer */
    margin-top: 60px;       /* space above footer */
}


/* =========================================
   FOOTER ICON ROW
   - Controls layout of social media icons
========================================= */

.footer-icons {
    display: flex;              /* horizontal layout */
    justify-content: center;    /* center icons horizontally */
    gap: 20px;                  /* spacing between icons */
    margin-bottom: 15px;        /* space below icons */
}


/* =========================================
   FOOTER ICON IMAGES
   - Social media logos (LinkedIn, Facebook, Vipps)
========================================= */

.footer-icons img {
    height: 40px;              /* uniform icon size */
    width: 40px;               /* keeps aspect ratio */
    transition: transform 0.2s ease; /* smooth hover effect */
}


/* Hover effect for icons */
.footer-icons img:hover {
    transform: scale(1.1);     /* slight zoom on hover */
}


/* =========================================
   FOOTER COPYRIGHT TEXT
========================================= */

.footer-copy {
    font-size: 14px;           /* small text size */
    color: #777;               /* muted gray color */
}
/* =========================================
   CONTACT MODAL FINAL MODERN FIX
   - Fixes layout issues seen in popup
   - Forces clean vertical stacking
   - Makes form look modern + aligned
========================================= */

/* Ensure modal centers properly */
.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modern card container (your redesign class) */
.contact-modal {
    width: 100%;
    max-width: 420px;

    background: var(--card);
    backdrop-filter: var(--blur);

    border-radius: var(--radius);
    border: 1px solid var(--border);

    padding: 2rem;

    box-shadow: var(--shadow);
}

/* Force vertical form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Fix label spacing (prevents inline look) */
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
}

/* CRITICAL FIX: inputs were not full width */
.contact-form input,
.contact-form textarea {
    width: 100%;
    display: block;

    padding: 10px 12px;

    border-radius: 10px;
    border: 1px solid var(--border);

    background: rgba(255,255,255,0.8);

    font-family: inherit;
    font-size: 1rem;

    outline: none;
}

/* Focus state (keeps your design system accent) */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

/* Textarea height consistency */
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Button alignment */
.full-width {
    width: 100%;
}
/* ================================
   LINKS (DARK MODE FIX)
================================ */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Ensure links stay readable in dark mode cards */
.card a {
    color: var(--accent);
}

[data-theme="dark"] .card a {
    color: #7ab8ff; /* slightly brighter for dark bg */
}

[data-theme="dark"] a {
    color: #7ab8ff;
}
/* ================================
   DOCS PAGE HERO FIX (ONLY THIS PAGE)
================================ */

.docs-page .hero {
    min-height: auto;
    padding: 2rem 2rem 1rem 2rem;
}
.btn {
    color: #fff !important;
    font-weight: 700;
}
/* CV MODAL + CLICKABLE ITEMS */
.cv-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cv-item:hover {
    transform: translateY(-5px);
}

/* center document CTA */
.cv-doc-card {
    text-align: center;
}
/* ================================
   CV DOCUMENT CTA FIX
================================ */

.cv-doc-card {
    text-align: center;
}

/* Center button properly */
.cv-doc-card .btn {
    display: inline-block;
    margin-top: 10px;
}

/* Force button text ALWAYS white */
.cv-doc-card .btn,
.cv-doc-card .btn strong {
    color: #fff !important;
    font-weight: 700;
}

/* ================================
   CV MODAL ENHANCED STYLING
================================ */

#cv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#cv-modal.active {
    display: flex;
}

#cv-modal .modal-content {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    text-align: center;
}

.cv-item {
    cursor: pointer;
}

.cv-item:hover {
    transform: translateY(-5px);
}
/* =========================================
   BUTTON FIX (GLOBAL SAFETY)
========================================= */

.btn {
    color: #fff;
    font-weight: 600;
}

/* Ensure strong text inside buttons stays white */
.btn strong {
    color: #fff;
}


/* =========================================
   CV DOCUMENT CARD
========================================= */

.cv-doc-card {
    text-align: center;
}

.cv-doc-card .btn {
    display: inline-block;
    margin-top: 10px;
}


/* =========================================
   CV MODAL
========================================= */

#cv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#cv-modal.active {
    display: flex;
}

#cv-modal .modal-content {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow);
}


/* =========================================
   CV CARDS INTERACTION
========================================= */

.cv-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cv-item:hover {
    transform: translateY(-5px);
}
/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 768px) {

    /* GLOBAL TEXT + SPACING */
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    /* NAVBAR */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    .nav-links {
        margin-left: 0;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    /* HERO */
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-inner {
        gap: 1rem;
    }

    /* BADGES */
    .badges {
        justify-content: center;
    }

    /* BUTTONS */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* CARDS GRID → STACK */
    .cards {
        grid-template-columns: 1fr;
    }

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

    /* FLOATING BUTTONS */
    #scrollTopBtn {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }

    #contactBtn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* FOOTER */
    .footer-icons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-icons img {
        width: 34px;
        height: 34px;
    }

    /* PROFILE IMAGE */
    .profile-image {
        width: 120px;
        height: 120px;
    }
}
/* ================================
   RESPONSIVE FIXES (MOBILE)
================================ */

img {
    max-width: 100%;
    height: auto;
}

/* HERO logo scaling fix */
.hero-logo {
    max-width: 100%;
    height: auto;
}

/* Prevent hero text overflow */
.hero h1 {
    word-break: break-word;
}

/* Better padding on small screens */
@media (max-width: 768px) {

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-links {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }
}
#modalText {
    white-space: pre-line;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}