*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
a {
  font-weight: 300;
}

html {
  scroll-behavior: smooth;
}

body {
  color: black;
  font-family: system-ui;
  background-image: url('img/blueshades.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

body>nav {
  position: fixed !important;
  padding: 0 !important;
  min-height: fit-content;
  color: black;
  top: 0px;
  width: 98%;
  z-index: 9999;
  margin: 1%;
  border-radius: 7px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  background: rgb(255 255 255 / 30%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.menu-item {
  height: 101%;
  align-content: center;
  width: 100%;
  transition: box-shadow 0.2s ease-out;
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  padding-left: 15px;
  padding-right: 15px;
}

.menu-item:hover {
  box-shadow: inset 0px 0px 15px 2px rgb(17 24 39 / 60%);
  cursor: pointer;
}

.navigation-refs {
  display: flex;
  justify-content: space-evenly;
  gap: 1.5rem;
  height: 50px;
  padding: 0;
}

.dropdown {
  top: 110%;
  position: absolute;
  width: max-content;
  background: #ffffffb8;
  border-radius: 7px;
  z-index: 0;
  background-color: rgb(17 24 39 / 85%);
  color: white;
  left: -50%;
  box-shadow: 0px 0px 50px 0px white;
}

.dropdown-element {
  color: white;
  font-size: 18px;
  font-weight: 300;
  padding: 1rem;
  padding-left: 3rem;
  padding-right: 3rem;
}

.dropdown-element:hover,
.dropdown-selected {
  color: black;
  background: #c1e7f9;
}

.dropdown-last:hover {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.dropdown-first {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-out;
}

.no-round-borders {
  border-radius: unset !important;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:after {
  background: black;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

.legal-content {
  padding: 2em;
}

@media (max-width: 768px) {
  .legal-content {
    margin-top: 90px;
  }
}

.legal-content h1 {
  margin-bottom: 10px;
  font-size: 2em;
  margin-top: 5px;
}

.legal-content h2 {
  font-size: 1.2em;
  margin-bottom: 5px;
  margin-top: 5px;
}

.legal-content p {
  margin-top: 5px;
}

.learn-more {
  font-size: 0.9vw;
  font-style: italic;
  align-self: end;
  line-height: 1;
  width: -webkit-fill-available;
  padding: 1em;
  text-align: center;
  color: transparent;
  opacity: 0;
  transition: color 0.3s ease-out, opacity 0.3s ease-out;
}

.hover-box:hover .learn-more,
.project:hover .learn-more,
.project-phylotrace:hover .learn-more {
  color: black;
  opacity: 1;
  transition: color 0.3s ease-out, opacity 0.3s ease-out;
}

.logo {
  height: 100%;
  vertical-align: middle;
  display: inline-block;
  align-self: center;
  padding: 10px;
}

.footer-logo {
  padding: 30px;
  height: 100%;
  vertical-align: middle;
  display: inline-block;
  align-self: center;
}

.items-center a {
  font-family: system-ui;
}

section {
  color: black;
  background: transparent;
  z-index: 1;
  position: relative;
  height: fit-content;
  width: 100%;
  padding: 8%;
}

.intro {
  margin-top: 15vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}



.header-white {
  font-weight: bold;
  font-size: 2.5vw;
  border-bottom: 1px solid white;
  padding-bottom: 1em;
}

.about-header-black {
  font-weight: bold;
  font-size: 2.5vw;
  border-bottom: 1px solid black;
  padding-bottom: 1vw;
}

.about-invent {
  text-align: justify;
  margin-top: 1em;
  font-size: 1.5vw;
}

.about-story {
  height: fit-content;
  background: #ffffff96;
  border-radius: 7px;
  padding: 1.5em;
  box-shadow: 0px 0px 30px 12px #00000052;
  z-index: 1;
  backdrop-filter: blur(5px);
  width: 50%;
  margin-right: 5%;
  padding-top: 1vw;
  padding-bottom: 4vw;
}

.inline-icon {
  margin-right: 8px;
}

.about-sep {
  background-color: #ffffff69;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 1rem;
  box-sizing: border-box;
  max-width: 100%;
  z-index: 2;
  position: relative;
  backdrop-filter: blur(5px);
  box-shadow: 0px 0px 30px 12px #00000052;
  margin-top: 5vh;
  border-radius: 7px;
}

.fade {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeInEffect {
  from {
    opacity: 0;
    transform: translateY(10vh);
    visibility: hidden;
  }

  to {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(10vh);
  visibility: hidden;
}

.fade-in-element.is-visible {
  animation: fadeInEffect 0.6s ease-out forwards;
}

.genome-hero-3 {
  transform: rotate(-40deg);
  position: absolute;
  width: 25vw;
  left: 28%;
  top: 15%;
  opacity: 1;
  z-index: 0;
  padding-top: 25vw;
}

.about-sep img {
  width: clamp(100px, 20%, 250px);
  height: auto;
  object-fit: contain;
  flex-shrink: 1;
  padding-right: 2em;
}

.about-profile {
  display: grid;
  gap: 2em;
  margin-top: 10vh;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 3fr;
}

.about {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  height: 70%;
}

.about-left {
  height: fit-content;
  background-color: rgb(17 24 39 / 60%);
  color: white;
  border-radius: 7px;
  padding: 1.5em;
  box-shadow: 0px 0px 30px 12px #00000052;
  width: 30%;
  align-self: center;
}

.hover-box-text {
  font-weight: 300;
  font-size: 1.2vw;
  text-align: justify;
  align-self: center;
  padding: 1em;
  height: 7em;
  min-height: fit-content;
}

.hover-box {
  height: 100%;
  background-color: rgb(17 24 39 / 60%);
  color: white;
  border-radius: 7px;
  box-shadow: inset 0px 0px 11px 0px #ffffff30;
  align-self: center;
  backdrop-filter: blur(5px);
  display: flex;
  border: 1px solid;
  border-color: #ffffffc4;
  flex-direction: column;
  transition: border-color 0.2s ease-in, box-shadow 0.4s ease-in, background-color 0.4s ease-in, color 0.4s ease-in, transform 0.4s ease-out;
}

.hover-box:hover {
  background-color: #ffffff96;
  transform: scale(1.05);
  box-shadow: 0px 0px 30px 12px #00000052;
  color: #000000;
  cursor: pointer;
  border-color: #0000008c;
  -webkit-transition: transform 0.2s linear;
  transition: border-color 0.2s ease-in, box-shadow 0.4s ease-in, background-color 0.2s ease-in, color 0.2s ease-in, transform 0.4s ease-out;
}

.hover-box-header {
  font-weight: 300;
  font-size: 1.4vw;
  align-self: anchor-center;
  text-align: center;
  border-radius: 0.5rem;
  align-content: center;
  background-color: rgb(17 24 39 / 0%);
  box-shadow: inset 0px 0px 20px 0px #ffffff30;
  border-bottom-right-radius: 0;
  width: -webkit-fill-available;
  border-bottom-left-radius: 0;
  min-height: fit-content;
  height: 3em;
  transition: box-shadow 0.2s ease-in
}

.hover-box:hover .hover-box-header {
  box-shadow: inset 0px 0px 11px 0px #00000030;
  transition: box-shadow 0.2s ease-in
}

.story-main {
  margin-bottom: 2%;
  margin-top: 13%;
  width: 50%;
}

.story-main-end {
  justify-self: flex-end;
  display: grid;
}

.story-main-start {
  justify-self: flex-start;
}

.box-textcontent {
  margin-top: 1em;
  font-weight: 300;
  font-size: 1.3vw;
  text-align: justify;
}

.profile-name {
  font-size: 2em;
}

.profile-function {
  font-weight: 100;
  font-size: 1.5vw;
  display: none;
}

.section-middle {
  padding-top: 4%;
}

.profile-pic {
  box-shadow: 0 30px 40px rgba(0, 0, 0, .8);
  border-radius: 1rem;
  align-self: baseline;
  object-fit: contain;
  width: 75%;
  justify-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.team-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vh;
  margin: 5vh;
}

.nav-madeingermany {
  background: #00000045;
  border-radius: 5px;
  padding: 0.5em;
  border: 4px solid #000000bf;
  border-bottom: none;
  border-top: none;
  border-right: none;
  height: fit-content;
  align-self: center;
  margin-right: 1rem;
}

@media (max-width: 1100px) {
  .nav-madeingermany {
    display: none;
  }
}

@media (min-width: 1100px) {
  .footer-madeingermany {
    display: none;
  }
}

.footer-madeingermany {
  background: #00000045;
  border-radius: 5px;
  padding: 0.5em;
  border: 4px solid #000000bf;
  border-bottom: none;
  border-top: none;
  border-right: none;
  height: fit-content;
  align-self: center;
  margin-right: 1rem;
}

.nav-mig {
  line-height: 1;
  display: flex;
  justify-content: space-between;
}

.nav-desc {
  align-self: end;
}

.genome-pic {
  opacity: 0.7;
  transform: rotate(0deg);
  display: block;
  transition: transform linear;
}

.genome-landing {
  position: absolute;
  max-width: 35%;
  right: -5%;
  top: 5%;
}

.genome-hero {
  position: absolute;
  max-width: 20%;
  left: 10%;
  padding-top: 40%;
  opacity: 0.7;
  rotate: 200deg;
}

.main-statement {
  font-size: 1.5vw;
  line-height: 3.5em;
  padding-top: 3rem;
}

.intro-statements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 70vh;
  overflow: hidden;
}

.intro-statement {
  border: 1px solid black;
  padding: 3rem;
  border-radius: 8px;
  background-color: rgb(17 24 39 / 60%);
  color: white;
  margin: 1rem;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.intro-statements .left-top:hover {
  box-shadow: -8px -8px 0px 2px #000000c7;
}

.intro-statements .right-top:hover {
  box-shadow: 8px -8px 0px 2px #000000c7;
}

.intro-statements .left-middle:hover {
  box-shadow: -8px 0px 0px 2px #000000c7;
}

.intro-statements .right-middle:hover {
  box-shadow: 8px 0px 0px 2px #000000c7;
}

.intro-statements .left-bottom:hover {
  box-shadow: -8px 8px 0px 2px #000000c7;
}

.intro-statements .right-bottom:hover {
  box-shadow: 8px 8px 0px 2px #000000c7;
}

.intro-statement .title {
  margin: 0 0 10px;
  font-size: 18px;
}

.intro-statement .description {
  margin: 0;
  font-size: 16px;
}

.intro-statement .detail {
  display: none;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.5;
  text-align: left;
  overflow-y: auto;
}

.intro-statement:hover .title,
.intro-statement:hover .description {
  display: none;
}

.intro-statement:hover .detail {
  display: block;
}

@media (max-width: 600px) {
  .intro-statements {
    grid-template-columns: 1fr;
    height: auto;
  }

  .intro-statement {
    height: auto;
  }

  .intro-statement .detail {
    overflow-y: visible;
  }
}

.scroll-down {
  position: absolute;
  top: 92%;
  right: 0px;
  margin: auto;
  text-align: center;
  z-index: 999;
  font-size: 1em;
  margin-right: 1%;
}

.scroll-down:after {
  content: "";
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0px auto 0;
  background-image: url("img/arrow-down-svgrepo-com.svg");
  background-size: contain;
  background-repeat: no-repeat;
  animation: jump 1.5s infinite ease-in-out;
}

@keyframes jump {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.project-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.project-item img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  max-width: none;
}

#blackforest {
  width: unset;
  z-index: 2;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  margin-top: -1%;
  width: 100%;
}

.fa {
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
}

.fa-linkedin {
  background: #007bb5;
  color: white !important;
}

.fa-github {
  background-color: #262b31;
  color: white !important;
}

.social .fa-paper-plane {
  background-color: #ffffffab;
  color: #313a43;
}

.social {
  height: -webkit-fill-available;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: column;
  align-self: center;
  border-right: none;
  padding-right: 1rem;
  justify-content: space-evenly;
}

@media (max-width: 768px) {
  .social {
    border-right: 1px solid white;
  }
}

.footer-section {
  position: relative;
  color: white;
  background-color: rgb(17 24 39 / 60%);
  z-index: 1000;
  width: 100%;
  font-size: 1.2em;
  padding: 1rem;
}

.footer-container {
  display: flex;
  gap: 3rem;
  bottom: 0px;
  z-index: 1000;
  width: 100%;
  height: 200px;
  justify-content: space-evenly;
  min-height: fit-content;
  min-width: fit-content;
  align-items: center;
}

.reserved-rights {
  text-align: center;
  margin-top: 2rem;
}

.footer-links a:hover {
  color: #009fff !important;
}

.footer-links {
  justify-content: center;
  display: flex;
  gap: 1em;
  flex-direction: column;
  height: -webkit-fill-available;
  justify-content: space-evenly;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  position: relative;
  z-index: 9999;
}

.text-left {
  margin-left: 2rem;
  max-width: 20rem;
}

.text-right {
  margin-right: 2rem;
  max-width: 20rem;
}

.outro-parent {
  display: flex;
  flex-direction: column;
}

/* About - Open Science*/

.about-open-science {
  justify-content: center;
  flex-direction: column;
}

.about-open-science-hero {
  margin-top: 5%;
  margin-bottom: unset;
}

.open-science-cards {
  display: flex;
  gap: 8%;
}

.open-science-card {
  height: fit-content;
  background-color: rgb(17 24 39 / 60%);
  color: white;
  border-radius: 7px;
  padding: 2em;
  box-shadow: 0px 0px 30px 12px #ffffff52;
  justify-self: center;
  width: 28%;
  text-align: center;
  height: auto;
}

.card-uno {
  width: 50%;
}

.card-citation {
  font-weight: 300;
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 1.3vw;
}

.card-source {
  margin-bottom: 1em;
}

.open-science-card-content {
  justify-content: center;
  display: grid;
  height: 100%;
}

.header {
  font-size: 3.5vw;
  text-align: center;
}

.subheader {
  font-size: 2.5vw;
  justify-self: center;
  margin-top: 3%;
  margin-bottom: 7%;
  text-align: center;
}

.subsubheader {
  font-size: 1.5vw;
  justify-self: center;
  margin-top: 3%;
  margin-bottom: 7%;
  font-weight: 300;
  text-align: center;
}

.open-science-card-header {
  font-size: 2vw;
  margin-bottom: 1em;
  margin-top: 1em;
}

.open-science-card-text {
  font-size: 1.5vw;
  font-weight: 300;
  margin-bottom: 1em;
}

.genome-hero-4 {
  transform: rotate(-40deg);
  position: absolute;
  width: 40%;
  left: 55%;
  top: 30%;
  opacity: 1;
  z-index: 0;
  padding-right: 25rem;
}

.genome-hero-5 {
  transform: rotate(-40deg);
  position: absolute;
  width: 40%;
  left: 50%;
  top: 30%;
  opacity: 1;
  z-index: 0;
  padding-left: 30rem;
}

/* Animation Home */


.home-hero {
  align-content: center;
  backdrop-filter: blur(3px);
  border: 1px solid #ffffff2e;
  border-radius: 1rem;
  width: 40vw;
  justify-items: center;
}



.grid-long {
  grid-area: grid-long;
}

.grid-short-1 {
  grid-area: grid-short-1;
  background: #ffffff96;
}

.grid-short-2 {
  grid-area: grid-short-2;
  background: #80808014;
}

.round-box {
  border-radius: 0.5rem;
  z-index: 2;
  backdrop-filter: blur(5px);
  align-content: center;
}

.round-box.dark {
  background-color: rgb(17 24 39 / 60%);
  box-shadow: 0px 0px 30px 12px #00000052;
  color: white;
}

.round-box.light {
  background: #ffffff96;
  box-shadow: 0px 0px 30px 12px #00000052;
}

.round-box.glass {
  border: 1px solid #ffffff2e;
  background: #80808014;
  box-shadow: 0px 0px 50px #0000007d;
}

.white {
  background-color: #ffffff96;
  border: 1px solid #00000069;
  box-shadow: 0px 0px 30px 12px #00000052;
}

.dark {
  background-color: rgb(17 24 39 / 60%);
  box-shadow: 0px 0px 30px 12px #00000052;
  box-shadow: 0px 0px 30px 12px #00000052;
}

/* Gallery styles  */

.gallery__item,
.carousel__item {
  position: relative;
  overflow: hidden;
  justify-self: center;
  align-content: center;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  justify-content: center;
  display: flex;
  min-height: fit-content;
  flex-direction: column;
}

.gallery__img,
.carousel__img {
  object-fit: cover;
  display: block;
  transform: scale(1);
  opacity: 1;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  border-radius: 0.5rem;
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: 100%;
}

.project-page {
  display: flex;
  height: 100%;
  gap: 5vw;
}

@media (max-width: 768px) {
  .project-page {
    flex-direction: column;
  }
}

.project-section {
  height: 100vh;
  padding-left: 0;
  padding-top: 0;
  margin-top: 110px;
}

@media (max-width: 768px) {
  .project-section {
    padding: 4%;
    height: auto;
    margin-top: 90px;
  }
}

.project-sidebar {
  width: 15%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-width: 15%;
  max-height: 100%;
}

@media (max-width: 768px) {
  .project-sidebar {
    width: 100%;
    border-radius: 0.5rem;
  }
}

.project-overview {
  font-weight: 300;
  padding: 2em;
  font-size: 1.1vw;
  text-align: justify;
}

.button {
  background-color: black;
  padding: 0.5em;
  border-radius: 5px;
  margin-left: 20%;
  margin-right: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3vw;
}


.button:hover {
  background-color: #0000007e;
}

.overview-button {
  background-color: #ffffff96;
  padding: 0.5em;
  border-radius: 5px;
  margin-left: 1%;
  margin-right: 1%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3vw;
  min-width: fit-content;
  width: 10vw;
  height: 7vh;
  font-weight: 300;
}

.project-button-banner {
  display: flex;
  justify-content: space-around;
  align-items: anchor-center;
  grid-column: 1 / span 3;
  grid-row: 1 / span 1;
}

.project-buttons {
  display: flex;
}

/* Projects */
.project {
  padding: 1em;
  min-height: fit-content;
  height: 100%;
  max-height: 100%;
  box-shadow: 0px 0px 30px 12px #00000052;
  transition: box-shadow-color 0.3 ease;
  display: flex;
  flex-direction: column;
  gap: 1em;
  border-radius: 10px !important;
}


.project-img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  bottom: -10%;
  left: 69%;
  display: block;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.3s ease;
  width: 10vw;
  height: 10vw;
}

/* Services*/
.services-expertise {
  display: flex;
  gap: 5vw;
}

.services-description {
  text-align: justify;
  min-height: fit-content;
  height: 50vh;
}

@media (max-width: 768px) {
  .services-description {
    height: unset !important;
    padding: 1%;
  }
}

.software-div {
  height: 10vh;
  display: flex;
  gap: 5vh;
  height: auto;

  a {
    width: 50%
  }
}

@media (max-width: 768px) {
  .software-div {
    display: flex;
    gap: 5vh;
    flex-direction: column;

    a {
      width: 100%;
    }
  }
}

.services-intro {
  display: flex;
  height: 100vh;
  gap: 5vw;
  max-height: 100vh;
}

@media (max-width: 768px) {
  .services-intro {
    height: unset;
    max-height: unset;
  }
}

.services-intro-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-header {
  font-size: 2.5vw;
  text-align: center;
  padding: 1em;
  height: 40vh;
  min-height: fit-content;
}

.services-subheader {
  font-size: 1.4vw;
  text-align: center;
  padding: 1em;
  height: 20vh;
  min-height: fit-content;
}

.services-textbody {
  font-size: 1vw;
  text-align: justify;
}

.technology-box {
  padding: 1em;
}

.technology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.service-impact {
  display: flex;
  gap: 5vh;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3%;
  height: 85%;
  min-height: fit-content;
  align-self: center;
}

ul {
  list-style: inherit !important;
  list-style-type: disc;
  padding-left: 2.5em !important;
  display: inline-block;
  text-align: left;
}

.service-card-list {
  font-size: 1.2vw;
  margin-top: 1em;
  font-weight: 300;
  margin-right: 1em;
}

.service-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-around;
}

.service-card-textblock {
  font-weight: 300;
  font-size: 1.2vw;
  text-align: justify;
  align-self: center;
  padding: 2em;
  min-height: fit-content;
}

.service-present {
  display: grid;
  gap: 5vh;
  justify-items: stretch;
}

@media (max-width: 768px) {
  .service-present {
    display: block;
  }
}

#pipelines {
  grid-template-columns: 1fr 3fr 2fr;
}

@media (max-width: 768px) {
  #pipelines {
    grid-template-columns: 1fr;
    gap: 1em;

    .carousel-container {
      height: 30vh !important;
    }
  }
}

#software {
  grid-template-columns: 1fr 2fr;
}

#software .carousel-container {
  width: 30vw;
}

@media (max-width: 768px) {
  #software {
    .carousel-container {
      width: 100%;
      height: 10vh;
    }

    .carousel-image {
      height: 25vh !important;
    }
  }

}

#consulting {
  grid-template-columns: 1fr 2.5fr 2.5fr;
}

@media (max-width: 768px) {
  #consulting {
    grid-template-columns: 1fr;
  }
}

#consulting {
  .carousel-container {
    height: 10vh;
    width: 30vw;
  }

  .carousel-image {
    height: 55vh !important;
  }
}



@media (max-width: 768px) {
  #consulting .carousel-container {
    height: 10vh;
    width: 100%;
  }
}

#data_analysis {
  grid-template-columns: 1fr 3fr 2fr;
}

@media (max-width: 768px) {
  #data_anaylsis .carousel-image {
    height: 32vh !important;
  }
}

.services-content {
  height: 65vh;
  display: flex;
  flex-direction: column;
  gap: 5vh;
  min-height: fit-content;
}

.services-item {
  font-size: 1.5vw;
  font-weight: 300;
}

.services-textbox {
  font-size: 1.6vw;
  font-weight: 300;
}

.services-options-tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.services-img {
  max-width: 100%;
  height: 30vh;
}

.services-item ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.services-item li {
  margin-bottom: 8px;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

/* For fade animation */
.carousel-container[data-animation="fade"] .carousel__item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-container[data-animation="fade"] .carousel__item.active {
  opacity: 1;
}

/* For slide animation */
.carousel-container[data-animation="slide"] .carousel-inner {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-container[data-animation="slide"] .carousel__item {
  position: static;
  flex: 0 0 100%;
  height: 100%;
}

.slide-item {
  padding: 1em;
  text-align: center;
  align-self: center;
}

.service-contact {
  padding: 1em;
  align-self: anchor-center;
  width: 100%;
  text-align: center;
  font-size: 1.5vw;
  height: 10vh;
  font-weight: 300;
  transition: box-shadow 0.2s ease-out, font-weight 0.2s ease-out, opacity 0.2s ease-out;
}

@media (max-width: 768px) {
  .service-contact {
    font-size: 1.2rem;
    height: unset;
  }
}

.service-contact:hover {
  transition: box-shadow 0.2s ease-in, font-weight 0.2s ease-in;
  box-shadow: 0px 0px 30px 12px #00000070;
  font-weight: 600;
  cursor: pointer;
}

/* Letter glitch */

.letter-glitch-container {
  position: relative;
  background-color: #000000;
  overflow: hidden;
  border: 1em solid transparent;
  border-radius: 1rem;
  height: -webkit-fill-available;
}

.letter-glitch-canvas {
  display: block;
}

.outer-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 100%);
}

.center-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Ensure reCAPTCHA doesn't break layout */
.form-group:has(.g-recaptcha) {
  align-items: center;
}

.carousel-indicators {
  z-index: 15;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;
  list-style: none;
}

/* Contact Form Layout */
.contact-section {
  max-width: 65rem;
  margin: 1rem auto;
  padding: 1rem;
  min-height: 33em;
}

.contact-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-section p {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  width: 90%;
  margin: auto;
}

@media (max-width: 768px) {
  .contact-form {
    width: unset;
    margin: unset;
  }
}

.form-columns {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  resize: none !important;
}

.navbar a:hover {
  color: #000000 !important;
  text-decoration: none !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  background: #f9fafb;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
  border-radius: 8px;
  margin: 0;
}

.right-column .form-group {
  margin: 0;
  height: 100%;
}

.recaptcha-container {
  display: flex;
  flex-direction: column;
}

#submit-btn {
  height: 4.7em;
}

.submit-button {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #9ca3af;
}

.submit-button.loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button.loading::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.field-error {
  color: #ef4444;
  font-size: 0.7rem;
  margin-top: 0.2rem;
  display: none;
  align-items: center;
  position: absolute;
  right: 0;
}

.field-error::before {
  content: "⚠";
  font-size: 0.6rem;
  margin-right: 0.2rem;
}

.field-error.show {
  display: flex;
}

.success-message {
  animation: slideInUp 0.4s ease-out;
  text-align: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.error-message {
  animation: slideDown 0.3s ease-out;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.g-recaptcha {
  display: flex;
  justify-content: center;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#recaptcha-error {
  position: unset;
  right: unset;
}

.submission-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.impressum-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  color: #333;
}

.impressum-content h1 {
  font-size: 2.5em;
  color: #1a202c;
  margin-bottom: 20px;
  text-align: center;
}

.impressum-content h2 {
  font-size: 1.8em;
  color: #2d3748;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 5px;
}

.impressum-content p,
.impressum-content address,
.impressum-content ul {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.impressum-content strong {
  color: #000;
}

.impressum-content a {
  color: #007bff;
  text-decoration: underline;
}

.impressum-content a:hover {
  text-decoration: none;
}

.empty-box {
  border: 1px solid #00000094;
  border-radius: 10px;
  border-radius: 1rem;
  background-image: linear-gradient(45deg, #1aa50000 25%, transparent 25%, transparent 50%, #3db300 50%, #000000 75%, transparent 75%);
  background-size: 10px 10px;
  background-color: #ffffff8c;
}

.phylotrace-stats .round-box:hover {
  font-weight: bold;
}

.phylotrace-stats .empty-box:hover {
  background-image:
    linear-gradient(45deg, #000000 25%, transparent 25%, transparent 50%, #ffe200 50%, #000000 75%, transparent 75%);
}

.phylotrace-stats {
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 1vw;
  width: 100%;
  height: 35vh;
}

@media (max-width: 768px) {
  .phylotrace-stats {
    margin-bottom: 1em;
  }
}

.phylotrace-bullet {
  font-size: 1.5vw;
  height: fit-content;
  align-self: center;
  height: fit-content;
}

.github-widgets {
  display: flex;
  gap: 1vw;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  width: 100%;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  width: 100%;
}

.github-stats {
  display: flex;
  gap: 0.5vw;
  flex-wrap: wrap;
}

.carousel-section {
  padding-left: 3%;
  padding-right: 3%;
  padding-top: 0%;
  margin-top: 8%;
  padding-bottom: 5%;
}

#pipelines,
#software,
#consulting,
#data_analysis,
#phyloTracePreview {
  scroll-margin-top: 130px;
}

#phyloTracePreview {
  height: 100%;
  display: grid;
  width: 100%;
  max-width: 100%;
  display: grid;
  justify-content: center;
}

.carousel-item {
  padding-bottom: 20px;
}

.carousel-caption {
  position: relative !important;
  padding-top: 15px !important;
  color: #000000 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  font-weight: bold !important;
  font-size: 1em !important;
  font-family: monospace;
}

.project-carousel-inner {
  border-radius: 10px;
  overflow: hidden;
  align-content: center;
  height: fit-content;
  width: 90%;
  justify-self: center;
}

.project-stats {
  display: grid;
  gap: 2vw;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  max-height: 100%;
  justify-items: anchor-center;
}

@media (max-width: 768px) {
  .project-stats {
    grid-template-columns: 1fr;
  }
}

.carousel-control-prev {
  justify-content: left !important;
}

.carousel-control-next {
  justify-content: right !important;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  width: 2vw !important;
  height: 2vw !important;
}

.carousel-control-next-icon {
  background-image: url("img/right.svg") !important;
}

.carousel-control-prev-icon {
  background-image: url("img/left.svg") !important;
}

.stat-num {
  font-size: 2.5vw
}

.stat-box {
  padding: 1vw;
  font-size: 1.5rem;
  align-self: center;
  text-align: center;
  font-weight: 300;
  height: 100%;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .stat-box {
    font-size: 1rem;
  }
}

.phylotrace-message {
  font-weight: 300;
  font-size: 1.2vw;
  padding: 1em;
}

.profile-title {
  align-self: center;
}

.profile-text {
  grid-column: 1;
  font-size: 1em;
}

/* Mobile Optimizations */

@media (max-width: 425px) {
  .footer-logo {
    width: 55%;
    height: auto;
  }

  .footer-section {
    font-size: 12px;
  }

  .fa {
    padding: 5px;
  }
}

@media (max-width: 343px) {
  .footer-logo {
    width: 49%;
    height: auto;
  }
}

@media (max-width: 768px) {
  * {
    animation-delay: 0s !important;
  }

  body {
    font-size: 14px;
  }

  nav {
    height: 80px !important;
    padding: 0.5rem;
  }

  .navigation-refs {
    display: none;
  }

  .profile-text {
    grid-column: 1 / span 2;
  }

  .footer-logo {
    padding: 0;
  }

  .logo {
    width: 80%;
    height: auto;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 1rem 0;
  }

  .mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s ease;
  }

  .mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-madeingermany {
    display: none;
  }

  section {
    padding: 4%;
  }

  .hover-box {
    height: auto;
  }

  .hover-box-header {
    font-size: 1.2rem;
    height: auto;
  }

  .hover-box-text {
    font-size: 1rem;
    height: auto;
    padding: 0.5rem;
  }

  .project-landing {
    flex-direction: column;
    gap: 2rem;
  }

  .about {
    flex-direction: column;
    height: auto;
    margin-top: 90px;
  }

  .about-left {
    width: 100%;
    margin-bottom: 2rem;
  }

  .about-sep img {
    padding-right: none;
  }

  .about-profile {
    margin-top: 5vh;
    gap: 0.5em;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
  }

  .profile-pic {
    height: auto;
    width: 90%;
    grid-row: 1;
  }

  .profile-title {
    align-self: baseline;
  }

  .profile-name {
    font-size: 1.1rem;
  }

  .box-textcontent {
    font-size: 1rem;
  }

  .genome-hero-3 {
    width: 30vw;
    left: 20%;
    top: 10%;
  }

  .story-main-end {
    justify-self: center;
  }

  .about-story {
    width: 90%;
    margin: auto;
  }

  .footer-container {
    gap: 1rem;
    width: 100%;
    height: fit-content;
  }

  .footer-logo {
    padding: 0;
  }

  .footer-links {
    gap: 10px;
  }

  .contact-section {
    max-width: 100%;
    padding: 1rem;
    margin-top: 90px;
  }

  .form-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .submission-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .terminal-container {
    padding: 1rem;
  }

  .services-content {
    height: auto;
    margin-top: 5%;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 90px;
  }


  .round-box {
    padding: 1rem;
  }

  .project {
    padding: 1rem;
  }

  .project-img {
    width: 6rem;
    height: 6rem;
    bottom: 1em;
    right: 1em;
  }

  .services-header {
    font-size: 1.5rem;
    height: auto;
  }

  .services-subheader {
    font-size: 1rem;
    height: auto;
  }

  .services-textbody {
    font-size: 0.9rem;
  }

  .service-card-textblock {
    font-size: 1rem;
    padding: 1rem;
  }

  .service-card-list {
    font-size: 1rem;
  }

  .services-item {
    font-size: 1.2rem;
  }

  .services-textbox {
    font-size: 1.2rem;
    padding: 1%;
  }

  .header {
    font-size: 2rem;
  }

  .subheader {
    font-size: 1.5rem;
  }

  .subsubheader {
    font-size: 1.2rem;
  }

  .open-science-card {
    width: 100%;
    padding: 1rem;
  }

  .open-science-cards {
    flex-direction: column;
    gap: 2rem;
  }

  .card-citation {
    font-size: 1rem;
  }

  .open-science-card-header {
    font-size: 1.5rem;
  }

  .open-science-card-text {
    font-size: 1.2rem;
  }

  .header-white,
  .about-header-black {
    font-size: 1.5rem;
  }

  .about-invent {
    font-size: 1rem;
  }

  .main-statement {
    font-size: 1rem;
  }

  .intro-statements {
    grid-template-columns: 1fr;
    height: auto;
  }

  .intro-statement {
    padding: 1rem;
  }

  .intro-statement .title {
    font-size: 16px;
  }

  .intro-statement .description {
    font-size: 14px;
  }

  .intro-statement .detail {
    font-size: 12px;
  }

  .scroll-down {
    display: none;
  }

  .genome-hero {
    padding-top: 20%;
  }

  .genome-hero-4,
  .genome-hero-5 {
    width: 30%;
    left: 50%;
    top: 20%;
  }

  .phylotrace-features {
    font-size: 1rem;
  }

  .carousel-container {
    font-size: 1rem;
  }

  .phylotrace-bullet {
    font-size: 1rem;
    line-height: 1;
    margin-bottom: 1em;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .github-widgets {
    flex-direction: column;
    gap: 1rem;
  }

  .carousel-section {
    padding: 1rem;
    margin-top: unset;
  }

  .project-carousel-inner {
    width: 100%;
  }

  .carousel-caption {
    font-size: 0.8em;
  }

  .info-message {
    flex-direction: column;
    gap: 0.5rem;
  }

  .phylotrace-message {
    font-size: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .letter-glitch-container {
    height: 200px;
  }

  .outer-vignette,
  .center-vignette {
    display: none;
  }

  .ger-map {
    margin: auto !important;
    max-height: initial;
    padding: 20px;
  }
}

@media ((min-width: 425px) and (max-width: 768px)) {
  .footer-logo {
    width: 35%;
    height: auto;
  }
}