/* :root {
  --main-green: #5a915c;
  --main-gray: #b3bbbb63;
} */


:root {
  --background-light: #fdfffd;
  --text-light: #000;
  --background-dark: #121212;
  --text-dark: #ffffff;
  --main-green: #5a915c;
  --main-gray: #b3bbbb63;
}

body.light-mode {
  background-color: var(--background-light);
  color: var(--text-light);
}

body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-dark);
}


/*--------------------------------------------------------------
# Media Queries for Responsiveness
--------------------------------------------------------------*/

/* Allmänna mobila enheter (upp till 576px, små mobiler) */
@media (max-width: 576px) {
  body {
    font-size: 15px;
  }

  #hero .carousel-inner .carousel-item img {
    height: 300px; /* Begränsa höjden på små mobiler */
  }

  #header {
    height: 60px;
    padding: 0 1rem;
  }

  .navbar ul {
    display: block;
    text-align: center;
  }

  .navbar li {
    margin-bottom: 10px;
  }

  .featured-services {
    flex-direction: column;
    gap: 2rem;
  }

  .services .icon-box {
    padding: 20px;
  }

  section {
    padding: 40px 10px;
  }

  .portfolio .portfolio-item {
    margin-bottom: 15px;
  }

  .row.center {
    display: flex;
    flex-direction: column-reverse;
  }

  .row.center img {
    margin-top: 20px;
  }

  .row.center:first-of-type {
    display: flex;
    flex-direction: column-reverse;
  }

  .row.center:first-of-type .col-sm-6:first-child {
    order: 2; /* Gör att bilden alltid hamnar efter texten */
  }

  .row.center:first-of-type .col-sm-6:last-child {
    order: 1; /* Gör att texten alltid hamnar före bilden */
  }

  .row.center:first-of-type img {
    margin-top: 20px;
  }

  #footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  #footer img {
    width: 8em;
    height: auto;
  }

  #footer section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #footer section span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  #hero .carousel-indicators li,
  #hero .carousel-indicators li.active {
    display: none;
  }
}

/* Större mobiler (576px till 768px) */
@media (min-width: 576px) and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  #hero .carousel-inner .carousel-item img {
    height: 400px; /* Anpassa höjden för större mobiler */
  }

  .featured-services {
    flex-direction: column;
    gap: 3rem;
  }

  .services .icon-box {
    padding: 30px;
  }

  section {
    padding: 50px 15px;
  }

  .portfolio .portfolio-item {
    margin-bottom: 20px;
  }

  #footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 30px;
  }

  #footer img {
    width: 10em;
  }

  #footer section {
    align-items: flex-start;
    text-align: left;
  }
}

/* Surfplattor (768px till 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  body {
    font-size: 17px;
  }

  #hero .carousel-inner .carousel-item img {
    height: 500px; /* Anpassa höjden för surfplattor */
  }

  #header {
    height: 80px;
    padding: 0 2rem;
  }

  .featured-services {
    gap: 4rem;
  }

  .services .icon-box {
    padding: 40px;
  }

  .portfolio .portfolio-item {
    margin-bottom: 25px;
  }

  section {
    padding: 60px 20px;
  }
}

/* Små PC-skärmar (992px till 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  body {
    font-size: 18px;
  }

  #hero .carousel-inner .carousel-item img {
    height: 600px; /* Anpassa höjden för små PC-skärmar */
  }

  .cta h3 {
    font-size: 24px;
  }

  .portfolio .portfolio-item {
    margin-bottom: 25px;
  }

  #hero {
    height: 85vh;
  }

  section {
    padding: 70px 30px;
  }
}

/* Stora skärmar (1200px till 1600px) */
@media (min-width: 1200px) and (max-width: 1600px) {
  body {
    font-size: 19px;
  }

  #hero .carousel-inner .carousel-item img {
    height: 70vh; /* Använd viewporthöjd för större skärmar */
  }

  #hero {
    height: 80vh;
  }

  .featured-services {
    gap: 5rem;
  }

  .cta h3 {
    font-size: 26px;
  }

  section {
    padding: 80px 40px;
  }
}

/* Ultrawide skärmar (över 1600px) */
@media (min-width: 1600px) {
  body {
    font-size: 21px;
  }

  #hero .carousel-inner .carousel-item img {
    height: 80vh; /* Öka höjden för ultrawide-skärmar */
  }

  #hero {
    height: 70vh;
  }

  .services .icon-box {
    padding: 50px;
  }

  .cta h3 {
    font-size: 28px;
  }

  .featured-services {
    gap: 6rem;
  }

  section {
    padding: 100px 50px;
  }
}


/* CSS RESET START */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/* CSS RESET FINISHED */

body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

a {
  text-decoration: none;
  color: #5cb874;
}

a:hover {
  color: #80c792;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #5cb874;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #78c48c;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  display: flex;
  align-items: center;
  background-color: #f8fcf9;
  z-index: 997;
  height: clamp(50px, 1vw + 70px, 100px);
  width: 100vw;
  padding: 0 2rem;
}

#header.header-scrolled {
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .logo {
  font-size: 24px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

#header .logo a {
  color: var(--main-green);
}

#header .logo img {
  max-height: 40px;
}

.scrolled-offset {
  margin-top: 70px;
}

.company-name {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.text-break {
  display: none;
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/



#theme-toggle {
  position: absolute; /* Ensures placement in header */
  top: 50%;
  transform: translateY(-50%); /* Centers it vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px; /* Rounded corners */
}

/* Ensure it stays in the right place for larger screens */
@media (min-width: 768px) {
  #theme-toggle {
    right: 10px; /* Adjusted for larger screens */
    font-size: 15px;
  }
}

/* Make button smaller on phone screens */
@media (max-width: 768px) {
  #theme-toggle {
    right: 1px;
    font-size: 15px; /* Smaller icon */
  }
}

#theme-toggle {
  border: none;
  background: none;
  outline: none;
  box-shadow: none;
  padding: 8px;
  cursor: pointer; /* Ensures it looks clickable */
  touch-action: manipulation; /* Improves touch responsiveness */
  user-select: none; /* Prevents accidental text selection */
}


.navbar {
  padding: 0 2rem;
  flex: 1;
  justify-content: right;
}

header .company-name {
  a,
  h4 {
    font-size: min(1rem, 20px);
  }
}

.navbar img {
  display: none;
  width: 50%;
  margin: 60% auto;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: #222222;
  white-space: nowrap;
  transition: 0.3s;
}

.dark-mode .navbar a {
  color:   #ffffff;
}

.dark-mode .navbar a:hover,
.dark-mode .navbar .active,
.dark-mode .navbar a:focus,
.dark-mode .navbar li:hover > a{
  color: #5cb874;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar a:focus,
.navbar li:hover > a {
  color: #5cb874;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  color: #5cb874;
  padding: 8px 25px;
  margin-left: 30px;
  border-radius: 4px;
  border: 2px solid #5cb874;
  transition: 0.3s;
  font-size: 14px;
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  background: #5cb874;
  color: #fff;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  text-transform: none;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
  color: #5cb874;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #222222;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar {
    padding: 0;
  }
  .navbar img {
    display: block;
    margin: 0 auto;
    object-position: bottom;
    object-fit: scale-down;
    width: 30vw;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(9, 9, 9, 0.9);
  transition: 0.3s;
  z-index: 99;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #222222;
}

.navbar-mobile ul {
  display: block;
  /* position: absolute; */
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
  height: 100vh;
  width: 50vw;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #222222;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #5cb874;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
  color: #5cb874;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 90vh;
  background-color: rgba(8, 8, 8, 0.8);
  overflow: hidden;
  position: relative;
}


#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item,
#hero .carousel-item::before {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#hero .carousel-item::before {
  content: "";
 /* background-color: rgba(2, 2, 2, 0.851);
  opacity: 0;*/
  background-color: #f8fcf9;
  opacity: 0;
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 50px;
  right: 50px;
}

#hero .container {
  text-align: left;
}


#hero h2 {
  color: #f8fcf9;
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 700;
}

#hero p {
  font-size: 20px;
  animation-delay: 0.4s;
  margin: 0 auto 30px auto;
  color: #f8fcf9;
  font-weight: 500;
}

/* .icon-following-text {
  display: flex;
  gap: min(2rem, 20px);
} */

#hero .carousel-inner .carousel-item {
  transition-property: opacity;
  background-position: center top;

}

#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  background-color: #f8fcf9;
  opacity: 1;
}

#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 1;
  /* transition: 0.5s; */
}

#hero .carousel a[role="button"] {
  height: min-content;
  width: min-content;
  top: 45%;
  margin: 1rem;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 30px;
  line-height: 0;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  transition: 0.3s;
  color: rgb(255, 255, 255);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: multiply;
  display: none;
}

#hero .carousel-control-next-icon:hover,
#hero .carousel-control-prev-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

#hero .carousel-indicators li {
  list-style-type: none;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
  display: none;
}

#hero .carousel-indicators li.active {
  opacity: 1;
  background: #5cb874;
  display: none;
}

#hero .btn-get-started {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  transition: 0.5s;
  line-height: 1;
  color: #f8fcf9;
  animation-delay: 0.8s;
  background: #5cb874;
  margin-bottom: 1rem;
}

#hero .btn-get-started:hover {
  background: #6ec083;
}

@media (max-width: 992px) {
  #hero {
    height: 100vh;
  }

  #hero .carousel-container {
    top: 66px;
    container {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      height: 80%;
    }
  }
}

@media (max-width: 768px) {
  #hero h2 {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 5%;
  }
}

@media (max-height: 500px) {
  #hero {
    height: 120vh;
  }
}


#hero h2 {
  color: #ffffff; /* Make sure text is visible on the image */
  font-size: 36px; /* Adjust size for readability */
  font-weight: 700;
  margin-bottom: 10px; /* Reduce space between title and buttons */
}

#hero p {
  font-size: 18px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 10px; /* Reduce space */
}


@media (max-width: 768px) {
  #hero {
    height: auto; /* Allow dynamic height */
    min-height: 37vh; /* Ensures the image is visible but no extra space */
    padding-bottom: 0;
  }

  #hero .carousel-container {
    bottom: 50%; /* Moves content slightly higher */
    padding-bottom: 0;
    transform: none; /* Prevent unwanted shifting */
  }

  #hero .carousel-inner .carousel-item {
    height: 60vh; /* Keeps image from collapsing */
    background-size: cover;
    background-position: center;
  }
}



/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

main section .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 auto;
}
.section-bg {
  background-color: #f8fcf9;
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
  font-size: 14px;
  color: #524f4f;
}

.section-title-2 {
  text-align: center;
  padding-bottom: 10px;
}

.section-title-2 h2 {
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
}

.section-title-2 h2::before {
  content: "";
  position: absolute;
  display: block;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title-2 h2::after {
  content: "";
  position: absolute;
  display: block;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title-2 p {
  margin-bottom: 0;
  font-size: 14px;
  color: #444444;
}

/*--------------------------------------------------------------
# Featured Services
--------------------------------------------------------------*/
.featured-services {
  padding: 6rem 0;
  display: flex;
  gap: 5rem;
}

/* .featured-services .container {
  height: 80vh;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
  margin: 0 auto;
}

.featured-services-inner-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: center;
  width: 100%;
  margin: 0;
} */

.featured-services .icon-box {
  padding: 20px;
}

.featured-services .icon-box-bg {
  background-image: linear-gradient(
    0deg,
    #222222 0%,
    #2f2f2f 50%,
    #222222 100%
  );
}

.featured-services .icon {
  margin-bottom: 15px;
}

.featured-services .icon i {
  color: #5cb874;
  font-size: 42px;
}

.featured-services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.featured-services .title a {
  color: #222222;
  pointer-events: none;
  /* transition: 0.3s; */
}

/* .featured-services .icon-box:hover .title a {
  color: #5cb874;
}  */

.featured-services .description {
  line-height: 24px;
  font-size: 1.1rem;
}

.to-form {
  background-color: #5cb874;
  color: #fdfcfc;
  font-size: 1.5rem;
  font-weight: 600;
  width: fit-content;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0px 2px 2px 2px rgba(127, 137, 161, 1);
  transition: all 0.3s;
}

.to-form:hover {
  background-color: #55aa6c;
  color: #eee;
}

/*--------------------------------------------------------------
# About Us
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #5cb874;
}

.about .content p:last-child {
  margin-bottom: 2rem;
}
.about .center {
  margin: auto;
  width: 100%;
  padding: 40px;
}

/*--------------------------------------------------------------
# Why Us
--------------------------------------------------------------*/
.why-us {
  padding: 0;
}

.why-us .row {
  overflow: hidden;
}

.why-us .content-item {
  padding: 40px;
  border-left: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: -1px;
}

.why-us .content-item span {
  display: block;
  font-size: 24px;
  font-weight: 400;
  color: #6ec083;
}

.why-us .content-item h4 {
  font-size: 26px;
  font-weight: 300;
  padding: 0;
  margin: 20px 0;
}

.why-us .content-item p {
  color: #aaaaaa;
  font-size: 15px;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .why-us .content-item {
    padding: 40px 0;
  }
}

/*--------------------------------------------------------------
# Our Clients
--------------------------------------------------------------*/
.clients .swiper-slide img {
  opacity: 0.5;
  transition: 0.3s;
}

.clients .swiper-slide img:hover {
  opacity: 1;
}

.clients .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #5cb874;
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #5cb874;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: #5f9754;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.1);
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .icon-box .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .icon-box .icon svg path {
  transition: 0.5s;
  fill: #f5f5f5;
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: #222222;
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  border-color: #fff;
  box-shadow: 0px 0 35px 0 rgba(0, 0, 0, 0.08);
}

.services .iconbox-blue i {
  color: #47aeff;
}

.services .iconbox-blue:hover .icon i {
  color: #fff;
}

.services .iconbox-blue:hover .icon path {
  fill: #47aeff;
}

.services .iconbox-orange i {
  color: #ffa76e;
}

.services .iconbox-orange:hover .icon i {
  color: #fff;
}

.services .iconbox-orange:hover .icon path {
  fill: #ffa76e;
}

.services .iconbox-pink i {
  color: #e80368;
}

.services .iconbox-pink:hover .icon i {
  color: #fff;
}

.services .iconbox-pink:hover .icon path {
  fill: #e80368;
}

.services .iconbox-yellow i {
  color: #ffbb2c;
}

.services .iconbox-yellow:hover .icon i {
  color: #fff;
}

.services .iconbox-yellow:hover .icon path {
  fill: #ffbb2c;
}

.services .iconbox-red i {
  color: #ff5828;
}

.services .iconbox-red:hover .icon i {
  color: #fff;
}

.services .iconbox-red:hover .icon path {
  fill: #ff5828;
}

.services .iconbox-teal i {
  color: #11dbcf;
}

.services .iconbox-teal:hover .icon i {
  color: #fff;
}

.services .iconbox-teal:hover .icon path {
  fill: #11dbcf;
}

/*--------------------------------------------------------------
# Cta
--------------------------------------------------------------*/
.cta {
  background: var(--main-gray);
  padding: 80px 0;
}

.cta h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.cta p {
  color: #fff;
}

.cta .cta-btn {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 2px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 4px;
}

.cta .cta-btn:hover {
  background: #fff;
  color: #5cb874;
}

@media (max-width: 1024px) {
  .cta {
    background-attachment: scroll;
  }
}

@media (min-width: 769px) {
  .cta .cta-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 15px 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: #5cb874;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(34, 34, 34, 0.6);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(34, 34, 34, 0.6);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap img {
  transition: all ease-in-out 0.3s;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  font-style: italic;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  margin: 0 5px 0 0;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: #6ec083;
}

.portfolio .portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.2);
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #5cb874;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: #5cb874;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(34, 34, 34, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/
.team .member {
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0px 0px 12px 0px rgba(34, 34, 34, 0.07);
  padding: 30px 20px;
  background: #fff;
}

.team .member img {
  max-width: 60%;
  border-radius: 50%;
  margin: 0 0 30px 0;
}

.team .member h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
}

.team .member span {
  font-style: italic;
  display: block;
  font-size: 13px;
}

.team .member p {
  padding-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: #aaaaaa;
}

.team .member .social {
  margin-top: 15px;
}

.team .member .social a {
  color: #919191;
  transition: 0.3s;
}

.team .member .social a:hover {
  color: #5cb874;
}

.team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/

#contact {
  background-color: #f8fcf9;
}

#contact .container {
  display: flex;
  flex-direction: column;
}
.contact .info {
  border-top: 3px solid #5cb874;
  border-bottom: 3px solid #5cb874;
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .info i {
  font-size: 20px;
  color: #5cb874;
  float: left;
  width: 44px;
  height: 44px;
  background: #eaf6ed;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #fff;
}

.contact .info .social-links {
  padding-left: 60px;
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  margin-right: 10px;
}

.contact .info .social-links a:hover {
  background: #5cb874;
  color: #fff;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #5cb874;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  border-top: 3px solid #5cb874;
  border-bottom: 3px solid #5cb874;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.form-control {
  height: 10vh;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 4px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #5cb874;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type="submit"] {
  background: #5cb874;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #6ec083;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


@media (max-width: 768px) {
  .large-icon {
    width: 400px !important;; /* Adjust size for mobile */
  }
  
  .medium-icon {
    width: 100px !important;
  }
  
}

.icon-img {
  width: 200px; /* Make sure all images have the same width */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Prevents stretching and ensures proper fit */
  display: block; /* Removes extra inline spacing */
  margin: 0 auto; /* Centers image properly */
}


.col-4 {
  display: flex;
  justify-content: center;
  align-items: center;
}


@media (prefers-color-scheme: light) {
  .zaptec-logo,
  .elsakerhetsverket-logo {
    filter: invert(1); /* Only affects specific logos */
  }
}

/* Default (Light Mode) */
body.light-mode {
  background-color: #f8fcf9; /* Light background */
  color: #000; /* Dark text */
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212; /* Dark background */
  color: #ffffff; /* Light text */
}

/* Ensure section backgrounds also change */
.section-bg {
  background-color: inherit; /* Allows background to inherit from body */
}

/* Footer Background Adjusts */


.footer {
  background-color:  #121212; /* Dark footer */
}

/* Ensure header, sections, and icons are visible */
@media (prefers-color-scheme: dark) {
.dark-mode .icon-img {
  filter: invert(5) brightness(5) contrast(1) !important; /* Ensures dark logos turn white */
}
}

@media (max-width: 768px) {
  .dark-mode .icon-img {
    filter: invert(5) brightness(5) contrast(1) !important; /* Ensures dark logos turn white */
  }
  .icon-img {
    width: 100px; /* Ensure images don’t shrink too much */
    height: auto;
    display: block; /* Make sure it's not hidden */
    margin: 0 auto; /* Center it if needed */
  }
}



.dark-mode .featured-services .title a {
  color:  #ffffff;
}

.dark-mode .section-title p {
  color: #ffffff;
}

.dark-mode #header {
  background-color:  #121212;; /* Even darker footer */
}

.dark-mode #hero .carousel-inner .carousel-item,
.dark-mode #hero .carousel-inner .active.carousel-item-start,
.dark-mode #hero .carousel-inner .active.carousel-item-end {
  background-color:  #121212;; /* Even darker footer */
}

.dark-mode .navbar-mobile ul {
  background-color:  #121212;; /* Even darker footer */
}

.dark-mode #footer {
  background-color:  #121212;; /* Even darker footer */
}

.dark-mode .php-email-form  {
  background-color:  #121212;; /* Even darker footer */
}

.dark-mode .form-control .php-email-form input  {
  background-color:  #121212;; /* Even darker footer */
}

.dark-mode input, .dark-mode input:focus, .dark-mode textarea, .dark-mode textarea:focus{
  color: #ffffff; /* Light text in dark mode */
  background-color:  #121212; /* Darker input field */
}
.dark-mode {
  background-color:  #121212;; /* Even darker footer */
  color: #ffffff;
}


.dark-mode .form-control {
  background-color:  #121212;; /* Even darker footer */
  
}

.dark-mode #contact {
  background-color:  #121212;; /* Even darker footer */
}

/* Optional: Add contrast to images/logos */
.dark-mode img {
  filter: brightness(0.8) contrast(1.2); /* Improve visibility */
}


/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background: #fbfbfb;
  min-height: 40px;
}

@media (max-width: 992px) {
  .breadcrumbs {
    margin-top: 66px;
  }
}

.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #3c3c3c;
  content: "/";
}

@media (max-width: 768px) {
  .text-break {
    display: inline;
  }
  .breadcrumbs .d-flex {
    display: block !important;
  }

  .breadcrumbs ol {
    display: block;
  }

  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--main-gray);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  img {
    margin: auto;
  }
  section {
    display: flex;
    margin: auto;
    justify-content: center;
    gap: 2rem;

    * {
      color: var(--main-green);
    }

    i {
      margin-right: 0.5rem;
    }
  }
}
