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

.cover {
  /* background: url('https://static.igem.wiki/teams/4608/wiki/backgrounds/purple-background.png') center/cover no-repeat; */
  background-color: #eeebe5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%234B74A0' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23253F6E'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  display: flex;
  align-items: center;
  padding: 7rem 2rem;
  justify-content: center;
}

.cover h1 {
  color: #253f6e;
  font-size: 9rem;
  margin: 0;
  z-index: 1;
  opacity: 0;
  transform: translateY(250px) scale(0.95);
  animation: fadeInUpZoom 1.2s ease-out 0.5s forwards;
}

@keyframes fadeInUpZoom {
  to {
    opacity: 1;
    transform: translateY(0) scale(1.2);
  }
}

.dot-nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid #253f6e;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #253f6e;
  transform: scale(1.2);
}

section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#externalCollaborators {
  /* NU punem height: 100vh */
  /* NU punem overflow scroll */
  height: auto;
  padding: 2rem;
  /* opțional */
  display: none;
}

.member-section {
  height: 90vh;
  display: flex;
  flex-direction: column;
  /* background: url('https://static.igem.wiki/teams/4608/wiki/backgrounds/team-background.png') center/cover no-repeat; */
  background-color: #eeebe5;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%234B74A0' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23253F6E'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.member-main {
  flex: 1;
  display: flex;
  position: relative;
  padding: 2rem 3rem;
  padding-top: 8rem;
  /* align-items: center; */
  justify-content: space-between;
}

.member-info {
  color: #253f6e;
  /* max-width: 50%; */
  width: 60%;
}

.member-info h1 {
  font-size: 100px;
  margin: 0 0 0.5rem;
}

.member-info h2 {
  font-size: 35px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.member-info,
.member-photo {
  transition: transform 0.6s ease, opacity 0.6s ease;
  position: relative;
  z-index: 2;
}

.delimitator {
  display: inline-flex;
  align-items: center;
  border: 1px solid #253f6e;
  height: 70px;
  margin-left: 20px;
  margin-right: 20px;
}

.member-info .desc-card {
  background: white;
  color: black;
  padding: 1.5rem;
  border-radius: 20px;
  font-size: 20px;
  max-width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.member-photo {
  position: absolute;
  top: -21%;
  right: 10%;
  height: 100vh;
  width: auto;
  z-index: 0;
}

.member-photo img {
  height: 130vh;
  width: 150%;
  object-fit: cover;
  border-radius: 0 0 0 60px;
}

.member-slider {
  height: 120px;
  background: rgba(0, 0, 0, 0.2);
  /* backdrop-filter: blur(10px); */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 2rem;
  z-index: 1;
  position: relative;
}

.member-slider::-webkit-scrollbar {
  display: none;
}

.member-thumb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.member-thumb.active {
  border-color: #253f6e;
  transform: scale(1.1);
}

.member-thumb:hover {
  transform: scale(1.1) translateY(-3px);
}

/* LinkedIn icon placeholder */

.icon-linkedin {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background: url("https://upload.wikimedia.org/wikipedia/commons/8/81/LinkedIn_icon.svg")
    no-repeat center/contain;
}

#members {
  overscroll-behavior: contain;
}

.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

.slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}

.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
  position: absolute;
  top: 0;
}

.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
  position: absolute;
  top: 0;
}

.slide-in-final {
  transform: translateX(0);
  opacity: 1;
  position: absolute;
}

.investigators {
  min-height: 100vh;
  padding: 4rem 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
  overflow-y: auto;
  scrollbar-width: none;
}

.investigators h2 {
  font-size: 3rem;
  margin-top: 4rem;
  font-weight: 600;
  color: #111;
}

.grid-people {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding: 40px 20px;
  width: 100%;
  max-width: 1250px;
}

/* CARD STYLING */

.person-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 0 1 calc(50% - 20px);
  flex-direction: column;
}

#instructors .person-card {
  flex: 0 1 calc(33.33% - 20px);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

#instructors .grid-people {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  padding: 40px 20px;
}

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

.person-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid #253f6e;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info {
  flex: 1;
  text-align: center;
}

.person-info h3 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 600;
  color: #111;
}

.person-info h4 {
  margin: 0.4rem 0 1rem;
  font-size: 24px;
  color: #666;
}

.person-info p {
  font-size: 24px;
  line-height: 1.6;
  color: #333;
  font-weight: 600;
}

.person-info a {
  color: #253f6e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-style: italic;
}

.person-info a:hover {
  color: #253f6e;
}

/* Entry animation */

.person-card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.7s ease forwards;
}

.person-card:nth-child(1) {
  animation-delay: 0s;
}

.person-card:nth-child(2) {
  animation-delay: 0.2s;
}

.person-card:nth-child(3) {
  animation-delay: 0.4s;
}

.team-description {
  font-size: 24px;
  font-family: "Zilla Slab", serif;
  color: #253f6e;
}

.team-members {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

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

.cover2 {
  height: 55vh;
  background-color: #ffd072;
}

.cover2 p {
  width: 80%;
  margin: 0 auto;
  padding-top: 100px;
}

@media (max-width: 1450px) {
  .member-photo {
    position: absolute;
    top: -17%;
    right: -5%;
    height: 89vh;
    width: auto;
    z-index: 0;
  }
  .member-photo img {
    height: 130vh;
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 0 60px;
  }
}
