/* ==========================================
   1. GEMENSAM STIL (Gäller på ALLA sidor)
   ================================---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Klass för att låsa body-scroll när popup är öppen */
body.modal-open {
    overflow: hidden;
}

/* Vänster stationär meny */
nav.sidebar {
    width: 270px;
    background-color: #141414;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 120px;
    padding-left: 20px;
    padding-right: 20px;
    border-right: 1px solid #2a2a2a;
    z-index: 1000;
}

nav.sidebar a {
    color: #888888;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav.sidebar a:hover {
    color: #cc5200;
}

/* Det aktiva/orangea menyalternativet är extra stort men stannar på en rad */
nav.sidebar a.active {
    color: #ff6600;
    font-size: 1.8rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Fast "Anställ mig"-knapp */
.hire-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 1000;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.hire-btn:hover {
    background-color: #e55c00;
}

/* Popup-modal - anpassad för att kunna bli lång och scrollbar */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #222222;
    border: 1px solid #333;
    border-left: 4px solid #ff6600;
    padding: 60px;
    width: 100%;
    max-width: 850px;
    min-height: 550px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff6600;
}

.modal-title {
    font-size: 2rem;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 2px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ff6600;
}

.submit-btn {
    width: 100%;
    background-color: #ff6600;
    color: #ffffff;
    padding: 15px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: #e55c00;
}

/* Huvudinnehåll */
.main-content {
    margin-left: 270px;
    width: calc(100% - 270px);
    display: flex;
    flex-direction: column;
}

/* Standard för alla sektioner */
section {
    min-height: 100vh;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: none;
}

/* Särskild klass för "Om mig" med eskil som bakgrund och mörkgrå overlay */
section.about-aligned {
    min-height: calc(100vh + 100px);
    justify-content: space-between;
    position: relative;
    background: url('Bilder/eskil.png') center/cover;
}

section.about-aligned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 1;
}

/* Särskild klass för "Portfolio" med sthlm.png som bakgrund och mörkgrå overlay */
section.portfolio-aligned {
    min-height: calc(100vh + 100px);
    justify-content: space-between;
    position: relative;
    background: url('Bilder/sthlm.png') center/cover;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

section.portfolio-aligned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 1;
}

/* Särskild klass för "CV" med saigon.png som bakgrund och mörkgrå overlay */
section.cv-aligned {
    min-height: calc(100vh + 100px);
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background: url('Bilder/saigon.png') center/cover;
    padding-top: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid #2a2a2a;
}

section.cv-aligned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 1;
}

/* Om mig - grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

#om-mig .section-title {
    position: relative;
    z-index: 2;
}

.about-card {
    text-decoration: none;
    display: block;
}

.about-box {
    background-color: #222222;
    padding: 30px;
    border-left: 3px solid #ff6600;
    margin-bottom: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.about-card:hover .about-box {
    transform: translateY(-4px);
    background-color: #282828;
    border-left-color: #e55c00;
}

.about-box h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    color: #ffffff;
}

.about-box ul {
    list-style: none;
}

.about-box li {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Portfolio & Karuseller */
.portfolio-content-wrapper {
    margin: auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

#portfolio .section-title {
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 3000px;
    margin-bottom: 10px;
    margin-top: 25px;
}

.section-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.carousel-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    background-color: #222;
    color: #fff;
    border: 1px solid #333;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background-color: #ff6600;
    border-color: #ff6600;
}

.carousel-wrapper {
    width: 100%;
    max-width: 3000px;
    margin-bottom: 40px;
    padding-top: 10px;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 5px;
    padding-bottom: 5px;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.project-card {
    background-color: #222222;
    min-width: 280px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: #ccc;
    font-size: 0.85rem;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #ff6600;
}

/* CV-sida */
#cv .section-title,
.cv-image-box,
#cv a {
    position: relative;
    z-index: 2;
}

.cv-image-box {
    height: calc(100vh - 280px);
    aspect-ratio: 1 / 1.414;
    max-width: 100%;
    background-color: #222222;
    border: 1px solid #333;
    border-radius: 4px;
    object-fit: contain; 
    margin-top: 60px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    nav.sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        max-width: 100%;
    }
    .carousel-wrapper {
        max-width: 100%;
    }
    .cv-image-box {
        height: auto;
        width: 100%;
        max-width: 450px;
    }
    .modal-overlay {
        padding: 15px;
    }
    .modal-content {
        padding: 30px;
        min-height: auto;
    }
}

/* Gemensamma knappar, modaler, formulär osv. kan ligga här */


/* ==========================================
   2. UNIK STIL PER SIDA (@scope)
   ================================---------- */

@scope (#hem) {
    /* Särskild bakgrund och layout för hero-sektionen (första sektionen) */
    section:first-of-type {
        min-height: 100vh;
        background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(26,26,26,0.9)), url('Bilder/industri.png') center/cover;
        position: relative;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-end;
        padding-left: 0px;
        padding-bottom: 0px;
    }

    /* Kontakt-sidan satt till 30vh specifikt på hem och ska inte ha industribilden */
    #kontakt {
        min-height: 30vh;
        background: #1a1a1a; /* Återställer den vanliga mörka bakgrunden */
    }

    .hero-image-wrapper {
        position: relative;
        width: 400px;
        height: 700px;
        margin-bottom: 0px;
        margin-left: 100px;
        z-index: 1;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-triangle-wrapper {
        position: absolute;
        top: calc(263px - 100px);
        left: 0px;
        width: 100%;
        height: 782px;
        background: linear-gradient(to bottom, rgba(95, 92, 92, 0.0) 0%, rgba(95, 92, 92, 0.1) 50%, rgba(95, 92, 92, 0.3) 75%, rgba(95, 92, 92, 1.0) 100%);
        clip-path: polygon(0 100%, 100% 50%, 100% 100%);
        z-index: 2;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 40px;
        text-align: right;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
        font-weight: 300;
        color: #ffffff;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: #eeeeee;
        letter-spacing: 1px;
        margin-top: 10px;
    }
}

@media (max-width: 900px) {
    @scope (#hem) {
        section {
            padding-left: 0px;
        }
        .hero-image-wrapper {
            margin-left: 20px;
        }
    }
}

@scope (#hem) {
    /* Särskild bakgrund och layout för hero-sektionen (första sektionen) */
    section:first-of-type {
        min-height: 100vh;
        background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(26,26,26,0.9)), url('Bilder/industri.png') center/cover;
        position: relative;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-end;
        padding-left: 0px;
        padding-bottom: 0px;
    }

    /* Kontakt-sidan satt till 30vh specifikt på hem och ska inte ha industribilden */
    #kontakt {
        min-height: 30vh;
        background: #1a1a1a; /* Återställer den vanliga mörka bakgrunden */
    }

    .hero-image-wrapper {
        position: relative;
        width: 400px;
        height: 700px;
        margin-bottom: 0px;
        margin-left: 100px;
        z-index: 1;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-triangle-wrapper {
        position: absolute;
        top: calc(263px - 100px);
        left: 0px;
        width: 100%;
        height: 782px;
        background: linear-gradient(to bottom, rgba(95, 92, 92, 0.0) 0%, rgba(95, 92, 92, 0.1) 50%, rgba(95, 92, 92, 0.3) 75%, rgba(95, 92, 92, 1.0) 100%);
        clip-path: polygon(0 100%, 100% 50%, 100% 100%);
        z-index: 2;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 40px;
        text-align: right;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
        font-weight: 300;
        color: #ffffff;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: #eeeeee;
        letter-spacing: 1px;
        margin-top: 10px;
    }
}

@media (max-width: 900px) {
    @scope (#hem) {
        section {
            padding-left: 0px;
        }
        .hero-image-wrapper {
            margin-left: 20px;
        }
    }
}

@scope (#filosofi) {
    
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #1a1a1a;
            color: #ffffff;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Gemensam stil för knappar uppe i hörnen */
        .top-btn {
            position: fixed;
            top: 30px;
            background-color: #ff6600;
            color: #ffffff;
            padding: 10px 25px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.85rem;
            letter-spacing: 1px;
            border-radius: 2px;
            z-index: 1000;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease;
        }

        .top-btn:hover {
            background-color: #e55c00;
        }

        /* Tillbaka-knapp i det vänstra hörnet */
        .back-btn {
            left: 40px;
        }

        /* Fast "Anställ mig"-knapp i det högra hörnet */
        .hire-btn {
            right: 40px;
        }

        /* Popup-modal för Anställ mig */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background-color: #222222;
            border: 1px solid #333;
            border-left: 3px solid #ff6600;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            position: relative;
            border-radius: 4px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: #aaa;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #ff6600;
        }

        .modal-title {
            font-size: 1.5rem;
            letter-spacing: 1px;
            margin-bottom: 25px;
            color: #ffffff;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: #aaa;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px;
            background-color: #1a1a1a;
            border: 1px solid #333;
            color: #fff;
            border-radius: 2px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #ff6600;
        }

        .submit-btn {
            width: 100%;
            background-color: #ff6600;
            color: #ffffff;
            padding: 12px;
            border: none;
            font-weight: bold;
            font-size: 0.9rem;
            letter-spacing: 1px;
            border-radius: 2px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background-color: #e55c00;
        }

        /* Huvudinnehåll fyller hela bredden eftersom menyn är borta */
        .main-content {
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        /* Sida med bakgrundsbild och mörkgrå overlay */
        section.subpage-aligned {
            min-height: 100vh;
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            background: url('Bilder/eskil.png') center/cover;
        }

        section.subpage-aligned::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(20, 20, 20, 0.95);
            z-index: 1;
        }

        /* Innehållsbox för texten */
        .subpage-content {
            max-width: 800px;
            width: 100%;
            margin: auto;
            position: relative;
            z-index: 2;
        }

        .subpage-title {
            font-size: 2.2rem;
            letter-spacing: 1.5px;
            margin-bottom: 30px;
            color: #ffffff;
            border-bottom: 2px solid #ff6600;
            padding-bottom: 10px;
            display: inline-block;
        }

        .subpage-text {
            color: #cccccc;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        @media (max-width: 900px) {
            section.subpage-aligned {
                padding: 40px 20px;
            }
            .top-btn {
                padding: 8px 15px;
                font-size: 0.75rem;
            }
            .back-btn {
                left: 20px;
            }
            .hire-btn {
                right: 20px;
            }
        }
    
}

@scope (#resa) {
    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #1a1a1a;
            color: #ffffff;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Gemensam stil för knappar uppe i hörnen */
        .top-btn {
            position: fixed;
            top: 30px;
            background-color: #ff6600;
            color: #ffffff;
            padding: 10px 25px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.85rem;
            letter-spacing: 1px;
            border-radius: 2px;
            z-index: 1000;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease;
        }

        .top-btn:hover {
            background-color: #e55c00;
        }

        /* Tillbaka-knapp i det vänstra hörnet */
        .back-btn {
            left: 40px;
        }

        /* Fast "Anställ mig"-knapp i det högra hörnet */
        .hire-btn {
            right: 40px;
        }

        /* Popup-modal för Anställ mig */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background-color: #222222;
            border: 1px solid #333;
            border-left: 3px solid #ff6600;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            position: relative;
            border-radius: 4px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: #aaa;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #ff6600;
        }

        .modal-title {
            font-size: 1.5rem;
            letter-spacing: 1px;
            margin-bottom: 25px;
            color: #ffffff;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: #aaa;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px;
            background-color: #1a1a1a;
            border: 1px solid #333;
            color: #fff;
            border-radius: 2px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #ff6600;
        }

        .submit-btn {
            width: 100%;
            background-color: #ff6600;
            color: #ffffff;
            padding: 12px;
            border: none;
            font-weight: bold;
            font-size: 0.9rem;
            letter-spacing: 1px;
            border-radius: 2px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background-color: #e55c00;
        }

        /* Huvudinnehåll fyller hela bredden eftersom menyn är borta */
        .main-content {
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        /* Sida med bakgrundsbild och mörkgrå overlay */
        section.subpage-aligned {
            min-height: 100vh;
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            background: url('Bilder/eskil.png') center/cover;
        }

        section.subpage-aligned::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(20, 20, 20, 0.95);
            z-index: 1;
        }

        /* Innehållsbox för texten */
        .subpage-content {
            max-width: 800px;
            width: 100%;
            margin: auto;
            position: relative;
            z-index: 2;
        }

        .subpage-title {
            font-size: 2.2rem;
            letter-spacing: 1.5px;
            margin-bottom: 30px;
            color: #ffffff;
            border-bottom: 2px solid #ff6600;
            padding-bottom: 10px;
            display: inline-block;
        }

        .subpage-text {
            color: #cccccc;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        @media (max-width: 900px) {
            section.subpage-aligned {
                padding: 40px 20px;
            }
            .top-btn {
                padding: 8px 15px;
                font-size: 0.75rem;
            }
            .back-btn {
                left: 20px;
            }
            .hire-btn {
                right: 20px;
            }
        }
    
}

@scope (#hur) {
    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #1a1a1a;
            color: #ffffff;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Gemensam stil för knappar uppe i hörnen */
        .top-btn {
            position: fixed;
            top: 30px;
            background-color: #ff6600;
            color: #ffffff;
            padding: 10px 25px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.85rem;
            letter-spacing: 1px;
            border-radius: 2px;
            z-index: 1000;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease;
        }

        .top-btn:hover {
            background-color: #e55c00;
        }

        /* Tillbaka-knapp i det vänstra hörnet */
        .back-btn {
            left: 40px;
        }

        /* Fast "Anställ mig"-knapp i det högra hörnet */
        .hire-btn {
            right: 40px;
        }

        /* Popup-modal för Anställ mig */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background-color: #222222;
            border: 1px solid #333;
            border-left: 3px solid #ff6600;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            position: relative;
            border-radius: 4px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: #aaa;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #ff6600;
        }

        .modal-title {
            font-size: 1.5rem;
            letter-spacing: 1px;
            margin-bottom: 25px;
            color: #ffffff;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: #aaa;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px;
            background-color: #1a1a1a;
            border: 1px solid #333;
            color: #fff;
            border-radius: 2px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #ff6600;
        }

        .submit-btn {
            width: 100%;
            background-color: #ff6600;
            color: #ffffff;
            padding: 12px;
            border: none;
            font-weight: bold;
            font-size: 0.9rem;
            letter-spacing: 1px;
            border-radius: 2px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background-color: #e55c00;
        }

        /* Huvudinnehåll fyller hela bredden eftersom menyn är borta */
        .main-content {
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        /* Sida med bakgrundsbild och mörkgrå overlay */
        section.subpage-aligned {
            min-height: 100vh;
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            background: url('Bilder/eskil.png') center/cover;
        }

        section.subpage-aligned::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(20, 20, 20, 0.95);
            z-index: 1;
        }

        /* Innehållsbox för texten */
        .subpage-content {
            max-width: 800px;
            width: 100%;
            margin: auto;
            position: relative;
            z-index: 2;
        }

        .subpage-title {
            font-size: 2.2rem;
            letter-spacing: 1.5px;
            margin-bottom: 30px;
            color: #ffffff;
            border-bottom: 2px solid #ff6600;
            padding-bottom: 10px;
            display: inline-block;
        }

        .subpage-text {
            color: #cccccc;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        @media (max-width: 900px) {
            section.subpage-aligned {
                padding: 40px 20px;
            }
            .top-btn {
                padding: 8px 15px;
                font-size: 0.75rem;
            }
            .back-btn {
                left: 20px;
            }
            .hire-btn {
                right: 20px;
            }
        }
    
}

@scope (#drivkrafter) {
    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #1a1a1a;
            color: #ffffff;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Gemensam stil för knappar uppe i hörnen */
        .top-btn {
            position: fixed;
            top: 30px;
            background-color: #ff6600;
            color: #ffffff;
            padding: 10px 25px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.85rem;
            letter-spacing: 1px;
            border-radius: 2px;
            z-index: 1000;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease;
        }

        .top-btn:hover {
            background-color: #e55c00;
        }

        /* Tillbaka-knapp i det vänstra hörnet */
        .back-btn {
            left: 40px;
        }

        /* Fast "Anställ mig"-knapp i det högra hörnet */
        .hire-btn {
            right: 40px;
        }

        /* Popup-modal för Anställ mig */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background-color: #222222;
            border: 1px solid #333;
            border-left: 3px solid #ff6600;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            position: relative;
            border-radius: 4px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: #aaa;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #ff6600;
        }

        .modal-title {
            font-size: 1.5rem;
            letter-spacing: 1px;
            margin-bottom: 25px;
            color: #ffffff;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: #aaa;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px;
            background-color: #1a1a1a;
            border: 1px solid #333;
            color: #fff;
            border-radius: 2px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #ff6600;
        }

        .submit-btn {
            width: 100%;
            background-color: #ff6600;
            color: #ffffff;
            padding: 12px;
            border: none;
            font-weight: bold;
            font-size: 0.9rem;
            letter-spacing: 1px;
            border-radius: 2px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background-color: #e55c00;
        }

        /* Huvudinnehåll fyller hela bredden eftersom menyn är borta */
        .main-content {
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        /* Sida med bakgrundsbild och mörkgrå overlay */
        section.subpage-aligned {
            min-height: 100vh;
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            background: url('Bilder/eskil.png') center/cover;
        }

        section.subpage-aligned::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(20, 20, 20, 0.95);
            z-index: 1;
        }

        /* Innehållsbox för texten */
        .subpage-content {
            max-width: 800px;
            width: 100%;
            margin: auto;
            position: relative;
            z-index: 2;
        }

        .subpage-title {
            font-size: 2.2rem;
            letter-spacing: 1.5px;
            margin-bottom: 30px;
            color: #ffffff;
            border-bottom: 2px solid #ff6600;
            padding-bottom: 10px;
            display: inline-block;
        }

        .subpage-text {
            color: #cccccc;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        @media (max-width: 900px) {
            section.subpage-aligned {
                padding: 40px 20px;
            }
            .top-btn {
                padding: 8px 15px;
                font-size: 0.75rem;
            }
            .back-btn {
                left: 20px;
            }
            .hire-btn {
                right: 20px;
            }
        }
    
}