* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Ändra bredd på scrollbaren */
html {
  scrollbar-width: thin; /* Normal, thin, none */
}

/* Ändra färger på scrollbaren och handtaget */
html {
  scrollbar-color: #839476 #fcf1de; /* Färg på handtaget och bakgrunden */
}

/* Styla hela scrollbaren */
::-webkit-scrollbar {
  width: 7px; /* Bredden på scrollbaren */
}

/* Styla bakgrunden till scrollbaren */
::-webkit-scrollbar-track {
  background-color: #fcf1de; /* Färg på bakgrunden */
}

/* Styla själva handtaget */
::-webkit-scrollbar-thumb {
  background-color: #839476; /* Färg på handtaget */
  border-radius: 6px; /* Rundade hörn på handtaget */
}

/* Handtaget vid hover */
::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Ändra färg vid hover */
}    

body {
  scrollbar-gutter: stable both-edges;
}

.parallax {
  background-size: 110%;
  height: 100vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1; 
}

.parallax-content {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2; 
  color: white;
  background-color: rgba(
    0,
    0,
    0,
    0.55
  ); 
}

#mobile-menu {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: bold;
}

.p-text {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

.card {
  position: relative;
  animation: fade-out linear;
  animation-timeline: view();
  animation-range: exit;
  cursor: pointer;
  background-color: black;
}

.card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.5;
  border-radius: 3%;
  transition: opacity ease-in-out 0.3s;
}

.scroll-watcher {
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: whitesmoke;
  opacity: 0.3;
  width: 100%;
  scale: 1 1;
  animation: scroll-watcher-animation linear;
  animation-timeline: scroll();
  animation-range-end: 25vh;
  z-index: 20;
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #839476; /* Adjust to your preferred color */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: translateX(0);
}

.nav-link.scrolled::after {
  background-color: white; /* Ändrad färg när skrollad */
}

.card > svg {
  position: absolute;
  right: 30px;
  bottom: 35px;
}

.card > h3 {
  margin: 2rem;
  z-index: 20;
}

/* #hero-image {
  animation: hero-image-animation linear forwards;
  animation-timeline: view();
} */

/* #info-bild {
  opacity: 0;
  animation: fade-in linear;
  animation-timeline: view();
} */

.bg-hero {
  background-image: url(./assets/hero.webp);
  background-color: black;
}

/* .bg-about-us {
  background-image: url(./assets/om_oss.webp);
} */

.backdrop {
  background-color: rgba(0, 0, 0, 0.697);
}

.navbar-background-dynamic {
  opacity: 1;
}

/* #footer-border {
  border-radius: 20px;
} */

.faq-question {
  cursor: pointer;
  padding: 15px;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #8394763b;
}

.faq-answer {
  padding: 15px;
  display: none;
  margin-bottom: 10px;
}

.faq-item {
  padding: 15px;
}

.faq-active .faq-answer {
  display: block;
  border-left: 2px solid #839476;
  padding: 15px; 
  margin-bottom: 10px;
}

.faq-active .faq-question {
  background-color: #8394763b;
}

/* #bottom-container {
  border-top: 1px white;
} */

/* #losningar-grid {
  animation: fade-in-and-slide-left linear;
  animation-timeline: view();
  animation-range: -500px 700px;
} */

@keyframes pulse-and-fade {
  from {
    transform: translateY(0.8);
    opacity: 1;
  }
  to {
    transform: translateY(1.8);
    opacity: 0;
  }
}

.carousel-item {
  /* ...andra stilar... */
  transition: opacity 0.5s ease-in-out;
  opacity: 0; /* Göm alla karusellelement */
}

.carousel-item.active {
  opacity: 1; /* Visa det aktiva elementet */
}

@keyframes hero-image-animation {
  25% {
    opacity: 0.15;
  }
  85%,
  100% {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fade-in-and-slide-left {
  from {
    opacity: 0;
    transform: translateX(-300px);
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-and-slide-right {
  from {
    opacity: 0;
    transform: translateX(200px);
  }
  to {
    opacity: 1;
  }
}

@keyframes scroll-watcher-animation {
  from {
    scale: 0 1;
  }
}

/* Endast ≥ 640px */
@media (min-width: 640px) {
  .navbar-background-dynamic {
    animation: fade-in linear;
    animation-timeline: scroll();
    animation-range-end: 25vh;
  }
}

/* Tillgänglighet + fallback (valfritt) */
@media (prefers-reduced-motion: reduce) {
  .navbar-background-dynamic { animation: none; }
}
@supports not (animation-timeline: scroll()) {
  .navbar-background-dynamic { animation: none; }
}