html {
  font-family: "Fira Code", monospace, "Karla", sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling bugs */
    overflow-y: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: linear-gradient(55.22deg, #1c1c1c 36.26%, #08463b 93.28%);
  width: 100%;
}

.content {
  max-width: 1440px;
  margin: 0 auto;
}

button {
  border-radius: 100px;
  border: 1px solid white;
  padding: 13px 24px;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

#hero-btn-work {
  font-size: 18px;
  padding: 13px 24px;
}

.lang-switch {
  position: relative;
  width: 84px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid #3dcfb6;
  background: transparent;
  display: flex;
  padding: 0;
  box-sizing: border-box;
  isolation: isolate;
}

.lang-switch__thumb {
  position: absolute;
  top: 0;
  left: -1px;
  width: 44px;
  height: 28px;
  border-radius: 14px;
  background: #3dcfb6;
  z-index: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switch.is-de .lang-switch__thumb {
  transform: translateX(40px);
}

.lang-switch__option {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(61, 207, 182, 0.5);
  transition: color 0.25s ease;
  padding: 0;
}

.lang-switch__option.is-active {
  color: #ffffff;
}

.lang-switch__option:focus-visible {
  outline: 2px solid #3dcfb6;
  outline-offset: 2px;
  border-radius: 14px;
}



.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(61, 207, 182, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}

@media (max-width: 360px) {
  .cursor-glow {
    width: 300px;
    height: 300px;
    z-index: 9999;
  };

  
}

.hero-header {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  width: auto;
  padding: 0;
  justify-content: space-between;
 background: linear-gradient(0deg, rgba(0, 0, 0, 0) 13.56%, rgba(0, 0, 0, 0.6) 84.01%);
z-index: 9999;
}


.nav-bar {
  width: 100%;
  height: 98px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  padding: 24px 40px;
  box-sizing: border-box;
  margin-bottom: 51px;
  z-index: 100;
 

}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-bar a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  font-family: "Fira Code", monospace;
  position: relative;
  transition: color 0.2s ease;
}

.nav-bar a:hover {
  color: #3dcfb6;
}

.logo {
  width: 48px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo:hover {
  content: url("../assets/logo/logo_hover.png");
}

.burger-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 10px 9px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  backdrop-filter: blur(5px);
  z-index: 101; /* Layer over navigation overlays */
}

.burger-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #3dcfb6;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .nav-bar {
    gap: 24px;
    padding: 20px 32px;
  }

  .nav-bar a {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .nav-bar {
    z-index: 1000;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    padding: 0;
    justify-content: space-between;
    gap: 10px;
  }

  .burger-button {
    z-index: 1002;
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    order: 2;
    margin-left: 0;
  }

  .nav-links {
    z-index: 1001;
    position: fixed;
    top: 88px;
    right: 16px;
    width: min(60vw, 246px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 246px;
    padding: 30px 20px 24px;
    border: 1px solid #3dcfb6;
    border-radius: 34px;
    background: linear-gradient(120deg, #1c1c1c 8%, #0e5a4f 100%);
    box-sizing: border-box;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  }

  body.nav-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .nav-links a.is-active {
    color: #3dcfb6;
  }

  .nav-links a.is-active::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: 6px auto 0;
    border-radius: 50%;
    background: #caf7f0;
  }

  .nav-links .lang-switch {
    margin-top: 2px;
    align-self: center;
    order: 5;
  }

  .logo {
    order: 1;
    width: 48px;
    height: auto;
    margin-left: 32px;
  }
}

@media (max-width: 700px) {
  .nav-bar {
    top: 32px;
    left: 16px;
    right: 16px;
    width: auto;
    padding: 0;
    justify-content: space-between;
  }

  .burger-button {
    top: 32px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .nav-links {
    top: 82px;
    right: 12px;
    width: min(64vw, 236px);
    min-height: 224px;
    padding: 26px 16px 20px;
    gap: 14px;
  }

  .nav-links a {
    font-size: 16px;
    line-height: 1.2;
  }

  .logo {
    width: 35px;
    height: auto;
    margin-left: 32px;
  }
}

@media (max-width: 420px) {
  .nav-bar {
    top: 20px;
    left: 16px;
    right: 16px;
    align-items: center;
  }

  .logo {
    width: 36px;
    margin-left: 32px;
  }

  .burger-button {
    top: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}
