/* --- Variabler og Moderne Farger --- */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #3b82f6;      /* Modern Blue */
    --accent: #0ea5e9;       /* Sky Blue */
    --highlight: #f59e0b;    /* Gold/Amber for attention */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(59, 130, 246, 0.15);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Bakgrunnsanimasjon (Subtil Gradient) --- */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.15), transparent 25%);
    filter: blur(40px);
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* --- Typografi --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.highlight {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 20px auto 0;
    border-radius: 4px;
}

/* --- Glassmorphism Utilities --- */
.glass, .glass-card, .glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* --- Navigasjon --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

.contact-btn {
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Knapper */
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: white; }

/* Scroll Mouse Animation */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 26px; height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
    width: 4px; height: 8px; background: white; border-radius: 2px;
    animation: scroll 1.5s infinite;
}
@keyframes scroll { 0% {opacity:1; transform:translateY(0);} 100% {opacity:0; transform:translateY(15px);} }

/* --- Om Oppgaven (Grid) --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.glass-card {
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
}
.glass-card:hover { transform: translateY(-5px); background: rgba(30, 41, 59, 0.9); }
.glass-card i { font-size: 2rem; color: var(--accent); margin-bottom: 20px; display: block; }
.glass-card p { color: var(--text-muted); font-size: 1.1rem; }

/* Metodikk Steg */
.methodology-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    text-align: center;
}
.step { flex: 1; position: relative; z-index: 2; }
.step-icon {
    width: 60px; height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-weight: 800; font-size: 1.2rem; color: var(--accent);
}
.line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 20px;
    transform: translateY(-30px);
}

/* --- UX & Design Seksjon --- */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    padding: 60px;
    border-radius: 30px;
    align-items: center;
}

.section-tag {
    color: var(--highlight);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.lead { font-size: 1.2rem; margin: 20px 0 30px; font-weight: 300; }

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.feature-list i { color: var(--primary); font-size: 1.2rem; margin-top: 5px; }
.feature-list strong { color: white; display: block; margin-bottom: 5px; }
.feature-list p { font-size: 0.95rem; color: var(--text-muted); }

/* UX Visual (Abstract) */
.ux-visual {
    position: relative;
    height: 300px;
}
.ux-card {
    position: absolute;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.ux-card i { font-size: 2rem; margin-bottom: 10px; color: var(--highlight); }

/* Flytende kort animasjon */
.float-1 { top: 0; right: 0; width: 140px; animation: float 6s ease-in-out infinite; }
.float-2 { top: 40%; left: 0; width: 130px; animation: float 6s ease-in-out infinite 2s; }
.float-3 { bottom: 0; right: 20px; width: 150px; animation: float 6s ease-in-out infinite 4s; }

@keyframes float { 0% {transform: translateY(0px);} 50% {transform: translateY(-20px);} 100% {transform: translateY(0px);} }

/* --- Funn (Cards) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-darker);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem; color: var(--primary);
}

.card h3 { margin-bottom: 5px; }
.card-subtitle { color: var(--primary); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.card ul li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-muted); padding-left: 20px; position: relative; }
.card ul li::before { content: "•"; color: var(--primary); position: absolute; left: 0; }

/* --- Video Section --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.video-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.video-frame { padding: 20px; border-radius: 30px; }

/* --- Author --- */
.author-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}
.author-card { padding: 60px; border-radius: 30px; }
.title-badge { display: inline-block; background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; margin-bottom: 20px; color: var(--highlight); }
.author-actions { display: flex; gap: 15px; margin-top: 30px; }
.author-social h3 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 15px; }
.social-link { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: 0.3s; }
.social-link:hover { background: var(--primary); color: white; transform: scale(1.1); }

/* --- Footer --- */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-darker);
    font-size: 0.9rem; color: var(--text-muted);
}
.footer-links { margin-top: 15px; display: flex; gap: 20px; justify-content: center; }
.footer-links a:hover { color: var(--accent); }

/* --- Fade In Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in-up { opacity: 0; transform: translateY(50px); transition: 1s ease-out; }
.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    h1 { font-size: 2.2rem; }
    .hero-content { padding: 0 10px; }
    .grid-2-col, .content-wrapper, .author-grid, .methodology-steps { grid-template-columns: 1fr; }
    .content-wrapper { padding: 30px; }
    .line { display: none; }
    .methodology-steps { flex-direction: column; gap: 30px; }
    .ux-visual { display: none; } /* Skjul animasjon på små skjermer for ryddighet */
    
    .navbar { padding: 15px 20px; }
    .nav-links {
        display: none; /* Forenklet for mobil */
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-darker); padding: 20px; flex-direction: column;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
}
