* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: "Inter", sans-serif;
    justify-content: center;
    align-items: center;
    background: #F6F7F2;
    min-height: 100vh;
    
}

main {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin-top: 150px;
    justify-content: center;
    padding-bottom: 2.5rem;
}

/* navbar */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-scrolled {
    background-color: #F6F7F2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-scrolled img{
    width: 150px;
    padding: 0;
    height: auto;
    position: relative;
    align-self: center;
}

.header-scrolled .language-flag {
    height: auto; /* Maintain aspect ratio */
    width: 20px; /* Adjust the width of the flag */
    margin-right: 5px; /* Add spacing between the flag and the text */
    
} 



.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-top: 30px;;
    min-height: 100px;
    max-height: 200px;
    max-width: 1000px;
    margin: 0 auto; /* Centers the header-content on the page */
}

.logo-navbar {
    width: 200px;
    padding: 0;
    margin-left: 20px;
  
    height: auto;
    position: relative;
}

#logo-navbar-home {
    display: none;
}

.nav {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.nav-list {
    display: flex;
    column-gap: 30px;
    margin-top: 30px;
    margin-right: 50px;
}

.language-selector {
    position: absolute; /* Position the language selector absolutely */
    top: 0px; /* Adjust the distance from the top */
    right: 50px; /* Adjust the distance from the right */
    font-size: 16px; /* Adjust font size as needed */
    color: #0A1944; /* Match the text color */
    display: flex;
    gap: 10px; /* Add spacing between language options */
}

.language-flag {
    width: 20px; /* Adjust the width of the flag */
    height: auto; /* Maintain aspect ratio */
    margin-right: 5px; /* Add spacing between the flag and the text */
   
}

.language-link:hover {
    font-weight: bold;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #0A1944;
    font-size: 20px;
    transition: all 0.4s;
}

.nav-link:hover {
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #0A1944;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}

.nav--open {
    transform: translateX(0) !important;
}

.hamburger--open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger--open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger--open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 650px) {
    #logo-navbar {
        width: 150px;
        padding: 0;
        height: auto;
        position: relative;
        align-self: center;
    }

    .nav {
        position: fixed;
        top: 10px;
        left: 0px;
        background-color: #F6F7F2;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        padding-bottom: 25px;
        transform: translateX(-100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        row-gap: 20px;
        text-align: left;
    }

    .language-selector {
        display: flex;
        flex-direction: column; /* Stack language options vertically */
        margin-top: 30px; /* Add spacing between the nav links and language selector */
        left: 35px;
        gap: 15px; /* Add spacing between language options */
        font-size: 14px; /* Adjust font size as needed */
        color: #0A1944; /* Match the text color */
        text-align: left;
        justify-content: left;;
        width: 85px
    }
   
    .nav-link {
        font-size: 16px;
        padding-left: 50px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .header-content {
        padding: 20px;
        max-height: 150px;
    }

}

/* Footer */

.footer-container {
   position: relative;
   bottom: 0;
   width: 100%;
   height: 11rem;
   background-color: #E0E5EC;
   padding: 20px;
}

.footer-content {
    padding: 10px;
    font-size: 12px;
    color: #0A1944;
}

.footer-partners {
    gap: 30px;
    justify-content: center;
}

.footer-partners-title {
    display: flex;
    justify-content: center;
    font-size: 24px;
    color: #0A1944;
    margin-bottom: 15px;
}

.footer-partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 10px;
}

.footer-partners-logo {
    justify-content: center;
    height: 40px;
    width: auto;
    margin-right: 5px;
}

.footer-content p {
    font-size: 14px;
    color: #0A1944;
    margin-top: 20px;
    text-align: center;
    justify-content: center;
}


@media (max-width: 800px) {
    .footer-container {
        height: auto;
        padding: 10px;
    }

    .footer-content {
        font-size: 12px;
        color: #0A1944;
        text-align: center;
    }

    .footer-partners-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .footer-partners-logos {
        flex-direction: column; /* Stack logos vertically on smaller screens */
        gap: 10px; /* Adjust spacing between logos */
    }

    .footer-partners-logo {
        height: 30px; /* Adjust logo size for smaller screens */
    }
}


/* Landing page*/


.hovedfokus {
    display: flex;
    width: 80%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    margin-bottom: 100px;
    padding: 30px;
}

#logo-svg {
    width: 90%;
    margin-top: 0;
}

.quote {
    max-width: 550px;
    font-size: 18px;
    color: #0A1944;
    font-style: italic;
    font-weight: 500;
    margin-top: 30px;
}

.source {
    max-width: 550px;
    font-size: 16px;
    color: #0A1944;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 30px;
}

.hovedfokus p{
    width: 90%;
    box-align: center;
    text-align: left;
}

.about {
    max-width: 550px;
    font-size: 24px;
    color:#0A1944;
    margin-top: 20px;
}

.aboutus{
    max-width: 550px;
    font-size: 18px;
    color: #0A1944;
    margin-top: 10px;
    margin-bottom: 20px;
}


.getintouch-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A1944;
    color: #F6F7F2;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 20px;
    text-decoration: none;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 650px) {
    .hovedfokus {
        width: 90%;
        padding: 10px;

        margin-bottom: 50px;
    }

    .quote {
        font-size: 16px;
    }

    .source {
        font-size: 14px;
    }

    .about {
        font-size: 20px;
    }

    .aboutus {
        font-size: 16px;
    }

    .getintouch-button {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* contact cards */



#contact-card-title {
    text-align: left;
    font-size: 50px;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #0A1944;
    display: flex;
    justify-content: flex-start;
}

.kontaktkort {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    max-width: 774px;
    padding: 10px;
    
    margin: 0 auto;
    height: 500px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}



.card {
    width: 238px;
    height: 400px;
    perspective: 1000px;   
}

.card:hover {
    cursor: pointer;
    transform: scale(1.03);
    transition: transform 0.3s;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: #F6F7F2;
    text-align: center;
    padding: 0 20px;
}

.card img {
    width: 198px;
    height: 230px;
    border-radius: 10px;
    margin-bottom: 30px;
    margin-top: 20px;
    object-fit: cover;
}

.card-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures even spacing between elements */
    align-items: flex-start; /* Aligns text to the left */
    width: 80%; /* Adjust width as needed */
    gap: 5px; /* Consistent spacing between elements */
    padding-top: 10px;
    height: 100%; /* Ensures consistent height for all cards */
    text-align: left;
    color: #0A1944;
}

.card-text a {
    margin-top: auto; /* Pushes the link to the bottom of the container */
    margin-bottom: 30px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
}

.sidesirkler {
    position: absolute;
    bottom: 5px;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Space between dots */
    
}

.dot1 {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color:#0A194490;
    display: inline-block;
}

.dot2 {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color: #0A194430;
    display: inline-block;
}

/* Card back styles */


.card-back {
    background: #E0E5EC; /* Light gray background */
    color: #0A1944;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow skill tags to wrap dynamically */
    gap: 10px; /* Space between skill tags */
    justify-content: center; /* Align skill tags to the start */
    align-items: top; /* Center skill tags vertically */
    border-radius: 15px;
    overflow: hidden; /* Ensure content stays within the container */
    position: relative;
}

.card-back span.skill-tag {
    max-width: 100%; /* Ensure spans fit within the container */
    max-height: 80%;
    word-wrap: break-word; /* Handle long text gracefully */
}

.card-back-text {
    width: 100%;
    gap: 10px;
    text-align: center;
}

.skill-tag {
    background: #CBD5E0; /* Tag background color */
    color: #0A1944; /* Text color */
    font-size: 10px;
    padding: 5px 10px;
    margin: 5px 0 5px 0;;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    white-space: nowrap; /* Prevent text from breaking within a tag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 0 1 auto; /* Allow skill tags to shrink or grow as needed */
}





/* mellombredde 650px til 800px */

@media (max-width: 800px) {
    .kontaktkort {
        max-width: 650px;
        height: fit-content;
    }

    .container {
        gap: 10px;
    }

    .card {
        height: 358px;
        width: 200px;
    }

    .card-front {
        flex-direction: column;
        padding: 0;
    }

    .card-back {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .card img {
        width: 171px;
        height: 219px;
        border-radius: 10px;
        margin-bottom: 10px;
        margin-top: 20px;
    }

    .card-text {
        margin-top:4px;
        gap: 10px;
        width: 160px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }

    .card-text a {

        font-size: 12px;
    }   
}

/* Contact cards less than 650px */

@media (max-width: 650px) {
   
    .kontaktkort {
        padding: 10px;
        max-width: 320px;
    }

    #contact-card-title {
        text-align: center;
        margin-left: 0;
        margin-top: 0;
        font-size: 40px;
        margin-bottom: 20px;
        color: #0A1944;
    }

    .container {
        flex-direction: column;
        gap: 15px;
        width: 300px;
        justify-content: center;
        margin: 0 auto;
    }

    .card {
        min-height: 179px;
        min-width: 300px;
        height: 130px;
        margin: auto;
    }

    .card-front {
        flex-direction: row;
        padding: 10px;
    }

    .card-back {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .card img {
        width: 100px;
        height: 128px;
        border-radius: 10px;
        margin: 0 20px 0 0;
    }

    .card-text {
        width: 50%;
        gap: 5px;
        padding-top: 25px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }

    .card-back {
        padding: 0 10px 0 10px;
        flex-direction: column;
        gap: 10px;
        display: inline-flex;
    }

    .card-back-text {
        width: 80%;
        gap: 5px;
        
    }

    .skill-tag {
        font-size: 10px;
        padding: 5px;
        margin: 5px 0 5px 0;
    }
}

/* Projects */


.partners-section {
    display: flex; /* Enable Flexbox */
    flex-direction: column; /* Stack the title and content vertically */
    justify-content: flex-start; /* Center the section vertically */
    align-items: center; /* Center the section horizontally */
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
    margin-top: 100px; /* Add spacing above the section */
    text-align: left; /* Center the text inside the section */
    height: 100vh; /* Make the section take up the full viewport height */
    width: 100%; /* Make the section take up the full width of the viewport */
    padding: 20px; /* Add padding around the section */
}

.partners-background {
    background: #A5B5C4; /* Light gray background */
    border-radius: 20px; /* Rounded corners */
    padding: 25px; /* Padding inside the section */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    width: 95%; /* Full width of the viewport */
    height: auto; /* Height adjusts based on content */
    max-height: 100%; /* Prevents overflow on smaller screens */
    max-width: 774px; /* Maximum width for larger screens */
    margin: 0 auto; /* Center the section horizontally */
}

.partners-title {
    font-size: 24px; /* Adjust the font size of the title */
    color: #0A1944; /* Match the text color */
    margin-bottom: 20px; /* Add spacing below the title */
    text-align: center; /* Center the title text */
}

.partners {
    display: flex; /* Use Flexbox to align items side by side */
    justify-content: center; /* Center the items horizontally */
    align-items: center; /* Align items vertically */
    gap: 20px; /* Add spacing between the items */
    max-width: 774px;
    margin: 0 auto;
    padding: 10px;
    margin-top: 30px;
}

.kongsberg,
.optilift {
    width: auto; /* Set equal width for both elements */
    max-width: 200px;
    height: auto; /* Maintain aspect ratio */
}

.optilift {
   padding-left: 23px;
   padding-top: 5px;
}

.partners p{
    font-size: 33px; /* Adjust font size for smaller screens */
    color: #0A1944; /* Match the text color */
    margin-top: 10px; /* Add spacing above the paragraph */
    text-align: center; /* Center the paragraph text */
    font-weight: 700; /* Adjust font weight for emphasis */
}

@media (max-width: 776px) {
    .partners-section {
        height: auto; /* Adjust height for smaller screens */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .partners-title {
        font-size: 25px; /* Adjust font size for smaller screens */
    }

    .partners {
        flex-direction: column; /* Stack items vertically on smaller screens */
        gap: 20px; /* Reduce spacing between items */
    }

    .kongsberg,
    .optilift {
        max-width: 200px; /* Adjust width for smaller screens */
    }
}

@media (max-width: 470px) {
    .partners-section {
        margin-top: 100px;
        height: auto; /* Adjust height for smaller screens */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .partners-title {
        font-size: 18px; /* Adjust font size for smaller screens */
    }

    .partners {
        flex-direction: column; /* Stack items vertically on smaller screens */
        gap: 20px; /* Reduce spacing between items */
    }

    .kongsberg,
    .optilift {
        max-width: 200px; /* Adjust width for smaller screens */
        max-height: 200px; /* Adjust height for smaller screens */
    }
}


/* services */

.services-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1000px;
    height: auto;
    padding-bottom: 50px;
}

.services-title {
    font-size: 50px;
    color: #0A1944;
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
}

.services-description {
    font-size: 16px;
    color: #0A1944;
    margin-top: 10px;
    text-align: left;
    max-width: 800px;
    margin-right: 15%;
    margin-bottom: 40px;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.service-item {
    height: auto;
    margin-bottom: 20px;
    background-color: #F6F7F2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;;
}

.service-image{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0px;
    top: 20px;
}

.service-name {
    font-size: 24px;
    color: #0A1944;
    margin-top: 10px;
}

.service-description {
    font-size: 16px;
    color: #0A1944;
    margin-top: 10px;
    text-align: left;
    bottom: 20px;

}

@media (max-width: 750px){
    .services-container {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: center; /* Center items horizontally */
        padding: 20px; /* Add padding around the section */
        max-width: 400px;
    }

    .services-title {
        font-size: 30px; /* Adjust font size for smaller screens */
        margin-top: 10px;;
    }

    .services-description {
        font-size: 14px; /* Adjust font size for smaller screens */
        margin-right: 0; /* Remove right margin on smaller screens */
        text-align: left; /* Center the description text */
    }

    .services-list {
        grid-template-columns: 1fr; /* Stack items in a single column on smaller screens */
        gap: 15px; /* Reduce spacing between items */
    }

    .service-item {
        width: 100%; /* Full width for each item on smaller screens */
    }

    .service-image {
        height: 150px; /* Adjust image height for smaller screens */
    }
}

