* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body{
  height: 100%;
  font-family: "Lato", "Helvetica", "Arial", sans-serif;
  scroll-behavior: smooth;
}

span {
  text-decoration: underline;
}

/* Header */
header {
  min-height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.header-img {
  background: url("../images/mountain.jpg");
}

.overlay {
  position: absolute; 
  min-height: 90%;
  background: rgba(0, 0, 0, 0.6); /* Black see-through */
  width: 100%;
  z-index: 1;
}

.intro {
  z-index: 2;
  text-align: center;
  margin-bottom: 40px;
  width: 480px;
  font-family: "Helvetica", "Arial", sans-serif;;
}

.intro > h1 {
  color: white;
  font-size: 60px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 300;
}

.intro > .subtitle {
  color: #999;
  font-size: 20px;
  font-weight: 100;
  letter-spacing: 3px;
  /* Javascript to make animated underline. Need to calculate width */
}

.down-arrow {
  position: absolute;
  bottom: 0;
  font-size: 40px;
  color: #999;
  margin-bottom: 160px;
}

.down-arrow:hover {
  color: #eee;
  cursor: pointer;
}

.up-arrow {
  width: 50px;
  height: 50px;
  background-color: #999;
  color: white;
  position: fixed;
  bottom: 0;
  right: 0;
  margin-right: 30px;
  border: 1px solid transparent;
  border-radius: 50%;
  margin-bottom: 30px;
  opacity: 0;
  font-size: 40px;
}

.up-arrow:hover {
  color: #eee;
}

/* Navigation Bar */
.navbar {
  background-color: #222;
  position: fixed;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 15px;
  font-family: "Lato", "Helvetica", "Arial", sans-serif;
}

.navbar * {
  color: white;
  text-decoration: none;
}

.navbar .nav-logo {
  font-size: 20px;
  align-self: center;
  letter-spacing: 2px;
  font-weight: 700;
}

.nav-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin-top: 12px;
  background-color: #222;
}

.nav-item {
  font-size: 20px;
  padding: 20px 0;
  letter-spacing: 2px;
  font-weight: 200;
}

.navbar-menu-list {
  display: none;
  position: absolute;
  right: 0;
  width: 100%;
}

.navbar-toggler {
  font-size: 30px;
  width: 30px; height: 30px;
  color: white;
  background-color: transparent;
  border: none;
  margin-right: 15px;
}

.navbar-toggler:hover {
  cursor: pointer;
}

.navbar .nav-logo a:hover,
.navbar .nav-item a:hover,
.navbar-toggler i:hover {
  color: #aaa;
}

.active {
  color: #aaa;
}

.display {
  display: block;
}

/* Main */

#about,
#experience,
#project,
#contact {
  min-height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Bio */
#about {
  min-height: 100%;
}
.bio {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 200px;
}

#about h2,
#experience h2,
#project h2,
#contact h2 {
  font-weight: 200;
  font-size: 40px;
  letter-spacing: 3px;
  text-align: center;
}

.bio img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 40px 0;

}

.bio p {
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.3;
  text-align: center;
  padding: 0 80px;
  margin-bottom: 40px;
}

/* Experience */
#experience {
  background-color: #F0F0F0;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-content: center;
  padding-top: 25px;
}

.experience-section {
  text-align: center;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-content: center;
}

.experience-item {
  width: 100%;
  letter-spacing: 2px;
  margin: 30px 0;
  line-height: 1.3;
  /* border: 1px solid #222; */
  padding: 25px;
}

.experience-item  h3{
  margin-bottom: 25px;
}

.experience-icon {
  font-size: 40px;
  padding: 30px;
  border-radius: 50%;
  background-color: #222;
  color: white;
  margin: 30px 0;
}

/* Resume */
.resume {
  min-height: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.resume-img {
  background: url("../images/laptop-blur.jpg");
}

.resume h2 {
  color: white;
  text-align: center;
  font-weight: 200;
  font: 50px;
  letter-spacing: 3px;
}

.resume button,
#contact button {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  padding: 10px;
  height: 50px;
  width: 150px;
  margin-top: 30px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 3px;
}

.resume button:hover {
  width: 160px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Project */
#project {
  background-color: white;
}

.project-item-container {
  display: flex;
  width: 250px;
  /* width: 100%; */
  margin: 100px 0;

  flex-direction: row;
  scroll-snap-type: x mandatory;
  overflow: hidden;
  position: relative;
}

.project-item-container a {
  text-decoration: none;
}

.project-item {
  scroll-snap-align: start;
}

.project-item img {
  width: 250px;
}

.img-overlay {
  position: absolute;
  background: rgba(10,10,10,0.5);
  bottom: 0;
  width: 100%;
  color: white;
  opacity: 0;
  transition: 0.5s ease;
  text-align: center;
  height: 50px;
  padding-top: 15px;
  letter-spacing: 2px;
}

.project-item:hover .img-overlay{
  opacity: 1;
}

#project button {
  width: 50px;
  height: 50px;
  font-size: 50px;
  border-radius: 50%;
  position: absolute;
  background: transparent;
  color: #999;
  border: none;
}

.btn-container {
  position: absolute;
  width: 250px;
}

#project button:hover {
  cursor: pointer;
  color: #eee;
}

.next-btn {
  right: 0;
}

.prev-btn {
  left: 0;
}

/* Contact */
#contact {
  background-color: #F0F0F0;
  min-height: 40%;
  padding: 20px 0;
}

#contact .contact-icon {
  width: 100px;
  height: 100px;
  font-size: 60px;
  padding: 20px;
}

#contact h2 {
  font-weight: 200;
}

#contact p {
  width: 300px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 2px;
  font-size: 14px;
  margin-top: 20px;
}


#contact button {
  background-color: #222;
  color: white;
}

#contact button:hover {
  background-color: white;
  color: #222;
  border-color: #222;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p {
  font-size: 14px;
  letter-spacing: 2px;
  padding-bottom: 10px;
  color: lightgray;
}

footer p a {
  color: lightgray;
}

footer p a:hover {
  color: white;
}

.social-media-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  width: 500px;
  margin: 50px;
}

.social-media-icon {
  font-size: 50px;
  margin: 10px 7px;
  color: lightgray;
  border: none;
}

.social-media-icon:hover {
  color: #f0f0f0;
  transform: scale(1.2);
}

/* Animation */
.parallax {
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

.fade-in {
  animation: fade-in ease-in 2s;
}

.slide-in {
  animation: slide-in linear 0.5s;
}

@keyframes fade-in{
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/* Phone with larger display */
@media only screen and (min-width: 400px) {
  .project-item-container {
    width: 350px;
  }
  
  .project-item img {
    width: 350px;
  }
  
  
  .project-item:hover .img-overlay{
    opacity: 1;
  }

  .btn-container {
    position: absolute;
    width: 350px;
  }
}


/* Desktop */
@media only screen and (min-width: 768px) {
  .intro {
    width: initial;
  }

  .bio p {
    width: 750px;
  }

  .navbar {
    background-color: transparent;
  }

  .nav-list {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 3px;

    position: static;;
    width: initial;
    background-color: transparent;
  }
  
  .nav-item {
    margin-left: 20px;
    padding: 0;
  }

  .navbar-menu-list {
    display: block;
    width: initial;
    padding-right: 15px;
  }

  .navbar-toggler {
    display: none;
  }

  .project-item-container {
    width: 700px;
  }


  .project-item img {
    /* width: 350px; */
    width: 700px;

  }

  .img-overlay {
    /* width: 350px;
    bottom: 23px; */
    width: 100%;
    /* bottom: 45px; */
  }

  .btn-container {
    width: 700px;
  }

  .experience-section {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
  }

  #experience h2 {
    margin-bottom: 25px;
  }
  .experience-item {
    width: 350px;
    margin: 20px;
  }

  #contact p {
    width: 450px;
  }
}