:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    --neon-glow: 0 0 10px rgba(16, 185, 129, 0.7);
    --space-unit: 0.5rem;
    --space-1: calc(1 * var(--space-unit));
    --space-2: calc(2 * var(--space-unit));
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #0f172a;
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Header */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.nav_logo img {
    width: 80px;
    transition: transform 0.3s ease;
}

.nav_logo img:hover {
    transform: scale(1.05);
}

.nav_menu {
    display: flex;
}

.nav_list {
    display: flex;
    gap: 2rem;
}

.nav_link {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav_link:hover::after,
.nav_link.active-link::after {
    width: 100%;
}

.nav_toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
}

/* Home Section */
.home {
    min-height: 70vh;
    padding: 8rem 0 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.1) saturate(1.2) hue-rotate(195deg);
    transition: filter 0.5s ease;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.85) 70%);
    z-index: 0;
}

.home_container {
    
    padding-bottom: 3rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.home_name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1,5rem;
    line-height: 1.3;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.home_profession {
    display: inline-block;
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.home_profession::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: var(--secondary-color);
}

.home_greeting {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.home_social {
    display: flex;
    margin-top: 2.5rem;
    gap: 2rem;
}

.home-social-icon {
    font-size: 1.5rem;
    color: var(--light-color);
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: rgba(15, 23, 42, 0.7);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services_data {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.services_data::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: -1;
    transition: all 0.5s ease;
}

.services_data:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.services_data:hover::before {
    transform: scale(1.2);
}

.services_icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.services_title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services_description {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.button:hover::before {
    opacity: 1;
}

.button:hover {
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 1) 70%);
    position: relative;
}

.contact_form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact_inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact_input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact_input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.contact_input::placeholder {
    color: #64748b;
}

textarea.contact_input {
    resize: vertical;
    min-height: 150px;
}

.contact_button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: rgba(15, 23, 42, 0.9);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_containter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer_title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer_description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #94a3b8;
}

.footer_social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.footer_link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.footer_copy {
    color: #64748b;
    font-size: 0.875rem;
}

/* Scroll Top Button */
.scrolltop {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    background: var(--gradient);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
}

.scrolltop.active {
    bottom: 2rem;
    opacity: 1;
}

.scrolltop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Dokumentanalyse-spesifikke stiler */
.document-hero {
    padding-top: 7rem;
    display: flex;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), 
                url('../assets/images/document-bg.jpg') center/cover;
}

.feature-card {
    transition: transform 0.3s ease;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    margin-top: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    z-index: 100;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .nav {
        padding: 1rem;
    }

        .nav_menu {
        position: fixed;
        top: 0; /* Starter på toppen av skjermen */
        left: -100%; /* Skjult utenfor skjermen til venstre */
        width: 100%;
        height: 100vh; /* Fyller hele skjermhøyden */
        background-color: rgba(15, 23, 42, 0.95); /* Bakgrunn med gjennomsiktighet */
        backdrop-filter: blur(10px);
        padding-top: 5rem; /* Gi plass til logo/header */
        transition: all 0.4s ease-in-out; /* Myk animasjon */
        z-index: 99; /* Sørg for at den er over annet innhold */
        flex-direction: column; /* Vertikal stabling av menyelementer */
        justify-content: center; /* Sentrer menyelementene vertikalt */
        align-items: center; /* Sentrer menyelementene horisontalt */
    }
    
    .nav_menu.show {
        left: 0; /* Flytt menyen inn på skjermen */
    }
    
    .nav_list {
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Øk avstanden mellom lenkene i menyen */
    }

    .nav_item {
        margin: 0; /* Fjern eventuell standardmargin */
    }
    
    .nav_link {
        font-size: 1.5rem; /* Gjør lenkene større for bedre trykkbarhet */
        padding: 1rem 0;
    }

    .nav_toggle {
        display: block; /* Vis hamburgerikonet på nettbrett og mobil */
        font-size: 2.2rem; /* Gjør ikonet større */
        z-index: 100; /* Sørg for at hamburgeren er over menyen når den er åpen */
        color: var(--light-color); /* Farge på hamburgerikonet */
    }
    
    .nav_logo img {
        width: 60px;
    }

    .home {
        min-height: 60vh;
        padding: 7rem 0 3rem;
    }
    .home_name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 2 kolonner på nettbrett */
    .services_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav_menu {
        position: fixed;
        top: -100%;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.95);
        padding: 1rem 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 99;
    }
    
    .nav_menu.show {
        top: 70px;
    }
    
     .nav_logo img {
        width: 70px; /* Juster logo størrelse for små skjermer */
    }
    
    .nav {
        padding: 0.8rem 1rem; /* Juster padding for navigasjonsbaren */
    }

    .nav_list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav_toggle {
        display: block;
    }
    
    .home {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .home_name {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .home_profession,
    .home_greeting {
        font-size: 1rem;
    }

    .home_greeting{
        margin-bottom: 1.5rem;
        font-size: 1.4rem;
    }

    .home_social{
        margin-top: 2rem;
    }
    
    .hero-background img {
        object-position: 65% center;
    }
    
    .services_data {
        padding: 1.5rem;
    }
    
    .contact_form {
        padding: 1.5rem;
    }
    
    textarea.contact_input {
        min-height: 120px;
    }
    
    body {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .home{
        padding: 5rem 0 2rem;
    
    }
    
    .home_name {
        font-size: 2rem;
    }
    
    .home_profession,
    .home_greeting {
        font-size: 1.2rem;
    }

    .services_container {
        grid-template-columns: 1fr;
    }
    
    .contact_inputs {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer_title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .services_title {
        font-size: 1.3rem;
    }
}

/* Nettbrett i portrettmodus */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .home_name {
        font-size: 2rem;
    }
    
    .services_container {
        gap: 1.5rem;
    }
}

/* Touch-enheter */
@media (hover: none) {
    .services_data:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Animasjoner */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}