/* Global Styles */
html {
    scroll-behavior: smooth; /* Ensures smooth scrolling */
}

body {
    margin: 0;
    padding: 0;
    font-family: montserrat, sans-serif;
    height: fit-content;
}

/* Menu Area Styles */
.menu-area {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: rgba(136, 136, 136, 0.514);
    width: 100%;
    height: 70px;
    z-index: 1;
    transition: 0.3s;
}

.menu-area:hover {
    background-color: rgba(102, 102, 102, 0.863);
}

.nav {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin-right: 10%;
}

.logo {
    flex: 1 1 auto;
    margin-left: 10%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 25px;
}

a {
    margin: 15px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

/* Section Styles */
section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#home {
    background-image: url(../img/3.JPG);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    text-align: center;
    color: white;
}

#home .content {
    position: relative;
    z-index: 1;
    margin-top: 20%;
}

.Hjemmeside {
    font-size: 250px;
    margin: 0;
}

#about, #portfolio, #services, #contact {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding-block: 50px;
    color: #333;
}

#about::before,
#portfolio::before,
#services::before,
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0.3;
}

#about {
    background-color: #b3b3b3;
}

#about::before {
    background-image: url(../img/gang.JPG);
}

#portfolio {
    background-color: #000000;
}

#portfolio::before {
    background-image: url(../img/group.JPG);
}

#services {
    background-color: #b3b3b3;
}

#services::before {
    background-image: url(../img/lys.jpg);
}

#contact {
    background-color: #000000;
}

#contact::before {
    background-image: url(../img/solo.JPG);
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: auto;
}

.content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}

/* Optional: Make navbar sticky on scroll (for better UX) */
.menu-area {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-area {
        flex-direction: column;
        height: auto;
    }

    .nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        margin-right: 0%;
    }

    .logo {
        margin-left: 0;
        font-size: 20px;
    }

    .nav li {
        margin: 0px;
    }

    .nav li a {
        margin: 5px;
    }

    .Hjemmeside {
        font-size: 120px;
    }

    .content p {
        padding-inline: 20px;
    }
}

.middle{
    float: left;
}