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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header - 15% av viewport høyde */
header {
    height: 5vh;
    background: linear-gradient(to right, #15492b, #0dd664);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Horisontal linje under header */
.header-divider {
    position: fixed;
    top: 5vh;
    left: 0;
    right: 0;
    margin: 0;
    border: none;
    border-top: 2px solid #34495e;
    z-index: 999;
}

/* Main content */
main {
    margin-top: calc(5vh + 2px); /* Header høyde + divider */
    padding: 2rem;
    min-height: calc(95vh - 4rem);
}

.section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Prosjekt grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1rem;
}

.project-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(to right, #15492b, #0dd664);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Responsiv design for mobil */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 15vh;
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .header-divider {
        position: static;
        margin: 0;
    }

    main {
        margin-top: 0;
        padding: 1rem;
    }

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