@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

html {
   scroll-behavior: smooth;
}

.Wrapper{
    margin: 0;
    padding-top: 90px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

body {
    margin: 0;
    background-color: #ffffff;
    color: #313433;
    font-size: 1.4vw;
}

@media (max-width: 768px) {
    body {
        font-size: 4vw;
    }
}


.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #EBF2F0;
    padding: 20px 40px;

    position: fixed;       /* makes it stick */
    top: 0;                /* stick to top */
    left: 0;
    z-index: 1000;         /* ensures it stays above other content */
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.logo img {
    height: 50px;
    object-fit: contain;
  }

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 16px;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    color: var(--TextColor);
}

.nav-links a:hover {
    color: #007f5f;
}

.menu-toggle {
display: none;
font-size: 28px;
background: none;
border: none;
cursor: pointer;
}

/* Hide by default */
.close-btn {
    display: none;
  }
  
  /* Show only when nav-links is active */
  .nav-links.active .close-btn {
    display: block;
  }

/* Mobile styles */
@media (max-width: 768px) {
    .nav-links {
      flex-direction: column;
      position: fixed; /* Use fixed to cover the whole screen */
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: #eef3ef;
      padding: 20px;
      border-radius: 0;
      box-shadow: none;
      z-index: 999;
  
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-100%);
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
  
    .nav-links.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
  
    .menu-toggle {
      display: block;
    }
    .nav-links a {
        transition: all 0.2s ease;
        padding: 10px;
        border-radius: 6px;
      }
      
      /* Hover effect for mobile */
      .nav-links a:hover {
        background-color: rgba(0, 127, 95, 0.1);
        color: #007f5f;
      }
      
      /* Click animation */
      .nav-links a:active {
        transform: scale(0.95);
        background-color: rgba(0, 127, 95, 0.2);
      }
  }
  

.Hem{
    width: 100%;
    height: 100vh;
    background-image: url('Imgs/DSC_1797.jpg');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.Hem-Text{
    position: relative;
    left: -23%;
    width: 50%;
    color: white;
    font-size: 2.6vw;
}

@media (max-width: 768px) {
    .Hem-Text {
        left: 0;
        text-align: center;
        width: 90%;
        font-size: 2.4vh;
        font-weight: bold;
        word-break: break-word;
    }
}


.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.navbar {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.Hem {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.Hem-Text {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Animation trigger classes */
.page-loaded .navbar {
    transform: translateY(0);
    opacity: 1;
}

.page-loaded .Hem {
    opacity: 1;
}

.page-loaded .Hem-Text {
    transform: translateY(0);
    opacity: 1;
}


.Hållbar-Rekrytering{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.Hållbar-Rekrytering-Rubrik{
    width: 95%;
    text-align: center;
    font-size: 4vw;
    margin-bottom: 2rem;
}

.Hållbar-Rekrytering-Text{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    gap: 6rem;
}

.Hållbar-Rekrytering-Text-Left{
    width: 30%;
}

.Hållbar-Rekrytering-Text-Right{
    width: 30%;
}

.Hållbar-Rekrytering-Text-Down{
    width: 60%;
}

.Om-Mig{
    width: 100%;
    height: 100vh;
    background-color: #BFD0CA;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.Om-Mig-Rubrik{
    width: 95%;
    text-align: center;
    font-size: 4vw;
    margin-bottom: 2rem;
}

.Om-Mig-Text{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    gap: 6rem;
}

.Om-Mig-Text-Left{
    width: 30%;
}
.Om-Mig-Text-Right{
    width: 30%;
}
.Om-Mig-Text-Right a{
    color: #313433;
}

.Connecta{
    width: 100%;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.Connecta-Rubrik{
    text-align: center;
    font-weight: bold;
    text-shadow: 0px 10px 10px #BFD0CA;
    font-size: 4vw;
    margin: 2rem;
}

.Button {
    border: none;
    margin: 2rem;
    background-color: #BFD0CA;
    box-shadow: none;
    border-radius: 10px;
    width: 30vh;
    height: 10vh;
    font-size: 4vh;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.Button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.6);
}   

.Button:active{
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .Button{
        width: 22vh;
        height: 8vh;
        font-size: 2.7vh;
        transform: scale(0.8);
    }
}

.Sammarbeten {
    width: 100%;
    height: 100vh;
    background-color: #BFD0CA;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 50px 0;
}

.CarouselContainer {
    overflow: hidden;
    width: 100%;
    max-width: 800px; /* Set a reasonable max width */
    margin: 0 auto; /* Center the carousel */
    position: relative;
}

.Carousel {
    height: auto;
    padding: 1rem 0;
    display: flex;
    transition: transform 0.5s ease;
    align-items: center;
}

.Card {
    flex: 0 0 30%; /* Instead of fixed 200px, use percentage */
    margin: 0 10px;
    background: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 
        transform 0.5s ease, 
        opacity 0.5s ease, 
        filter 0.5s ease;
    opacity: 0.4;
    filter: grayscale(100%) blur(1px);
    transform: scale(0.8);
}

.Card.active {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

#prevButton,
#nextButton {
    position: absolute;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    font-weight: bold;
    z-index: 2;
}

#prevButton {
    left: 10px;
}

#nextButton {
    right: 10px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .Card {
        flex: 0 0 55%; /* Slightly bigger cards on smaller screens */
    }
}

/* 
.Kontakt{
    width: 100%;
    height: auto;
    background-color: #8fa19a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.Kontakt-Upper{
    text-align: center;
    margin: 20px;
}

.Kontakt-Upper a{
    cursor: pointer;
    color: #313433;
    text-decoration: none;
}


.Kontakt-Logo img {
    height: 80px;
    object-fit: contain;
  }

.Kontakt-Media{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

.Media-Logo a img{
    width: 60px;
    object-fit: contain;
}
*/

.Kontakt1{
    width: 100%;
    height: auto;
    background-color: #8fa19a;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.Kontakt-Logo img {
    height: 80px;
    object-fit: contain;
}

.Kontakt-Info-Wrapper{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 3rem;
}

.Kontakt-Info{
    padding: 5px;
    width: auto;
    height: 100%;
    text-align: center;
}

.Kontakt-Info-Rubrik{
    font-size: 1.8vw;
}

.Kontakt-Info-Text a{
    color: #313433;
    text-decoration: none;
    font-size: 1vw;
    transition: all 0.3s ease;
}

.Kontakt-Info-Text a:hover{
    text-decoration: underline;
    color: #007f5f;
}

.Kontakt-TradeMark a{
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-size: 0.8vw;
}

@media (max-width: 768px) {
    .Kontakt1{
        width: 100%;
        height: auto;
        background-color: #8fa19a;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .Kontakt-Logo img {
        height: 50px;
        object-fit: contain;
    }
    
    .Kontakt-Info-Wrapper{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    
    .Kontakt-Info{
        padding: 5px;
        width: auto;
        width: 80%;
        height: 100%;
        text-align: center;
    }
    
    .Kontakt-Info-Rubrik{
        font-size: 5vw;
    }
    
    .Kontakt-Info-Text a{
        color: #313433;
        text-decoration: none;
        font-size: 3vw;
        transition: all 0.3s ease;
    }
    
    .Kontakt-Info-Text a:hover{
        text-decoration: underline;
        color: #007f5f;
    }
    
    .Kontakt-TradeMark a{
        cursor: pointer;
        color: white;
        text-decoration: none;
        font-size: 3.5vw;
    }
}

@media (max-width: 768px) {
    .Hållbar-Rekrytering , .Connecta, .Om-Mig, .Sammarbeten{
        height: auto;
    }
    .Hållbar-Rekrytering-Text, .Om-Mig-Text{
        padding: 2rem;
    }
    .Hållbar-Rekrytering-Rubrik, .Om-Mig-Rubrik, .Connecta-Rubrik{
        font-size: 7vw;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }
    .Om-Mig-Text-Left{
        width: 100%;
    }
    .Om-Mig-Text-Right{
        width: 100%;
    }
    .Hållbar-Rekrytering-Text-Left{
        width: 100%;
    }
    
    .Hållbar-Rekrytering-Text-Right{
        width: 100%;
    }
}