* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Schibsted Grotesk", sans-serif;
  /* For Firefox */
  scrollbar-width: thin;
  scrollbar-color: #9e8121 #1d3557;
}

/* For Webkit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #9e8121;
  border-radius: 6px;
  border: 3px transparent;
}

#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1d3557;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}
#loading-spinner .gif-wrapper {
  position: relative;
}
#loading-spinner img {
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.5);
  width: auto;
  height: auto;
  position: relative;
  left: 0px;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 128px;
  padding-right: 128px;
}
@media (max-width: 1024px) {
  .container {
    padding-left: 64px;
    padding-right: 64px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.hamburger {
  position: relative;
  display: block;
  width: 35px;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  outline: none;
  border: none;
  padding: 8px 0;
}
.hamburger .bar, .hamburger:after, .hamburger:before {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background-color: #FFF;
  margin: 5px 0;
  transition: 0.4s;
}
.hamburger.is-active:before {
  transform: rotate(-45deg) translate(-8px, 6px);
}
.hamburger.is-active:after {
  transform: rotate(45deg) translate(-9px, -8px);
}
.hamburger.is-active .bar {
  opacity: 0;
}

.mobile-nav {
  position: fixed;
  top: -100%;
  width: 100%;
  min-height: 100vh;
  display: block;
  z-index: 98;
  background-color: #1d3557;
  padding-top: 120px;
  transition: 0.4s;
}
.mobile-nav.is-active {
  top: 0;
}
.mobile-nav a {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 16px;
  text-align: center;
  padding: 12px 16px;
  background-color: #e6b30d;
  border-radius: 25px;
  color: #FFF;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}
.mobile-nav a:hover {
  background-color: #9e8121;
}

@media (max-width: 1024px) {
  #active {
    display: none;
  }
}
@media (min-width: 1024px) {
  #inactive {
    display: none;
  }
  .mobile-nav,
  .hamburger {
    display: none;
  }
}
section h2 {
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
  color: #313131;
  font-size: 36px;
}

.button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  outline: none;
  background: none;
  display: inline-block;
  color: #FFF;
  font-size: 20px;
  background-color: #e6b30d;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .button {
    font-size: 18px;
  }
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.circle-button {
  width: 50px;
  height: 50px;
  background-color: #e6b30d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s;
}
.circle-button:hover {
  background-color: #9e8121;
}
.circle-button img {
  width: 24px;
  height: 24px;
}

img {
  max-width: 100%;
}
/* Header Section */
header {
  color: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #1d3557;
}
header .container {
  padding-top: 0px;
  padding-bottom: 0px;
  display: flex;
  justify-content: center; /* Centered header content */
  align-items: center;
}
@media (max-width: 1024px) {
  header .container {
    justify-content: center; /* Center on mobile too */
  }
}
header .container #logo1 {
  width: 10vh;
  height: 10vh;
  margin: auto;
  background: url(../images/drivelab-logo-mark-reverse-rgb.png) no-repeat center;
  background-size: contain;
}
header .container #logo2 {
  width: 8vh;
  height: 8vh;
  margin: auto;
  border-radius: 100px;
  background: url(../img/kailogo1.webp) no-repeat center;
  background-size: contain;
}
header .container #inactive {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 100px;
  width: 100%;
  position: relative;
}
header .container .hamburger {
  position: absolute;
  left: 10px;
}
header .container nav {
  display: grid;
  grid-gap: 100px;
  grid-template-columns: repeat(3, auto); /* Adjusted for 3 items */
  align-items: center;
}
@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
}
header .container nav a {
  color: inherit;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 50%;
  position: relative;
  transition: color 0.3s;
}
header .container nav a:not(#logo1) {
  max-width: 120px; /* Increased max-width for German text */
}
header .container nav a:not(#logo1):after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #9e8121;
  transition: width 0.3s ease, left 0.3s ease;
}
header .container nav a:hover {
  color: #e6b30d;
}
header .container nav a:hover:not(#logo1):after {
  width: 100%;
  left: 0;
}

/* Banner Section */

main section.banner {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
main section.banner .background,
main section.banner .middle,
main section.banner .middle2,
main section.banner .foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
main section.banner .background {
  background-color: #1d3557;
  z-index: 1;
}
main section.banner .middle2 {
  background-image: url("../img/stars.webp");
  z-index: 2;
  opacity: 1;
  scale: 100%;
  filter: blur(5px);
}
@media (max-width: 1024px) {
  main section.banner .middle2 {
    display: none;
  }
}
main section.banner .middle {
  background-image: url("../img/Background1.webp");
  z-index: 3;
  opacity: 1;
  scale: 100%;
  filter: blur(3px);
}
@media (max-width: 1024px) {
  main section.banner .middle {
    display: none;
  }
}
main section.banner .foreground {
  background-image: url("../img/Background2.webp");
  z-index: 4;
  scale: 100%;
}
@media (max-width: 1024px) {
  main section.banner .foreground {
    display: none;
  }
}
main section.banner .container {
  position: relative;
  z-index: 4;
  color: #fff;
}
main section.banner .container h1 {
  font-size: 4rem;
}
main section.banner .container h1 span {
  color: #e6b30d;
}
main section.banner .container h3 {
  font-size: 2.5rem;
  font-weight: 100;
  margin: 1rem 0;
}
main section.banner .container h3 span {
  color: #e6b30d;
}
main section.banner .container .button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #e6b30d;
  color: #1d3557;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
main section.banner .container .button:hover {
  background-color: #9e8121;
}

/* ARV 2 Section */
.arv2-info {
  background-color: #f4f4f4;
  padding: 80px 20px;
}

.arv2-info .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.arv2-info h2 {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 20px;
}

.arv2-info h3 {
  font-size: 1.5rem;
  color: #457b9d;
  margin-top: 40px;
  margin-bottom: 15px;
}

.arv2-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.arv2-info ul {
  margin: 20px 0;
  padding-left: 20px;
}

.arv2-info ul li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.arv2-info ul li strong {
  color: #1d3557;
}

.arv2-info .highlight {
  margin-top: 30px;
  font-weight: bold;
  color: #1d3557;
  font-size: 1.2rem;
}


/* Services Section */
.services {
  padding: 64px 0;
  background-color: #f4f4f4;
}
.services h2 {
  color: #1d3557;
  margin-bottom: 48px;
}
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
  color: #1d3557;
}
.card p {
  flex-grow: 1;
  margin-bottom: 16px;
  color: #555;
}
.card .price {
  font-size: 24px;
  font-weight: bold;
  color: #e6b30d;
}


/* Contact Section */
main .contact {
  background-color: #1d3557;
}
main .contact .container {
  padding-top: 128px;
  padding-bottom: 128px;
}
main .contact .container.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-in-out, transform s ease-in-out;
}
main .contact .container.show {
  opacity: 1;
  transform: translateY(0);
}
main .contact .container h2 {
  color: #FFF;
}
main .contact .container {
  padding-bottom: 20px;
  text-align: center;
}
main .contact .container .button {
  display: inline-block; /* makes it behave like a button */
  padding: 12px 32px;
  margin-top: 20px;
  background-color: #e6b30d;
  color: #1d3557;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

main .contact .container .button:hover {
  background-color: #9e8121;
  color: #1d3557;
}
@media (max-width: 767px) {
  main .hide-mob {
    display: none;
  }
}
