* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: url(/starter-code/assets/crew/background-crew-desktop.jpg) no-repeat;
  background-size: cover;
  color: white;
  overflow-x: hidden;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 300ms ease-in forwards;
}

@keyframes slideDown{
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

.logo {
  margin-left: 3%;
  margin-top: 3rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-500%);
  animation: slideRight 300ms ease-in 300ms forwards;
}

@keyframes slideRight{
  0% {
    transform: translateX(-500%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.divider {
  display: flex;
  flex-grow: 1;
  background-color: #979797;
  height: 1px;
  margin-top: 3rem;
  margin-inline: 5px;
}

nav ul {
  margin-top: 3rem;
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  backdrop-filter: blur(15px);
  padding-block: 2rem;
  padding-inline-start: 10%;
  padding-inline-end: 10%;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateX(500%);
  animation: slideLeft 300ms ease-in 300ms forwards;
}

@keyframes slideLeft{
  0% {
    transform: translateX(500%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

nav ul li a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  font-family:'Barlow Condensed', sans-serif;
  padding-block: 32px;
  transition: all 200ms ease-out;
}

nav ul li a:hover {
  border-bottom: 2px solid #979797;
}


.nav-num {
  font-weight: 600;
  margin-right: .5rem;
}

.current-page {
  border-bottom: 2px solid #ffffff;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.pick-your-detination {
  margin-left: 10%;
  margin-top: 4rem;
  font-family:'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 4rem;
}

.pick-your-detination span {
  color: #3f3f3f;
  font-weight: 700;
}


.hero-container {
  color: #ffffff;
  display: grid;
  grid-template-columns: 50% 50%;
  margin-top: 4rem;
  margin-inline: 10%;
  opacity: 0;
  animation: fade 300ms ease-out 600ms forwards;
}

.hero-text {
  padding-bottom: 5rem;
}

.crew-description-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-items: center;
  gap: 1rem;
}

.profession {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 32px;
  font-family: 'Bellefair', serif;
  font-weight: 400;
  opacity: 0.4994;
}

.name {
  text-transform: uppercase;
  font-size: 56px;
  font-family: 'Bellefair', serif;
}

.description {
  line-height: 1.6;
  color: #D0D6F9;
}

.btns {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 5rem;
}

.btns button {
  height: 12px;
  width: 12px;
  background-color: #424242;
  border: none;
  border-radius: 50%;
  transition: all 100ms ease-out;
  cursor: pointer;
}

.btns button:hover {
  background-color: #a0a0a0;
}

.btns button:active {
  background-color: #ffffff;
}

.btns .active-btn {
  background-color: #ffffff;
}

.crew-img {
  background: url(/starter-code/assets/crew/image-douglas-hurley.webp) no-repeat;
  background-size: contain;
  background-position:bottom;
}

.hamburger {
  display: none;
}

@media screen and (max-width:840px) {
  body {
    background: url(/starter-code/assets/crew/background-crew-tablet.jpg) ;
    background-repeat: no-repeat;
  }
  
  nav ul {
    padding-inline-start: 5%;
    padding-inline-end: 5%;
    margin-top: 0;
  }

  .logo {
    margin-top: 0;
  }

  .nav-num {
    display: none;
  }

  .divider {
    display: none;
  }

  .pick-your-detination {
    margin-left: 1rem;
    font-size: 20px;
  }

  .hero-container {
    grid-template-columns: 100%;
    margin-top: 5rem;
    gap: 0rem;
    margin-inline: 0;
  }

  .hero-text {
    margin-inline: 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 3rem;
  }

  .crew-description-container {
    align-items: center;
  }

  .name {
    font-size: 40px;
  }

  .crew-img {
    height: 25rem;
    background-position: center;
  }
}


@media screen and (max-width:550px) {
  body {
    position: relative;
    background: url(/starter-code/assets/destination/images/background-destination-mobile.jpg) no-repeat;
    background-size: cover;
  }

  nav {
    margin-inline: 10%;
    position: relative;
    z-index: 3;
  }

  nav ul {
    display: none;
  }

  .logo {
    margin-top: 3rem;
  }

  .hamburger {
    display: flex;
    margin-top: 3rem;
    color: #ffffff;
    z-index: 2;
    cursor: pointer;
    font-size: 30px;
    transition: all 200ms ease;
    z-index: 5;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70vw;
    padding-block-start: 10rem;
    opacity: 0;
    transition: all 300ms ease-in-out ;
    transform: translateX(0);
    animation: none;
    margin-inline-end: -3rem;
  }

  .nav-active {
    opacity: 1;
  }

  .current-page {
    border-bottom: 0;
  }

  .nav-num {
    display: flex;
  }

  nav ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 1rem;
  }

  .pick-your-detination {
    margin-inline: 10%;
    text-align: center;
    font-size: 16px;
  }

  .hero-container {
    margin-top: 4rem;
  }

  .profession {
    font-size: 16px;
  }

  .name {
    font-size: 24px;
  }

  .description p{
    font-size: 15px;
  }

  #crew-img {
    background-size: contain;
    background-position: bottom center;
  }

}

