/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1A73E8;
}

/* Navigasjon */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

/* Understrek-animert hover */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #1A73E8;
    transition: width 0.25s ease;
}

.nav a:hover {
    color: #1A73E8;
}

.nav a:hover::after {
    width: 100%;
}

/* Mobilmeny ikon */
.mobile-menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #111;
}

/* Mobilvisning */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .header {
        padding: 12px 18px;
    }

    .logo {
        font-size: 22px;
    }
}

/* Smooth scrolling for hele siden */
html {
    scroll-behavior: smooth;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 20s infinite;
}

.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 5s; }
.hero-slider .slide:nth-child(3) { animation-delay: 10s; }
.hero-slider .slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideShow {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    25%  { opacity: 1; }
    30%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    padding: 80px 40px;
    max-width: 700px;
}
