:root {
    /* 2025 Deep Space Palette */
    --bg-dark: #0f1115;
    --bg-card: #161b22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    
    /* Neon Accents */
    --accent-olive: #98b66e; 
    --accent-tech: #58a6ff; 
    --accent-book: #d2a8ff; 
    --accent-real: #f0883e; 
    
    --glass-border: rgba(240, 246, 252, 0.1);
    --glass-bg: rgba(22, 27, 34, 0.85);
    --shadow-glow: 0 0 40px rgba(88, 166, 255, 0.15);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGASJON --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 40px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.nav-link { 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--text-main); 
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}
.nav-link:hover { opacity: 1; color: var(--accent-tech); transform: translateY(-1px); }

/* --- TYPOGRAFI & KNAPPER --- */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    color: var(--accent-tech);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--accent-tech), #2563eb);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.5); }

/* --- HERO SECTION (FORSIDEN) --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
    background: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.9)), 
                url('hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- PAGE HEADERS (UNDERSIDER) --- */
.page-header {
    padding: 180px 20px 100px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.header-tech {
    background-image: linear-gradient(rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.95)), 
                      url('tech-bg.jpg');
}
.header-books {
    background-image: linear-gradient(rgba(25, 15, 30, 0.85), rgba(15, 17, 21, 0.95)), 
                      url('books-bg.jpg');
}
.header-olive {
    background-image: linear-gradient(rgba(15, 25, 15, 0.8), rgba(15, 17, 21, 0.95)), 
                      url('olive-bg.jpg');
}
.header-real {
    background-image: linear-gradient(rgba(30, 20, 15, 0.8), rgba(15, 17, 21, 0.95)), 
                      url('real-bg.jpg');
}
.header-tours {
    background-image: linear-gradient(rgba(15, 17, 21, 0.7), rgba(15, 17, 21, 0.9)), 
                      url('tours-header.jpg');
}

/* --- BENTO GRID SYSTEM --- */
.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .bento-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 380px;
    }
    .bento-large { grid-column: span 2; }
    .bento-tall { grid-row: span 2; }
}

.bento-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.bento-box:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Fallback bakgrunner for bento-bokser */
.box-tech { background: linear-gradient(160deg, #161b22 0%, #0c1c2e 100%); }
.box-olive { background: linear-gradient(160deg, #161b22 0%, #131c0d 100%); }
.box-books { background: linear-gradient(160deg, #161b22 0%, #191221 100%); }
.box-real { background: linear-gradient(160deg, #161b22 0%, #21160d 100%); }

.bento-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.bento-icon { font-size: 2.5rem; margin-bottom: 20px; }
.bento-title { font-size: 2rem; margin-bottom: 10px; color: #fff; }
.bento-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.link-arrow { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 20px; }

/* --- GRID FOR UNDERSIDER (Books, Products etc) --- */
.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px; /* Padding for å unngå tekst helt i kanten */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.item-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); background: #1c222b; }

.item-image-placeholder {
    width: 100%;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,0.1);
    overflow: hidden;
}
.item-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* --- SKJEMAER --- */
.form-container { 
    max-width: 600px; 
    margin: 0 auto 60px; 
    padding: 40px; 
    background: var(--bg-card); 
    border-radius: 24px; 
    border: 1px solid var(--glass-border); 
}
.form-group { margin-bottom: 20px; text-align: left; }
label { display: block; margin-bottom: 8px; color: var(--text-main); font-weight: 500; }
input, select, textarea {
    width: 100%; 
    padding: 12px 16px;
    background: #0d1117; 
    border: 1px solid var(--glass-border);
    border-radius: 8px; 
    color: #fff; 
    font-family: var(--font-body);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent-tech); }
button[type="submit"] {
    width: 100%; 
    padding: 14px; 
    background: var(--accent-tech); 
    color: #000; 
    font-weight: bold; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s;
}
button[type="submit"]:hover { filter: brightness(1.1); }

/* --- STATS BAR --- */
.stats-flex {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 5rem;
    flex-wrap: wrap;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: #fff; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

/* --- DIVERSE & FOOTER --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 30px;
    color: var(--text-main);
}

.author-bio {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    margin: 60px auto;
    max-width: 900px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.author-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-book);
    box-shadow: 0 0 30px rgba(210, 168, 255, 0.2);
}

.btn-olive { background: var(--accent-olive) !important; }
.btn-real { background: var(--accent-real) !important; }

footer {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    background: #0a0c0f;
}

/* --- RESPONSIV MOBIL-TILPASNING --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .page-title { font-size: 2.2rem; }
    
    .navbar { 
        width: 90%; 
        overflow-x: auto; 
        justify-content: flex-start; 
        padding: 12px 20px;
        -webkit-overflow-scrolling: touch; /* Glatt scrolling på iOS */
    }
    
    .hero { padding-top: 120px; }
    .stats-flex { gap: 2rem; }
    
    .content-grid { padding: 0 20px 40px; }
    .form-container { padding: 20px; width: 90%; }
    
    .author-bio { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 20px;
        width: 90%;
    }
}