* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
  color: white;
}


/* =========================
   SECTION
========================= */

.team-section {
  width: 100%;
  padding: 55px 20px 70px;
  background:
    radial-gradient(circle at 50% 0%, #213c67 0%, #101c30 42%, #080d16 100%);
  overflow: hidden;
}

.section-heading {
  max-width: 1200px;
  margin: 0 auto 35px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 700;
  opacity: 0.65;
}

.section-heading h1 {
  margin: 7px 0 5px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
}

.section-heading p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 15px;
}


/* =========================
   CAROUSEL
========================= */

.carousel-wrap {
  max-width: 1300px;
  margin: auto;
  position: relative;
}

.team-carousel {
  display: flex;
  gap: 18px;

  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  padding: 10px 4px 25px;

  scrollbar-width: none;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}


/* =========================
   MEMBER CARD
========================= */

.member-card {
  position: relative;

  flex: 0 0 240px;
  height: 390px;

  border-radius: 7px;
  overflow: hidden;

  cursor: pointer;
  scroll-snap-align: start;

  background: #111;

  box-shadow:
    0 20px 50px rgba(0,0,0,.35);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.member-card:hover {
  transform:
    perspective(800px)
    rotateX(2deg)
    rotateY(-2deg)
    translateY(-7px);

  box-shadow:
    0 30px 65px rgba(0,0,0,.55);
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform .5s ease;
}

.member-card:hover img {
  transform: scale(1.055);
}


/* Gradient přes fotku */

.member-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 40%,
      rgba(5,12,22,.15) 55%,
      rgba(5,12,22,.95) 100%
    );

  pointer-events: none;
}


/* PHM číslo */

.card-number {
  position: absolute;
  top: 15px;
  right: 15px;

  z-index: 3;

  font-size: 12px;
  font-weight: 800;

  padding: 5px 8px;

  background: rgba(0,0,0,.4);
  backdrop-filter: blur(5px);

  border: 1px solid rgba(255,255,255,.15);

  border-radius: 4px;
}


/* spodní text */

.card-info {
  position: absolute;

  left: 18px;
  right: 18px;
  bottom: 17px;

  z-index: 3;
}

.card-firstname {
  font-size: 29px;
  line-height: .95;

  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: -1px;
}

.card-fullname {
  font-size: 11px;
  opacity: .58;

  margin-top: 6px;

  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.card-job {
  margin-top: 9px;

  font-size: 12px;
  font-weight: 700;

  color: #b9d8ff;
}


/* =========================
   ARROWS
========================= */

.carousel-btn {
  position: absolute;
  top: 46%;

  width: 44px;
  height: 44px;

  border: 0;

  border-radius: 50%;

  background: rgba(255,255,255,.95);

  color: #101827;

  font-size: 31px;

  cursor: pointer;

  z-index: 5;

  box-shadow:
    0 10px 30px rgba(0,0,0,.25);
}

.carousel-btn:hover {
  transform: scale(1.08);
}

.prev {
  left: -18px;
}

.next {
  right: -18px;
}


/* =========================
   MODAL
========================= */

.modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 25px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.82);

  backdrop-filter: blur(8px);
}


/* Detail karta */

.modal-card {
  position: relative;

  width: min(930px, 100%);

  min-height: 540px;

  display: grid;

  grid-template-columns: 46% 54%;

  overflow: hidden;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #152842,
      #0a111d
    );

  box-shadow:
    0 40px 100px rgba(0,0,0,.7);

  animation: showCard .32s ease;
}

@keyframes showCard {

  from {
    transform:
      perspective(900px)
      rotateY(-7deg)
      scale(.94);

    opacity: 0;
  }

  to {
    transform:
      perspective(900px)
      rotateY(0)
      scale(1);

    opacity: 1;
  }
}


/* Modal photo */

.modal-photo-wrap {
  height: 100%;
  min-height: 540px;
}

.modal-photo-wrap img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* Modal content */

.modal-content {
  padding: 70px 55px 45px;
}

.modal-label {
  font-size: 11px;
  letter-spacing: 3px;

  opacity: .5;

  font-weight: 700;
}

.modal-content h2 {
  margin:
    8px 0
    4px;

  font-size: clamp(34px, 5vw, 58px);

  line-height: .95;

  text-transform: uppercase;

  letter-spacing: -2px;
}

.modal-job {
  font-size: 18px;

  font-weight: 700;

  color: #9bc9ff;

  margin-top: 15px;
}

.modal-since {
  display: inline-block;

  margin-top: 12px;

  padding: 6px 9px;

  border-radius: 4px;

  font-size: 11px;

  letter-spacing: 1.3px;

  background: rgba(255,255,255,.08);
}

.modal-content p {
  margin-top: 28px;

  line-height: 1.65;

  color: rgba(255,255,255,.76);

  font-size: 15px;
}


/* Email button */

.email-button {
  display: inline-block;

  margin-top: 18px;

  padding: 11px 17px;

  border-radius: 5px;

  text-decoration: none;

  background: white;

  color: #111827;

  font-size: 13px;

  font-weight: 800;
}


/* Close */

.modal-close {
  position: absolute;

  right: 15px;
  top: 13px;

  z-index: 5;

  border: 0;

  background: transparent;

  color: white;

  font-size: 36px;

  cursor: pointer;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .team-section {
    padding:
      38px 15px
      50px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .member-card {
    flex-basis: 72vw;
    max-width: 280px;
    height: 410px;
  }

  .carousel-btn {
    display: none;
  }


  .modal {
    padding: 10px;
  }

  .modal-card {
    display: block;

    max-height: 94vh;

    overflow-y: auto;
  }

  .modal-photo-wrap {
    height: 400px;
    min-height: auto;
  }

  .modal-content {
    padding:
      32px 25px
      35px;
  }

}
/* =========================
   TEAM LOGOS IN DETAIL
========================= */

.modal-content {
  position: relative;
  padding-bottom: 105px;
}

.modal-teams {
  position: absolute;

  right: 35px;
  bottom: 28px;

  display: none;

  align-items: center;
  justify-content: flex-end;

  gap: 9px;
}

.modal-team-logo {
  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: rgba(255,255,255,.96);

  border: 2px solid rgba(255,255,255,.22);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4px;

  cursor: help;

  box-shadow:
    0 5px 15px rgba(0,0,0,.35);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.modal-team-logo:hover {
  transform:
    translateY(-4px)
    scale(1.08);

  box-shadow:
    0 10px 25px rgba(0,0,0,.45);
}

.modal-team-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  border-radius: 50%;
}


/* =========================
   DARK PHM BACKGROUND
========================= */

.team-section {
  background:
    radial-gradient(
      circle at 45% 0%,
      #22262b 0%,
      #111315 42%,
      #080909 100%
    );
}

.modal-card {
  background:
    linear-gradient(
      145deg,
      #1a1d20,
      #0b0c0d
    );
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .modal-content {
    padding-bottom: 35px;
  }

  .modal-teams {
    position: static;

    margin-top: 25px;

    justify-content: flex-start;

    flex-wrap: wrap;
  }

  .modal-team-logo {
    width: 42px;
    height: 42px;
  }

}
