#page-header{
  margin-bottom: .5em;
}

main{
  margin-top: 0em;
}

#team-hero{
  position: relative;
  width: 100%;
  aspect-ratio: 6000 / 4000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#who-we-are-description{
  position: relative;
  z-index: 2;
  width: 50%;
  text-align: center;
  margin: auto;
  font-family: 'Poppins';
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
}

#sub-heading, #mech-team, #nav-team, #bops-team{
  padding-top: 15px;
  font-family: 'Poppins';
  font-size: 30px;
  font-weight: 400;
}

#full-team-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

h3 {
  width: 100%;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 0.25em;
}

#our-team-header {
  scroll-margin-top: 55px;
  height: 0;
  margin: 0;
  padding: 0;
}

#team-hero #scroll-down-button {
  position: fixed;
  bottom: 2.5em;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#team-hero #scroll-down-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#subteam-links {
  display: flex;
  flex-direction: horizontal;
  justify-content: center;
  gap: 5em;
  margin-top: 3em;
  margin-bottom: 5%;
}

.subteam-card .inner-card{
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(101, 200, 208, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 330px;
  height: 250px;
  transition: transform 0.3s ease; 
}

.subteam-card:hover .inner-card:hover{
  transform: scale(1.05);
}

.subteam-card p {
  font-weight: 300;
  font-size: 32px;
  text-align: center;
  padding-top:.75em;
  color: var(--accent-red);
}

.subteam-icon {
  width: 84px;
  height: 84px;
  background-color: var(--accent-red);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

#navigation-icon {
  -webkit-mask-image: url(../images/icons/navigation.png);
  mask-image: url(../images/icons/navigation.png);
}

#mechanical-icon {
  -webkit-mask-image: url(../images/icons/mech.png);
  mask-image: url(../images/icons/mech.png);
}

#business-icon {
  -webkit-mask-image: url(../images/icons/bops.png);
  mask-image: url(../images/icons/bops.png);
}

.subteam-header{
  margin-top: 3em;
}

.subteam-description{
  width: 50%;
  margin: auto;
  margin-bottom: 1em;
}

.card-container{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2em;
  font-family: 'Open Sans';
}

.member-card{
  background: var(--bg-raised);
  box-shadow: 0 0 30px rgba(101, 200, 208, 0.12), 2px 5px 10px rgba(0, 0, 0, 0.25);
  width: 285px;
  height: 425px;
  margin: 1em;
}

.flip-card {
  background-color: transparent;
  width: 285px;
  height: 285px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.member-card-info{
  padding-left: 12px;
  padding-top: 12px;
  height: 109px;
  font-family: 'Open Sans';
}

.member-card-info h4 {
  color: #ffffff;
}

.member-card-info h5 {
  color: var(--accent-red);
}

p {
  font-family: 'Open Sans';
  font-size: 15px ;
}

h4 {
  font-family: 'Open Sans';
  font-weight: 700;
  font-size: 20px;
  margin: 0em;
}

.headshot{
  width: 100%;
  height: 285px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(101, 200, 208, 0.85), 0 0 32px rgba(101, 200, 208, 0.55);
}

.logo-container{
  text-align: right;
  width: 100%;
  height: 30px;
}

.linkedin-logo{
  width: 8%;
  margin-right: .5em;
  margin-bottom: .5em;
}

.flip-card-back {
  transform: rotateY(180deg);
  text-align: center;
  display: table;
  height: 100%;
}

.flip-card-back div{
  display: table-cell;
  vertical-align: middle;
}

.flip-card-back p{
  margin-left: 1.5em;
  margin-right: 1.5em;
}

#aleksandra{
  font-size: 20px;
}

.hidden{
  visibility: visible;
}

@media (max-width: 620px){

  main{
    margin-bottom: 8em;
  }

  .subteam-description{
    width: 75%;
    padding-top: 10px;
  }

  #who-we-are-description{
    width: 80%;
  }

  #subteam-links{
    display: flex;
    flex-direction: column;

  }
}