/*  HOME PAGE + NAV BAR */

/* 
font-family: 'Montserrat', sans-serif; 
font-family: 'Open Sans', sans-serif;
font-family: 'Rock Salt', cursive;
*/

:root {
  --spot-color: #00bfac;
  --main-black: rgb(21, 21, 21);
  --off-white: rgb(242, 242, 242);
  --gray: rgb(232, 232, 232);
}

.particles{
  height:100%;
  width:100%;
  position: absolute;
}

#particles-js{
  height: 100%;
}


/* Home */

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
}

a.copyright-link {
  color: #6c757d !important;
}

a.active {
  color: var(--spot-color) !important;
  transition: 0.25s;
}

/* Base structure */

html,
body {
  height: 100%;
  background: white;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

h1, h2 {
  font-family: 'Montserrat', sans-serif; 
}

h2{
  color: var(--spot-color);
  font-weight: 600;
}

.cover-heading {
  max-width: 70%;
}

.cover-container {
  display: -ms-flexbox;
  display: flex;
  max-width: 80em;
}

.home{
  background: var(--main-black);
  height: 100vh;
}

main {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  color: var(--off-white);
  margin-left: 10%;
}

.home h1{
  font-size: 3.6em;
  padding-bottom: 5px;
  font-weight: 400;
}

.home .name {
  color: var(--spot-color);
}

.home p{
  color: var(--grey);
  padding-bottom: 40px;
}

/* .home .icons{
  margin-top: 20px;
  text-align: center;
}

.home .icon {
  position: relative;
  color: var(--off-white);
  margin: 20px 40px;
  font-size: 2em;
  z-index: 9999;
} */

.icon:hover{
    color: var(--spot-color) !important;
    transition: 0.25s;
}

.arrow {
  cursor: pointer;
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 40px;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
  opacity: 0.5;
}

.arrow:not(:hover) {
  animation-name: pulse;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

.arrow:hover {
  opacity: 1;
}

.down-arrow {
  border: solid var(--off-white);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 13px;
  transform: rotate(45deg);
}


/* Header */

.masthead {
  margin-bottom: 2rem;
}

.navbar-brand .signature {
  font-family: 'Rock Salt', cursive;
  font-size: 1.6em;
}

.navbar-brand .fullname {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  font-weight: 500;
}

.nav-masthead .nav-link {
  padding: .25rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  background-color: transparent;
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

.nav-link{
  font-size: 18px;
  margin-left: 15px;
  margin-right: 15px;
  color: var(--off-white) !important;
}

.nav-link:hover{
  color: var(--spot-color) !important;
  transition: 0.25s;
}

.navbar{
  padding-top: 1%;
  padding-left: 10%;
  padding-right: 10%;
}

#home .navbar {
  height: 85px;
  transition: height 2s ease;
}

.navbar#about-navbar {
  background-color: var(--main-black);
}

.navbar p {
  padding: 0;
  margin: 0;
}

.bg-scroll{
  background: var(--main-black);
  transition: 0.25s;
}


/* Cover */
.cover {
  padding: 0 1rem;
  text-align: left;
}

#about{
  display: flex;
  line-height: 2;
  margin: 15% 10%;
  scroll-margin-top: 200px;
}

#about p{
  padding-top: 16px;
}

.aboutcontainer {
  max-width: 60%; 
}

.profilecontainer{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.profile-photo{
  width: 280px;
  margin-right: 10%;
  box-shadow: 20px 20px 1px 1px rgb(32 32 32 / 90%);
}

/* Projects */

#projects{
    scroll-margin-top: 50px;
}

#projects h2{
    padding-top: 5%;
    text-align: center;
}

#projects h3{
    color:var(--spot-color);
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 1.4em;
}

#projects h5 {
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

.projectcontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 4% 10%;
}

.projecttext {
  width: 50%;
}

.projecttext p {
  width: 90%;
  margin: 5% 0;
}

.projectimage {
  width: 45%;
  text-align: right;
}

.projectimage img{
    width: 100%;
    border: 1px solid rgb(242, 242, 242);
    border-radius: 15px;
}

hr.projectdivider {
  width: 80%;
  border-color: var(--gray);
}

.project-btn{
    font-family: 'Montserrat', sans-serif;
    background-color:transparent;
    border:1px solid var(--spot-color);
    color:var(--spot-color);
    font-size:16px;
    padding: 5px 22px;
    transition: 0.25s ease;
    text-decoration:none;
    display:inline-block;
    cursor:pointer;
    margin-top: 2%;
    margin-right: 3%;
    font-weight: 500;
    width: auto;
    text-align: center;
    white-space: nowrap;
}

.project-btn.main {
  background-color: var(--spot-color);
  color: white;
}

.project-btn:hover{
    background-color: var(--spot-color);
    color: white;
    text-decoration: none; 
}

.project-btn.main:hover {
  background-color: white;
  color: var(--spot-color);
  border: 1px solid var(--spot-color);
}


/* Experience */

#experience{
    margin: 9% 15%;
    scroll-margin-top: 180px;
}

hr.experiencedivider {
  width: 100%;
}

table td{
    padding-top: 4%;
    vertical-align: top;
}

.vertical{
    border-left: 6px solid black; 
    height: 20px; 
}

.date{
    width: 15%;
}

.datetext{
    font-size: 1.2rem;
    font-weight: 600;
}

.position-title{
    color: var(--spot-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
}

.position{
    width: 30%;
    padding-left: 5%;
}

.position p {
  margin: 8px 0;
}

.resumelink {
  font-weight: 500;
  margin-top: 3rem;
}

.resumelink a {
  color: var(--spot-color);
  transition: 0.5 ease;
  text-decoration: none;
}

.resumelink a:hover {
  opacity: 0.8;
}

.certificates {
  margin-top: 10%;
}

.certificates h3 {
  font-size: 1.7em;
  text-align: center;
  padding-bottom: 3%;
}

.certificate-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.certificate-image {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 44%;
  margin: 2%;
  text-align: center;
  font-size: 0.9em;
}

.certificate-image img {
  border: 1px solid var(--gray);
  width: 100%;
  height: auto;
}


/* Contact */

.contact{
  background: var(--main-black);
  text-align: center;
}

.contactcontainer{
  padding: 12% 33%;
}

.contact h1{
  color: white;
  padding-bottom: 3%;
}

.contact p{
  color: white;
  padding-bottom: 6%;
}

.contact-btn {
  border: 1px solid var(--spot-color);
  display:inline-block;
  cursor:pointer;
  color:var(--spot-color);
  font-size:17px;
  padding:8px 25px;
  text-decoration:none;
  transition: 0.5s;
  position: relative;
  z-index: 9999;
  font-weight: 500;
}

.contact-btn:hover {
  color: white;
  background-color: var(--spot-color);
  text-decoration: none;
}


/* Footer styles */

.footer{
    background-color: var(--main-black);
    color: white;
    text-align: center;
    padding: 1em;
}

.icon {
    margin: 20px 40px;
    font-size: 2em;
}

.icon:hover{
    color: rgb(255,255,255,0.5);
    transition: 0.25s;
}

  /* Responsive */

  /* Bootstrap nav styles */
  @media (min-width: 48em) {
    .masthead-brand {
      float: left;
    }
    .nav-masthead {
      float: right;
    }
  }

  /* Tablet */
  @media (max-width: 980px) {
    .home h1{
      font-size: 3em;
    }

    .navbar {
      position: relative;
    }

    .navbar-collapse {
      background-color: var(--main-black);
    }

    #about {
      flex-direction: column-reverse;
    }

    .aboutcontainer {
      margin-top: 15%;
      max-width: 100%;
    }

    .profilecontainer {
      justify-content: center;
    }

    .profile-photo{
      margin: 0;
      width: 40%;
    }

    #projects {
      margin: 6% 0;
    }

    .projectcontainer {
      flex-direction: column-reverse;
      padding: 4% 5%;
    }

    .projectimage {
      width: 70%;
    }

    .projecttext {
      width: 70%;
      padding-top: 7%;
    }

    .certificate-images {
      flex-direction: column;
    }

    .certificate-image {
      width: 80%;
      margin: 5% auto;
    }

    .contactcontainer {
      padding: 12% 10%;
    }
  }

  /* Mobile */
  @media (max-width: 600px){
    .certificate-image {
      width: 100%;
    }

    .profile-photo {
      width: 70%;
    }

    tr {
      display: flex;
      flex-direction: column;
    }

    table td {
      padding-bottom: 20px;
    }

    .date, .position {
      width: 100%;
    }

    .contactcontainer{
      padding: 12% 20%;
    }
  }


  /* Animations */

  /* Animation styles */
  .js-scroll {
    opacity: 0;
    transition: opacity 500ms;
  }
  
  .js-scroll.scrolled {
    opacity: 1;
  }

  .scrolled.fade-in-right {
    animation: fade-in-right 1s ease-in-out both;
  }

  .scrolled.fade-in-left {
    animation: fade-in-left 1s ease-in-out both;
  }

  .scrolled.fade-in-bottom {
    animation: fade-in-bottom 1s ease-in-out both;
  }

  /* Keyframes */
  @keyframes pulse {
    from { opacity: 0.2 }
    to { opacity: 0.5 }
  }

  @keyframes fade-in-right {
    0% {
      transform: translateX(100px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes fade-in-left {
    0% {
      transform: translateX(-100px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes fade-in-bottom {
    0% {
      /* -webkit-transform: translateY(50px); */
      transform: translateY(50px);
      opacity: 0;
    }
    100% {
      /* -webkit-transform: translateY(0); */
      transform: translateY(0);
      opacity: 1;
    }
  }


