body,
html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

html {
  -ms-overflow-style: none;
}

section {
  height: 100vh;
  padding: 0px 0px;
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #eeebe5 !important;
}


.left-sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  z-index: 9999;
}

.left-sidebar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
}

.hidden {
  display: none;
}

.sidebar-nav {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 330px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 8px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 9999;
  color: black;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.section-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: black !important;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-nav-item:hover {
  background-color: gray;
  color: black !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: black !important;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-nav.collapsed .nav-text {
  display: none;
}

.sidebar-nav.collapsed {
  width: 70px;
  background-color: transparent;

}


.nav-item:hover {
  background-color: gray;
  color: black !important;
}

.nav-item.active {
  background-color: gray;
  font-weight: 700;

  .dot {
    background-color: black;
  }
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 30px;
  border-radius: 6px;
  text-decoration: none;
  color: black !important;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sub-item:hover {
  background-color: lightgray;
  color: black !important;
}

.sub-item.active {
  background-color: gray;
  font-weight: 600;
}

.sub-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.sub-item.active .dot {
  background-color: black;
}


.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 3px solid black;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 3px;
}

.dot-mini {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 3px solid black;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 3px;
}

.overlay-content {
  position: relative;
  z-index: 1;
}

.logo {
  max-width: 400px;
  width: 90%;
  margin-bottom: 20px;
}

.title {
  font-size: 2rem;
  font-weight: bold;
}

/* #section1 {
  height: 100vh;
  background-image: url('https://static.igem.wiki/teams/5912/photos/home/20250827-1251-bakcgroung.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
} */
#section1 {
  height: 200vh;
  /* facem pagina mai înaltă pentru scroll */
  overflow: hidden;
  font-family: sans-serif;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://static.igem.wiki/teams/5912/photos/img-1852.webp") no-repeat center center;
  background-size: cover;
  z-index: 0;
}

.foreground {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100%;
  height: 250vh;
  transform: scale(1);
  z-index: 1;
  transition: transform 0.1s linear;
}

.family {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s linear;
}

.containerxx {
  position: relative;
  width: 100%;
  height: 100%;
}

.neuron {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(1);
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.8));
}

.neuron.active:nth-child(2) {
  animation: bigEntrance 5s ease-in-out forwards;
  z-index: 3;
  width: 120vw;
}

/* Neuron 1 -> stânga, apoi centru, apoi ieșire */
.neuron.active:nth-child(1) {
  animation: moveLeftCenterExit 11s ease-in-out infinite, pulseGlow 0.5s ease-in-out infinite alternate, pulseSide 1.5s ease-in-out infinite alternate;
  animation-delay: 2s;
  z-index: 2;
}

/* Neuron 3 -> dreapta, apoi centru, apoi ieșire */
.neuron.active:nth-child(3) {
  animation: moveRightCenterExit 10s ease-in-out infinite, pulseGlow 0.5s ease-in-out infinite alternate, pulseSide 1.5s ease-in-out infinite alternate;
  animation-delay: 2s;
  z-index: 2;
}

@keyframes pulseSide {
  0% {
    width: 50vw;
    height: 50vh;
  }

  100% {
    width: 80vw;
    height: 80vh;
  }
}

@keyframes pulseGlow {
  0% {
    filter: drop-shadow(0 0 6vw rgba(255, 0, 0, 0.9));
  }

  50% {
    filter: drop-shadow(0 0 12vw rgba(255, 0, 0, 0.9));
  }

  100% {
    filter: drop-shadow(0 0 6vw rgba(255, 0, 0, 0.9));
  }
}

@keyframes bigEntrance {
  0% {
    top: 100%;
    opacity: 0;
    width: 20vw;
    /* mic la început */
    height: 100vh;
  }

  40% {
    top: 20%;
    opacity: 1;
    width: 100vw;
    /* mare la centru */
    height: 100vh;
    filter: drop-shadow(0 0 5vw rgba(0, 255, 255, 1));
  }

  100% {
    top: 0%;
    opacity: 1;
    width: 100vw;
    height: 100vh;
  }
}

@keyframes moveLeftCenterExit {
  0% {
    top: 100%;
    transform: translateX(0vw);
    width: 50vw;
    height: 50vh;
    opacity: 0;
  }

  30% {
    top: 20%;
    transform: translateX(-55vw);
    width: 70vw;
    height: 70vh;
    opacity: 1;
  }

  60% {
    top: 20%;
    transform: translateX(-35vw);
    width: 70vw;
    height: 70vh;
    filter: drop-shadow(0 0 5vw rgba(0, 255, 255, 1))
  }

  80% {
    top: 20%;
    transform: translateX(-35vw);
    width: 70vw;
    height: 70vh;
  }

  100% {
    top: -20%;
    transform: translateX(-35vw);
    width: 70vw;
    height: 70vh;
    opacity: 0;
  }
}

@keyframes moveRightCenterExit {
  0% {
    top: 100%;
    transform: translateX(10vw);
    width: 50vw;
    height: 50vh;
    opacity: 0;
  }

  30% {
    top: 20%;
    transform: translateX(0vw);
    width: 70vw;
    height: 70vh;
    opacity: 1;
  }

  60% {
    top: 20%;
    transform: translateX(-15vw);
    width: 70vw;
    height: 70vh;
    filter: drop-shadow(0 0 5vw rgba(0, 255, 255, 1))
  }

  80% {
    top: 20%;
    transform: translateX(-15vw);
    width: 70vw;
    height: 70vh;
    opacity: 0.5;
  }

  100% {
    top: -20%;
    transform: translateX(-15vw);
    width: 70vw;
    height: 70vh;
    opacity: 0;
  }
}

#section2 {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#section5,
#section5-0,
#section5-1,
#section5-2,
#section5-3,
#section5-4 {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#section8,
#section8-0,
#section8-1,
#section8-2,
#section8-3,
#section8-4 {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#section3 {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.first-part {
  transform: translateX(0);
  z-index: 2;
  height: 100vh;
  background-image: url('https://static.igem.wiki/teams/4608/wiki/common/landing/landing-painting.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  padding-left: 13rem;
  align-items: center;
}

.first-part .container {
  max-width: 50%;
  padding-left: 10rem;
  padding-right: 20px;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: left;
  justify-content: left;
  color: black;
  margin-left: 0px;
}

.first-part .title {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 30px;
}

.first-part .description {
  font-size: 35px;
  margin-bottom: 30px;
  line-height: 2;
}

.first-part .scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  animation: bounce 2s infinite;
}

.first-part,
.second-part,
.third-part {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.7s ease;
}


.second-part {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 3rem;
}


.container-columns {
  display: flex;
  width: 80%;
  height: 80%;
  gap: 20px;
  padding-left: 10rem;
}

.left-column {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-column img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.right-column {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  font-size: 25px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0 60px #253f6e;
  transform: translateY(-4px);
}

@keyframes bounce {

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

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

.stats-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #eeebe5 !important;
}

.stats-slide {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.stat-number {
  font-size: 4rem;
  color: #003366;
  font-weight: bold;
}

.stat-text {
  font-size: 1.5rem;
  max-width: 400px;
  color: #333;
  text-align: center;
}

.stat-text.large {
  font-size: 2rem;
  color: #cc0000;
}

.footer-section {
  height: auto;
  background-color: #111;
  color: white;
  position: relative;
  scroll-snap-align: start;
  z-index: 5;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.container-center {
  display: flex;
  overflow-x: hidden;
  width: 100%;
}

#section7 {
  overflow: hidden;
}

.slide {
  min-width: 100vw;
  height: 100vh;
  flex-shrink: 0;
}

.text {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.75rem;
  color: #000;
  padding-top: 150px;
}

.image {
  max-height: 100%;
  max-width: 1000px;
  width: auto;
  height: auto;
}

.slide {
  height: 100vh;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

@media (min-width: 768px) {
  .slide {
    padding: 40px 100px;
  }
}

@media (min-width: 1280px) {
  .slide {
    padding: 40px 200px;
  }
}

.headline {
  font-weight: bold;
  text-align: center;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .headline {
    font-size: 1.5rem;
  }
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  width: 100%;
  max-width: 860px;
  text-align: center;
}

@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.grid-text {
  margin-top: 10px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .grid-text {
    font-size: 1rem;
  }
}

.slide-genotype,
.slide-genotype-8 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: 100px 100px;
  gap: 30px;
  padding-left: 25rem;
}

@media (min-width: 1280px) {

  .slide-genotype,
  .slide-genotype-8 {
    padding-right: 200px;
  }
}

.slide-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;/
}

.slide-photo img {
  max-width: 100%;
  max-height: 100%;
}

.genotype-title {
  font-size: 60px;
  font-weight: bold;
  color: #002c47;
  padding: 0 40px;
}

@media (min-width: 1280px) {
  .genotype-title {
    font-size: 60px;
  }
}

.genotype-title .highlight {
  color: #3cd6c8;
}

.genotype-content {
  display: flex;
  gap: 40px;
  padding: 0 40px;
  flex-wrap: wrap;
}

.genotype-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-wrapper {
  max-width: 450px;
  flex: 1 1 300px;
}

.text-wrapper {
  flex: 2 1 400px;
  line-height: 1.6;
  font-size: 20px;
  font-weight: bold;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1.8s ease-out 0.3s forwards;
}

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

.slide-explore {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  gap: 50px;
  padding: 0 30px;
}

.explore-title {
  font-size: 2rem;
  font-weight: bold;
}

.explore-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 50px;
  justify-content: center;
  align-items: flex-end;
  max-width: 1000px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  max-width: 250px;
  transition: transform 0.3s ease-in-out;
}

.tile:hover img {
  transform: translateY(-5px) scale(1.1);
}

.tile img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 1024px) {
  .tile {
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .tile {
    max-width: 150px;
  }
}

@media (max-width: 500px) {
  .tile {
    max-width: 75px;
  }
}

.toggle-btn {
  background-color: gray;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10000;
}


#cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  align-content: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
}

#cards-section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}